Re: Newbie Needs help with tape drive

Tony Nugent <[email protected]>
Newsgroups gmane.linux.redhat.release.enigma
Organization Linux Works
Message-ID <[email protected]>
On Fri Apr 11 2003 at 00:56, [email protected] wrote:

> I need help adding a scsi tape drive to my 7.2 system.
> 
> I recompiled the kernal for scsi tape support.  Added a scsi card.
> I have reviewed the scsi howto,but things still aren't working.

I'm puzzled why you needed to recompile the default kernel... the
atp870u module that you seem to need is already there.  (I hope you
are using the latest updates).

> From the gnome hardware browser - it sees the tape drive listed
> as /dev/st, but I can not access it.

/dev/st does not exist on any of my 7.x boxes.

> I have tried as /dev/st0, /dev/nst0 with out any luck.

This is a symptom that the driver is not loaded correctly.

> I have tried to add it to the /proc/sc

(huh?)

> modules.conf

> alias scsi_hostadapter off

Remove or comment out this line.

> alias scsi_hostadapter1 atp870u

Make that scsi_hostadapter (no "1").

But did you compile this driver into your kernel, or as a module?
(This isn't clear, you should have created it as a module).

> dmesg
> ====================================================
> parport0: PC-style at 0x378 (0x778) [PCSPP,TRISTATE]
> parport0: irq 7 detected
> aec671x_detect:
>   ACARD AEC-671X PCI Ultra/W SCSI-3 Host Adapter: 0    IO:ff00, IRQ:11.
>         ID:  6  DEC     DLT2000 15/30 GB840B
>         ID:  7  Host Adapter
> scsi1 : ACARD AEC-6710/6712/67160 PCI Ultra/W/LVD SCSI-3 Adapter Driver V2.6+ac
>  Vendor: DEC       Model: DLT2000 15/30 GB  Rev: 840B
>  Type:   Sequential-Access                  ANSI SCSI revision: 02
> scsi : 1 host left.

Good, that looks like the right scsi driver and the DLT tape is seen
there on the bus as device id 6.

> cat /proc/scsi/scsi
> ===============================
> Attached devices:
> Host: scsi0 Channel: 00 Id: 00 Lun: 00
>  Vendor: PHILIPS  Model: CDD3610 CD-R/RW  Rev: 3.08
>  Type:   CD-ROM                           ANSI SCSI revision: 02

Is that an ide-scsi cdrom?  Why no mention of the tape device?  The
driver doesn't seem to have "registered" it properly.

Try "modprobe atp870u" to load the module.  This is what I see for a
hd and scsi tape on an adaptec card:

$ cat /proc/scsi/scsi 
Attached devices: 
Host: scsi0 Channel: 00 Id: 00 Lun: 00
  Vendor: QUANTUM  Model: ATLAS10K3_73_SCA Rev: 020W
  Type:   Direct-Access                    ANSI SCSI revision: 03
Host: scsi0 Channel: 00 Id: 02 Lun: 00
  Vendor: SONY     Model: SDT-9000         Rev: 0400
  Type:   Sequential-Access                ANSI SCSI revision: 02

> lsmod
> st                     28532   0  (autoclean) (unused)
> scsi_mod              100208   4  [st sg sr_mod ide-scsi]

Is that all?  (And yes, you are using ide-scsi).  Where is the
atp870u scsi driver?  That "alias off" might be preventing it from
being loaded.

$ lsmod
Module                  Size  Used by    Not tainted
st                     28852   0 
aic7xxx               128256   1 
sd_mod                 12832   2 
scsi_mod              104800   3  [st aic7xxx sd_mod]

You should see something similar (atp870u instead of aic7xxx).

Try using "cdrecord -scanbus" to see what that reveals about your
recognised scsi devices.  Also try using the "mt status" command
with various parameters to the -f switch (/dev/nst0, /dev/nst1 etc).
Perhaps the involvement of the ide-scsi driver is doing unexpected
things?

Hope this helps to give you some ideas to chase up.

Cheers
Tony
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.