PDA

View Full Version : F24 onwards GRUB workaround for Windows black screen dual-boot issue (UEFI)



antikythera
10th October 2016, 02:17 PM
Symptoms of issue this addresses:
1. Install Fedora 24 onwards
2. Reboot the PC to access windows at some point
3. Select Windows from the GRUB menu
4. Press Enter/Return to load it
5. Sit there staring at a black screen wondering why it's suddenly broken
6. Swear under breath and reach for reset button
7. Search the internet for a solution and hopefully find this guide

Workaround? Rolling back to the Fedora 23 build of grub2, grub2-efi, grub2-tools seems to be the only answer even though they've had the best part of 6 months to fix this already.

NB - If you think all the following steps are too much for you there is an alternative. press c to switch grub to the command prompt and then type exit. press enter/return and windows will boot

Open a terminal and carry out the following steps:

get root rights (enter the root password when prompted)

su -

create a new directory for the downloads required for the downgrade

mkdir downgrade_grub

change to that directory

cd downgrade_grub

install wget if not already present on your system

dnf install wget

set the download source for the packages

GRUBSOURCE=https://kojipkgs.fedoraproject.org//packages/grub2/2.02/0.24.fc23/x86_64

download the downgrade packages

wget $GRUBSOURCE/grub2-efi-2.02-0.24.fc23.x86_64.rpm
wget $GRUBSOURCE/grub2-tools-2.02-0.24.fc23.x86_64.rpm
wget $GRUBSOURCE/grub2-2.02-0.24.fc23.x86_64.rpm


apply the downgrade

dnf downgrade *.rpm

That should fix it

The next step to prevent those files being overwritten and GRUB broken again is to exclude them from dnf update checks.

using your preferred text editor (run with root or sudo rights) add the following line to the end of this file: etc/dnf/dnf.conf


exclude=grub2 grub2-efi grub2-tools

if you installed and use yum-deprecated/yumex (http://forums.fedoraforum.org/showthread.php?t=311743) then make the same addition to etc/yum.conf as well. save the changes and you are done.

nonamedotc
10th October 2016, 10:43 PM
Stuck and closed.

antikythera
14th December 2016, 06:16 PM
A newer build of GRUB2 has been released that is supposed to address memory allocation errors or missing image errors with W10 chainloader entries in GRUB. This may also fix the blank screen problem. I am unable to test for it at present due to not being at home.

To try it, remove the exclude entries from dnf.conf and/or yum.conf. then check for updates again.

If problems still persist (or return after the next major kernel update from 4.8.XXX to 4.9.XXX) you can always rollback to the suggested build as per the above instructions and block further updates yet again.