RH 6.2 IDE Tape Drive

RH 6.2 IDE Tape Drive

Post by Ron » Thu, 13 Jul 2000 04:00:00



I have a Exabyte IDE TR4 tape drive and all I get is I/O errors when I
access it. System recognizes it at HDD.  I have no SCSI devices on my
system. How do you issue a "rewind" command for this device?
Can someone point to docs for IDE tape devices? It works fine in Win98.

Thanks for any help... Ron

--

                     *** William R Whitlock ***
                    * Powered by Red Hat LINUX *

 
 
 

RH 6.2 IDE Tape Drive

Post by Matthias Koc » Thu, 13 Jul 2000 04:00:00




What about trying this:

Compile the kernel with SCSI emulation support.
Try to access the tape as /dev/st0.

 
 
 

RH 6.2 IDE Tape Drive

Post by Juergen Pfan » Sat, 15 Jul 2000 04:00:00



> I have a Exabyte IDE TR4 tape drive and all I get is I/O errors when I
> access it. System recognizes it at HDD.  I have no SCSI devices on my
> system. How do you issue a "rewind" command for this device?
> Can someone point to docs for IDE tape devices? It works fine in Win98.

> Thanks for any help... Ron

Ron, unfortunately I'm not familiar with IDE/ATAPI tape drives in
Linux, but let's see if I can derive some hints from my experience
with floppy and SCSI tapes...
First of all : generally, ATAPI tapes _are_ on the list of supported
HW in Linux. BUT that doesn't mean that this includes *all* tape
drives by *all* manufacturers. For instance, Onstream drives currently
don't work in Linux, neither ATAPI nor SCSI nor parallel versions,
due to the non-standard interface of those.
But in your case, Exabyte is a well-known manufacturer since "decades",
so my guess is, they do it "the right way" for their ATAPI devices also.
With "the right way", I refer to an interface of essentially the same
command set for tape I/O on top of the HW interface layer (SCSI, ATAPI,
the parallel port or the floppy disk controller, whatever). You could
verify that if you'd be able to rewind your tape media (with the *same*
'mt' tool) in a SCSI as well as an ATAPI drive, for instance, if you had
both...
So, now how to configure your system to eventually use your HW ?
Basically, you need at least two things : IDE/ATAPI tape support (of
course), AND the resp. device files as the standard UNIX interface
to the HW.
You said, your device is recognised by the system on boot. I'd like
to see the exact syslog line, in order to decide if that means that
the kernel activates the tape driver itself, or if it's only seen
as unknown/generic ATAPI device as slave on the secondary IDE
interface. Please give us more information here !
Anyway, if there isn't a line similar to "Detected ATAPI tape drive
ht0" (don't know the exact phrase!), this means one of two things :
either, there's no (ATAPI) tape support statically compiled in your
running kernel, or - more likely - the appropriate module simply
isn't loaded automatically. You can verify both of these by a
manual 'insmod ide-tape'; look at the syslog messages ! Chances are,
you're nearly done in case of success ! If not, we must go on
in our diagnosis.
BTW, before I forget to mention it : it might be necessary to tell
the kernel that your IDE secondary slave is not a HD but a tape drive
by adding the line 'append = "hdd=ide-tape"' to your /etc/lilo.conf;
alternatively, you can issue the line "linux hdd=ide-tape" at the
LILO-prompt; but you have to do the latter with each and every boot.
Thus, the "append =.." method is preferable; of course, you might
need other statements as well - then you'd construct *one* append
line for both/all your statements.
Next, I'd verify that the device files exist : These are at least
/dev/ht0 (that's zero) - character, major 37, minor 0; and
/dev/nht0 - character device, major 37, minor 128. If these do not
exist, you must issue the appropriate 'mknod' commands (man mknod),
or start a script for that, sometimes called MAKEDEV, in the /dev
directory.
Now, if you feel the module has been successfully inserted into
your kernel (or you've come up with a customized kernel with
static ATAPI tape support) AND the device files exist, it's time
to test the drive itself - with a media inserted, I suggest.
The tool to control the operation of *any* tape drive is, as
mentioned above, called 'mt' (again, see it's man page also).
I'd start with 'mt -f /dev/ht0 status', and I'd expect to get
a summary of, e.g. tape position, a status bitmask, etc.
If that looks o.k., you can test other mt commands like 'rewind',
'offline' and so on. Remember that /dev/ht0 is the device that
automatically rewinds the tape after each control operation,
whereas /dev/nht0 is the non-rewinding device.
Next step IMHO is to do a test backup, e.g. with "tar", and
the trial to read this test archive again. If that works, you
should be able to use your drive regularly, and all seems to
be set up correctly.
One last annotation : if you use the tape driver as module,
and it works with manual load of the latter, but not
automatically with a 'mt' command, for instance, one more
hint : verify that your /etc/modules.conf (or was it conf.modules
- always mix that up) contains a line saying "alias
char-major-37 ide-tape" - that should be sufficient for automatic
loading by kerneld.

Hope that helps, and Good Luck

Juergen

 
 
 

RH 6.2 IDE Tape Drive

Post by Tim Moor » Sun, 16 Jul 2000 04:00:00


Quote:> I have a Exabyte IDE TR4 tape drive and all I get is I/O errors when I
> access it. System recognizes it at HDD.  I have no SCSI devices on my

Look at your dmesg output which will tell you what device is associated with
the tape.  In this example, /dev/ht0 and /dev/nht0.  A link /dev/tape ->
/dev/nst0 is common practice.

Most people remove ATAPI tape support and add SCSI emulation and SCSI tape
in their kernels even if there are not true scsi devices.  I have run both
ways, throughput is the same, scsi emulation seems to be less prone to
positioning and [bogus] error codes.

Quote:> system. How do you issue a "rewind" command for this device?

'mt -f /dev/nht0' most likely.  Also 'man mt'

Quote:> Can someone point to docs for IDE tape devices?

Look under /usr/doc first, particularly the HOWTO section.

Quote:> It works fine in Win98.

What it did under W9x is irrelevant for devices and most everything else.
Unlike the W9x world, most drivers in linux handle many different devices
within a family, so the case of a 'special' device driver for Brand X is not
usually a thought.

[CD w ATAPI - /dev/ht0]
kernel: hdb: HP COLORADO 20GB, ATAPI TAPE drive
kernel: ide-tape: hdb <-> ht0: HP COLORADO 20GB rev 4.01
kernel: ide-tape: hdb: overriding capabilities->speed (assuming 950KB/sec)
kernel: ide-tape: hdb: overriding capabilities->max_speed (assuming
950KB/sec)
kernel: ide-tape: hdb <-> ht0: 950KBps, 13*32kB buffer, 9248kB pipeline,
60mst

[CD w SCSI emulation - /dev/st0]
kernel: scsi1 : SCSI host adapter emulation for IDE ATAPI devices
kernel:   Vendor: HP        Model: COLORADO 20GB     Rev: 4.01
kernel:   Type:   Sequential-Access                  ANSI SCSI revision: 02
kernel: Detected scsi tape st0 at scsi1, channel 0, id 0, lun 0

--
timothymoore
   bigfoot
     com

 
 
 

RH 6.2 IDE Tape Drive

Post by Ron » Mon, 17 Jul 2000 04:00:00


I'm in the ball park... dev/ht0 would not work here... used "ide-scsi"
and I can now talk to the drive (via nst0)... I'm on a roll... time to
play... tnx ALL for the info.

Another helped newbie...

-Ron

--

                     *** William R Whitlock ***
                    * Powered by Red Hat LINUX *

 
 
 

RH 6.2 IDE Tape Drive

Post by Stefan Viljoe » Mon, 17 Jul 2000 04:00:00



Quote:> I'm in the ball park... dev/ht0 would not work here... used "ide-scsi"
> and I can now talk to the drive (via nst0)... I'm on a roll... time to
> play... tnx ALL for the info.

> Another helped newbie...

Maybe me too!

I have RH6 - it has ftape, right? What is the mount point to use with mt to
access Iomega DittoMax Pro on the DittoDash accelerator card?

Thanks!

Stefan

 
 
 

RH 6.2 IDE Tape Drive

Post by Ron » Wed, 19 Jul 2000 04:00:00


test message

--

                     *** William R Whitlock ***
                    * Powered by Red Hat LINUX *

 
 
 

1. IDE Tape STT220000a and RH 6.2

I have a Seagate IDE Tape installed as hdd in RedHat 6.2 rpm + latest patches
system.

dMesg shows that the tape is being seen at boot time:
hdd: Seagate STT20000A, ATAPI TAPE drive

But I cannot use it for anything:
Sep 30 11:37:59 fw kernel: ide-tape: hdd: Unsupported command in request queue
Sep 30 11:37:59 fw kernel: end_request: I/O error, dev 16:40 (hdd), sector 21498
Sep 30 11:38:08 fw kernel: ide-tape: ht0: I/O error, pc = 34, key =  3, asc = 30, ascq =  0

and of course:


/dev/nht0: Input/output error

Any hints?  Any help?  A bone to a poor dog?

Thanks in advance

Bob Alberti

2. KWrite

3. Scsi Tape Drive on RH 6.2?

4. PCB Milling Machine and Linux?

5. SCSI tape drive on RH 6.2 error

6. sense data from lvm driver

7. Redhat 6.2 IDE TAPE DRIVE please help

8. Incremental backups with tar to harddisc

9. Colorado Tape worked w/RH 5.2, not w/RH 6.2

10. IDE CD-RW (HP 9310i) workd with RH 6.2

11. LG ide cd-rw on RH 6.2

12. RH 7.1 will not read from Exabyte TR4 IDE tape drive

13. ATL tape library and RH 6.2