Recover Grub2 for Ubuntu Karmic
--------------------------------
1. mount the harddisk consist of Ubuntu Karmic by clicking "Places -> XXGB File System"
2. open terminal and do a tail
mount | tail -1
3. You should see something similar
/dev/sda2 on /media/0d104aff-ec8c-44c8-b811-92b993823444 type ext4 (rw,nosuid,nodev,uhelper=devkit)
4. Check the boot partition by
ls /media/0d104aff-ec8c-44c8-b811-92b993823444/boot
You should see something similar
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
If this is wrong, then your partition is wrong.
5. Now everything is correct and is time to recover. Run the following to install GRUB into the correct directory and drive name.
sudo grub-install --root-directory=/media/0d104aff-ec8c-44c8-b811-92b993823444 /dev/sda
If you get BIOS warnings try:
sudo grub-install --root-directory=/media/0d104aff-ec8c-44c8-b811-92b993823444 /dev/sda --recheck
6. If all goes well, you should see the following.
Installation finished. No error reported.
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'.
(hd0) /dev/sda
More information from below:
https://help.ubuntu.com/community/RecoveringUbuntuAfterInstallingWindows
Recover Boot Loader for Mac OS
--------------------------------
Give up. After googling for sometime, I cannot find any solution, might as well reinstall, since i have reinstall from the B-Node problem. Time is important now as I am rushing to complete my development.

No comments:
Post a Comment