Quote:
Originally posted by RHrulz
I can tar to the tape (tar cvf /dev/st0 *) drive /dev/st0, but I get error when I try to read what I just tarred to it (tar tvf /dev/st0).
tar: /dev/st0: Cannot read: Input/output error
tar: At beginning of tape, quitting now
tar: Error is not recoverable: exiting now
|
This is an IDE tape masquerading as SCSI? Well, if that's the case...
It's probably not really a tar error. It sounds like you haven't initialized the tape drive. You should take a look at the manpage for ``stinit''. You'll need to come up with a config file to pass to it. I've been using one that I cannibalized from the stinit manpage and substituted in the name/strings that my tape drive produced when probed at boot time.
Make a small script that runs stinit that you can run from within rc.local at boot time. And don't boot the system with a tape loaded. YMMV, but on my system (and some others at work) the system hangs when it attempts to initialize the drive if a tape is loaded. I wound up adding code to my tape init script to go looking for a tape being online and ejecting it before running stinit. Better than having to hit the reset button to unlatch the system.
Hope this helps,
Rick