Results 1 to 10 of 10

Thread: Extract files from corrupt gzipped tar

Hybrid View

  1. #1
    Join Date
    Apr 2007
    Location
    Leura, Australia
    Beans
    Hidden!
    Distro
    Ubuntu Gnome 13.10 Saucy Salamander

    Angry Extract files from corrupt gzipped tar

    Hi,

    I have a .tar.gz file that has all my settings from my previous Ubuntu install in it. I want to unzip it but it seems to be corrupted in some way and I can't extract any of the files.

    The error I get is:
    Code:
    gzip: stdin: unexpected end of file
    tar: Unexpected EOF in archive
    tar: Error is not recoverable: exiting now
    Can anyone help me recover the files?

    Thanks,
    Erland.

  2. #2
    Join Date
    Jan 2007
    Location
    $here ? $here : $there
    Beans
    3,717
    Distro
    Ubuntu 8.04 Hardy Heron

    Re: Extract files from corrupt gzipped tar

    Are you certain that you are using the command correctly? To me that looks like the command is trying to read from stdin and not a file.

    Edit:
    Read a little closer. Try:

    Code:
    tar xvf the_file.tar.gz
    Don't try to make something "fast" until you are able to quantify "slow".

  3. #3
    Join Date
    Apr 2007
    Location
    Leura, Australia
    Beans
    Hidden!
    Distro
    Ubuntu Gnome 13.10 Saucy Salamander

    Re: Extract files from corrupt gzipped tar

    Thanks. I was just doing it through the GUI, by opening or extracting it from Nautilus. After issuing your command in the terminal however, I get the same problem. It prints lots of files that are extracted then gets to
    Code:
    howden/.mozilla-thunderbird/1ke0b5qv.default/Mail/Local Folders/Sent
    and prints:
    Code:
    gzip: stdin: unexpected end of file
    tar: Unexpected EOF in archive
    tar: Unexpected EOF in archive
    tar: Error is not recoverable: exiting now

  4. #4
    Join Date
    Aug 2008
    Beans
    71
    Distro
    Ubuntu 8.04 Hardy Heron

    Re: Extract files from corrupt gzipped tar

    Is it too late to resurrect this thread and see if there was ever a fix? I have the same problem and one of the folders I backed up is photos from a customer shoot and I *need* them!

    I don't want to extract the entire backup since it may cause some problems with my current install... Just need the photos! Help!

    gzip: stdin: unexpected end of file
    tar: Unexpected EOF in archive
    tar: Error is not recoverable: exiting now

  5. #5
    Join Date
    Aug 2009
    Beans
    2

    Re: Extract files from corrupt gzipped tar

    Did anyone ever resolve this issue? I have a similar problem. I used sbackup to backup about 75 gigs of info. There were five or so files created as part of the backup. sbackup restore does not like the file. It complains that the backup was in a earlier format. And choosing to proceed didn't appear to work. At least I can't tell that it did anything. A peak of the first hundred lines or so in files.tgz appear to be gibberish. Also looking at the ver file which should be text but it also looks like three or fous characters of gibberish. I wonder if the file is really corrupt or if I'm looking at compressed data that somehow gunzip or tar or something else can't work with. Anyway else seeing something similar?

  6. #6
    Join Date
    Sep 2005
    Beans
    6

    Re: Extract files from corrupt gzipped tar

    I have the exact same problem.

    sbackup can no more restore my files. And when trying to extract manually the files.tgz archive.
    It gives me the answer :

    Code:
    gzip: stdin: unexpected end of file
    tar: Unexpected EOF in archive
    tar: Error is not recoverable: exiting now
    So so so uncool

Tags for this Thread

Bookmarks

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •