LinuxQuestions.org
Support LQ: Use code LQ3 and save $3 on Domain Registration
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - General
User Name
Password
Linux - General This Linux forum is for general Linux questions and discussion.
If it is Linux Related and doesn't seem to fit in any other forum then this is the place.

Notices

Reply
 
Search this Thread
Old 09-18-2010, 05:14 PM   #1
hubiedo
LQ Newbie
 
Registered: Feb 2008
Posts: 8

Rep: Reputation: 0
/dev/tape /dev/sg0 /dev/st0 problems w/ scsi tape drive


this is a combination of my efforts / research and what worked for me. the heavy lifting was done by the guys shown or the people involved in at least two links but i think it will help someone else down the line. i have put much if not all of these comments in the post by marwan_mostafa also and listed below.

my original problem was i could only find /dev/sg0 using lsmod i.e. no tape drive but i worked on making /dev/sg0 work--wrong. i got messages like "ioctl inappropriate for device" "no such device". basically nothing worked to get my tape drive working but below are the pieces i used to get there. then whaaapa it worked.


see also this post for full discussion of the problems associated with mine.

http://www.linuxquestions.org/questi...please-389088/

-----------------------------------------------------
thank you for your old postings. i used it to fix my problems w/ a scsi tape drive on an old fc5 system that i am working on. the answer by kilgoretrout in this thread yielded the following commands which were invaluable to fix this.

#lsmod

#modprobe st

#mt -f /dev/nst0 retension (which i adjusted to my sitiuation st0)

the other things i picked up along the way that were also helpful are

#cat /proc/scsi/scsi

which helped to see if it was loaded and recognized.

#more /var/log/dmsg

you will have to try your luck to see how they all fit together -- basically the /dev/tape article is what really got it going the right direction plus the commands added to /etc/rc.local. you need to run the commands above first then see where you are at

this article (below) plus this post allowed me to fix the tape bu problems and i just wanted it out there somewhere that someone may find it like i did.

http://www.redhat.com/archives/fedor.../msg00160.html

text below:

Re: /dev/tape

--------------------------------------------------------------------------------

From: "Mikkel L. Ellertson" <mikkel infinity-ltd com>
To: For users of Fedora Core releases <fedora-list redhat com>
Subject: Re: /dev/tape
Date: Thu, 01 Jun 2006 17:50:54 -0500

--------------------------------------------------------------------------------

Les Mikesell wrote:
> On Thu, 2006-06-01 at 17:19 -0500, Mikkel L. Ellertson wrote:
>> Les Mikesell wrote:
>>> After installing FC5, I don't see /dev/tape showing up as a symlink
>>> to /dev/nst0 anymore and it disappears after a reboot if I add one
>>> manually to make mt and amanda work. The tape drive wasn't attached
>>> when I installed - would that make a difference?
>>> /etc/udev/rules.d/50-udev.rules does have an entry:
>>> KERNEL=="nst[0-9]", BUS=="scsi", SYMLINK+="tape-%k", MODE="0660"
>>> and I do have /dev/nst0. Does it need something else?
>>>
>> Looking at this rule, you probably have something like /dev/tape-0
>> instead of /dev/tape. The %k is replaced with the kernel number, so
>> that /dev/nst0 gets a /dev/tape-0 symlink. /dev/nst1 would get
>> /dev/tape-1, and so forth.
>
> Actually it is making tape-nst0 -> nst0, but that doesn't help
> much.
>
Oops - you are correct. %k is kernel name, and %n is number. In any
case, if you are only using one tape device, you could create a rule
to give you /dev/tape and /dev/ntape. What I would do is create a
file in /etc/udev/rules.d called 15-local.rules and put in two lines:

******* NOTE THIS WORKS LIKE A CHARM******

KERNEL=="nst0", BUS=="scsi", SYMLINK+="ntape", MODE="0660"
KERNEL=="st0", BUS=="scsi", SYMLINK+="tape", MODE="0660"

At least, I normally use tape for the rewinding device and ntape for
the non-rewinding device. The name used is not critical as long as
your rules come before the default rules listed above.

Mikkel
--

Do not meddle in the affairs of dragons,
for thou art crunchy and taste good with Ketchup!


from another source ??? i also got this little jewel:

put these in /etc/rc.local

modprobe st
modprobe ide-scsi

evidently it will cause everything to "load" after everything else is done. two reboots and i was in business!!
 
Old 10-18-2010, 11:04 AM   #2
H_TeXMeX_H
Guru
 
Registered: Oct 2005
Location: $RANDOM
Distribution: slackware64
Posts: 12,928
Blog Entries: 2

Rep: Reputation: 1269Reputation: 1269Reputation: 1269Reputation: 1269Reputation: 1269Reputation: 1269Reputation: 1269Reputation: 1269Reputation: 1269
Alright, thanks for the solution.
 
  


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 On
HTML code is Off


Similar Threads
Thread Thread Starter Forum Replies Last Post
Tape command Redhat es 3 $ tar tvf /dev/st0 is not working. ssinha Linux - Newbie 2 03-18-2010 05:25 AM
OpenSUSE x86_64 does not mount /dev/tape (or /dev/st0 or /dev/nst0) yankeeinga Linux - Newbie 6 08-21-2008 12:51 PM
/dev/cdrom links to /dev/sg0 instead of /dev/sr0 -why? Yalla-One Slackware 3 10-01-2006 07:02 PM
Sandisk USB card Reader not linking /dev/sg0 to /dev/sda acidraven Linux - Hardware 1 06-19-2004 03:56 PM
no /dev/st0 for scsi tape on RH8.0 dkinzer Linux - Hardware 9 01-20-2004 03:30 PM


All times are GMT -5. The time now is 10:34 PM.

Main Menu
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
identi.ca: @linuxquestions
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration