[Date Prev][Date Next] [Thread Prev][Thread Next] [Date Index] [Thread Index]

Re: how to recover damaged tar files?



Erik Alvarez wrote:
> 
> On Mon, 21 May 2001 10:09:40 +0200
> Lars Knudsen <gandalf@revicon.com> wrote:
> 
> > Erik Alvarez wrote:
> > >
> > > Hi, when trying to decompress a tar file I get this error. Can someone tell if there is a way to fix it or is the file lost?
> > >
> > > rik@pogo:~$ tar -ixvf backup.tar
> >
> > Why the -i option ? Normally extracting a tar file can be done without
> > it. I dont see
> > why it should cause problems, but you might want to try without it.
> >
> It doesn't work either, I use the -i option because it the one that reports a problem, otherwise it just stop saying
>  tar: Error exit delayed from previous errors
> 
OK, in that case you might want to try having a look at the file using
an editor.
Tar files are not compressed, but simply archives of files (tar is short
for
Tape ARchive) so when you look at a tar file you have a 512byte header,
then the
contents of the first file, another 512byte header, the contents of the
second
file etc. etc.

Since the first part of the tar file seems ok you should be able to
identify the
structure and from this you might be able to identify the problem
further on in
the file.

Let me know if you need further info.

Happy Hacking,

\Gandalf



> Thanks
> 
> --
>  ----        ----
>  - Erik Alvarez -
>  ----        ----
> 
> --
> To UNSUBSCRIBE, email to debian-user-request@lists.debian.org
> with a subject of "unsubscribe". Trouble? Contact listmaster@lists.debian.org



Reply to: