Quote:
Originally Posted by tejas81
To make it a *permanent* change:
This needs to be part of the relevant entry in /boot/grub/grub.cfg, so I took a look at the shell script that adds it: namely /etc/grub.d/30_os-prober
Sure enough, this script does not add the line for Windows Vista/7 bootloaders, but adds it for everything else. In my case XP needed it, so I modified the script to output this line for every OS. Then ran "sudo update-grub2" to add this line to grub.cfg
And it worked.
|
I think I have a fix: First use the Windows 7 DVD to restore the Windows bootloader to the MBR:
then
Then reinstall grub2 to a partition other than the one windows 7 is installed on. I haven't figured out how to do this yet.
Finally, add the line
Code:
drivemap -s hd0 hd1
under the line "root (hd1,..)" in grub.conf (either manually which is not recommended, but I did it anyway, or by the method that tejas81 used)
Reboot and hopefully you should be able to boot into Windows 7 again! Good luck