Tags
To update your grub boot loader just follow the steps below.
- Boot your ubuntu from live cd, mount drive where ubuntu were installed then open terminal from applications->accessories->terminal. Type
grub-install -v. This will prompt your installed grub version. mount | tail -1verify that you mount the correct drive. If it’s ok then following output will be shown/dev/sda2 on /media/0d104aff-ec8c-44c8-b811-92b993823444 type ext4 (rw,nosuid,nodev,uhelper=devkit)- To make sure this is indeed the Ubuntu boot partition, run
ls /media/0d104aff-ec8c-44c8-b811-92b993823444/boot - In either case, the output should be something like this:
config-2.6.18-3-686 initrd.img-2.6.18-3-686.bak System.map-2.6.18-3-686
grub lost+found vmlinuz-2.6.18-3-686
initrd.img-2.6.18-3-686 memtest86+.bin - Now that everything is mounted, we just need to reinstall GRUB by specifying the correct directory and the correct drive name: sudo grub-install –root-directory=/media/0d104aff-ec8c-44c8-b811-92b993823444 /dev/sda
- If all went well, you should see something like this:
Installation finished. No error reported.(hd0) /dev/sda
This is the contents of the device map /boot/grub/device.map.
Check if this is correct or not. If any of the lines is incorrect,
fix it and re-run the script `grub-install'. - Reboot, making sure to boot to your hard drive and not to the live CD. Grub should be installed and both Ubuntu and Windows should have been automatically detected and listed in the menu.The Master Boot Record will execute Grub as the initial boot-loader. The Windows boot-loader is contained within the Windows partition and will then be chainloaded by the Grub boot-loader.
Enjoy!
Advertisement