LinuxQuestions.org
Welcome to the most active Linux Forum on the web.
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 08-20-2008, 07:47 PM   #1
davidstvz
Member
 
Registered: Jun 2008
Posts: 405

Rep: Reputation: 31
tar errors: "trailing garbage igored, child returned status 2 etc.)


I checked two different tapes, and tar doesn't do this on the HDD. Does this suggest that the drive is broken? The files actually seem to get stored on the tape just fine despite the error. I haven't been able to find good info via Google. Any ideas?

Code:
srv1# tar xvzf /dev/nsa0
root/z/d1/

gzip: stdin: decompression OK, trailing garbage ignored
root/z/d1/f1
root/z/d1/f2
tar: Child returned status 2
tar: Error exit delayed from previous errors
srv1#
I *really* want to get this sorted out so I can use this tape to back up this machine before the weekend!

I'm trying the tape now with a non-zipped tar, but I'd really like to compress.
 
Old 08-20-2008, 07:57 PM   #2
davidstvz
Member
 
Registered: Jun 2008
Posts: 405

Original Poster
Rep: Reputation: 31
Fantastic... I tried it with no compression and this is what I get:

Notice that after each archive, I have to run tar twice to extract the files. It's almost like the tape is writing some garbage after each archive or something. Again the files made it off the tape, but I'd like to know the what/why before I rely on this thing.

Code:
srv1# mt -f /dev/nsa0 rewind
srv1# tar xvf /dev/nsa0
root/z/d1/
root/z/d1/f1
root/z/d1/f2
srv1# tar xvf /dev/nsa0
srv1# tar xvf /dev/nsa0
root/z/d2/
root/z/d2/f3
root/z/d2/f4
srv1# tar xvf /dev/nsa0
srv1# tar xvf /dev/nsa0
root/z/d3/
root/z/d3/f5
root/z/d3/f6
srv1#
 
Old 08-21-2008, 10:37 AM   #3
davidstvz
Member
 
Registered: Jun 2008
Posts: 405

Original Poster
Rep: Reputation: 31
*bump*

Sorry, but I posted this late last night. Thought it should have one more chance for an answer.
 
Old 08-21-2008, 10:56 AM   #4
cyclepathology
LQ Newbie
 
Registered: Sep 2007
Location: Seattle, WA
Distribution: Red Hat, Ubuntu, PCLinuxOS, Fedora, Vector Linux, CentOS, HP-UX, Solaris, AIX, FreeBSD
Posts: 28

Rep: Reputation: 15
Quote:
Originally Posted by davidstvz View Post
Fantastic... I tried it with no compression and this is what I get:

Notice that after each archive, I have to run tar twice to extract the files.
Have the tapes been rewound before you do the first tar?

mt -f /dev/tapedev rewind

Then run tar. See if that helps.
 
Old 08-21-2008, 04:29 PM   #5
davidstvz
Member
 
Registered: Jun 2008
Posts: 405

Original Poster
Rep: Reputation: 31
yep, I'm issuing rewind commands at

mt -f /dev/nsa0 rewind

before any writing to the tape in both cases.
 
Old 08-21-2008, 04:33 PM   #6
trist007
Senior Member
 
Registered: May 2008
Distribution: Slackware
Posts: 1,033

Rep: Reputation: 69
I was considering purchasing some tape to backup my puters. I know using a tape medium is old school, but I'd like to experience it. Is it really true that tape lasts 30 yrs and that it is very vulnerable to magnetism and light? How much would tape costs for say 40 gigs? Where would you buy from, and what's a good brand? Are there any benefits to using tape as opposed to dvds, flash drives, hard disks.

How do you mount tape? What filesystem is it?

Last edited by trist007; 08-21-2008 at 04:35 PM.
 
Old 08-21-2008, 07:45 PM   #7
davidstvz
Member
 
Registered: Jun 2008
Posts: 405

Original Poster
Rep: Reputation: 31
One nice thing about tape... you can make a tape and then take it with you if you can't afford an actual computer for off-site storage. Off site storage of backup is good in case your building catches on fire or something (it has happened to people I know).

By the way, I still have no idea what's wrong with this tape drive. If anyone else has any ideas, please let me know.
 
Old 08-21-2008, 07:47 PM   #8
davidstvz
Member
 
Registered: Jun 2008
Posts: 405

Original Poster
Rep: Reputation: 31
Quote:
Originally Posted by trist007 View Post
I was considering purchasing some tape to backup my puters. I know using a tape medium is old school, but I'd like to experience it. Is it really true that tape lasts 30 yrs and that it is very vulnerable to magnetism and light? How much would tape costs for say 40 gigs? Where would you buy from, and what's a good brand? Are there any benefits to using tape as opposed to dvds, flash drives, hard disks.

How do you mount tape? What filesystem is it?
It doesn't really have a file system. It is one file, then another file, then another file. Most people write giant tars to tape to minimize the number of different files on the tape. I don't know a hell of a lot about tapes myself.
 
Old 08-22-2008, 03:22 PM   #9
Ian D
Member
 
Registered: Aug 2005
Location: Solihull, UK
Distribution: Fedora 26
Posts: 138

Rep: Reputation: 15
Quote:
Is it really true that tape lasts 30 yrs?
I don't know how long a tape would last - but tapes do appreciate being played with from time to time.
You know how an old roll of 'Scotch tape' that has been lying around for some time has funny bits where the tape has lifted off the core. That is because the tape has stretched somehow and is now longer than it was when it was wound on. The same thing happens with computer tape. If you run the tape from one end to the other and then rewind it, it goes down nice and smooth again.
Another problem that can happen with tape is that all the 'bits' stored on one layer (which are just like little magnets) start to act on the layers to either side. By rewinding, they all end up in slightly different positions to last time and so that problem is reduced.
Of course, what you would really want to do is to read the tape from time to time and re-write it (to freshen it up), otherwise, when you try to read it after 30 years you might find that what you have have is a 30 year old strip of mylar and nothing else.
 
Old 08-23-2008, 11:11 AM   #10
davidstvz
Member
 
Registered: Jun 2008
Posts: 405

Original Poster
Rep: Reputation: 31
So, no ideas about the strange errors I'm getting?

I've tried two different tapes and I've tried compression and no compression.

I guess the only thing left is that either the BSD driver is bad or the hardware is bad.

What gets me is that the files still seem to come off of the tape just fine despite either "trailing garbage" in the case of the zipped tars, or having to run tar twice (except the first file) in the case of non-zipped tars. I guess I should consider just making the backups as is and maybe getting a new tape drive in the future.
 
  


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
"cupsd: Child exited with status 98!". geeta.k Linux - Software 2 07-31-2008 11:55 PM
error "tar (child): /dev/st0: Wrote only 0 of 10240 bytes? hocheetiong Linux - Newbie 3 02-03-2008 06:25 PM
Compiling GIMP: "collect2: ld returned 1 exit status" linx win Debian 1 01-15-2007 01:08 AM
whats the error with cups "Child exited with status 98!" syedabdul Linux - Networking 1 03-27-2006 01:18 AM

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

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