Unix Technical Forum

tar recovery needed

This is a discussion on tar recovery needed within the AIX Operating System forums, part of the Unix Operating Systems category; --> We have a tar tape (no compression) that a second person started to write over. chdev blocksize was 10420. ...


Go Back   Unix Technical Forum > Unix Operating Systems > AIX Operating System

FAQ Members List Calendar Search Today's Posts Mark Forums Read
  #1 (permalink)  
Old 01-05-2008, 09:13 AM
 
Posts: n/a
Default tar recovery needed

We have a tar tape (no compression) that a second person started to
write over.

chdev blocksize was 10420.

The second tar was quickly stopped, but we need to get at the data
from the first tar.

HELP!


Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
  #2 (permalink)  
Old 01-05-2008, 09:13 AM
rmwindows
 
Posts: n/a
Default Re: tar recovery needed

Haven't tried this before but maybe you can use TAR Repair (free trial)
http://www.tar-repair.com/

Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
  #3 (permalink)  
Old 01-05-2008, 09:14 AM
Paul Pluzhnikov
 
Posts: n/a
Default Re: tar recovery needed

<fondue.meat@comcast.net> writes:

> We have a tar tape (no compression) that a second person started to
> write over.
>
> chdev blocksize was 10420.


Probably typo, as 10240 is much more likely value.

> The second tar was quickly stopped, but we need to get at the data
> from the first tar.


TAR format itself is actually very easy to recover -- you just

dd if=corrupt.tar bs=10240 skip=1 | tar tvf -

You may need to skip more than 1 block, but eventually you'll
skip past the EOF marker and will begin to see the files that are
still there.

[I am quite surprised that there is a commercial tar-repair company,
but I might be missing something, or maybe there are enough clueless
admins to support their existence].

You major problem is likely going to be extracting the data from
tape: when the second tar was interrupted, it likely wrote double
EOT marker, and getting the tape drive to read past what it considers
end-of-tape may be tricky.

Last time I needed to do that (on SCO Unix, IIRC), I couldn't get the
data off the tape no matter what I tried; the 'mt' driver simply
refused to read past the EOT.

You may have better luck on AIX though.

Cheers,
--
In order to understand recursion you must first understand recursion.
Remove /-nsp/ for email.
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
Reply


Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

vB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On
Forum Jump


All times are GMT. The time now is 06:55 AM.


Powered by vBulletin® Version 3.6.5
Copyright ©2000 - 2008, Jelsoft Enterprises Ltd.
SEO by vBSEO 3.2.0
www.UnixAdminTalk.com