Results 1 to 7 of 7

Thread: [SOLVED] Recovering a corrupt .tar file

  1. #1
    Join Date
    Feb 2008
    Location
    The Netherlands
    Beans
    9
    Distro
    Kubuntu 8.10 Intrepid Ibex

    [SOLVED] Recovering a corrupt .tar file

    Good day,

    Recently, I needed to make a backup of some data before installing ubuntu on a computer. I could only use my USB for that purpose, and so archived the files into a .tar in order for it to fit (the result was 1.9 GB). I used the LiveCD archiver. However, when I try to open it now it gives an error:

    Code:
    (null)
    
    tar: Skipping to next header
    tar: Error exit delayed from previous errors
    I am using the default archiver (fileroller?)

    The tar: lines are in the details, the (null) is shown.

    Is it possible to fix this archive?

    Thank you,
    Sevis

  2. #2
    Join Date
    Jun 2007
    Location
    Greater Boston
    Beans
    1,586
    Distro
    Ubuntu 12.04 Precise Pangolin

    Re: Recovering a corrupt .tar file

    Will tar list this file?

    tar -xtf corrupt-tar-file
    Last edited by cmnorton; January 1st, 2009 at 03:36 PM. Reason: punctuation
    cmn

  3. #3
    Join Date
    Feb 2008
    Location
    The Netherlands
    Beans
    9
    Distro
    Kubuntu 8.10 Intrepid Ibex

    Re: Recovering a corrupt .tar file

    Code:
    katherine@katherine-desktop:~$ tar -xtf /media/disk/bak.tar 
    tar: You may not specify more than one `-Acdtrux' option
    Try `tar --help' or `tar --usage' for more information.
    Edited into English.

    EDIT:

    I removed the x and it lists the folders and files inside.
    Last edited by Sevis; January 1st, 2009 at 03:59 PM. Reason: More results

  4. #4
    Join Date
    Jun 2007
    Location
    Greater Boston
    Beans
    1,586
    Distro
    Ubuntu 12.04 Precise Pangolin

    Re: Recovering a corrupt .tar file

    Mea culpa. You cannot combine extract with list.

    Just use t, instead of x.

    tar -tvf corrupt-tar-file
    cmn

  5. #5
    Join Date
    Feb 2008
    Location
    The Netherlands
    Beans
    9
    Distro
    Kubuntu 8.10 Intrepid Ibex

    Re: Recovering a corrupt .tar file

    Yes, it lists a lot of files... It\'s too much to list here.

    For example:

    Code:
    -rwxrwxrwx root/root    401282 2008-03-31 11:20 Disc_D/Китай - сводная галерея/080313-165730-618ma.jpg
    Last edited by Sevis; January 1st, 2009 at 04:28 PM. Reason: Example

  6. #6
    Join Date
    Jun 2007
    Location
    Greater Boston
    Beans
    1,586
    Distro
    Ubuntu 12.04 Precise Pangolin

    Re: Recovering a corrupt .tar file

    Then tar should be able to unpack this file for you.

    tar -xvf corrupt-tar-file
    cmn

  7. #7
    Join Date
    Feb 2008
    Location
    The Netherlands
    Beans
    9
    Distro
    Kubuntu 8.10 Intrepid Ibex

    Re: Recovering a corrupt .tar file

    Yes, that worked, thank you!

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
  •