LinuxQuestions.org
Help answer threads with 0 replies.
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-02-2008, 03:46 PM   #1
hocheetiong
Member
 
Registered: Jul 2007
Location: Penang , Malaysia.
Distribution: red hat linux
Posts: 133

Rep: Reputation: 15
Smile error "tar (child): /dev/st0: Wrote only 0 of 10240 bytes?


Hi, i am using DLT tape 20GB to backup my data, than have one file *.iso is around 3gb, when i want to backup this file using command: # tar -cvf /dev/st0 *.iso than will having this error: error "tar (child): /dev/st0: Wrote only 0 of 10240 bytes. If i backup not large file like 3gb file size, than ok, like many file but each file not bigger than 1gb than ok no any errors.

Thank you reply me...

Ya, i try to using command:
# tar -zcvf /dev/st0 *.iso
still have same errors.

than i try to using command:
# tar -jcvf /dev/st0 *.iso
Than ok not error.

why?


but, i actually not very sure how to check the total capacity on this DLT TAPE. I have one question about, i already backup # tar -jcvf /dev/st0 *.iso just now, and done the job, than when i want to check is it all what i want to backup is it inside my DLT tape, i use command # tar -tjvf /dev/st0 , but need to wait until finish are very slow, any method just quick check what inside this DTL tape, and any command to direct when perform backup #tar -jcvf /dev/st0 will automatic check whether the tape have error or not, because very important, if during backup than the tape drive can check if the tape have error than prompt out message, than i can change a new tape. Thank you.

Last edited by hocheetiong; 02-03-2008 at 06:33 AM. Reason: reply gankoji.
 
Old 02-02-2008, 07:58 PM   #2
gankoji
Member
 
Registered: Nov 2007
Location: Southern California
Distribution: Slackware-13.0 x86_64, Slackware 12.2, slackware64-current
Posts: 225

Rep: Reputation: 35
Perhaps this has something to do with the amount of space left on your tape drive? When you say that you can get it to work with tar -jcvf, that means that you were creating a tarred archive that was compressed using bzip2, which more often than not results in smaller files than gzip (which corresponds with the tar-zcvf command). Thus if you were only successful using the bzip2 compressed archive, that maybe means that you are just about out of space on your tape. Have you checked that?
 
Old 02-03-2008, 07:45 AM   #3
hocheetiong
Member
 
Registered: Jul 2007
Location: Penang , Malaysia.
Distribution: red hat linux
Posts: 133

Original Poster
Rep: Reputation: 15
tar -jcvf /dev/st0 *.iso still having errors?

After i backup: # tar -jcvf /dev/st0 *.iso than i check my backup file inside tape drive. comamnd: # tar -tjvf /dev/st0 ..... run until half way the apper this errors:

bzip2: Compressed file ends unexpectedly;
perhaps it is corrupted? *Possible* reason follows.
bzip2: Invalid argument
Input file = (stdin), output file = (stdout)

It is possible that the compressed file(s) have become corrupted.
You can use the -tvv option to test integrity of such files.

You can use the `bzip2recover' program to attempt to recover
data from undamaged sections of corrupted files.

tar: Unexpected EOF in archive
tar: Error is not recoverable: exiting now


Why???
 
Old 02-03-2008, 06:25 PM   #4
gankoji
Member
 
Registered: Nov 2007
Location: Southern California
Distribution: Slackware-13.0 x86_64, Slackware 12.2, slackware64-current
Posts: 225

Rep: Reputation: 35
Well, this means that in fact your bzip2 compressed archive wasn't successfully created. I'm not sure what you're trying to do with the rest of the tar -jcvf command. /dev/st0 is your tape drive? And if it is, it seems that your command is actually creating an archive of all the .iso files on your tape drive, which would create lots of problems unless you've only used up half of your tape's space :-P. Try taking the .iso files you want to back up and creating the compressed archive on your HDD first, and then moving it to the tape drive. Also, try mounting your tape drive to somewhere like /mnt/tape and then moving the archive to that directory.

Please repost and let us know if you make any progress!
 
  


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
tar error - 'Child returned status 1' fabio_listas Linux - Newbie 8 01-16-2011 05:16 AM
difference between /dev/st0 and /dev/nst0 mayankh Linux - Hardware 1 10-19-2006 04:42 AM
tar on /dev/st0 input/output error Alkisx Slackware 5 04-17-2006 12:18 PM
/dev/st0 : Input/Output error sharonenoch Linux - Hardware 1 02-10-2006 01:44 PM
alias /dev/st0? utabintarbo Linux - Newbie 1 04-19-2002 02:17 PM


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