February 3, 2010 | Computers | 15 Comments
My MacBook Pro has been acting up again lately. Crashes, stalls, and overall wacky goodness. Yesterday I pulled it out of my bag after getting home and although I had put it to sleep, and confirmed that it was asleep before packing it away, it had crashed on the way home.
When I restarted it I was faced with a question mark flashing inside a folder icon. The computer couldn’t find a valid system to boot from.
I was able to see a valid system directory when using the Startup Disk selector on the OS X install DVD. I was able to use the Terminal on the DVD to browse the disk as well. All the data was still there.
I tried everything that I could to get it back but had no success. That is, until I ran across a forum post that I now cannot find again. The person in the post had seemingly run across the solution by luck and I’m very thankful he did.
The problem, as it turns out, was that my Master Boot Record was hosed. This is bad. The computer essentially couldn’t find anything that would tell it about the hard drive, so it didn’t even know where to look for a bootable system.
The solution is rather counter-intuitive. At least to me it is. The instructions below are based on OS X 10.6, but I suspect they’ll work on 10.5 as well.
- Boot from the OS X install disk.
- Instead of installing OS X, select Disk Utility from the Tools menu.
- Select the hard drive that is having the problem in the list on the left.
- Now select the Partitions tab in the right side of the panel.
- If you have one partition, this part is easy. Simply use the slider in the bottom right corner of the partition diagram to resize the partition, then put it back where it was. If you have multiple partitions take note of the size of the partition you’re resizing so you can get it back to right where it was before.
- After putting the partition size back the way you found it click the Apply button. You’ll be asked to confirm the decision and told that its non-destructive. Hopefully in all cases this is true
So, basically what we’ve done here is forced disk utility to rewrite the master boot record without actually changing the partition structure of the disk, so the existing partition table will simply be re-written to the master boot record.
This works in 10.6, and should probably work in 10.5 as well since it allowed for live disk resizing to support creating Bootcamp installs.
Good luck!
I just wanted to say thanks. Your solution here worked like a charm to fix my problem and saved me even more frustration! Thanks again! I hope you don’t mind but I posted your solution as an excerpt on my own blog.
Glad it worked! And thanks for the link back on your blog.
YOU ARE A CHAMPION!!! It totally worked. Stupid Apple tried to get me to reinstall Snow Leopard but I found this page right before doing so. I owe you a beer my friend.
This worked for me! I was running MultiBeast on my MacBook to make changes on my CustoMac’s drive, which was loaded externally. I accidentally set the destination as the MacBook’s drive and the MBR got jacked. Oops. Thanks!
THANK YOU SO MUCH! You just saved my ass big time.
Hi! don’t have Mac OS X disk, what do?
Not quite sure what to recommend here. If you don’t see the OS X disk when in the Disk Utility then you’ve got a larger problem on your hands and probably need to dump the drive, buy a new one, and restore from backup.
My son was screwing around with some boot image tools to change the startup image and hosed the OS… blinking questions mark:
- disk utility – repair disk didn’t work
- even a reinstall of the OS didn’t work (i didn’t reformat the drive, just a reinstall from the original disk)
But but this simple trick fixed it for me ! MBR restored… glory days ! I’d like to come over and kiss you. Where do you live ?
I live in Denver and do accept kisses
Your solution saved me a lot of time and stress! Thank you!!!!
Years later, you’re still saving people’s butts! Thanks! I had spent hours doing all kinds of stuff…reset nvram, pram, verified and repaired permissions, verified and repaired drive, still got the question mark folder at boot up. Reinstalled Snow leopard…still had the problem. Your solution had me at the login screen in five minutes flat, so THANKS!!
My God! None of the Apple resources could solve this issue at all, not to mention so elegantly. Im a guy but willing to kiss you too!
All the best! K
Hi,
many thanks and the same sentiment as everyone else.
I checked out all the other options and none worked. This one worked like a charm. I have 3 partitions on the drive which would not boot. All I had to do was move the last partition size down then back to its original place filling the rest of the drive as it did originally.
Sure enough my little old 2007 mac mini running as good as new.
I’m sure there is a terminal command which would do the same but who needs all that typing
cheers
G
I tried this but does not word
I am UNABLE to access my ‘Disk Utility’ as it says “Mac OS X cannot be installed on this computer”
When I did get access to ‘Disk Utility’, my Hardrive was not available… HELLPPP!!
I’m worried I have a virus on my comp
(
It sounds more serious in your case. Like maybe a failed hard drive.