How to check a Python tape drive on Debian?
I was recently given a Dell PowerEdge 2400 server with a Python tape drive. I've now got Debian 3.0 (Woody) happily running on it, but I can't work out whether or not the tape drive works.
The output of dmesg includes the following: Code:
scsi : 1 host. I've little experience with tape drives, and absolutely none with tape drives on Linux, so if someone could give me some pointers to work out whether or not the drive works, I'd be very grateful. Russ |
I will assume the device ID for the tape drive is /dev/st0, /dev/nst0 and the tape utility mt is already installed. Using /dev/st0 the tape will rewind after a command completes. Using /dev/nst0 the tape will not be rewound after a command completes.
for drive status: mt -f /dev/st0 status A simple check to write to tape: tar -cvf /dev/st0 some_file To read the file from tape. change to another directory tar -xvf /dev/st0 The file will be read from tape and created on the other directory. |
Thanks, that's just the sort of information I was looking for. I've done what you suggested, and I think my tape drive isn't working. Here's the output of some commands:
Code:
junction:~# mt -f /dev/st0 status Code:
junction:~# tar -cvf /dev/st0 foobar Code:
junction:~/test# tar -xvf /dev/st0 Russ |
I haven't used my DLT tape drive in awhile as so decided to check it out. I'm having the same problems as you. I usally only read data from this drive and that seems to work ok.
|
I've got my tape drive working now. The fix? I borrowed a cleaning cartridge from work and ran that through it. Now it works fine :)
Thanks for your help, and I hope the same fix works for you Russ |
All times are GMT -5. The time now is 01:11 PM. |