LinuxQuestions.org
Review your favorite Linux distribution.
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Hardware
User Name
Password
Linux - Hardware This forum is for Hardware issues.
Having trouble installing a piece of hardware? Want to know if that peripheral is compatible with Linux?

Notices


Reply
  Search this Thread
Old 05-01-2003, 09:20 PM   #1
ghoppy
LQ Newbie
 
Registered: Apr 2003
Location: Kalgoorlie, Western Australia
Distribution: Redhat 7.3,8.0,9.0,Mandrake 9.0,9.2,FreeBSD
Posts: 9

Rep: Reputation: 0
My tape drive doesn't work!


My Sony SDT-9000 scsi tape drive is on a Adaptec PCI scsi controller, and it doesn't work. It is using the ide-scsi mod instead of the st drivers? What is happening?

Running RH7.3 atm...

Anyone help?
 
Old 05-05-2003, 09:57 AM   #2
sbctec
LQ Newbie
 
Registered: May 2003
Location: Connecticut
Distribution: Red Hat
Posts: 7

Rep: Reputation: 0
I'm not to sure about the ide-scsi mod, but I have been using the st drivers successfully with an HP DDS-3 External Drive. The following commands may help you along...

1. Create the appropriate devices. By default, scsi tape devices start at major device 9. To protect your devices from malicious users, I would secure them in a separate directory other than /dev.
- mkdir /dev/stape
- mknod -m 660 /dev/stape/tape c 9 128
- mknod -m 660 /dev/stape/tape-rewind c 9 0

2. Insert a tape into the drive and check the status.
- mt -f /dev/stape/tape status

2.1. It should output "ONLINE"

3. I have a perl script set to create a file that lists every file I want to stream to the tape drive. This gives me the option to manipulate the file to change what gets backed up, without change my commands. Then I was able to put my commands in a nice perl script.
- cat /tmp/bu.log | cpio -oc | gzip -c > /dev/stape/tape

4. To view the Table of Contents of the device to verify what has been written on to it, I use the following.
- < /dev/stape/tape gunzip -dc | cpio -ivt

Notes:
- I would study the manpages for st, mt, cpio, and gzip for more help.
 
Old 05-05-2003, 11:26 AM   #3
ghoppy
LQ Newbie
 
Registered: Apr 2003
Location: Kalgoorlie, Western Australia
Distribution: Redhat 7.3,8.0,9.0,Mandrake 9.0,9.2,FreeBSD
Posts: 9

Original Poster
Rep: Reputation: 0
No, tried your commands but no good.

The st drivers don't seem to be loaded at all. I just don't think the tape unit is installed properly.

The closest i get when I run mt -f /dev/st status is:

Inappropriate ioctl for device.

Otherwise, with any other device variation - "no such device"

Can anyone explain the steps and what should happen at each step when you install a DDS drive into a box running RH7.3

I have been through ALL the manpages for st, cpio etc etc and always end up with the above error. The st drivers show up as "Unused", withe ide-scsi mod showing "1" device.

Any clues out there?
 
Old 05-05-2003, 11:50 AM   #4
michaelk
Moderator
 
Registered: Aug 2002
Posts: 25,699

Rep: Reputation: 5895Reputation: 5895Reputation: 5895Reputation: 5895Reputation: 5895Reputation: 5895Reputation: 5895Reputation: 5895Reputation: 5895Reputation: 5895Reputation: 5895
Are all of the SCSI modules being loaded? Don't remember all of them of hand.
 
Old 05-05-2003, 08:45 PM   #5
ghoppy
LQ Newbie
 
Registered: Apr 2003
Location: Kalgoorlie, Western Australia
Distribution: Redhat 7.3,8.0,9.0,Mandrake 9.0,9.2,FreeBSD
Posts: 9

Original Poster
Rep: Reputation: 0
Well, good question.

I have just found a decent sized SCSI how-to - maybe that will tell me if st is loading or not.

I'm sure it is loading, but I'm relatively new to Linux, thats why I was hoping for a step by step explanation of how to install the drive...

It seems the ide-scsi mod grabs it first?
 
Old 05-06-2003, 11:30 PM   #6
ghoppy
LQ Newbie
 
Registered: Apr 2003
Location: Kalgoorlie, Western Australia
Distribution: Redhat 7.3,8.0,9.0,Mandrake 9.0,9.2,FreeBSD
Posts: 9

Original Poster
Rep: Reputation: 0
Okay,

Here is what dmesg says:

SCSI subsystem driver Revision: 1.00
scsi0 : SCSI host adapter emulation for IDE ATAPI devices
Vendor: TDK Model: CDRW161040X Rev: 5.30
Type: CD-ROM ANSI SCSI revision: 02
hdd: DMA disabled
scsi1 : Adaptec AIC7XXX EISA/VLB/PCI SCSI HBA DRIVER, Rev 6.2.5
<Adaptec 2902/04/10/15/20/30C SCSI adapter>
aic7850: Single Channel A, SCSI Id=7, 3/253 SCBs

Vendor: SONY Model: SDT-9000 Rev: 0400
Type: Sequential-Access ANSI SCSI revision: 02
scsi : 1 host left.
parport0: PC-style at 0x378 [PCSPP,TRISTATE]
PCI: Enabling device 00:0b.0 (0006 -> 0007)
scsi1 : Adaptec AIC7XXX EISA/VLB/PCI SCSI HBA DRIVER, Rev 6.2.5
<Adaptec 2902/04/10/15/20/30C SCSI adapter>
aic7850: Single Channel A, SCSI Id=7, 3/253 SCBs

Vendor: SONY Model: SDT-9000 Rev: 0400
Type: Sequential-Access ANSI SCSI revision: 02
scsi : 1 host left.
natsemi.c:v1.07 1/9/2001 Written by Donald Becker <becker@scyld.com>
http://www.scyld.com/network/natsemi.html
(unofficial 2.4.x kernel port, version 1.07+LK1.0.14, Nov 27, 2001 Jeff Garzik, Tjeerd Mulder)
eth0: NatSemi DP8381[56] at 0xe091b000, 00:a0:cc:78:f0:f9, IRQ 5.
eth0: link up.
eth0: Setting full-duplex based on negotiated link capability.
Attached scsi CD-ROM sr0 at scsi0, channel 0, id 0, lun 0
sr0: scsi3-mmc drive: 40x/40x writer cd/rw xa/form2 cdda tray
Uniform CD-ROM driver Revision: 3.12
ISO 9660 Extensions: Microsoft Joliet Level 1


Notice that the Adapter is there AND it knows the SDT-900 is there. BUT, Strangely the CD Burner is Attached to a SCSI Id - BUT IT IS AN IDE DRIVE ATTACHED TO THE SECONDARY IDE BUS!!!!

The SDT-9000 IS NOT ATTACHED TO A DRIVER???

Any clue??
 
Old 05-07-2003, 12:44 AM   #7
ghoppy
LQ Newbie
 
Registered: Apr 2003
Location: Kalgoorlie, Western Australia
Distribution: Redhat 7.3,8.0,9.0,Mandrake 9.0,9.2,FreeBSD
Posts: 9

Original Poster
Rep: Reputation: 0
GOT IT!!!


This is so simple its paethetic.

I just went:

# modprobe aic7xxx


And there you go.

It seems the OS had done everything except that. Once I ran that command the devices /dev/st0 and dev/nst0 reported correctly and I was able to write to the DDS!!!

Now how can I get the OS to do that at boot time??


cheers
 
  


Reply



Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
Floppy drive interfaced tape drive in Slackware isolationist Linux - Hardware 6 02-13-2006 05:54 AM
Tape drive that used to work... argh! budzynm Linux - Hardware 1 02-22-2004 06:36 PM
getting a tape drive to work with Red Hat 9 jalsk Linux - Newbie 4 01-09-2004 05:09 PM
Tape Drive won't work with Suse 8.0 schaf Linux - Hardware 1 07-25-2003 01:11 AM
IDE CD-RW w/ SCSI Tape Drive (don't work together) DigitalCrowd Linux - Hardware 1 01-19-2003 11:39 AM

LinuxQuestions.org > Forums > Linux Forums > Linux - Hardware

All times are GMT -5. The time now is 01:21 PM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Open Source Consulting | Domain Registration