1751797 Members
5150 Online
108781 Solutions
New Discussion юеВ

Re: who can utar this ?

 
Jerome Henry
Honored Contributor

who can utar this ?

A full big and smilling rabbit to who'll be able to get this tar back to its original format, a mail directory in /home/usul.
I keep getting error messages, whereas it's supposed to be a correct file, just done with old version of redhat (6.2 ?).
Good luck all.
J
You can lean only on what resists you...
14 REPLIES 14
Jerome Henry
Honored Contributor

Re: who can utar this ?

I get a 404 even on trying to read it here.
Grunt, only troubles with that file.
Here it is again...
You can lean only on what resists you...
John Poff
Honored Contributor

Re: who can utar this ?

Hi J,

You are right. Your attachment isn't coming through, but it may not matter. It looks like your file is maybe a gzip file since it has a .gz extension. Have you tried a 'gunzip' on it first and then tried a 'tar tvf file'?

JP
Bill Douglass
Esteemed Contributor

Re: who can utar this ?

How about posting:

ls -l filename
file filename

Also, list the error messages your are getting.

Jerome Henry
Honored Contributor

Re: who can utar this ?

Thanks John and Bill for trying.
The file is actually gziped, as it's slightly more than 1MB (max posting authorized here), I gziped it before posting.
I'll get back to the file's place in a few hours, and post the ls- l from it, along with the error messages on utaring.
tks.
J
You can lean only on what resists you...
Jerome Henry
Honored Contributor

Re: who can utar this ?

Ok, back to the machine :
ls -l says :
-rwxr-xr-x 1 usul usul 1121397 may 20 16:07 mail.tar.
Usul is the user name, mail.tar the file, tared from mail directory apparently.
file says :
mail.tar gzip compressed data, was "mail.tar" from Unix.

Cool I say, let's run tar -tvf on it, of course shell complains "this is not a tar type archive".
What a dummy I think, file says it's a gzip file, running gunzip directly on it won't do (gunzip mail.tar --unkonwn suffix, package ignored), let's give it back its gz extension :
mv mail.tar mail.tar.gz.
OK.
Back to gunzip mail.tar.gz :
"invalid compressed data --format violated".

I tried then tar -zxvf mail.tar.gz
Cool uncompressing 2 directories (outbox, sentbox, not inbox !) then "gzip stdin : invalid compress data--format violated.
tar : unexpected end of file (EOF).
tar : unexpected end of file (EOF).
tar : unfixable error:end of execution".
outbox is empty (normal), and sentbox is a file, partly readable, but a cat is not very friendly : some letters are missing or replaced in addresses, as if it has been partly MD5ed...
Any clue ?
You can lean only on what resists you...
Stuart Browne
Honored Contributor

Re: who can utar this ?

when you originally got the file, did you md5sum it on both ends to make sure that all the data had been transferred intact?

It sounds as if the tar file was corrupted in transit.

If it is ok, then something funny is going on.

The man page for 'gzip' states that if you have "Corrupt input" to use 'zcat' to get the working portion into another file (but this obviously doesn't get anything from the broken point onwards).

To help solve your confusion, you might want to rename the file to have a '.gz' suffix incidentally.
One long-haired git at your service...
Jerome Henry
Honored Contributor

Re: who can utar this ?

Nope, I got in fact a diskette and that's it... asking the guy, he says that he had no warning on taring and ziping, saying that he should have if it had a problem...
I'll try your tip. Do you think that the rest is corrupted ? Any idea about the sendbox strange appearance ?
Any clue to get something from this file ?
tx
J
You can lean only on what resists you...
Jerome Henry
Honored Contributor

Re: who can utar this ?

John,
I love this zcat (just knew the name, never tried), works roughly like an authoritative gunzip, but unfortunately stops at the same point with the same 'invalid compressed data, format violated'.
Still have my outbox and sentbox, sounds like the inbox is dead...
Mmm... how can I explain to the guy that the file can be corrupted even if he had no warning on taring without hearing the usual 'it wouldn't happend with winzip' ?
Any last clue to try something on it (I do not want to feed this rabbit for the rest of my life !!)
J
You can lean only on what resists you...
John Poff
Honored Contributor

Re: who can utar this ?

It sounds like you might have gotten all the data you are going to get out of the tar file. You might try some utility to check the tracks on the floppy disk and see if you can repair any damage, but my guess is that either the file is corrupt or the floppy has a bad track, and either way your data is probably toast.

JP