Tar error

When Im trying to untar a file I get an error message

tar: 0511-169 A directory checksum error on media; 804399248 not equal to 46325.

What can I do to untar my file

Thanks

Sounds like it was uploaded in text mode rather than binary. Try re-uploading it in binary mode then tar it.

As a last-ditch effort you could try:

sed 's/^M$//' <tarfile> | tar -tvf -

if this works replace the "-tvf -" by "-xvf -" to untar the file (be sure to be in the right directory when doing this). "^M" is meant literal, you would have to type <CTRL>-<V> then <ENTER> to create the character.

If this doesn't help you can still re-ftp the file in binary mode - or send it in uuencoded form.

hope this helps

bakunin

This is because you downloaded the .gz file and your windows copied as .tar.tar.
So, you need to gunzip and then untar