[SLUG] HELP! IDE Tape backup problem!

From: tim (tim@timjones.com)
Date: Mon Dec 16 2002 - 23:28:58 EST


Hello, troops!

This is worth $100 to me (more if you count mental anguish and an upset
customer)... If any of you can help me with this, the dough is yours!

I have a customer who I just led through a Windows NT-Domain-to-Linux
conversion. It's had it's painful moments, but I've solved all the problems
(perhaps not the best way, but at least my way), except for one.

The client has an ECRIX IDE tape drive, and I can't get it to run, no way, no
how. The box is Debian 3.0/testing, with a stock 2.4.19 (now 2.4.20 kernel).

I played around a lot with the ide-tape.o driver as a module before stumbling
across a LKML thread where several developers were discussing the BROKEN
ide-tape.o driver and best how to fix it. A recent TO-DO list by Alan Cox
listed the ide-tape.o as broken too, and also noted that no one seemed to want
to work on it.

I then found a series of articles and HOWTOs on using the ide-scsi driver to
access ATAPI devices, including tapes, cd burners, and cd-roms. The most
helpful one I think was:

     http://www.lmphotonics.com/linux.htm

I followed the instructions as closely as I could (although of course I missed
something, or it would work). There was also a line: append="hda=ide-scsi"
that had to be added to lilo.conf, and there was a line in the bootup that
indicated this was read successfully. Yes, the tape really is on /dev/hda.
The root drive is /dev/hdc, and I have an 80G mirrored pair on hdg and hdh.

However, whenever I try to open /dev/st0, I still got "No such device".

The day after 2.4.20 came out, I then built another kernel, and bound all
these drivers into the kernel (not as modules). I got better signs that the
drivers were there, but the tape drive still says "No such device" (or,
nevermore, or as Bart Simpson would say: eat my shorts).

Here's my 'proof' the drivers are compiled into the kernel.

spare:/proc/scsi# cat ide-scsi/0
SCSI host adapter emulation for IDE ATAPI devices
# note that there are no actual devices listed here, why not? I have
hda=ide-scsi.

spare:/proc/scsi# cat scsi
Attached devices: none

spare:/proc/ide# grep . hd?/media hd?/model hd?/driver*
hda/media:tape # look at THIS! hda is a tape!
hdb/media:cdrom
hdc/media:disk
hdg/media:disk
hdh/media:disk
hda/model:ECRIX VXA-1a # this is the problem child
hdb/model:CREATIVE CD5233E
hdc/model:Maxtor 4D040H2
hdg/model:WDC WD800JB-00CRA1
hdh/model:WDC WD800JB-00CRA1
hda/driver:ide-scsi version 0.9 # doesn't this mean I'm doing it right?
hdb/driver:ide-cdrom version 4.59
hdc/driver:ide-disk version 1.12
hdg/driver:ide-disk version 1.12
hdh/driver:ide-disk version 1.12

Here is my 'dmesg' output:

Linux version 2.4.20 (tjones@spare) (gcc version 2.95.4 20011002 (Debian
prerelease)) #2 Tue Dec 10 20:03:49 EST 2002
BIOS-provided physical RAM map:
 BIOS-e820: 0000000000000000 - 000000000009fc00 (usable)
 BIOS-e820: 000000000009fc00 - 00000000000a0000 (reserved)
 BIOS-e820: 00000000000d6000 - 00000000000dc000 (reserved)
 BIOS-e820: 00000000000f0000 - 0000000000100000 (reserved)
 BIOS-e820: 0000000000100000 - 000000001fff0000 (usable)
 BIOS-e820: 000000001fff0000 - 000000001fff8000 (ACPI data)
 BIOS-e820: 000000001fff8000 - 0000000020000000 (ACPI NVS)
 BIOS-e820: 00000000fec00000 - 00000000fec01000 (reserved)
 BIOS-e820: 00000000fee00000 - 00000000fee01000 (reserved)
 BIOS-e820: 00000000fff80000 - 0000000100000000 (reserved)
511MB LOWMEM available.
On node 0 totalpages: 131056
zone(0): 4096 pages.
zone(1): 126960 pages.
zone(2): 0 pages.
Kernel command line: BOOT_IMAGE=2420tape2 root=1606 hda=ide-scsi
ide_setup: hda=ide-scsi
Initializing CPU#0
Detected 1532.625 MHz processor.
Console: colour VGA+ 80x25
Calibrating delay loop... 3060.53 BogoMIPS
Memory: 515684k/524224k available (1508k kernel code, 8152k reserved, 647k
data, 104k init, 0k highmem)
Dentry cache hash table entries: 65536 (order: 7, 524288 bytes)
Inode cache hash table entries: 32768 (order: 6, 262144 bytes)
Mount-cache hash table entries: 8192 (order: 4, 65536 bytes)
Buffer-cache hash table entries: 32768 (order: 5, 131072 bytes)
Page-cache hash table entries: 131072 (order: 7, 524288 bytes)
CPU: L1 I Cache: 64K (64 bytes/line), D cache 64K (64 bytes/line)
CPU: L2 Cache: 256K (64 bytes/line)
Intel machine check architecture supported.
Intel machine check reporting enabled on CPU#0.
CPU: After generic, caps: 0383fbff c1cbfbff 00000000 00000000
CPU: Common caps: 0383fbff c1cbfbff 00000000 00000000
CPU: AMD Athlon(tm) XP 1800+ stepping 02
Enabling fast FPU save and restore... done.
Enabling unmasked SIMD FPU exception support... done.
Checking 'hlt' instruction... OK.
POSIX conformance testing by UNIFIX
PCI: PCI BIOS revision 2.10 entry at 0xfdb21, last bus=1
PCI: Using configuration type 1
PCI: Probing PCI hardware
PCI: Using IRQ router default [1106/3074] at 00:11.0
isapnp: Scanning for PnP cards...
isapnp: No Plug & Play device found
Linux NET4.0 for Linux 2.4
Based upon Swansea University Computer Society NET3.039
Initializing RT netlink socket
Starting kswapd
Journalled Block Device driver loaded
Installing knfsd (copyright (C) 1996 okir@monad.swb.de).
pty: 256 Unix98 ptys configured
Serial driver version 5.05c (2001-07-08) with MANY_PORTS SHARE_IRQ SERIAL_PCI
ISAPNP enabled
ttyS00 at 0x03f8 (irq = 4) is a 16550A
ttyS01 at 0x02f8 (irq = 3) is a 16550A
Uniform Multi-Platform E-IDE driver Revision: 6.31
ide: Assuming 33MHz system bus speed for PIO modes; override with idebus=xx
PDC20265: IDE controller on PCI bus 00 dev 60
PDC20265: chipset revision 2
ide: Found promise 20265 in RAID mode.
PDC20265: not 100% native mode: will probe irqs later
    ide2: BM-DMA at 0xdc00-0xdc07, BIOS settings: hde:pio, hdf:pio
    ide3: BM-DMA at 0xdc08-0xdc0f, BIOS settings: hdg:pio, hdh:pio
VP_IDE: IDE controller on PCI bus 00 dev 89
VP_IDE: detected chipset, but driver not compiled in!
VP_IDE: chipset revision 6
VP_IDE: not 100% native mode: will probe irqs later
    ide0: BM-DMA at 0xfc00-0xfc07, BIOS settings: hda:DMA, hdb:DMA
    ide1: BM-DMA at 0xfc08-0xfc0f, BIOS settings: hdc:DMA, hdd:pio
hda: ECRIX VXA-1a, ATAPI TAPE drive
hdb: CREATIVE CD5233E, ATAPI CD/DVD-ROM drive
hdc: Maxtor 4D040H2, ATA DISK drive
hdg: WDC WD800JB-00CRA1, ATA DISK drive
hdh: WDC WD800JB-00CRA1, ATA DISK drive
ide0 at 0x1f0-0x1f7,0x3f6 on irq 14
ide1 at 0x170-0x177,0x376 on irq 15
ide3 at 0xe400-0xe407,0xe002 on irq 10
hdc: 80043264 sectors (40982 MB) w/2048KiB Cache, CHS=79408/16/63
hdg: 156301488 sectors (80026 MB) w/8192KiB Cache, CHS=155061/16/63
hdh: 156301488 sectors (80026 MB) w/8192KiB Cache, CHS=155061/16/63
hdb: ATAPI 56X CD-ROM drive, 128kB Cache
Uniform CD-ROM driver Revision: 3.12
Partition check:
 hdc: [PTBL] [4982/255/63] hdc1 hdc2 < hdc5 hdc6 hdc7 >
 hdg: hdg1
 hdh:
hdh1http://www.lmphotonics.com/linux.htm-------------------------------------------------------------



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