Browny's Grotto :: http://www.clan-elite.info/

Repair GRUB after installing Windows

1 pages: [ 1 ] [ View newest post ] Post reply.
Use the following method if you have recently needed to reinstall your Windows partition on a dual-boot Ubuntu/Windows setup. (Note: These instructions are not limited to Ubuntu only. Most any flavour of Linux and dual/multi-boot configuration can be repaired with few or no tweaks to the procedure.)

1. Boot from a recent Ubuntu installation CD (or Live CD.) Choose to "Try Ubuntu" without installing it from the boot menu.

2. Open a terminal.

3. Determine where your Ubuntu partition is using fdisk:
Bash Script:
sudo fdisk -l
It's probably the first partition with a "System" of type "Linux." In this example I will use /dev/sda6 as the Ubuntu partition, where /dev/sda is the hard-disk that contains your dual/multi-boot setup.

4. Mount it:
Bash Script:
sudo mkdir -p /media/ubuntu
sudo mount /dev/sda6 /media/ubuntu

5. Run grub-install with the root-directory option set:
Bash Script:
sudo grub-install --root-directory=/media/ubuntu /dev/sda

Reboot and you're done.
1 pages: [ 1 ] [ View newest post ] Post reply.