I use this command in my backup cron job to determine whether to back up to tape or disk. My script doesn't work anymore (sometimes)...
Does the mt-st package do what you want?
Please confirm that this bug still applies to cpio 2.9.90-2.
Control: found -1 2.13+dfsg-7.1 Control: found -1 2.15+dfsg-2 # time mt-gnu -f /dev/nst0 status mt-gnu: /dev/nst0: rmtopen failed: No medium found real 2m2.881s user 0m0.004s sys 0m0.000s compare to mt-st: # time mt-st -f /dev/nst0 status SCSI 2 tape drive: File number=-1, block number=-1, partition=0. Tape block size 0 bytes. Density code 0x0 (default). Soft error count since last status=0 General status bits on (50000): DR_OPEN IM_REP_EN real 0m0.002s user 0m0.001s sys 0m0.000s