grub2 – Ubuntu 20.04 boots to black screen unless I boot windows first (Dual Boot)

When I turn on my computer, it shows the GRUB screen just fine, but if I select the Ubuntu option, it takes me to a black screen. However, if I boot to windows first and then restart (not shut down and then turn back down) my computer and then select Ubuntu from the GRUB menu, it boots just fine.

So at first I assumed it was a graphics card issue because I have an NVIDIA graphics card and it seems that many other people have had issues with them. However, the issue persists even after installing the NVIDIA drivers with sudo apt install nvidia-driver-460

Next, I found this ask ubuntu thread that seems to have the exact same issue as me. However, the provided solution of adding grub_gfxpayload_linux=keep to /etc/default/grub did not seem to work for either me or the OP of that thread.

I would also like to say that I have secure boot and fast boot off. Below is my boot-repair paste. I wasn’t sure about how to embed it.

boot-repair-4ppa129 (20210404_1430)

============================== Boot Info Summary ===============================

=> Windows 7/8/2012 is installed in the MBR of /dev/sda.
=> No boot loader is installed in the MBR of /dev/sdb.
=> No boot loader is installed in the MBR of /dev/sdc.

sda1: __________________________________________________________________________

File system:       ntfs
Boot sector type:  Windows 8/2012: NTFS
Boot sector info:  No errors found in the Boot Parameter Block.
Operating System:  
Boot files:        

sda2: __________________________________________________________________________

File system:       vfat
Boot sector type:  Windows 8/2012: FAT32
Boot sector info:  No errors found in the Boot Parameter Block.
Operating System:  
Boot files:        /efi/Boot/bootx64.efi /efi/Boot/fbx64.efi 
                   /efi/Boot/mmx64.efi /efi/ubuntu/grubx64.efi 
                   /efi/ubuntu/mmx64.efi /efi/ubuntu/shimx64.efi 
                   /efi/ubuntu/grub.cfg /efi/Microsoft/Boot/bootmgfw.efi 
                   /efi/Microsoft/Boot/bootmgr.efi 
                   /efi/Microsoft/Boot/memtest.efi

sda3: __________________________________________________________________________

File system:       
Boot sector type:  -
Boot sector info: 

sda4: __________________________________________________________________________

File system:       ntfs
Boot sector type:  Windows 8/2012: NTFS
Boot sector info:  No errors found in the Boot Parameter Block.
Operating System:  Windows 10
Boot files:        /Windows/System32/winload.exe

sdb1: __________________________________________________________________________

File system:       vfat
Boot sector type:  FAT32
Boot sector info:  No errors found in the Boot Parameter Block.
Operating System:  
Boot files:        /efi/BOOT/bkpbootx64.efi /efi/BOOT/bootx64.efi 
                   /efi/BOOT/fbx64.efi /efi/BOOT/grubx64.efi 
                   /efi/BOOT/mmx64.efi /efi/ubuntu/grubx64.efi 
                   /efi/ubuntu/mmx64.efi /efi/ubuntu/shimx64.efi 
                   /efi/ubuntu/grub.cfg

sdb2: __________________________________________________________________________

File system:       ext4
Boot sector type:  -
Boot sector info: 
Operating System:  Ubuntu 20.04.2 LTS
Boot files:        /boot/grub/grub.cfg /etc/fstab /etc/default/grub

sdc1: __________________________________________________________________________

File system:       ntfs
Boot sector type:  Windows 8/2012: NTFS
Boot sector info:  No errors found in the Boot Parameter Block.
Operating System:  
Boot files:        

sdc2: __________________________________________________________________________

File system:       ext4
Boot sector type:  -
Boot sector info: 
Operating System:  
Boot files:        

================================ 2 OS detected =================================

OS#1: The OS now in use – Ubuntu 20.04.2 LTS CurrentSession on sdb2
OS#2: Windows 10 on sda4

============================ Architecture/Host Info ============================

CPU architecture: 64-bit
BOOT_IMAGE of the installed session in use:
/boot/vmlinuz-5.8.0-48-generic root=UUID=758362c1-dca1-4557-bf09-8d2e4b8c8aa5 ro quiet splash vt.handoff=7

===================================== UEFI =====================================

BIOS is EFI-compatible, and is setup in EFI-mode for this installed-session.
SecureBoot disabled.

efibootmgr -v
BootCurrent: 0002
Timeout: 1 seconds
BootOrder: 0002,0000
Boot0000* Windows Boot Manager HD(2,GPT,21a42f50-895b-462b-b48e-8e679bfde3a7,0x109000,0x31800)/File(EFIMicrosoftBootbootmgfw.efi)WINDOWS………x…B.C.D.O.B.J.E.C.T.=.{.9.d.e.a.8.6.2.c.-.5.c.d.d.-.4.e.7.0.-.a.c.c.1.-.f.3.2.b.3.4.4.d.4.7.9.5.}…o…………….
Boot0002* ubuntu HD(1,GPT,1f0771f1-374f-48f1-904e-1c279de97af0,0x800,0x100000)/File(EFIubuntushimx64.efi)

78415fb8fb9b909f8029858113f1335f sda2/Boot/bootx64.efi
2895d47544fd587b26c7e29be1295c27 sda2/Boot/fbx64.efi
dc3c47be2f78a78e5e57d097ae6c5c84 sda2/Boot/mmx64.efi
957dc7e5f72c1d7393bf7850df5db2db sda2/ubuntu/grubx64.efi
dc3c47be2f78a78e5e57d097ae6c5c84 sda2/ubuntu/mmx64.efi
78415fb8fb9b909f8029858113f1335f sda2/ubuntu/shimx64.efi
401b8301fc0b55344e4456e9ccb987b8 sda2/Microsoft/Boot/bootmgfw.efi
3dcd198d5ad5d2f51814dcf0d5005d59 sda2/Microsoft/Boot/bootmgr.efi
78415fb8fb9b909f8029858113f1335f sdb1/BOOT/bkpbootx64.efi
78415fb8fb9b909f8029858113f1335f sdb1/BOOT/bootx64.efi
2895d47544fd587b26c7e29be1295c27 sdb1/BOOT/fbx64.efi
957dc7e5f72c1d7393bf7850df5db2db sdb1/BOOT/grubx64.efi
dc3c47be2f78a78e5e57d097ae6c5c84 sdb1/BOOT/mmx64.efi
957dc7e5f72c1d7393bf7850df5db2db sdb1/ubuntu/grubx64.efi
dc3c47be2f78a78e5e57d097ae6c5c84 sdb1/ubuntu/mmx64.efi
78415fb8fb9b909f8029858113f1335f sdb1/ubuntu/shimx64.efi

============================= Drive/Partition Info =============================

Disks info: ____________________________________________________________________

sdb : is-GPT, no-BIOSboot, has—ESP, not-usb, not-mmc, has-os, 2048 sectors * 512 bytes
sda : is-GPT, no-BIOSboot, has—ESP, not-usb, not-mmc, has-os, 2048 sectors * 512 bytes
sdc : is-GPT, no-BIOSboot, has-noESP, not-usb, not-mmc, no-os, 2048 sectors * 512 bytes

Partitions info (1/3): _________________________________________________________

sdb2 : is-os, 64, apt-get, signed grub-pc grub-efi , grub2, grub-install, grubenv-ok, update-grub, farbios
sda1 : no-os, 32, nopakmgr, no-docgrub, nogrub, nogrubinstall, no-grubenv, noupdategrub, not-far
sda2 : no-os, 32, nopakmgr, no-docgrub, nogrub, nogrubinstall, no-grubenv, noupdategrub, not-far
sda4 : is-os, 32, nopakmgr, no-docgrub, nogrub, nogrubinstall, no-grubenv, noupdategrub, farbios
sdc1 : no-os, 32, nopakmgr, no-docgrub, nogrub, nogrubinstall, no-grubenv, noupdategrub, farbios
sdc2 : no-os, 32, nopakmgr, no-docgrub, nogrub, nogrubinstall, no-grubenv, noupdategrub, farbios
sdb1 : no-os, 32, nopakmgr, no-docgrub, nogrub, nogrubinstall, no-grubenv, noupdategrub, not-far

Partitions info (2/3): _________________________________________________________

sdb2 : isnotESP, fstab-has-goodEFI, no-nt, no-winload, no-recov-nor-hid, no-bmgr, notwinboot
sda1 : isnotESP, part-has-no-fstab, no-nt, no-winload, recovery-or-hidden, no-bmgr, notwinboot
sda2 : is—ESP, part-has-no-fstab, no-nt, no-winload, no-recov-nor-hid, no-bmgr, notwinboot
sda4 : isnotESP, part-has-no-fstab, no-nt, haswinload, no-recov-nor-hid, no-bmgr, notwinboot
sdc1 : isnotESP, part-has-no-fstab, no-nt, no-winload, no-recov-nor-hid, no-bmgr, notwinboot
sdc2 : isnotESP, part-has-no-fstab, no-nt, no-winload, no-recov-nor-hid, no-bmgr, notwinboot
sdb1 : is—ESP, part-has-no-fstab, no-nt, no-winload, no-recov-nor-hid, no-bmgr, notwinboot

Partitions info (3/3): _________________________________________________________

sdb2 : not-sepboot, with-boot, fstab-without-boot, not-sep-usr, with–usr, fstab-without-usr, std-grub.d, sdb
sda1 : not-sepboot, no-boot, part-has-no-fstab, not-sep-usr, no—usr, part-has-no-fstab, std-grub.d, sda
sda2 : not-sepboot, no-boot, part-has-no-fstab, not-sep-usr, no—usr, part-has-no-fstab, std-grub.d, sda
sda4 : not-sepboot, no-boot, part-has-no-fstab, not-sep-usr, no—usr, part-has-no-fstab, std-grub.d, sda
sdc1 : not-sepboot, no-boot, part-has-no-fstab, not-sep-usr, no—usr, part-has-no-fstab, std-grub.d, sdc
sdc2 : maybesepboot, no-boot, part-has-no-fstab, not-sep-usr, no—usr, part-has-no-fstab, std-grub.d, sdc
sdb1 : not-sepboot, no-boot, part-has-no-fstab, not-sep-usr, no—usr, part-has-no-fstab, std-grub.d, sdb

fdisk -l (filtered): ___________________________________________________________

Disk sda: 931.53 GiB, 1000204886016 bytes, 1953525168 sectors
Disk identifier: 87F5561C-A163-4E39-91FE-D9ADF72E5A32
Start End Sectors Size Type
sda1 2048 1085439 1083392 529M Windows recovery environment
sda2 1085440 1288191 202752 99M EFI System
sda3 1288192 1320959 32768 16M Microsoft reserved
sda4 1320960 1953521663 1952200704 930.9G Microsoft basic data
Disk sdc: 931.53 GiB, 1000204886016 bytes, 1953525168 sectors
Disk identifier: 8B6F9E34-E836-4766-9717-0ED6C635B574
Start End Sectors Size Type
sdc1 2048 1134323711 1134321664 540.9G Microsoft basic data
sdc2 1134323712 1953523711 819200000 390.6G Linux filesystem
Disk sdb: 111.81 GiB, 120034123776 bytes, 234441648 sectors
Disk identifier: F5129F3F-D4D1-4560-B8CF-388BD1FC6560
Start End Sectors Size Type
sdb1 2048 1050623 1048576 512M EFI System
sdb2 1050624 234440703 233390080 111.3G Linux filesystem

parted -lm (filtered): _________________________________________________________

sda:1000GB:scsi:512:512:gpt:ATA CT1000MX500SSD1:;
1:1049kB:556MB:555MB:ntfs:Basic data partition:hidden, diag;
2:556MB:660MB:104MB:fat32:EFI system partition:boot, esp;
3:660MB:676MB:16.8MB::Microsoft reserved partition:msftres;
4:676MB:1000GB:1000GB:ntfs:Basic data partition:msftdata;
sdb:120GB:scsi:512:512:gpt:ATA KINGSTON SA400S3:;
1:1049kB:538MB:537MB:fat32:EFI System Partition:boot, esp;
2:538MB:120GB:119GB:ext4::;
sdc:1000GB:scsi:512:4096:gpt:ATA ST1000DM003-1ER1:;
1:1049kB:581GB:581GB:ntfs:Basic data partition:msftdata;
2:581GB:1000GB:419GB:ext4::;

blkid (filtered): ______________________________________________________________

NAME FSTYPE UUID PARTUUID LABEL PARTLABEL
sda
├─sda1 ntfs C88CE6338CE61C26 f8f5ee69-51bf-4559-ac19-17af6801a2b8 Basic data partition
├─sda2 vfat 344E-27CE 21a42f50-895b-462b-b48e-8e679bfde3a7 EFI system partition
├─sda3 5b257fd2-dc49-4b09-baa9-d85d80a460f0 Microsoft reserved partition
└─sda4 ntfs 1E784F0E784EE3DD 284db4b6-cbc1-4f47-bc33-3e2cac7ccb99 Great White Basic data partition
sdb
├─sdb1 vfat 5A4A-17B3 1f0771f1-374f-48f1-904e-1c279de97af0 EFI System Partition
└─sdb2 ext4 758362c1-dca1-4557-bf09-8d2e4b8c8aa5 2f4d37e6-f8f8-4295-a5d5-0f6142f069ec
sdc
├─sdc1 ntfs 705ACD295ACCED42 68e30583-225c-42a4-b590-bcc4af0aa1dd Blue Whale Basic data partition
└─sdc2 ext4 f59ea481-de5f-440e-af0b-98954a7dcd72 51d33c46-6cb4-4b67-8d40-cb73b19dbbc9 Dolphin

df (filtered): _________________________________________________________________

               Avail Use% Mounted on

sda1 90.7M 83% /mnt/boot-sav/sda1
sda4 471.3G 49% /mnt/boot-sav/sda4
sdb1 500.3M 2% /mnt/boot-sav/sdb1
sdb2 10G 86% /
sdc1 190G 65% /mnt/boot-sav/sdc1
sdc2 244.6G 31% /mnt/boot-sav/sdc2

Mount options: __________________________________________________________________

sda1 rw,relatime,user_id=0,group_id=0,allow_other,blksize=4096
sda4 rw,relatime,user_id=0,group_id=0,allow_other,blksize=4096
sdb1 rw,relatime,fmask=0022,dmask=0022,codepage=437,iocharset=iso8859-1,shortname=mixed,errors=remount-ro
sdb2 rw,relatime,errors=remount-ro
sdc1 rw,relatime,user_id=0,group_id=0,allow_other,blksize=4096
sdc2 rw,relatime

===================== sda2/efi/ubuntu/grub.cfg (filtered) ======================

search.fs_uuid 758362c1-dca1-4557-bf09-8d2e4b8c8aa5 root hd1,gpt2
set prefix=($root)’/boot/grub’
configfile $prefix/grub.cfg

===================== sdb1/efi/ubuntu/grub.cfg (filtered) ======================

search.fs_uuid 758362c1-dca1-4557-bf09-8d2e4b8c8aa5 root hd1,gpt2
set prefix=($root)’/boot/grub’
configfile $prefix/grub.cfg

====================== sdb2/boot/grub/grub.cfg (filtered) ======================

Ubuntu 758362c1-dca1-4557-bf09-8d2e4b8c8aa5
Ubuntu, with Linux 5.8.0-48-generic 758362c1-dca1-4557-bf09-8d2e4b8c8aa5
Ubuntu, with Linux 5.8.0-43-generic 758362c1-dca1-4557-bf09-8d2e4b8c8aa5
Windows Boot Manager (on sda2) osprober-efi-344E-27CE

END /etc/grub.d/30_os-prober

UEFI Firmware Settings uefi-firmware

END /etc/grub.d/30_uefi-firmware

========================== sdb2/etc/fstab (filtered) ===========================

UUID=758362c1-dca1-4557-bf09-8d2e4b8c8aa5 / ext4 errors=remount-ro 0 1

UUID=344E-27CE /boot/efi vfat umask=0077 0 1
/swapfile none swap sw 0 0

======================= sdb2/etc/default/grub (filtered) =======================

GRUB_DEFAULT=2
GRUB_TIMEOUT_STYLE=menu
GRUB_TIMEOUT=10
GRUB_DISTRIBUTOR=lsb_release -i -s 2> /dev/null || echo Debian
GRUB_CMDLINE_LINUX=””
GRUB_CMDLINE_LINUX_DEFAULT=”quiet splash”
GRUB_TERMINAL=console
GRUB_GFXPAYLOAD_LINUX=keep

==================== sdb2: Location of files loaded by Grub ====================

       GiB - GB             File                                 Fragment(s)

15.013404846 = 16.120520704 boot/grub/grub.cfg 1
65.947582245 = 70.810677248 boot/vmlinuz 1
4.869400024 = 5.228478464 boot/vmlinuz-5.8.0-43-generic 1
65.947582245 = 70.810677248 boot/vmlinuz-5.8.0-48-generic 1
4.869400024 = 5.228478464 boot/vmlinuz.old 1
66.534820557 = 71.441219584 boot/initrd.img 4
65.174438477 = 69.980520448 boot/initrd.img-5.8.0-43-generic 5
66.534820557 = 71.441219584 boot/initrd.img-5.8.0-48-generic 4
65.174438477 = 69.980520448 boot/initrd.img.old 5

===================== sdb2: ls -l /etc/grub.d/ (filtered) ======================

-rwxr-xr-x 1 root root 17622 Jan 13 09:12 10_linux
-rwxr-xr-x 1 root root 42359 Jan 13 09:12 10_linux_zfs
-rwxr-xr-x 1 root root 12894 Jan 13 09:12 20_linux_xen
-rwxr-xr-x 1 root root 12059 Jan 13 09:12 30_os-prober
-rwxr-xr-x 1 root root 1424 Jan 13 09:12 30_uefi-firmware
-rwxr-xr-x 1 root root 214 Jan 13 09:12 40_custom
-rwxr-xr-x 1 root root 216 Jan 13 09:12 41_custom

======================== Unknown MBRs/Boot Sectors/etc =========================

/dev/sda1: unknown GPT attributes
8000000000000001

/dev/sda2: unknown GPT attributes
8000000000000000

/dev/sda3: unknown GPT attributes
8000000000000000

========= Devices which don’t seem to have a corresponding hard drive ==========

sdd sde sdf sdg

Suggested repair: ______________________________________________________________

The default repair of the Boot-Repair utility would reinstall the grub-efi-amd64-signed of
sdb2,
using the following options: sdb1/boot/efi,
Additional repair would be performed: unhide-bootmenu-10s win-legacy-basic-fix use-standard-efi-file restore-efi-backups

Final advice in case of suggested repair: ______________________________________

Please do not forget to make your UEFI firmware boot on the The OS now in use – Ubuntu 20.04.2 LTS CurrentSession entry (sdb1/efi//shim.efi (**** will be updated in the final message) file) !
If your computer reboots directly into Windows, try to change the boot order in your UEFI firmware.

If your UEFI firmware does not allow to change the boot order, change the default boot entry of the Windows bootloader.
For example you can boot into Windows, then type the following command in an admin command prompt:
bcdedit /set {bootmgr} path EFI*shim*.efi (**** will be updated in the final message)