Wednesday, August 18, 2010

Fixing a hosed GRUB

Full details (and years of old fixes) at:

Ubuntu Karmic:

make changes to partitions locations below
boot from cd/usb/network/yomomma
open terminal


sudo mkdir /mnt/fixboot
sudo mount -t ext4 /dev/sda5 /mnt/fixboot
sudo mount -t proc non /mnt/fixboot/proc
sudo mount -o bind /dev /mnt/fixboot/dev
sudo chroot /mnt/fixboot /bin/bash
sudo grub-install /dev/sda
sudo update-grub
sudo umount /mnt/fixboot/dev
sudo umount /mnt/fixboot/proc
sudo umount /mnt/fixboot

The first time around, it didn't find Windows, but after booting Ubuntu, ran update-grub, and it picked it up fine.


Post a Comment

<< Home