LinuxQuestions.org
Download your favorite Linux distribution at LQ ISO.
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Software
User Name
Password
Linux - Software This forum is for Software issues.
Having a problem installing a new program? Want to know which application is best for the job? Post your question in this forum.

Notices


Reply
  Search this Thread
Old 09-26-2003, 01:31 AM   #1
lpriyamb
Member
 
Registered: Feb 2003
Posts: 65

Rep: Reputation: 15
can't access tape drive in RH8.0 :(


Hello,

I have RH8.0. I need to take backup in tape and when I try to access the tape drive it says

#mt rewind
/dev/tape: No such file or directory

There is tape-d and tape-reset in /dev directory. How to access it? The hardware is detected.

Please need help.

Thanks.
 
Old 09-26-2003, 04:33 AM   #2
lpriyamb
Member
 
Registered: Feb 2003
Posts: 65

Original Poster
Rep: Reputation: 15
please help!!
 
Old 09-26-2003, 08:11 AM   #3
bmahesh
Member
 
Registered: Sep 2003
Location: Bangalore
Distribution: RedHat , Debian
Posts: 42

Rep: Reputation: 15
if module is loaded correctly the tape will be

/dev/qft* or /dev/st* pls check for this dev according to h/w type.
pls check and post.
With regards
Mahesh
 
Old 09-26-2003, 10:11 AM   #4
michaelk
Moderator
 
Registered: Aug 2002
Posts: 16,316

Rep: Reputation: 1905Reputation: 1905Reputation: 1905Reputation: 1905Reputation: 1905Reputation: 1905Reputation: 1905Reputation: 1905Reputation: 1905Reputation: 1905Reputation: 1905
What kind of tape drive are you using?
 
Old 09-29-2003, 01:03 AM   #5
lpriyamb
Member
 
Registered: Feb 2003
Posts: 65

Original Poster
Rep: Reputation: 15
Well, how to check which tape drive i am using? In the /dev directory, the qft* and st* are available. I tried to do lsmod to find whether the module is loaded. The lsmod displayed the following

Module Size Used by Not tainted
nls_iso8859-1 3516 0 (autoclean)
ide-cd 33608 0 (autoclean)
cdrom 33696 0 (autoclean) [ide-cd]
es1370 29100 1 (autoclean)
gameport 3396 0 (autoclean) [es1370]
soundcore 6532 4 (autoclean) [es1370]
mga 107584 0
agpgart 43072 1
nfsd 79920 8 (autoclean)
autofs 13348 0 (autoclean) (unused)
nfs 82564 4 (autoclean)
lockd 58064 1 (autoclean) [nfsd nfs]
sunrpc 79324 1 (autoclean) [nfsd nfs lockd]
tulip 43552 1
iptable_filter 2412 0 (autoclean) (unused)
ip_tables 14936 1 [iptable_filter]
st 30768 0 (unused)
mousedev 5524 0
keybdev 2976 0 (unused)
hid 22244 0 (unused)
input 5888 0 [mousedev keybdev hid]
usb-uhci 26188 0 (unused)
usbcore 77024 1 [hid usb-uhci]
ext3 70368 3
jbd 52212 3 [ext3]
ncr53c8xx 61868 0 (unused)
sd_mod 13552 0 (unused)
scsi_mod 107144 3 [st ncr53c8xx sd_mod]

what should i do further?
 
Old 09-29-2003, 04:42 PM   #6
michaelk
Moderator
 
Registered: Aug 2002
Posts: 16,316

Rep: Reputation: 1905Reputation: 1905Reputation: 1905Reputation: 1905Reputation: 1905Reputation: 1905Reputation: 1905Reputation: 1905Reputation: 1905Reputation: 1905Reputation: 1905
I was looking for make and model internal, external and maybe a interface type like IDE, SCSI or parallel.

You can try the following commands:

cat /proc/scsi/scsi

mt -f /dev/st0 status
 
Old 09-30-2003, 12:12 AM   #7
lpriyamb
Member
 
Registered: Feb 2003
Posts: 65

Original Poster
Rep: Reputation: 15
#cat /proc/scsi/scsi
Attached devices:
Host: scsi0 Channel: 00 Id: 03 Lun: 00
Vendor: HP Model: C1533A Rev: A708
Type: Sequential-Access ANSI SCSI revision: 02

# mt -f /dev/st0 status
SCSI 2 tape drive:
File number=-1, block number=-1, partition=0.
Tape block size 0 bytes. Density code 0x0 (default).
Soft error count since last status=0
General status bits on (50000):
DR_OPEN IM_REP_EN

Hope it is detecting the device right? What should i do to access it?
 
Old 09-30-2003, 12:37 AM   #8
lpriyamb
Member
 
Registered: Feb 2003
Posts: 65

Original Poster
Rep: Reputation: 15
Michael,

I tried
# mt -f /dev/st0 rewind and
#mt -f /dev/st0 offline.. these commands are working but
# tar -tvf /dev/st0 is giving the following error

tar: /dev/st0: Cannot read: Input/output error
tar: At beginning of tape, quitting now
tar: Error is not recoverable: exiting now

How to see the archive and take the backup in tape?
 
Old 10-06-2003, 02:24 AM   #9
lpriyamb
Member
 
Registered: Feb 2003
Posts: 65

Original Poster
Rep: Reputation: 15
Hello,

Still I am facing this problem to take backup. The command,

#mt -f /dev/st0 seek
/dev/st0: Input/output error

gives the above error. Any help?
 
Old 10-07-2003, 06:43 AM   #10
lpriyamb
Member
 
Registered: Feb 2003
Posts: 65

Original Poster
Rep: Reputation: 15
anyone is there to help me?
 
Old 10-07-2003, 08:08 AM   #11
michaelk
Moderator
 
Registered: Aug 2002
Posts: 16,316

Rep: Reputation: 1905Reputation: 1905Reputation: 1905Reputation: 1905Reputation: 1905Reputation: 1905Reputation: 1905Reputation: 1905Reputation: 1905Reputation: 1905Reputation: 1905
Quote:
Originally posted by lpriyamb
Michael,

I tried
# mt -f /dev/st0 rewind and
#mt -f /dev/st0 offline.. these commands are working but
# tar -tvf /dev/st0 is giving the following error

tar: /dev/st0: Cannot read: Input/output error
tar: At beginning of tape, quitting now
tar: Error is not recoverable: exiting now

How to see the archive and take the backup in tape?
Are you trying to create a tar backup or restore? Do you know that a valid tar file exists on tape?

To create a tar backup to tape example:
tar -cvf /dev/st0 /home/user/

To test backup:
create a temp backup directory
mkdir /home/user/restore
cd /home/user/restore
tar -xvf /dev/st0

Replace user a valid user on your system.
 
Old 10-10-2003, 06:48 AM   #12
lpriyamb
Member
 
Registered: Feb 2003
Posts: 65

Original Poster
Rep: Reputation: 15
yes, both 'tar'ing and extracting from the tar is working fine. how to see only the contents of the tar file which is in tape without extracting them? could u please help me to know what command is that?
thanks
 
Old 10-10-2003, 07:16 AM   #13
Lazarus
Member
 
Registered: Dec 2001
Location: Kent in UK
Distribution: Fedora 2
Posts: 170

Rep: Reputation: 30
tar -tvf /dev/st0

should do use -ztvf if it is a compressed archive
 
Old 10-10-2003, 07:46 AM   #14
lpriyamb
Member
 
Registered: Feb 2003
Posts: 65

Original Poster
Rep: Reputation: 15
Nope!! it's not working..

]# tar -tvf /dev/st0
tar: /dev/st0: Cannot read: No medium found
tar: At beginning of tape, quitting now
tar: Error is not recoverable: exiting now

]# tar -ztvf /dev/st0
tar (child): /dev/st0: Cannot read: No medium found
tar (child): At beginning of tape, quitting now
tar (child): Error is not recoverable: exiting now

gzip: stdin: unexpected end of file
tar: Child returned status 2
tar: Error exit delayed from previous errors

these are the errors...
 
Old 10-10-2003, 10:02 AM   #15
Lazarus
Member
 
Registered: Dec 2001
Location: Kent in UK
Distribution: Fedora 2
Posts: 170

Rep: Reputation: 30
The actual device depends on what kind of tape drive you have.
Mine is scsi and I use /dev/st0 for rewinding and /dev/nst0 for not rewinding.
 
  


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
Cannot access Sony SDX-250V tape drive RH8 PK2K Linux - Hardware 2 05-08-2005 07:40 PM
How to access the tape drive? LenkaNguyen Linux - Hardware 3 07-02-2004 11:29 AM
Problem with SCSI tape drive on RH8 machine nicktoop Linux - Hardware 9 02-12-2004 11:10 AM
DLT 40 How do I access this tape drive? chr15t0 Linux - Hardware 1 02-14-2003 11:13 AM
I use taper to backup files to my tape drive, but how come i cant access it like cdro adamrau Linux - General 0 11-29-2001 09:43 AM

LinuxQuestions.org > Forums > Linux Forums > Linux - Software

All times are GMT -5. The time now is 02:18 AM.

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