From mboxrd@z Thu Jan 1 00:00:00 1970 X-Google-Language: ENGLISH,ASCII-7-bit X-Google-Thread: 111c93,30907675f4196beb X-Google-Attributes: gid111c93,public From: mparson@blarg.bl.org (Mike Parson) Subject: Re: SCSI tape timeout Date: 1999/01/21 Message-ID: <787iu9$2f6$1@blarg.bl.org>#1/1 X-Deja-AN: 435261344 References: <36A61123.17D63B98@earthling.net.nospam> Organization: BL DOT ORG Newsgroups: comp.os.linux.alpha In article <36A61123.17D63B98@earthling.net.nospam>, Mike Schroeder wrote: > Hi. > I've (finally) gotten my Sony DAT drive to work.. I think. Only there > are still some problems. One thing is the mt command (I have the latest > I think it's 0.5-2 or some such) when I do a "mt -f /dev/nst0 rewind" it > will timeout and generate an error message waiting for the tape to > finish rewinding. It all actually works, but complains that it doesn't > know if the command worked or not because it timed out. > And don't try to do a "mt -f /dev/nst0 erase" because that hangs Linux > completely. (Hey, who said Linux couldn't do what Windblows does? :) > Seems to be SCSI bus problems to me. Make sure you have reselection enabled on your SCSI controller (if supported by the controller). If you've got a Multia/UDB, this is a kernel compile time option that you set when config-ing the kernel. Unfortunately, with the Multias, it's an all or nothing setting with reselection. If you're using something like a BusLogic or Adaptec controller, then you've got to twiddle with the controller's BIOS settings to enable reselection for the card and the tape device. Doing things with tapes can be time consuming. If the tape doesn't return from the command issued in what the kernel decides is a resonable time, it will think something went wrong and start resetting the SCSI bus, then all sorts of Bad Things can start happening. If you have reselection enabled, the tape device can 'detach' itself from the bus once the command has been issued (mt -f /dev/nst0 erase) and then reattach itself when it completes the command. This will free up the SCSI bus for use by other devices and the kernel will not get upset and start resetting things. > Also, where can I find how to correctly use the dump command? I have it > working, but It's mostly guess work. I'd like to optimize it. How come > there isn't a "backup-HOWTO"? When dumping to my DDS2 drive, I use: /sbin/dump 0ubBf 63 4096000 /dev/nst0 / The basic problem with a backup-HOWTO would be having to lookup and provide all the block-size/block-counts for all the different types of tape drives out there. =) -- Michael Parson mparson@bl.org