LinuxQuestions.org
Go Job Hunting at the LQ Job Marketplace
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 03-15-2010, 11:11 PM   #1
ssinha
LQ Newbie
 
Registered: Nov 2009
Posts: 2

Rep: Reputation: 0
Post Tape command Redhat es 3 $ tar tvf /dev/st0 is not working.


I am geting this problem since lat one year. please send me quikly the solution or the remedy of it. Tape command
$tar cvf /dev/sto /path/filename
working fine but the command
$tar xvf /dev/st0
$tar tvf /dev/st0
are not working properly.
Giving error like below archback is a shell script for the above same
command for backup.

[oracle@bjmc oracle]$ archback
tar: Removing leading `/' from member names
-rw-r----- oracle/oinstall 104857088 2010-03-14 18:55:32 user4/arch/arch_10107.arc
tar: /dev/st0: Cannot read: Input/output error
tar: /dev/st0: Cannot read: Input/output error
tar: /dev/st0: Cannot read: Input/output error
tar: /dev/st0: Cannot read: Input/output error
tar: Skipping to next header
tar: Archive contains obsolescent base-64 headers
tar: /dev/st0: Cannot read: Input/output error
tar: /dev/st0: Cannot read: Input/output error
tar: /dev/st0: Cannot read: Input/output error
tar: /dev/st0: Cannot read: Input/output error
tar: Archive base-256 value is out of off_t range
tar: Archive contains `\002\001' where numeric mode_t value expected
tar: Archive contains `\234 where numeric time_t value expected
tar: Archive contains `L\337\300\002;\273\022' where numeric uid_t value expected
tar: Archive contains `m\035\300\025I\353\201\005' where numeric gid_t value expected
tar: Archive contains `L\337\300\002;\273\022' where numeric uid_t value expected
tar: Archive contains `m\035\300\025I\353\201\005' where numeric gid_t value exp
 
Old 03-16-2010, 09:51 AM   #2
MensaWater
Guru
 
Registered: May 2005
Location: Atlanta Georgia USA
Distribution: Redhat (RHEL), CentOS, Fedora, Debian, FreeBSD, HP-UX, Solaris, SCO
Posts: 6,009
Blog Entries: 5

Rep: Reputation: 787Reputation: 787Reputation: 787Reputation: 787Reputation: 787Reputation: 787Reputation: 787
Your first command has "/dev/sto" whereas your others have "/dev/st0". There is a difference between lower case letter "o" and the numeral "0" (zero). You should be using the latter for all your commands.

The tar command can write to files as well as devices (which are special files anyway). Type "ls -l /dev/sto" and see if you have a large file of that name. Type "ls -l /dev/st0" and verify you have a tape device file of that name. Do your tar cvf to the latter then your test from the latter. If it works then delete the /dev/sto as it is taking up space on your system.
 
Old 03-18-2010, 05:25 AM   #3
ssinha
LQ Newbie
 
Registered: Nov 2009
Posts: 2

Original Poster
Rep: Reputation: 0
tar tvf /dev/st0 not working

Thanks for reply

$tar xvf /dev/sto
I typed it incorrectly in the message.
but actually it is always used as
$tar xvf /dev/st0 on linux system
but
$tar tvf /dev/st0
tar: /dev/st0: Cannot read: Input/output error
tar: /dev/st0: Cannot read: Input/output error
tar: /dev/st0: Cannot read: Input/output error
tar: /dev/st0: Cannot read: Input/output error
tar: Skipping to next header
tar: Archive contains obsolescent base-64 headers
tar: /dev/st0: Cannot read: Input/output error
tar: /dev/st0: Cannot read: Input/output error
tar: /dev/st0: Cannot read: Input/output error
tar: /dev/st0: Cannot read: Input/output error
tar: Archive base-256 value is out of off_t range
tar: Archive contains `\002\001' where numeric mode_t value expected
tar: Archive contains `\234 where numeric time_t value expected
tar: Archive contains `L\337\300\002;\273\022' where numeric uid_t value expected
tar: Archive contains `m\035\300\025I\353\201\005'
is not working.
Please help me out.
 
  


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
OpenSUSE x86_64 does not mount /dev/tape (or /dev/st0 or /dev/nst0) yankeeinga Linux - Newbie 6 08-21-2008 12:51 PM
error "tar (child): /dev/st0: Wrote only 0 of 10240 bytes? hocheetiong Linux - Newbie 3 02-03-2008 05:25 PM
Tar -tvf command causes system hang kaplan71 Red Hat 4 11-10-2006 07:46 AM
tar on /dev/st0 input/output error Alkisx Slackware 5 04-17-2006 11:18 AM
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 04:47 AM.

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