LinuxQuestions.org
Download your favorite Linux distribution at LQ ISO.
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 06-29-2003, 09:45 PM   #1
jwatco2001
LQ Newbie
 
Registered: Jun 2003
Posts: 12

Rep: Reputation: 0
Onstream IDE Tape Drive


I have been pulling my hair out trying to get an IDE Tape drive to work under RH 9.0, I am new to linux backups. I have been searching the forum and have not been able to fix my problem. Here is what's going on. The tape drive is an OnStream IDE Drive. It is detected durring startup and assigned /dev/hdc, now how do i access this drive for doing tar's, rewinds, erase... etc.
I have tried everything.
Thanks.
 
Old 06-29-2003, 10:12 PM   #2
jailbait
LQ Guru
 
Registered: Feb 2003
Location: Blue Ridge Mountain
Distribution: Linux Mint 17, Debian 8
Posts: 7,865

Rep: Reputation: 311Reputation: 311Reputation: 311Reputation: 311
IDE tape drive support

I am a little unsure on the subject, but:

I used to have similar problems with floppy tape support on SuSE. I had to add several lines in /etc/modules.conf to activate tape support.

IDE tape support would be enough different that my changes to /etc/modules.conf would not help you. I suggest that you use Google to find how somebody changed /etc/modules.conf to make IDE tapes work on Red Hat.

http://www.aplawrence.com/Bofcusm/2043.html

http://www.linuxhq.com/kernel/v2.3/2...tation/ide.txt
says that /etc/modules.conf should reference the IDE tape as
char-major-37

Last edited by jailbait; 06-29-2003 at 11:09 PM.
 
Old 06-30-2003, 03:16 PM   #3
jwatco2001
LQ Newbie
 
Registered: Jun 2003
Posts: 12

Original Poster
Rep: Reputation: 0
ok, here is where i am at.

If i do a 'dmesg | grep hdc' i find that hdc <--> ht0, so now if i try 'mt -f /dev/ht0 status I get 'Device or resource busy'. Now if I do a 'dmesg | grep ht0' i get:

ide-tape: ht0: I/O error, pc = 1a, key = 2, asc = 3a, ascq = 0
ide-tape: ht0: I/O error, pc = 0, key = 2, asc = 3a, ascq = 0
ide-tape: ht0: drive not ready


Now the drive has power and there is a tape in the drive. I have tried it with numerous tapes.

Any ideas why this is happening?
 
Old 06-30-2003, 05:01 PM   #4
michaelk
Moderator
 
Registered: Aug 2002
Posts: 18,219

Rep: Reputation: 2546Reputation: 2546Reputation: 2546Reputation: 2546Reputation: 2546Reputation: 2546Reputation: 2546Reputation: 2546Reputation: 2546Reputation: 2546Reputation: 2546
IMHO
I would think the tape drive would work better if you setup SCSI emulation. If you already have a CD writer just add another line to your bootloader i.e. append="hdc=ide-scsi"

The tape drive device would then be /dev/st0.
 
Old 06-30-2003, 05:40 PM   #5
jwatco2001
LQ Newbie
 
Registered: Jun 2003
Posts: 12

Original Poster
Rep: Reputation: 0
Thanks for the response. I assume since I use grub i want to add that to /etc/grub.conf? Do i need to reboot after?

Status Update. Ok I added append="hdc=ide-scsi" to my grub.conf file and restarted the system. Now when I do a:

mt -f /dev/st0 status

I get:

/dev/st0: No such device


Am I missing something?

Last edited by jwatco2001; 06-30-2003 at 05:57 PM.
 
Old 06-30-2003, 06:55 PM   #6
michaelk
Moderator
 
Registered: Aug 2002
Posts: 18,219

Rep: Reputation: 2546Reputation: 2546Reputation: 2546Reputation: 2546Reputation: 2546Reputation: 2546Reputation: 2546Reputation: 2546Reputation: 2546Reputation: 2546Reputation: 2546
My falult,

See if the ide-scsi module is being loaded via
/sbin/lsmod

If not
modprobe ide-scsi
 
Old 06-30-2003, 07:12 PM   #7
jwatco2001
LQ Newbie
 
Registered: Jun 2003
Posts: 12

Original Poster
Rep: Reputation: 0
Ok, now do i add the modpro command to my grub.conf as well?? It was not loaded when i did a lsmod. What exactly do I do with it?
 
Old 06-30-2003, 07:15 PM   #8
michaelk
Moderator
 
Registered: Aug 2002
Posts: 18,219

Rep: Reputation: 2546Reputation: 2546Reputation: 2546Reputation: 2546Reputation: 2546Reputation: 2546Reputation: 2546Reputation: 2546Reputation: 2546Reputation: 2546Reputation: 2546
It is a command

/sbin/modprobe ide-scsi
 
Old 06-30-2003, 07:18 PM   #9
jwatco2001
LQ Newbie
 
Registered: Jun 2003
Posts: 12

Original Poster
Rep: Reputation: 0
Thanks I typed :

modprobe ide-scsi

and right after that I typed:

mt -f /dev/st0 status

result:

/dev/st0: No such device



Do I need to reboot again?
 
Old 06-30-2003, 07:50 PM   #10
michaelk
Moderator
 
Registered: Aug 2002
Posts: 18,219

Rep: Reputation: 2546Reputation: 2546Reputation: 2546Reputation: 2546Reputation: 2546Reputation: 2546Reputation: 2546Reputation: 2546Reputation: 2546Reputation: 2546Reputation: 2546
I guess I am trying to do too many things at once today.
Sorry about that.

You also need the st module

Again
modprobe st

dmesg | grep tape

Should spit out that it found your tape drive

Now try the mt command
 
Old 06-30-2003, 07:56 PM   #11
jwatco2001
LQ Newbie
 
Registered: Jun 2003
Posts: 12

Original Poster
Rep: Reputation: 0
Well, now it looks as if it does not like my tape drive

here is the results of the dmesg:

SCSI subsystem driver Revision: 1.00
scsi0 : SCSI host adapter emulation for IDE ATAPI devices
Vendor: OnStream Model: DI-30 Rev: 1.08
Type: Sequential-Access ANSI SCSI revision: 02
st: Found incompatible tape at scsi0, channel 0, id 0, lun 0
st: The suggested driver is osst.

Last edited by jwatco2001; 06-30-2003 at 08:05 PM.
 
Old 06-30-2003, 09:00 PM   #12
jwatco2001
LQ Newbie
 
Registered: Jun 2003
Posts: 12

Original Poster
Rep: Reputation: 0
ok, one more thing.. just trying something out.. . still don't really know what i am doing i did this:

modprobe osst

then did:

dmesg

results:

osst :I: Tape driver with OnStream support version 0.9.10
osst :I: $Id: osst.c,v 1.65 2001/11/11 20:38:56 riede Exp $
osst :I: Attached OnStream DI-30 tape at scsi0, channel 0, id 0, lun 0 as osst0

But still get the same results out of mt -f /dev/st0 status:


/dev/st0: No such device
 
Old 06-30-2003, 09:46 PM   #13
michaelk
Moderator
 
Registered: Aug 2002
Posts: 18,219

Rep: Reputation: 2546Reputation: 2546Reputation: 2546Reputation: 2546Reputation: 2546Reputation: 2546Reputation: 2546Reputation: 2546Reputation: 2546Reputation: 2546Reputation: 2546
BTW make sure you remove the ide-tape module

rmmod ide-tape

This looks hopefull
osst :I: Attached OnStream DI-30 tape at scsi0, channel 0, id 0, lun 0 as osst0

Try /dev/osst0 instead of /dev/st0

Last edited by michaelk; 06-30-2003 at 09:50 PM.
 
Old 06-30-2003, 10:20 PM   #14
jailbait
LQ Guru
 
Registered: Feb 2003
Location: Blue Ridge Mountain
Distribution: Linux Mint 17, Debian 8
Posts: 7,865

Rep: Reputation: 311Reputation: 311Reputation: 311Reputation: 311
--------------------------------------------------------------------------
Ok, now do i add the modpro command to my grub.conf as well?? It was not loaded when i did a lsmod. What exactly do I do with it?

One place you can put it is in /etc/modules.conf
--------------------------------------------------------------------------
 
Old 07-01-2003, 11:05 AM   #15
jwatco2001
LQ Newbie
 
Registered: Jun 2003
Posts: 12

Original Poster
Rep: Reputation: 0
Thanks for all the help. mt -f /dev/osst0 status will gives results.

However for some reason if there is a tape in the drive, it seems to lock up the system when I do that??? Also, i just tried to test out backing up to the drive by doing a:

tar cvf /dev/osst0 ./testfile

and I get:

tar: /dev/osst0: Wrote only 0 of 10240 bytes

by doing a dmesg i get:

osst0:I: Device did not become Ready in open

then the tape ejects itself.

Last edited by jwatco2001; 07-01-2003 at 11:07 AM.
 
  


Reply


Thread Tools Search this Thread
Search this Thread:

Advanced Search

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
IDE Tape Drive problem DimHelmet Linux - Hardware 4 10-14-2005 10:51 AM
SCSI Tape drive and IDE CD-RW grayswander Linux - Hardware 2 02-14-2004 10:33 PM
So close with my IDE tape drive. Help please! joseph.ervin Linux - Hardware 6 12-22-2003 03:01 PM
Onstream IDE 30GB Installation jeucken Linux - Hardware 2 08-01-2002 12:53 PM
Ide Tape drive problems edati Linux - General 9 02-26-2001 12:00 AM

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

All times are GMT -5. The time now is 09:50 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
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration