Is there a way via mtx
or mt
, or else via some value stored in /sys
or /proc
, to know the capacity of a tape in a tape drive (such as a LTO7 cassette in a DELL TL4000)?
I have attempted mt with the operations tell
and status
.
status
Print status information about the tape unit. (If the density code is "no translation" in the status output, this does not affect working of the tape drive.)
tell
(SCSI tapes) Tell the current block on tape. This operation is available on some Tandberg and Wangtek streamers and some SCSI-2 tape drives.
but even being uid=0 (root) it reports
/dev/sg2: operation not permitted
.