After the reinstall of windows grub disappeared. I think this is a big problem for all of us.
So…
Boot the livecd.
Start a terminal.
and type
sudo -i
grub
find /boot/grub/stage1 // this will print something like (hd0,1) this is the disk that you have to write next
root (hd0,1)
setup (hd0)
quit
then restart your machine and now your old grub menu should be there.
Thanks
Filed under: Linux











few additions. in case you cant get the grub to find the stage1 file:
You have to mount your root partition.
CODE:
sudo mkdir /mnt/root
sudo mount -t ext3 /dev/sda6 /mnt/root
sudo mount -t proc none /mnt/root/proc
sudo mount -o bind /dev /mnt/root/dev
sudo chroot /mnt/root /bin/bash
sudo grub
find /boot/grub/stage1 (i.e you found (hd0,5)
root (hd0,5)
setup (hd0)
**RESTORE GRUB** after windoz installation
sudo -s
mkdir /target
mount /dev/sda2 /target
mound –bind /dev /target/dev
mount –bind /proc /target/proc
mount –bind /sys /target/sys
chroot /target
grub-install /dev/sda
Thanks Adamo for the useful addition
And for joining my blog!