Ubuntu "Missing Operating System"

Status
Not open for further replies.

kpmwrestler

In Runtime
Messages
489
Oh no!

while trying to install PenDriveLinux, i messed up my MBR on my main hard drive, because now when i try to boot up, it says "Missing operating system"


is there a simple recovery to this?



im running ubuntu 7.04 feisty fawn, and i have (or at least HAD) Grub as the bootloader
 
perfect, that link worked, i used the livecd to get to the grub prompt and followed the instructions from the second post in that link.
 
1. Pop in the Live CD, boot from it until you reach the desktop.
2. Open a terminal window or switch to a tty.
3. Type "grub"
4. Type "root (hd0,6)", or whatever your harddisk + boot partition numbers are (my /boot is at /dev/sda7, which translates to hd0,6 for grub).
5. Type "setup (hd0)", ot whatever your harddisk nr is.
6. Quit grub by typing "quit".
7. Reboot.

Why do I have to type something here to meet the minimum character requirement?
 
1. Pop in the Live CD, boot from it until you reach the desktop.
2. Open a terminal window or switch to a tty.
3. Type "grub"
4. Type "root (hd0,6)", or whatever your harddisk + boot partition numbers are (my /boot is at /dev/sda7, which translates to hd0,6 for grub).
5. Type "setup (hd0)", ot whatever your harddisk nr is.
6. Quit grub by typing "quit".
7. Reboot.

there's one thing you might want to add to that.


if you don't know where the "root" is (example: (hd0,6)), you need to type this at the grub prompt right before step 4:

find /boot/grub/stage1



that will tell you where it is located. if you have only ubuntu and no other OS on you hard drive, it will probably be (hd0,0)
 
Status
Not open for further replies.
Back
Top Bottom