If the file is actually corrupt and not just unsupported by Stuffit and is not an incomplete download you might be able to repair it. At http://www.rarlabs.com there is a Mac OS X port of their rar program. Download and decompress it. Open the terminal and drag the file named rar from the decompressed folder to the terminal window, then click the terminal window and type "r ", drag the rar file you want to repair onto the terminal window, click the terminal window and hit return. If the file has a rar recovery record then a repair will be attempted.
Well, Mr. Brkirch -
It's been over 3 years since you posted the above reply, and I luckily found your post.
I d/l a 2-gig post in 13 rar segments. One of the segments was corrupt, even after multiple d/ls. I use UnRarX to decompress and join. It's very simple and effective, I use it all the time, but it is pretty basic and has no repair function.
I looked all over for software to help me fix the error, but there isn't any for Mac OS X, it appeared. Some folks told me I needed a PAR file, but I tried fooling with MacParDeluxe, which I've had for some time as well, but when it encountered the bad RAR archive it couldn't do anything.
Fortunately I found your post. I'm not a big command-line guy, but I d/l the WINRAR command-line tool for Mac OS X. It's currently at version 3.9.3 but I found an older one, 3.8.0 to be sure it would work OK with my version of OS X (10.4.11).
Anyway, I tried the steps you outlined, but it didn't work at first. The only thing missing in your directions is to identify the destination path where you want the fixed file placed. Once I did that, the program scanned the file, found the recovery record, and fixed it.
The archive combined and unstuffed perfectly after that.
Thank you, sir, for your expertise and post. I appreciate it!
I'm trying to do the same thing. Could you expand on how to identify the destination path within the terminal window? It may be obvious, but I'm not very familiar with using the terminal.
Hi. Sure thing.
First, to reiterate, drop the "rar" program file from the "rarosx" folder onto the terminal window. Then make sure there's a space, then type "r" (without the quotes). Then make sure there's another space. Then drop the file you want repaired onto the terminal window (it'll give the path and name of the file). Then make sure there's another space, and type "Users/yourname/Desktop" or wherever you want the fixed file placed. It may be easier to just drop the folder where you want it placed onto the terminal window again so there's no chance at typos.
Then hit "return" and the repair scan will start. if the file has a recovery record, it will say that it was found almost immediately. Then it goes about repairing the file. Depending on the size of the file, it may take a couple minutes.
Note that the file will have the prefix "fixed" appended to the beginning of the filename. You'll need to delete that once the repair process has completed before you attempt to join the files again.
That should do the trick!
Wow...thank you so much! Everything worked perfectly. I was up to the point where I dropped in the file needing to be prepared, but couldn't get beyond that. However, I wasn't putting a space after the 'r', so that detail you provided also really helped. Thank you so much again for taking the time to respond with such easy to follow instructions!!!
Because unrarx.app is a folder, not a command line application.I dropped the program file "UnRarX" into Terminal and it turns into unrarx.app and it says it's a directory, after 'Bash'. How can I work around that? Help!
If you have a corrupted .rar file, you need the associated par files. Usually those are included in the download.
All you need to do is make sure the .rar and .par files are in the same directory. Get MacParDelux and open any of the .par files with it. It will automatically repair any corrupted .rars and also concatenate the .rar files as well.
No command line needed.
I did the "r" command but when I got to repairing, it said data recovery not found. Here is the problem:
Lyubomir-Gizdarskis-iMac:~ lyubomir9$ /Users/lyubomir9/Desktop/rar r /Users/lyubomir9/Desktop/untitled\ folder\ 3/untitled\ folder\ 4/codbo4861.dmg.part1.rar Users/VeselinGizdarski/Desktop
RAR 4.10 beta 2 Copyright (c) 1993-2011 Alexander Roshal 20 Oct 2011
Shareware version Type RAR -? for help
Data recovery record not found
Reconstructing /Users/lyubomir9/Desktop/untitled folder 3/untitled folder 4/codbo4861.dmg.part1.rar
Lyubomir-Gizdarskis-iMac:~ lyubomir9$ /Users/lyubomir9/Desktop/untitled\ folder/codbo4861.dmg
I didn't even get the file on my desktop.. All I had was ".rebuilt" added to the .rar file. What do I do?
it still says the file is corrupted