On 07/08/18 13:24, Alan Brown wrote:
sg_raw -o - -r 1024 -t 60 -v /dev/nst0 (or its /dev/sg) 8c 00 00 00 00
00 00 00 00 00 00 00 04 00 00 00
And pipe it through the script I posted at
https://github.com/hreinecke/sg3_utils/issues/18
Bingo!
id=0x0000 writable=RO format=0 attrlen=0x0008=8 - Device: Remaining
Native Capacity in Partition (MiB)
val=0x00000000000c6645 (812,613)
id=0x0001 writable=RO format=0 attrlen=0x0008=8 - Device: Maximum
Native Capacity in Partition (MiB)
val=0x00000000000d0444 (853,060)
(which seems accurate as the tape only contains increments from 6 days,
no full backups)
BTW, does this info look accurate to you?
id=0x1000 writable=RO format=0 attrlen=0x001c=28 - Medium
(vendor-specific): Unique Cartridge Identity (UCI)
- LTO-CM serial #: 2886897956
- Manf Tape pancake Id: E29O0151
- Manufacturer: SONY
- LPOS at LP1: 43181
- Cartridge type 8
As my device looks like this:
https://www.amazon.co.uk/Quantum-TF4200-021-1600GB-Ultrium-External/dp/B00E5PE4QC
------------------------------------------------------------------------------
Check out the vibrant tech community on one of the world's most
engaging tech sites, Slashdot.org! http://sdm.link/slashdot
_______________________________________________
Bacula-users mailing list
Bacula-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/bacula-users