Thursday, May 2, 2024
 Popular · Latest · Hot · Upcoming
1
rated 0 times [  1] [ 0]  / answers: 1 / hits: 5855  / 2 Years ago, tue, december 14, 2021, 8:55:58

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.


More From » grub2

 Answers
6

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.


[#31189] Wednesday, December 15, 2021, 2 Years  [reply] [flag answer]
Only authorized users can answer the question. Please sign in first, or register a free account.
howesale

Total Points: 224
Total Questions: 117
Total Answers: 116

Location: Nauru
Member since Thu, May 18, 2023
1 Year ago
;