[CLUE-Tech] How to make Linux recognize IDE tape drive?

charlie oriez coriez at oriez.org
Mon Oct 14 07:45:33 MDT 2002


On Monday 14 October 2002 05:02 am, David Guntner wrote:
> Chris Mills grabbed a keyboard and wrote:
> > I can't say I know Mandrake, but if I recall
> > correctly, RedHat doesn't build the IDE Tape device
> > into the kernel. Try a 'modprobe ide-tape' and see
> > whether you get anywhere...
>
> I did that, and got no reply (just got another shell prompt).  

modprobe is in your sbin directory which in mandrake version at least seems 
not to be in the path when running as user.  I'm running from user, not root.

[coriez at localhost sbin]$ /sbin/modprobe ide-tape
/lib/modules/2.4.18-6mdk/kernel/drivers/ide/ide-tape.o.gz: create_module: 
Operation not permitted
modprobe: insmod /lib/modules/2.4.18-6mdk/kernel/drivers/ide/ide-tape.o.gz 
failed
modprobe: insmod ide-tape failed
[coriez at localhost sbin]$


>Checking my
> syslog, however, I saw this:
>
> Oct 14 03:55:33 janet kernel: ide-tape: Dumping ATAPI Identify Device tape
> parameters
> Oct 14 03:55:33 janet kernel: ide-tape: Protocol Type: <6>ATAPI
> Oct 14 03:55:33 janet kernel: ide-tape: Device Type: 1 - <6>Streaming Tape
> Device
> Oct 14 03:55:33 janet kernel: ide-tape: Removable: Yes
> Oct 14 03:55:33 janet kernel: ide-tape: Command Packet DRQ Type:
> <6>Accelerated DRQ
> Oct 14 03:55:33 janet kernel: ide-tape: Command Packet Size: <6>12 bytes
> Oct 14 03:55:33 janet kernel: ide-tape: Model: Seagate STT8000A
> Oct 14 03:55:33 janet kernel: ide-tape: Firmware Revision: 5.44
> Oct 14 03:55:33 janet kernel: ide-tape: Serial Number:
> Oct 14 03:55:33 janet kernel: ide-tape: Write buffer size: 372736 bytes
> Oct 14 03:55:33 janet kernel: ide-tape: DMA: Yes
> Oct 14 03:55:33 janet kernel: ide-tape: LBA: Yes
> Oct 14 03:55:33 janet kernel: ide-tape: IORDY can be disabled: Yes
> Oct 14 03:55:33 janet kernel: ide-tape: IORDY supported: Yes
> Oct 14 03:55:33 janet kernel: ide-tape: ATAPI overlap supported: No
> Oct 14 03:55:33 janet kernel: ide-tape: PIO Cycle Timing Category: 2
> Oct 14 03:55:33 janet kernel: ide-tape: DMA Cycle Timing Category: 2
> Oct 14 03:55:33 janet kernel: ide-tape: Single Word DMA supported modes:
> <6>0 <6>1 <6>2 <6>
> Oct 14 03:55:33 janet kernel: ide-tape: Multi Word DMA supported modes:
> <6>0 <6>1 <6>2 <6>
> Oct 14 03:55:33 janet kernel: ide-tape: Enhanced PIO Modes: Mode 3
> Oct 14 03:55:33 janet kernel: ide-tape: Minimum Multi-word DMA cycle per
> word: <6>120 ns
> Oct 14 03:55:33 janet kernel: ide-tape: Manufacturer's Recommended Multi-
> word cycle: <6>120 ns
> Oct 14 03:55:33 janet kernel: ide-tape: Minimum PIO cycle without IORDY:
> <6>120 ns
> Oct 14 03:55:33 janet kernel: ide-tape: Minimum PIO cycle with IORDY:
> <6>120 ns
> Oct 14 03:55:33 janet kernel: ide-tape: hdd <-> ht0: Seagate STT8000A rev
> 5.44
> Oct 14 03:55:33 janet kernel: ide-tape: Dumping the results of the MODE
> SENSE packet command
> Oct 14 03:55:33 janet kernel: ide-tape: Mode Parameter Header:
> Oct 14 03:55:33 janet kernel: ide-tape: Mode Data Length - 23
> Oct 14 03:55:33 janet kernel: ide-tape: Medium Type - 182
> Oct 14 03:55:33 janet kernel: ide-tape: Device Specific Parameter - 16
> Oct 14 03:55:33 janet kernel: ide-tape: Block Descriptor Length - 0
> Oct 14 03:55:33 janet kernel: ide-tape: Capabilities and Mechanical Status
> Page:
> Oct 14 03:55:33 janet kernel: ide-tape: Page code - 42
> Oct 14 03:55:33 janet kernel: ide-tape: Page length - 18
> Oct 14 03:55:33 janet kernel: ide-tape: Read only - No
> Oct 14 03:55:33 janet kernel: ide-tape: Supports reverse space - Yes
> Oct 14 03:55:33 janet kernel: ide-tape: Supports erase initiated formatting
> - No
> Oct 14 03:55:33 janet kernel: ide-tape: Supports QFA two Partition format -
> Yes
> Oct 14 03:55:33 janet kernel: ide-tape: Supports locking the medium - No
> Oct 14 03:55:33 janet kernel: ide-tape: The volume is currently locked - No
> Oct 14 03:55:33 janet kernel: ide-tape: The device defaults in the prevent
> state - No
> Oct 14 03:55:33 janet kernel: ide-tape: Supports ejecting the medium - No
> Oct 14 03:55:33 janet kernel: ide-tape: Supports error correction - Yes
> Oct 14 03:55:33 janet kernel: ide-tape: Supports data compression - No
> Oct 14 03:55:33 janet kernel: ide-tape: Supports 512 bytes block size - Yes
> Oct 14 03:55:33 janet kernel: ide-tape: Supports 1024 bytes block size - No
> Oct 14 03:55:33 janet kernel: ide-tape: Supports 32768 bytes block size /
> Restricted byte count for PIO transfers - No
> Oct 14 03:55:33 janet kernel: ide-tape: Maximum supported speed in KBps -
> 600
> Oct 14 03:55:33 janet kernel: ide-tape: Continuous transfer limits in
> blocks - 52
> Oct 14 03:55:33 janet kernel: ide-tape: Current speed in KBps - 600
> Oct 14 03:55:33 janet kernel: ide-tape: Buffer size - 372736
> Oct 14 03:55:33 janet kernel: ide-tape: Adjusted block size - 512
> Oct 14 03:55:33 janet kernel: ide-tape: hdd <-> ht0: 600KBps, 14*26kB
> buffer, 5850kB pipeline, 80ms tDSC, DMA
>
> I take it that this is a *good* sign? :-)

I got pretty much the same thing when I modprobed from root.

>
> That last line says something about hdd <-> ht0.  However, doing a
> "ls -la /dev/hdd" or "ls -la /dev/ht0" still gets a "file not found"
> message.  Any clues on what the next step should be so that I can actually
> *access* the drive?
>
>                    --Dave
>
> > Chris

I have /dev/ht0 but no /dev/hdd

[coriez at localhost coriez]$ ls -la /dev/ht0
lr-xr-xr-x    1 root     root           30 Oct 14 07:21 /dev/ht0 -> 
ide/host0/bus1/target1/lun0/mt
[coriez at localhost coriez]$

doesnt recognize ht0 as a directory. enter a cp command and the system wants 
to overright ht0 as a file

I wouldnt mind getting this working either.  I have a Traven 5G tape on a CMS 
drive.  Drive seems to be recognized at boot. 


-- 
Charles Oriez     coriez at oriez.org
39  34' 34.4"N / 105 00' 06.3"W 
**
You can't be a real country without a beer and an airline.
A football team and some nuclear weapons help, but at the
very least you need a beer - Frank Zappa




More information about the clue-tech mailing list