Page 1 of 1

How can I reorder my damage RAR part files ?

Posted: April 9th, 2010, 10:18
by guista
Hi all,

I lost the extension of my RAR files which indicate the archive part index and is used by WinRAR to uncompress the archived files. Without the right order, I get RAR CRC errors upon uncompression.

My archive files were named like this before the incident:

myarchive.part01.rar
myarchive.part02.rar
myarchive.part03.rar

... and so on.

They are now named like this:

myarchive(1)
myarchive(2)
myarchive(3)

...

And of course, the number between parenthesis does not indicate the right part index.

* Is there any way to retrieve the right part order ? (except by trying all the possible combination which is impossible for because my files are numerous and big)

* Is the RAR part index information stored anywhere in the RAR file ?

Thanks in advance for your help.

Re: How can I reorder my damage RAR part files ?

Posted: April 9th, 2010, 17:18
by fzabkar
If I were attacking this problem from first principles, I would create a small text file, and then use your RAR archiver software to split it into three archives, but without any compression.

The original text file could have the following structure:

part1part1part1part1
part2part2part2part2
part3part3part3part3

The uncompressed text should be visible in each of the RAR parts.

Re: How can I reorder my damage RAR part files ?

Posted: April 12th, 2010, 9:27
by guista
Excellent idea.
And then I will analyse the WinRAR parts format.
I already opened the parts looking for some part index inside the files but did not find anything (I did this on some big files).
I am going to apply your idea and see what I get.

Thank you.

Re: How can I reorder my damage RAR part files ?

Posted: April 12th, 2010, 10:59
by guista
I just did your test:
I built a file with many "part1" words concatenated, "part2" then "part3", split the file into 1K uncompressed files, isolated the header and footer but unfortunately, there is no index information (like 0, 1, 2, 3 or 1, 2, 3 in hexadecimal format or ASCII format).
Moreover, there are many differences between 2 consecutive headers or footers.
I think I would need the RAR specifications in order to find out if the RAR files order can be retrieved from the parts' content ...