I managed to break grub while testing a triple boot!

Pop in the gentoo disk let it do its thing
Lets chroot into the broken ubuntu system

I did fidsk -l to find my linux root and its was hda6

mkdir /mnt/root

mount -t ext4 /dev/hda6 /mnt/root

mount -t proc none /mnt/root/proc

mount -o bind /dev /mnt/root/dev

chroot /mnt/root /bin/bash

Now lets fix grub

grub

grub>

find /boot/grub/stage1

grub>

root (hd0,5)

grub>

setup (hd0)

type quit

Now type

fdisk /dev/hda

type p and press enter

my windows partion 1 was active as it has a star
so press a key to toggle and i selected 1 which was windows partition and then press W to write then reboot!! if you press P while in fdisk this tells you which drive is which ..


 

Leave a Reply

Your email address will not be published. Required fields are marked *

Discover more from a day in the life of wayne ward....

Subscribe now to keep reading and get access to the full archive.

Continue reading