1

I installed Ubuntu 13.04 on a secondary hard drive, which has succeeded. But there is no GRUB entry for Windows 7 as an option. Boot-Repair and update-grub did not appear to help. http://paste.ubuntu.com/5667558/

I should note that I didn't realize my PC has UEFI, which I've since disabled.

I want GRUB on sdb.

JustV
  • 21

2 Answers2

1

After much reading, I figured out the problem. Turns out it had nothing to do with UEFI.

My Windows 7 drive had some RAID 0 metadata on it. My PC does NOT have a RAID array, but my OEM set it up this way for some reason. Apparently this metadata interferes with GRUB2's ability to search the drive. Therefore you have to remove the metadata.

If your PC does have a RAID array, this may not work and you may lose your data. Either backup your data or ask someone who knows more about RAIDs.

First, I backed up the metadata, so I could replace it if Windows didn't boot afterwards:

dmraid -D -r

dmraid(8) explains this more.

Then I did the following commands:

dmraid -an
dmraid -si
dmraid -E -r
update-grub

GRUB was able to see Windows after this.

JustV
  • 21
0

What about updating the Grub using command

sudo update-grub

UPDATE I tested in my Installation and it Worked. If it does not for you (as per your comment) I would suspect that your Windows boot partition got a problem. I suggest you repair your window using CD (Note that just a startup repair is enough if it fails then go to commandline from the same cd and type bootrec /fixmbr ) Then using your Ubuntu CD repair you Grub and Win7 should be there