Sorry for the long post, but I can't access/use my tape drive with the tar 
or mt programs and could use some help.

I'm running a 2.4.18 kernel on mandrake 8.2 (barebones install) and using an 
IDE HP colorado 5gb tape drive. The drive appears to be recognized fine on 
bootup (by looking at dmesg) and the relevant modules are loaded -- st, 
ide-scsi and scsi_mod.

When I type any mt command, using either /dev/st0 or
/dev/nst0, I get a notice of an input/output error
and, sometimes, "mt: The device is offline (not
powered on, no tape ?)." Likewise, with tar, any
attempt to write to either /dev/st0 or /dev/nst0 fails.

Here are some examples. Let me know if any other info is needed.

WITH THE TAPE IN
[EMAIL PROTECTED] boot]# mt -f /dev/st0 status
SCSI 2 tape drive:
File number=-1, block number=-1, partition=0.
Tape block size 0 bytes. Density code 0x0 (default).
Soft error count since last status=0
General status bits on (10000):
IM_REP_EN

WITH THE TAPE OUT
[EMAIL PROTECTED] boot]# mt -f /dev/st0 status
SCSI 2 tape drive:
File number=-1, block number=-1, partition=0.
Tape block size 0 bytes. Density code 0x0 (default).
Soft error count since last status=0
General status bits on (50000):
DR_OPEN IM_REP_EN

TAPE BACK IN
[EMAIL PROTECTED] boot]# mt -f /dev/st0 rewind
/dev/st0: Input/output error
mt: The device is offline (not powered on, no tape ?).

USING TAR
[EMAIL PROTECTED] boot]# tar -cv /etc/passwd > /dev/st0
tar: Removing leading `/' from member names
etc/passwd
tar: -: Wrote only 0 of 10240 bytes
tar: Error is not recoverable: exiting now

LSMOD
[EMAIL PROTECTED] boot]# lsmod
Module                  Size  Used by    Not tainted
isofs                  25792   0  (autoclean)
inflate_fs             19328   0  (autoclean) [isofs]
vfat                    9788   0  (autoclean)
fat                    31384   0  (autoclean) [vfat]
nls_cp437               4352   1  (autoclean)
nls_iso8859-1           2816   1  (autoclean)
smbfs                  34304   1  (autoclean)
st                     27316   0  (autoclean)
ide-scsi                8032   0
scsi_mod               92488   2  [st ide-scsi]
af_packet              12488   0  (autoclean)
usb-uhci               21668   0  (unused)
usbcore                59072   1  [usb-uhci]
ne2k-pci                5120   1  (autoclean)
8390                    6416   0  (autoclean) [ne2k-pci]
tulip                  40416   1  (autoclean)
supermount             62180   2  (autoclean)
rtc                     5912   0  (autoclean)
ext3                   62092   4
jbd                    39356   4  [ext3]

FROM DMESG
<SNIP>
PIIX4: IDE controller on PCI bus 00 dev 39
PIIX4: chipset revision 1
PIIX4: not 100% native mode: will probe irqs later
    ide0: BM-DMA at 0xf000-0xf007, BIOS settings: hda:pio, hdb:pio
    ide1: BM-DMA at 0xf008-0xf00f, BIOS settings: hdc:pio, hdd:pio
hda: WDC AC33200L, ATA DISK drive
hdb: FX240S, ATAPI CD/DVD-ROM drive
hdc: HP COLORADO 5GB, ATAPI TAPE drive
ide0 at 0x1f0-0x1f7,0x3f6 on irq 14
ide1 at 0x170-0x177,0x376 on irq 15
hda: 6346368 sectors (3249 MB) w/256KiB Cache, CHS=787/128/63, UDMA(33)
hdb: ATAPI 24X CD-ROM drive, 256kB Cache, DMA
Uniform CD-ROM driver Revision: 3.12
Partition check:
/dev/ide/host0/bus0/target0/lun0: p1 p2 < p5 p6 p7 p8 >

<SNIP>

SCSI subsystem driver Revision: 1.00
scsi0 : SCSI host adapter emulation for IDE ATAPI devices
  Vendor: HP        Model: COLORADO 5GB      Rev: 2.01
  Type:   Sequential-Access                  ANSI SCSI revision: 02
st: Version 20020205, bufsize 32768, wrt 30720, max init. bufs 4, s/g segs 
16
Attached scsi tape st0 at scsi0, channel 0, id 0, lun 0
</SNIP>


Any suggestions? First time setting up a tape drive in linux. and I have 
been googling and groups.googling since 9am this morning trying to find the 
answer.
I found this same question asked by some other people online but no answers.

Thanks in advance for any info.

Adam J. Melancon
Systems Admin
Vermilion Parish Library

_________________________________________________________________
MSN Photos is the easiest way to share and print your photos: 
http://photos.msn.com/support/worldwide.aspx


Reply via email to