Gentoo Forums
Gentoo Forums
Gentoo Forums
Quick Search: in
Can this tar.gz file be repaired?
View unanswered posts
View posts from last 24 hours

 
Reply to topic    Gentoo Forums Forum Index Other Things Gentoo
View previous topic :: View next topic  
Author Message
swingarm
l33t
l33t


Joined: 08 Jun 2002
Posts: 627
Location: Northern Colorado

PostPosted: Wed May 19, 2004 7:50 pm    Post subject: Can this tar.gz file be repaired? Reply with quote

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
View user's profile Send private message
The Dealy Lama
n00b
n00b


Joined: 10 Jun 2003
Posts: 35
Location: Da'ath

PostPosted: Wed May 19, 2004 9:00 pm    Post subject: Reply with quote

6.6 GB gz-file? 8O

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. :wink:
_________________
"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
View user's profile Send private message
swingarm
l33t
l33t


Joined: 08 Jun 2002
Posts: 627
Location: Northern Colorado

PostPosted: Wed May 19, 2004 11:37 pm    Post subject: Reply with quote

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
View user's profile Send private message
far
Guru
Guru


Joined: 10 Mar 2003
Posts: 394
Location: Stockholm, Sweden

PostPosted: Thu May 20, 2004 12:14 am    Post subject: Reply with quote

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
View user's profile Send private message
PowerFactor
Veteran
Veteran


Joined: 30 Jan 2003
Posts: 1693
Location: out of it

PostPosted: Thu May 20, 2004 12:29 am    Post subject: Reply with quote

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
View user's profile Send private message
swingarm
l33t
l33t


Joined: 08 Jun 2002
Posts: 627
Location: Northern Colorado

PostPosted: Thu May 20, 2004 2:31 am    Post subject: Reply with quote

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
View user's profile Send private message
DarrenM
l33t
l33t


Joined: 25 Apr 2002
Posts: 653
Location: Sydney, Australia

PostPosted: Thu May 20, 2004 2:55 am    Post subject: Reply with quote

not hosed. Just wrong extension.

http://dump.sourceforge.net/

emerge dump
Back to top
View user's profile Send private message
PowerFactor
Veteran
Veteran


Joined: 30 Jan 2003
Posts: 1693
Location: out of it

PostPosted: Thu May 20, 2004 3:08 am    Post subject: Reply with quote

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
View user's profile Send private message
swingarm
l33t
l33t


Joined: 08 Jun 2002
Posts: 627
Location: Northern Colorado

PostPosted: Thu May 20, 2004 4:26 am    Post subject: Reply with quote

DarrenM wrote:
not hosed. Just wrong extension.

http://dump.sourceforge.net/

emerge dump


You're right, thank you very much. I thought dump created a standard tar.gz file, obviously I was wrong.
Back to top
View user's profile Send private message
Display posts from previous:   
Reply to topic    Gentoo Forums Forum Index Other Things Gentoo All times are GMT
Page 1 of 1

 
Jump to:  
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