Wednesday, August 18, 2010

Fixing a hosed GRUB

Full details (and years of old fixes) at: http://ubuntuforums.org/archive/index.php/t-24113.html

Ubuntu Karmic:

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

type:

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
reboot
:D

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

0 Comments:

Post a Comment

<< Home