Skip site navigation (1)Skip section navigation (2)
Date:      Sat, 19 May 2007 18:39:39 -0500
From:      Dan Nelson <>
Subject:   Re: Tape Capacity Used?
Message-ID:  <>
In-Reply-To: <>
References:  <>

Next in thread | Previous in thread | Raw E-Mail | Index | Archive | Help
In the last episode (May 19), said:
> I am trying to calculate how much of the space on my tape has been used.
> This is what I have done, and I want to make sure I barking up the
> right tree before going too far.
> Move the tape to the end of the data. (mt eod).
> Find the logical block location of the drive (mt rdspos).
> /dev/nsa0: logical block location 2242573
> If I multiply the result (2242573) by my blocksize, does this give me
> the total amount of the tape that has been used?

If your tape drive has hardware compression turned off, that should be
accurate.  With compression enabled, logical blocks can be varying size
on tape depening on the compression ratio.  If your device supports the
"rdhpos" command, that might give you a number that more accurately
indicates where on the physical tape you are.  It's a "device-specific
value", though, which may not translate to a sequential "0-max" range.

	Dan Nelson

Want to link to this message? Use this URL: <>