Penguin Guy
April 5th, 2010, 04:26 PM
I upgraded Grub Legacy to Grub2 and it was giving me an error 15 when I booted. I finally found out that for some reason grub2 wasn't properly installed. Here's how you install it if you can't gain access to the system. If you can gain access to the system, skip to step 3.
Boot into the live CD
Chroot into the real system
Find which partition the real system is installed on with sudo fdisk -l
Make a directory to mount it at with sudo mkdir -p /mnt/computer
Change to that directory with cd /mnt/computer/
Mount it with sudo mount /dev/sd?? /mnt/computer/
Link /dev/ and /proc/ with sudo mount -B /dev/ /mnt/computer/dev/ & sudo mount -B /proc/ /mnt/computer/proc/
Change root with sudo chroot /mnt/computer/
Make sure grub2 is up-to-date with update-grub2
Install grub2 to the MBR on one of your drives with grub-install /dev/sd? (if you only have one, it'll be /dev/sda)
Boot into the live CD
Chroot into the real system
Find which partition the real system is installed on with sudo fdisk -l
Make a directory to mount it at with sudo mkdir -p /mnt/computer
Change to that directory with cd /mnt/computer/
Mount it with sudo mount /dev/sd?? /mnt/computer/
Link /dev/ and /proc/ with sudo mount -B /dev/ /mnt/computer/dev/ & sudo mount -B /proc/ /mnt/computer/proc/
Change root with sudo chroot /mnt/computer/
Make sure grub2 is up-to-date with update-grub2
Install grub2 to the MBR on one of your drives with grub-install /dev/sd? (if you only have one, it'll be /dev/sda)