View Full Version : [ubuntu] Restore Ubuntu Boot Sector / MBR

June 6th, 2010, 03:58 PM
For some reason, I've just rebooted my Ubuntu Lucid box and it didn't detect the first hard drive where it is installed.

I took the panel off of the side of the case and checked the connections but it was fine. I checked the BIOS and the drive is detected.

I booted up using the Ubuntu CD and chose the option to boot from the first hard disk which then got me back to the desktop.

Question is, whats the easiest way to restore the MBR, I know how to do this in Windows but with Ubuntu I haven't a clue.

Is there something simple I can run at the command line please?