To repair windows bootloader ...
- remove the HDD which has LL installed on it
- insert Win7 installation DVD & then boot from it
- choose option "repair your computer" (it searches for Windows installation)
- select OS to repair
- next go to the Windows command prompt, you should then see the prompt:
after the prompt type:
then the prompt will appear again, this time type:
- press shutdown
- then boot up Windows (make sure you don't boot into the Win7 DVD)
You will now no longer have the grubscreen (as grub partition gone), but your windows bootloader is fixed & restored.
- turn off computer & put your LL HDD back in the machine.
You will now need to reinstall GRUB 2, deleting any old or corrupted files in the process:
- insert your LL installation DVD & boot into LL from it (i.e. LL in the live environment)
For arguments sake, lets assume LL's root is installed on the partition /dev/sdb1, and Windows OS installed on the HDD designated /dev/sda (if you don't know or are unsure of the /dev/sdx designation of either Windows or LL, check it using gparted from your LL DVD to check - just type gparted into LL's menu search box):
So using terminal from your Live DVD, type:
Code:
sudo mount /dev/sdb1 /mnt
sudo grub-install --boot-directory=/mnt/boot /dev/sda
Reboot, select LL boot option from your PC's Settings.
When in LL update the grub (so it finds Windows OS), by typing following in terminal:
When you reboot you should then see both Windows & LL listed on the grubscreen.
Hope this helps - this has happened to me before with LL/Win7 dual-boots!
Have a good day
Mike