Normally when Windows is installed after Ubuntu the "Master Boot Record", MBR, will be
overwritten. You can bootup off a LiveCD and repair the MBR. However, there are 2 different
approaches:
Recovering GRUB after reinstalling Windows
There are also these help guides
• https://help.ubuntu.com/community/RecoveringUbuntuAfterInstallingWindow s
• https://help.ubuntu.com/community/Grub2#Reinstalling%20from%20LiveCD
Which should help with any install of Ubuntu now. For some simple cases the advice below
might help
Ubuntu 10.04 or 9.10
Sorry, definitely use this guide
• https://help.ubuntu.com/community/Grub2#Reinstalling%20from%20LiveCD
Ubuntu 9.10 & earlier
The older Grub, sometimes called Grub-legacy or perhaps Grub1 was used up until Ubuntu
9.10. The default for 9.10 was initially Grub1 but installs would drift over to Grub2 without
users really being aware of the change. With any current Ubuntu install it is wise to install, or
re-install Grub2 as shown in the link above.
If you run an older Ubuntu or had any trouble with Grub2 then Grub1 & Lilo are still available.
To fix the MBR with an older LiveCD to access a Grub command-line:
1. Boot into a LiveCD
2. Open a terminal
3. Open the GRUB Command-line utility by typing
sudo grub
4. Find where Grub is. If this gives a few different answers then you will need to find the
correct one, perhaps by trial-and-error.
find /boot/grub/stage1
5. Tell GRUB which partition to tell the MBR your Grub is on by entering
root (hdA,B)
The coordinates A,B are where 'A' is the hard-drive number, starting at 0, and 'B' is the
partition number, starting at 0. For example, if Ubuntu was installed on the second partition of
the first hard-drive, the command should be
root (hd0,1)
6. Tell GRUB which drive's MBR to fix
setup (hd0)
Replace 0 only in the extremely unlikely event that your bios does not use the first hard-drive
as the boot device. Typically Ubuntu might be on any drive but the bios will almost always go
to the first drive's MBR to find out where to find the boot-loader.
7. Leave the GRUB Command line
quit
and reboot.
overwritten. You can bootup off a LiveCD and repair the MBR. However, there are 2 different
approaches:
Recovering GRUB after reinstalling Windows
There are also these help guides
• https://help.ubuntu.com/community/RecoveringUbuntuAfterInstallingWindow s
• https://help.ubuntu.com/community/Grub2#Reinstalling%20from%20LiveCD
Which should help with any install of Ubuntu now. For some simple cases the advice below
might help
Ubuntu 10.04 or 9.10
Sorry, definitely use this guide
• https://help.ubuntu.com/community/Grub2#Reinstalling%20from%20LiveCD
Ubuntu 9.10 & earlier
The older Grub, sometimes called Grub-legacy or perhaps Grub1 was used up until Ubuntu
9.10. The default for 9.10 was initially Grub1 but installs would drift over to Grub2 without
users really being aware of the change. With any current Ubuntu install it is wise to install, or
re-install Grub2 as shown in the link above.
If you run an older Ubuntu or had any trouble with Grub2 then Grub1 & Lilo are still available.
To fix the MBR with an older LiveCD to access a Grub command-line:
1. Boot into a LiveCD
2. Open a terminal
3. Open the GRUB Command-line utility by typing
sudo grub
4. Find where Grub is. If this gives a few different answers then you will need to find the
correct one, perhaps by trial-and-error.
find /boot/grub/stage1
5. Tell GRUB which partition to tell the MBR your Grub is on by entering
root (hdA,B)
The coordinates A,B are where 'A' is the hard-drive number, starting at 0, and 'B' is the
partition number, starting at 0. For example, if Ubuntu was installed on the second partition of
the first hard-drive, the command should be
root (hd0,1)
6. Tell GRUB which drive's MBR to fix
setup (hd0)
Replace 0 only in the extremely unlikely event that your bios does not use the first hard-drive
as the boot device. Typically Ubuntu might be on any drive but the bios will almost always go
to the first drive's MBR to find out where to find the boot-loader.
7. Leave the GRUB Command line
quit
and reboot.
Tags:
Konfigurasi Server