Pages

Friday, January 28, 2011

Vision

Vision


Reinstall GRUB using Ubuntu 9.10 livecd or higher

Posted: 27 Jan 2011 10:18 PM PST

Here assuming the Ubuntu partition is sda7,and /boot partition is sda6 (if you have a separate /boot partition).
Boot up ubuntu from the livecd,open terminal and run:

sudo -i mount /dev/sda7 /mnt mount /dev/sda6 /mnt/boot  #skip this one if not have a separate /boot partition grub-install --root-directory=/mnt/ /dev/sda


If you miss "grub.cfg" file,use following to recreate:

mount --bind /proc /mnt/proc mount --bind /dev /mnt/dev mount --bind /sys /mnt/sys chroot /mnt update-grub umount /mnt/sys umount /mnt/dev umount /mnt/proc exit