View Full Version : Add Windows 7 to Grub2 bootloader without modifying windows bootloader

July 17th, 2013, 09:13 AM
Hello. I have a two hard drive system that I've had difficulty setting up with Ubuntu 12.04 and Win7. I had originally installed Ubuntu on my larger 1TB hard drive through a USB connection, then switched it to the first Sata port on my system, and now have the main hard drive in the 2nd Sata port. As such, the hard drive with the Ubuntu install is designated sda, and the one with Win7 is now sdb (with the windows boot files on sdb1). So far I've succeeded in getting both systems to boot up on completely separate bootloaders, with no errors. With the Win7 hard drive in Sata1, and the Ubuntu drive in USB, if I used the automaic boot repair option in Ubuntu, it would go the extra mile of combining the boot options (and modifying the Windows boot partition in the process), which was what I wanted since I could boot either Ubuntu or Windows from one menu. However, doing that innevitably gave me erros with resuming Windows from hibernation, which I can't work with, After much experimenting, it seems any modification of the Windows boot partition will result in such errors. I need to be able to boot Win7 from grub without modifying its boot partition at all. Again, the current (and hopefully permanent) setup is the Win7 SSD on the 2nd Sata port with the boot partition as sdb1, and Ubuntu on the first Sata port HDD. Thank you for your help!

Mark Phelps
July 17th, 2013, 01:30 PM
I do this all the time -- as I don't like messing around with the Windows boot loader ...

Do the following:
1) Set your machine to boot from the Ubuntu drive by default
2) Once booted into Ubuntu, open a terminal and enter "sudo update-grub". This will regenerate the GRUB config files and add an entry for the Windows 7 Loader.
3) When you then reboot, you should be presented with a GRUB menu with entries for Ubuntu and for Windows.

July 17th, 2013, 04:41 PM
Hibernation can always create issues. If booting with a SSD hibernation should not be saving all that much time.

this standard list of links is for Windows 8 as it always uses hibernation of one sort or the other.
WARNING for Windows 8 Dual-Booters
It defaults shutdown to a hybrid hibernation/off state for fast boot
But then files may be corrupted similar to Windows 7 Hibernation:
Fast Startup off/hibernation
Force removal of hiberfil from Ubuntu