View previous topic :: View next topic |
Author |
Message |
swingarm l33t
Joined: 08 Jun 2002 Posts: 627 Location: Northern Colorado
|
Posted: Wed May 19, 2004 7:50 pm Post subject: Can this tar.gz file be repaired? |
|
|
Here is what I'm getting when I try to uncompress this 6.6GB file:
Code: |
[root@server temp]# tar -xvzf data1-backup.tar.gz
gzip: stdin: not in gzip format
tar: Child returned status 1
tar: Error exit delayed from previous errors
|
Just for fun I renamed it from tar.gz to tar:
Code: |
[root@server temp]# tar -xvf data1-backup.tar
tar: This does not look like a tar archive
tar: Skipping to next header
tar: Error exit delayed from previous errors
|
I looked around on these forums and Google with no luck. I have a feeling it's borked beyond repair, should I go with that feeling? |
|
Back to top |
|
|
The Dealy Lama n00b
Joined: 10 Jun 2003 Posts: 35 Location: Da'ath
|
Posted: Wed May 19, 2004 9:00 pm Post subject: |
|
|
6.6 GB gz-file?
Well, first of all, verify that your file really is a compressed archive:
Code: | file data1-backup.tar.gz |
If so, then this snippet of code might recover a part of it, if not most should it be an EOF-errror:
Code: | zcat data1-backup.tar.gz | tar vx |
It would be rather tedious and hard to load a file that size into a binary/hex editor, but hey, it's a time-proven method although far fetched. _________________ "The shadows of this world are perceived by mortals, and they think they know the Truth, but the Reality which casts the shadows is hidden from them, and they do not perceive the Light." (Sayings 2:2)" |
|
Back to top |
|
|
swingarm l33t
Joined: 08 Jun 2002 Posts: 627 Location: Northern Colorado
|
Posted: Wed May 19, 2004 11:37 pm Post subject: |
|
|
Thanks for your response. Here is what I get:
Code: |
[root@server temp]# file data1-backup.tar.gz
data1-backup.tar.gz: new-fs dump file (little endian), This dump Tue May 11 03:00:04 2004, Previous dump Wed Dec 31 17:00:00 1969, Volume 1, Level zero, type: tape header, Label none, Filesystem /data1, Device /dev/sda4, Host hopecentre.lan, Flags 1
|
Cool, looks like good news. Now for the 2nd command:
Code: |
[root@server temp]# zcat data1-backup.tar.gz | tar vx
zcat: data1-backup.tar.gz: not in gzip format
|
Bummer. |
|
Back to top |
|
|
far Guru
Joined: 10 Mar 2003 Posts: 394 Location: Stockholm, Sweden
|
Posted: Thu May 20, 2004 12:14 am Post subject: |
|
|
swingarm wrote: |
Code: |
[root@server temp]# file data1-backup.tar.gz
data1-backup.tar.gz: new-fs dump file (little endian), This dump Tue May 11 03:00:04 2004, Previous dump Wed Dec 31 17:00:00 1969, Volume 1, Level zero, type: tape header, Label none, Filesystem /data1, Device /dev/sda4, Host hopecentre.lan, Flags 1
|
Cool, looks like good news.
|
No it is not good news. It should look somethin like this: "gzip compressed data, from Unix" _________________ The Porthole Portage Frontend |
|
Back to top |
|
|
PowerFactor Veteran
Joined: 30 Jan 2003 Posts: 1693 Location: out of it
|
Posted: Thu May 20, 2004 12:29 am Post subject: |
|
|
swingarm wrote: | Code: |
[root@server temp]# file data1-backup.tar.gz
data1-backup.tar.gz: new-fs dump file (little endian), This dump Tue May 11 03:00:04 2004, Previous dump Wed Dec 31 17:00:00 1969, Volume 1, Level zero, type: tape header, Label none, Filesystem /data1, Device /dev/sda4, Host hopecentre.lan, Flags 1
|
Cool, looks like good news. |
I think what you have there is a filesystem dump of some variety(bsd newfs?), not a gziped tar file. |
|
Back to top |
|
|
swingarm l33t
Joined: 08 Jun 2002 Posts: 627 Location: Northern Colorado
|
Posted: Thu May 20, 2004 2:31 am Post subject: |
|
|
far wrote: | swingarm wrote: |
Code: |
[root@server temp]# file data1-backup.tar.gz
data1-backup.tar.gz: new-fs dump file (little endian), This dump Tue May 11 03:00:04 2004, Previous dump Wed Dec 31 17:00:00 1969, Volume 1, Level zero, type: tape header, Label none, Filesystem /data1, Device /dev/sda4, Host hopecentre.lan, Flags 1
|
Cool, looks like good news.
|
No it is not good news. It should look somethin like this: "gzip compressed data, from Unix" |
You're right, I guess I was just happy I did something with the file that didn't hang or end up with an error.
I'm starting to accept the fact that this file is hosed. |
|
Back to top |
|
|
DarrenM l33t
Joined: 25 Apr 2002 Posts: 653 Location: Sydney, Australia
|
|
Back to top |
|
|
PowerFactor Veteran
Joined: 30 Jan 2003 Posts: 1693 Location: out of it
|
Posted: Thu May 20, 2004 3:08 am Post subject: |
|
|
That only handles ext2/3 dumps though right? I'm presuming if it were one of those it wouldn't say "new-fs dump file" I could be wrong though, I've never looked at an ext2 dump file. |
|
Back to top |
|
|
swingarm l33t
Joined: 08 Jun 2002 Posts: 627 Location: Northern Colorado
|
Posted: Thu May 20, 2004 4:26 am Post subject: |
|
|
You're right, thank you very much. I thought dump created a standard tar.gz file, obviously I was wrong. |
|
Back to top |
|
|
|
|
You cannot post new topics in this forum You cannot reply to topics in this forum You cannot edit your posts in this forum You cannot delete your posts in this forum You cannot vote in polls in this forum
|
|