I know Acronis is a company that deals with a lot of stuff like this. Sadly, I think most programs are geared more towards backing up and restoring rather than repairing.
Actually now I think about it, I do remember having this discussion with a friend when his master boot record became corrupt and he found a way of repairing it using the Windows XP recovery console, though I have no idea if Windows 7 kept this.
EDIT: Read you're using Solaris. I expect there probably is a program, and like I said the Acronis is worth a look, but otherwise, yeah not sure.