LinuxQuestions.org
Visit Jeremy's Blog.
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Newbie
User Name
Password
Linux - Newbie This Linux forum is for members that are new to Linux.
Just starting out and have a question? If it is not in the man pages or the how-to's this is the place!

Notices


Reply
  Search this Thread
Old 02-17-2006, 12:58 AM   #1
zdiko
LQ Newbie
 
Registered: Feb 2006
Posts: 2

Rep: Reputation: 0
mt status command


I am trying to check the status of the tape drive on Suse Linux version 9, it gives error message: mt: /dev/tape is not a character special file
 
Old 02-17-2006, 11:08 AM   #2
marozsas
Senior Member
 
Registered: Dec 2005
Location: Campinas/SP - Brazil
Distribution: SuSE, RHEL, Fedora, Ubuntu
Posts: 1,402
Blog Entries: 1

Rep: Reputation: 64
SCSI tape devices are named /dev/st0, /dev/st1, etc.
In general /dev/tape is a symbolic link to /dev/st0.
If your tape really is /dev/st0, you can add that symbolic link to /dev/tape by
Code:
ln -s /dev/st0 /dev/tape
Anyway, you can ignore /dev/tape and only use /dev/st0.
mt (and others) can use the device specified by the variable TAPE as the default device, so

Code:
$ export TAPE=/dev/st0
$ mt status
For your convinience, put that export TAPE at your shell rc file.

regards,
 
Old 02-18-2006, 07:48 AM   #3
zdiko
LQ Newbie
 
Registered: Feb 2006
Posts: 2

Original Poster
Rep: Reputation: 0
if run the Code it gives this error message:
mt: /dev/st0: Input/output error
 
Old 02-20-2006, 05:02 AM   #4
marozsas
Senior Member
 
Registered: Dec 2005
Location: Campinas/SP - Brazil
Distribution: SuSE, RHEL, Fedora, Ubuntu
Posts: 1,402
Blog Entries: 1

Rep: Reputation: 64
Do the leds at tape drive blink when you issue the command mt ?
Are you sure the tape drive is a SCSI device ? Look at boot log, for messages that shows the strings tape or scsi
Code:
# grep -iE "scsi|tape" /var/log/dmesg or whatever is the boot log at your system
Your system has the command "lsscsi" ? What is it's output ?
 
Old 02-20-2006, 05:42 AM   #5
marozsas
Senior Member
 
Registered: Dec 2005
Location: Campinas/SP - Brazil
Distribution: SuSE, RHEL, Fedora, Ubuntu
Posts: 1,402
Blog Entries: 1

Rep: Reputation: 64
I just figure out that the message
Code:
mt: /dev/st0: Input/output error
indicates the device specification /dev/st0 is fine, otherwise the message would be "/dev/st0: No such device or address".

So, the error is at your tape drive.
Tell us about this device. It's your first attempt to put it to work ? It's a new device ?
What brand/model ?

Theses things have several jumpers in the back and the correct settings depends of your SCSI controller, data rate, cable termination, etc. Check this things and collects all information you can.

see'ya,
 
  


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
An error occured getting IPtables status from the command /etc/rc.d/init.d/iptables s CrazyMAzeY Linux - Newbie 10 08-12-2010 05:25 AM
command for finding the Network status Uday123 Linux - Software 5 01-11-2006 09:54 AM
Ps command status description gstasica Linux - General 1 11-10-2004 09:01 AM
command(s) for checking ip status stupidloser Linux - Wireless Networking 5 08-10-2004 10:21 AM
ps (process status) command, PS_FORMAT how to set? alexander Linux - General 2 12-18-2002 03:38 AM

LinuxQuestions.org > Forums > Linux Forums > Linux - Newbie

All times are GMT -5. The time now is 05:53 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