Yes, installing windows will install its bootloader on the MBR of the disk wiping grub2.
But your ubuntu is still there and reinstalling grub2 to the MBR is very easy using the ubuntu cd in live mode.
Basically, right now, before reinstalling windows, make sure to note down your / partition. You can see them mounted with:
In the list that shows, lets assume your / is /dev/sda5.
After windows is installed and grub2 is gone, all you need to do is boot with the same version of ubuntu cd into live mode, open terminal and run:
Code:
sudo mount /dev/sda5 /mnt
sudo grub-install --root-directory=/mnt /dev/sda
If your / is not /dev/sda5 (partition #5), just modify the first command and that's it. In the second command it stays '/dev/sda' without any number because that's the destination where you want grub2 installed which is the MBR of the disk.
Bookmarks