, 1 min read
Re-installing Grub when MS Windows Destroyed It
Original post is here eklausmeier.goip.de/blog/2013/09-29-re-installing-grub-when-ms-windows-destroyed-it.
I have now done it a couple of times, but always have to look it up. Here are the steps to re-install Grub from a live Ubuntu CD, when you have Windows and Linux on your hard disk. You must be root, or run these commands with sudo. Change /dev/sdaXY accordingly.
mount /dev/sda2 /mntmount /dev/sda3 /mnt/boot, if you have a separate boot partitionmount -o bind /dev /mnt/devmount -o bind /sys /mnt/sysmount -t proc /proc /mnt/procchroot /mnt /bin/bashgrub-install /dev/sda
Above commands are from method 3 in GRUB (in German).