Re: [SLUG] HELP! IDE Tape backup problem!

From: tim (tim@timjones.com)
Date: Wed Dec 18 2002 - 08:24:15 EST


Hi, Paul!

Yes, st0 is normally a SCSI device, and the physical drive is actually an IDE
drive on hda. So, on first blush, it looks like I don't know what I'm doing
:-) (and I'm starting to wonder myself).

However, there is an emulation module called ide-scsi that is supposed to
allow IDE devices to be handled with the SCSI drivers. I switched to the
ide-scsi module after learning on LKML that the ide-tape.o driver is "broken"
(to use Alan Cox's word), and that no one is working on it.

The URL I gave with the first message, http://www.lmphotonics.com/linux.htm,
explains how to do this. There are other pages describing basically the same
approach, and I have scoured them for extra clues. According to these pages,
this works with CD-R/CD-RW, DVD-R, and other IDE drives.

I have tried to follow these directions, but it is still not working for me.
That's why I posted this problem to the list. It's been a VERY long time
since anything Linux has confounded me this badly! And actually, it's not a
very long thread yet. I posted two days ago, and I've had 3 or 4 replies so
far, both of them helpful, but my problem's not solved yet.

I have far more faith in a bunch of gurus on lists like these than a corporate
support contract. I say that all the time at work, but no one listens.

Tim

On Tue, 17 Dec 2002 23:46:37 -0500, Paul M Foster wrote
> On Tue, Dec 17, 2002 at 10:21:28PM -0500, tim wrote:
>
> > On 17 Dec 2002 10:57:52 -0500, Logan Tygart wrote
> > > On Mon, 2002-12-16 at 23:28, tim wrote:
> > > <snip>
> > > > hda/media:tape # look at THIS! hda is a tape!
> > > <snip>
> > >
> > > Out of curiousity, have you tried this, with a tape in the drive?
> > >
> > > find /tmp |cpio -ov >/dev/hda
> > >
> > > To see if the tape is being used as hda instead of st0?
> >
> > strace (on a subshell running the above command, required because cpio's
> > OUTPUT is going to the drive, meaning the shell is actually doing the open)
> > shows that the open("/dev/hda") is successfully, but
> > then there is an ioctl() that gets "I/O Error" (strace shows an errno
> > of EIO).
> >
> > When I try to use /dev/st0, I always get "No Such Device" (errno ENODEV),
> > regardless of the utility that actually opens the device (shell redirection,
> > tee, dd, etc).
>
> I haven't followed this thread closely, so pardon any glaringly
> stupid mistakes....
>
> "No such device" errors typically mean that, although the symlink in
> the /dev directory for that device may exist, the module for that
> device is not loaded. I never run SCSI drives (yours is a SCSI,
> right?), but the SCSI-2.4-HOWTO says that the st module is what
> runs SCSI tape drives. You can check the st man page or the above
> HOWTO for more info. There is also a program called mt that can be
> used to test the drive, once the driver is loaded. (See man mt, as
> usual.) I use mt for this type of thing, but as I run floppy tape
> drives, I use the ftape driver rather than the st driver.
>
> HTH,
>
> Paul

--
-------------------------------------------------------------
Timothy Jones - tim@timjones.com / tjones@tsiconnections.com
Unix/Linux/Java Programmer/DBA/SystemAdmin & Brasswind Player
-------------------------------------------------------------
 



This archive was generated by hypermail 2.1.3 : Fri Aug 01 2014 - 19:30:45 EDT