Gentoo Forums
Gentoo Forums
Gentoo Forums
Quick Search: in
MSI Z170A Gaming Pro + UEFI dualboot, not persistent
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
machuidel
n00b
n00b


Joined: 24 Jul 2016
Posts: 7

PostPosted: Sun Jul 24, 2016 11:47 am    Post subject: MSI Z170A Gaming Pro + UEFI dualboot, not persistent Reply with quote

Several weeks ago I bought a MSI Z170A Gaming Pro motherboard (my first desktop PC having UEFI) and just tried to install Gentoo (which is nothing new for me after using it for more than 10 years). Windows and Gentoo are installed on the same disk using a GPT layout. The first partition is the EFI partition containing the boot files for Gentoo and Windows.

Now when I add Gentoo to the boot list using efibootmgr it looks like that after a reboot the motherboard is somehow removing all boot entries and resetting it to a default containing only a non-working "Windows Boot Manager" entry.
Did the same on my 2 year old laptop that also has UEFI where it works fine. There I can even edit the boot entries from inside UEFI itself (a feature I could not find inside the Z170A UEFI).

I am not using the legacy BIOS boot modus, only UEFI. I also tried disabling all fast boot options and the Windows WHQL option without any luck. I even cannot get my Windows 10 to boot anymore also after trying to fix it using the Windows 10 recovery and all the usual tricks (bcdedit, moving BCD files etc.). :(.

Anyone knows how I can prevent the motherboard from resetting the UEFI boot entries and adding the default non working "Windows Boot Manager" entry? Or better, how the get both Gentoo and Windows working on the same machine with UEFI?

I also asked this question on the MSI forum but I really need this to work as soon as possible. Hope anyone can help me.
Back to top
View user's profile Send private message
Keruskerfuerst
Advocate
Advocate


Joined: 01 Feb 2006
Posts: 2288
Location: near Augsburg, Germany

PostPosted: Sun Jul 24, 2016 12:51 pm    Post subject: Reply with quote

Can you disable secure boot key in the Bios?

You should use Grub2 for booting both OS.
Back to top
View user's profile Send private message
DONAHUE
Watchman
Watchman


Joined: 09 Dec 2006
Posts: 7552
Location: Goose Creek SC

PostPosted: Sun Jul 24, 2016 2:48 pm    Post subject: Reply with quote

need specifics, suggest gathering some tools, windows install dvd or usb, system rescue cd or usb, and rEFInd cd or usb.
https://www.microsoft.com/en-us/software-download/windows10/
https://www.system-rescue-cd.org/Download
https://www.system-rescue-cd.org/Sysresccd-manual-en_How_to_install_SystemRescueCd_on_an_USB-stick
http://sourceforge.net/projects/refind/files/0.10.3/refind-cd-0.10.3.zip/download
http://sourceforge.net/projects/refind/files/0.10.3/refind-flashdrive-0.10.3.zip/download
At any time booting the rEFInd media will find and make accessible whatever bootable options exist. Other options will include viewing the uefi choices, rebooting, rebooting to bios .
Suggest first priority is to boot the windows 10 install media and use it to restore the ability to boot windows.
https://blog.d0zingcat.xyz/2015/09/28/Windows/How%20to%20repair%20the%20EFI%20Bootloader%20in%20Windows%2010/ may help, make sure whatever guide you use is for uefi/efi.
After windows boot is repaired suggest booting the system rescue media, mounting the gentoo partitions, including the efi partition, copying the entire contents (example cp -aR /mnt/gentoo/boot//efi /mnt/getntoo/efi_copy ) of the efi partition to a safe location. Pastebin a copy of the directory structure of the efi partition ( example wgetpaste -t -c "ls -R /mnt/gentoo/boot/efi" ) Please tell what you intend to add as a gentoo boot loader to the efi partition and where you intend to add it. Guessing a copy of an efi stub kernel?
_________________
Defund the FCC.
Back to top
View user's profile Send private message
machuidel
n00b
n00b


Joined: 24 Jul 2016
Posts: 7

PostPosted: Sun Jul 24, 2016 2:54 pm    Post subject: Reply with quote

Keruskerfuerst wrote:
Can you disable secure boot key in the Bios?

You should use Grub2 for booting both OS.


When I enable "Windows 8.1/ 10 WHQL Support" I get the "Secure Boot Option" which I can either "Enable" or "Disable". But I assumed if I disable "Windows 8.1/ 10 WHQL Support", secure boot would be disabled as well.

My kernel can boot directly from EFI. The same kernel boots fine using EFI on my laptop.
Back to top
View user's profile Send private message
machuidel
n00b
n00b


Joined: 24 Jul 2016
Posts: 7

PostPosted: Sun Jul 24, 2016 2:58 pm    Post subject: Reply with quote

DONAHUE wrote:
need specifics, suggest gathering some tools, windows install dvd or usb, system rescue cd or usb, and rEFInd cd or usb.
https://www.microsoft.com/en-us/software-download/windows10/
https://www.system-rescue-cd.org/Download
https://www.system-rescue-cd.org/Sysresccd-manual-en_How_to_install_SystemRescueCd_on_an_USB-stick
http://sourceforge.net/projects/refind/files/0.10.3/refind-cd-0.10.3.zip/download
http://sourceforge.net/projects/refind/files/0.10.3/refind-flashdrive-0.10.3.zip/download
At any time booting the rEFInd media will find and make accessible whatever bootable options exist. Other options will include viewing the uefi choices, rebooting, rebooting to bios .
Suggest first priority is to boot the windows 10 install media and use it to restore the ability to boot windows.
https://blog.d0zingcat.xyz/2015/09/28/Windows/How%20to%20repair%20the%20EFI%20Bootloader%20in%20Windows%2010/ may help, make sure whatever guide you use is for uefi/efi.
After windows boot is repaired suggest booting the system rescue media, mounting the gentoo partitions, including the efi partition, copying the entire contents (example cp -aR /mnt/gentoo/boot//efi /mnt/getntoo/efi_copy ) of the efi partition to a safe location. Pastebin a copy of the directory structure of the efi partition ( example wgetpaste -t -c "ls -R /mnt/gentoo/boot/efi" ) Please tell what you intend to add as a gentoo boot loader to the efi partition and where you intend to add it. Guessing a copy of an efi stub kernel?


Yes, an EFI stub kernel which boots fine on my laptop. I read about reFind but the issue is that my motherboard is removing / resetting all EFI boot entries and adding a default "Windows Boot Loader" entry when I reboot my computer after using efibootmgr.
Back to top
View user's profile Send private message
DONAHUE
Watchman
Watchman


Joined: 09 Dec 2006
Posts: 7552
Location: Goose Creek SC

PostPosted: Sun Jul 24, 2016 3:57 pm    Post subject: Reply with quote

the rEFInd cd/usb is self supporting containing its own ESP so the only commonality is the uefi flash on the motherboard.
If you have a bootable efi stub named vmlinuz and a bootable windows it will find and allow you to boot them.
Are you able to boot windows now?
_________________
Defund the FCC.
Back to top
View user's profile Send private message
machuidel
n00b
n00b


Joined: 24 Jul 2016
Posts: 7

PostPosted: Mon Jul 25, 2016 1:24 am    Post subject: Reply with quote

DONAHUE wrote:
the rEFInd cd/usb is self supporting containing its own ESP so the only commonality is the uefi flash on the motherboard.
If you have a bootable efi stub named vmlinuz and a bootable windows it will find and allow you to boot them.
Are you able to boot windows now?


I got it to work by just reinstalling Windows (repair and all the usual bootloader fixes did not work). After this I was able to add a Gentoo boot entry pointing to the EFI stub kernel using efibootmgr which was still there after the reboot. Gentoo now boots without a problem.
Back to top
View user's profile Send private message
Vojvod
n00b
n00b


Joined: 04 Aug 2016
Posts: 1

PostPosted: Thu Aug 04, 2016 9:32 am    Post subject: Reply with quote

Any chance you could post a link to the MSI forum thread? I have a similar problem and am at the point of reinstalling but it would be good to know if there's a better way for future reference.
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