Code:
# mt -f /dev/st0 status
mt: /dev/st0: No medium found
# echo $?
2
# mt -f /dev/st0 status
drive type = Generic SCSI-2 tape
drive status = 620756992
sense key error = 0
residue count = 0
file number = 0
block number = 0
Tape block size 0 bytes. Density code 0x25 (unknown).
Soft error count since last status=0
General status bits on (41010000):
BOT ONLINE IM_REP_EN# echo $?
0
#
Reicht sowas nicht?
lg paux