Gentoo Forums
Gentoo Forums
Gentoo Forums
Quick Search: in
Can't get Window 7 to boot with grub2
View unanswered posts
View posts from last 24 hours

 
Reply to topic    Gentoo Forums Forum Index Installing Gentoo
View previous topic :: View next topic  
Author Message
andrewwalker27
l33t
l33t


Joined: 27 Jun 2005
Posts: 660

PostPosted: Thu Mar 01, 2018 12:25 am    Post subject: Can't get Window 7 to boot with grub2 Reply with quote

I'm having trouble getting Windows 7working with grub 2. I originally had Gentoo on a removable hard drive and Windows 7 on another and just swapped them out when it suited. I did this mostly because I didn't want Windows to nuke linux and grub but now I want them to be selectable through grub2.
My system is set up as follows, Gentoo on sda and Windows 7 on sde and a unused old Windows 10 partition on sdb. It seems grub2 seems to find them both
Code:
localhost /home/fred # os-prober --target=fs_uuid /mnt/windows7/bootmgr
  WARNING: Failed to connect to lvmetad. Falling back to device scanning.
/dev/sdb1:Windows 10:Windows:chain
/dev/sde1:Windows 7:Windows1:chain
localhost /home/fred #

and when I update grub they both seem to setup ok. Ignore the Windows 10 partition, it's redundant and going to be reformatted.
Code:
localhost /home/fred # os-prober --target=fs_uuid /mnt/windows7/bootmgr
  WARNING: Failed to connect to lvmetad. Falling back to device scanning.
/dev/sdb1:Windows 10:Windows:chain
/dev/sde1:Windows 7:Windows1:chain
localhost /home/fred #

I'm assuming the WARNING isn't anything to worry about.
When I try to start Windows 7 I get an error, something about a missing bootmgr but if I boot into Windows 7 directly from BIOS using F8 it works perfectly. Annoyingly the redundant Windows 10 partion boots correctly, I've looked at this guide here https://wiki.gentoo.org/wiki/GRUB2/Chainloading and saw the bit at the end marked important about bootmgr but don't quite understand how to fix it. Do I need to boot of my Windows 7 cd and fix it and is that likely to then murder my grub setup? Surely if this was the issue, Windows 7 wouldn't boot through the F8 method?
I've also tried editing /etc/grub.d/40_custom but get the same error.
I'm using an old motherboard pre-UFEI and grub-2.02 if that helps.
Back to top
View user's profile Send private message
audiodef
Watchman
Watchman


Joined: 06 Jul 2005
Posts: 6639
Location: The soundosphere

PostPosted: Thu Mar 01, 2018 3:38 pm    Post subject: Reply with quote

It's ok to murder your grub setup. Go ahead and fix Windows, then grab your favorite boot medium - sysresccd, livecd, whatever - chroot into your Gentoo system and run grub-install and grub-mkconfig.

I've had to do this now and then. It's annoying, but not hard to fix.
_________________
decibel Linux: https://decibellinux.org
Github: https://github.com/Gentoo-Music-and-Audio-Technology
Facebook: https://www.facebook.com/decibellinux
Discord: https://discord.gg/73XV24dNPN
Back to top
View user's profile Send private message
Display posts from previous:   
Reply to topic    Gentoo Forums Forum Index Installing Gentoo All times are GMT
Page 1 of 1

 
Jump to:  
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum