data recovery - How to extract multipart rar with missing parts?

06
2014-04
  • Alex I

    I have a multipart .rar archive containing a single .tar.gz file inside it (don't ask why, that is just how it was made). I am missing a few of the parts, but do have the first part. I would like to extract as much of the .tar.gz as possible. How can I do that?

    If I run unrar x -kb file.part1.rar it always extracts the beginning of the .tar.gz from part1 and stops there with an error. I am happy to try any tools (doesn't have to be unrar).

  • Answers
  • davidbaumann

    I assume 100Mb parts, part 3 missing. You can try

    cat blubb.part01.rar blubb.part02.rar blubb.part04.rar > blubb.rar
    

    also I would try, which might work better and make WinRar think, the file is corrupted:

    dd if=/dev/zero of=blubb.part03.rar bs=1M count=100
    cat blubb.part01.rar blubb.part02.rar blubb.part03.rar blubb.part04.rar > blubb.rar
    

  • Related Question

    encryption - How can I remove the password protection from a RAR archive?
  • Mehper C. Palavuzlar

    This question already has an answer here:


  • Related Answers
  • Krazy_Kaos

    Best solution (IMHO):

    Use a DOS Batch file with the command FORFILES, to cicle all files, with the command to unrar with the password and thn rar it back up again without password. And finally delete the unnecessary files.

    If I were you I would do it in python, for me it's less confusing then BATCH Files (*.bat), and you can find recepies for almoust all that you want to do, all you need to do is glue then togheter(the right way :) )

  • Dmatig

    Since each file is encrypted using the passphrase/password, it logically follows that in order to un-encrypt you need the password, which you have.

    But the files are encrypted, meaning without the password, they are seemingly random garbage.

    If it were possible to merely remove passwords, without extracting, winrar's encryption would be broken (from my understanding, anyway).

    So I don't really see how it is possible - just write a batch file to un-encrypt them all overnight.

  • mmv-ru

    WinRAR use real hard encryption. "Remove" password mean decrypt all data. I dont know, but wery possible encryption done in one operation with compression. Therefore "remove" password require decompression.