tape device unknown!!!!

Installing, Configuring, Troubleshooting server daemons such as Web and Mail
saman_artorious
Posts: 73
Joined: 2008/09/19 19:03:37

tape device unknown!!!!

Post by saman_artorious » 2008/10/21 12:32:33

Hi

I am new to linux. I realized that centOS does not support the mt command
So, I downloaded mt(1) package mt-st-0.9b-2.2.2

now, when i want to rewind the tape device using the command: mt -f /dev/st0 rewind
I receive the following: /dev/st0: No such file or directory


I found out that the device type is different for CentOS. that is sg0
but again when i type the command mt -f /dev/sg0 rewind
I receive this error: /dev/sg0: Operation not permitted

please help me
uname -a
Linux localhost.localdomain 2.6.18-8.el5 #1 SMP Thu Mar 15 19:57:35 EDT 2007 i686 i686 i386 GNU/Linux


Regards
Saman

gerald_clark
Posts: 10642
Joined: 2005/08/05 15:19:54
Location: Northern Illinois, USA

Re: tape device unknown!!!!

Post by gerald_clark » 2008/10/21 13:15:22

Remove the foreign mt package and install the one that comes with CentOS.

yum install mt-st

saman_artorious
Posts: 73
Joined: 2008/09/19 19:03:37

Re: tape device unknown!!!!

Post by saman_artorious » 2008/10/21 14:37:33

I did, I have already installed that package on my system using yum.
but I don't find the st0 device in /dev,
should i use a different one for CentOS?

gerald_clark
Posts: 10642
Joined: 2005/08/05 15:19:54
Location: Northern Illinois, USA

Re: tape device unknown!!!!

Post by gerald_clark » 2008/10/21 15:24:01

Does the drive show up in dmesg ?
If not, you probably need to load the driver for your scsi controller.

saman_artorious
Posts: 73
Joined: 2008/09/19 19:03:37

Re: tape device unknown!!!!

Post by saman_artorious » 2008/10/21 17:24:17

dmesg | grep sg0
sd 0:0:0:0: Attached scsi generic sg0 type 0

dmesg | grep st0
(nothing)

what should i do now?
is sg0 used in centos instead of st0? if it does, i cannot access the tape using : mt -f /dev/sg0 rewind

if not how can i use st0?

gerald_clark
Posts: 10642
Joined: 2005/08/05 15:19:54
Location: Northern Illinois, USA

Re: tape device unknown!!!!

Post by gerald_clark » 2008/10/21 17:37:42

If dmesg does not show anything identified as a tape drive, then
the proper driver is not loaded.

saman_artorious
Posts: 73
Joined: 2008/09/19 19:03:37

Re: tape device unknown!!!!

Post by saman_artorious » 2008/10/21 18:15:06

how can i load tape device properly and backup my system?

gerald_clark
Posts: 10642
Joined: 2005/08/05 15:19:54
Location: Northern Illinois, USA

Re: tape device unknown!!!!

Post by gerald_clark » 2008/10/21 18:17:41

I don't know.
I have no idea what your scsi controller and
tape drive are.

michaelnel
Posts: 1478
Joined: 2006/05/29 16:50:11
Location: San Francisco, CA

Re: tape device unknown!!!!

Post by michaelnel » 2008/10/27 18:43:02

Please show the output of "cat /proc/scsi/scsi"

vin
Posts: 1
Joined: 2014/01/28 15:10:56

Re: tape device unknown!!!!

Post by vin » 2014/01/28 15:16:30

hello guys...!!!

i am new on the linux and even though i am facing the same issue please help.

saman_artorious if you solve this problem then please help me too.

Thankyou in advance

Locked