Bazzite No Longer a Boot Option (for Dual Boot Windows/Bazzite on ROG Ally X)

Hi, I set up dual boot Windows and Bazzite on my new Ally X a few weeks ago using a partitioned SSD. It was working great until last night I booted into Windows to play some games on that side. Maybe Windows applied some automatic updates that messed up how Bazzite boots, because now I can only boot into Windows. Fedora/Bazzite is no longer an option in the BIOS boot menu. Looking at Disk Management in Windows, the partition and files for Bazzite still look to be there and without issues. I installed EasyUEFI to take a look, and the Fedora entry has a status of "Hidden" while Windows Boot Manager is "Normal." I don't know how to make Fedora unhidden. I tried making a new boot entry using this program, but the file paths I'm able to specify (like EFI\Boot\bootx64.efi) is different from what Fedora has (EFI\fedora\shimx64.efi). I can't seem to find a "fedora" folder in EFI when I try to make a new boot entry. Did it get deleted by a Windows update? If I make a new boot entry I can see it on the BIOS and choose it, but when I do, it goes to a blue reset screen, but still only boots into Windows. I disabled SecureBoot, but that didn't change anything. I'm a newbie at this stuff, so would appreciate anyone's help in being able to boot back into the Bazzite side. I was hoping to avoid a full reset and reinstall, but not sure if that's my only option now. Thanks in advance.
268 Replies
Linus Xu
Linus Xu2w ago
Is this a single disk configuration?
Trajan Beil
Trajan BeilOP2w ago
Yes, this is on one SSD
Linus Xu
Linus Xu2w ago
Check disk management Are there like multiple EFI partitions? May be named as System Partition or something like that, and less than 1G in size
Trajan Beil
Trajan BeilOP2w ago
There looks to only be a Single EFI System Partition of 260 MB. Disk Management says it's healthy.
Linus Xu
Linus Xu2w ago
You mentioned the fedora folder missing, so there is only Boot and Microsoft in the EFI folder?
Trajan Beil
Trajan BeilOP2w ago
Correct, only Boot and Microsoft I had never looked carefully at these folders, so I guess I don't know if there's supposed to be a Fedora one. I just assumed, given the old file path
Linus Xu
Linus Xu2w ago
There should be one And most likely the windows update cleared the partition for whatever reason Can you get a hash of the current bootx64.efi? In windows the command will look like certutil -Hashfile E:\EFI\Boot\bootx64.efi Do the same for EFI\Microsoft\Boot\bootmgfw.efi
Trajan Beil
Trajan BeilOP2w ago
Sorry, I'm dumb and new to this so I don't quite understand what it means to get a hash. Do I run that command in CMD on Windows?
Linus Xu
Linus Xu2w ago
Yes Replace the drive letters and stuff as appropriate
Trajan Beil
Trajan BeilOP2w ago
Okay, I'll give it a try
Linus Xu
Linus Xu2w ago
And it only matters whether the two are the same
Trajan Beil
Trajan BeilOP2w ago
Okay, super embarrassing. How do I find out which drive these EFIs are on? I thought it was C drive because that's what Windows is on but CMD tells me it can't find the file when I do that
Linus Xu
Linus Xu2w ago
It’s fine It should be whatever letter you assigned to the ESP
Trajan Beil
Trajan BeilOP2w ago
When I look at the EFI System Partition it doesn't have a letter. Is it on the... FAT32 SYSTEM instead? Is that possible?
Linus Xu
Linus Xu2w ago
It does not have a letter by default mountvol P: /S should do the trick And since you weren’t in the ESP in the first place, there’s a chance that fedora boot loading stuff is still there…
Trajan Beil
Trajan BeilOP2w ago
hm, okay. so I ran mountvol P: /S I'm not sure if anything happened
Linus Xu
Linus Xu2w ago
That should give you a drive with letter P
Trajan Beil
Trajan BeilOP2w ago
oh okay, and now back to getting the hash?
Linus Xu
Linus Xu2w ago
Check if there is fedora in that drive first
Trajan Beil
Trajan BeilOP2w ago
EFI still only shows Boot and Microsoft
Linus Xu
Linus Xu2w ago
Then do the hash
Trajan Beil
Trajan BeilOP2w ago
okay, so running the command certutil -Hashfile P:\EFI\Boot\bootx64.efi tells me that access is denied. it does work for Microsoft though, although I'm not sure I understand what it threw out at me. CertUtil: Unknown arg: -P\EFI\Microsoft\Boot\bootmgfw.efi
Linus Xu
Linus Xu2w ago
Use an admin command line session The error does not make sense tho… Probably a typo somewhere
Trajan Beil
Trajan BeilOP2w ago
okay, let me try it again running CMD as administrator It worked, progress! The big string of letters and numbers that came out for the two are different
Linus Xu
Linus Xu2w ago
Does the bootx64.efi one start with 49dda and end with bbfc8?
Trajan Beil
Trajan BeilOP2w ago
Yes
Linus Xu
Linus Xu2w ago
49dda68626b94ea6185ddd8498b4a14892cbbfc8?
Trajan Beil
Trajan BeilOP2w ago
Yes
Linus Xu
Linus Xu2w ago
That’s interesting… Try directly booting with bootx64.efi Based on the checksum it is the file from fedora
Trajan Beil
Trajan BeilOP2w ago
Oh, so an EFI pointing towards bootx64.efi should work correctly to get into Bazzite?
Linus Xu
Linus Xu2w ago
I would believe so
Trajan Beil
Trajan BeilOP2w ago
okay, let me try it again
Linus Xu
Linus Xu2w ago
The lack of the Fedora folder may pose problems but I’m not sure
Trajan Beil
Trajan BeilOP2w ago
I get a blue screen that says "Boot Option Restored" at the top. Then it does a countdown to system reset and loops itself over and over. It says I can press any key to stop the reset. If I do that, I get options of "Reset System, Continue boot, and Always continue boot" in a little box
Linus Xu
Linus Xu2w ago
Try continue boot
Trajan Beil
Trajan BeilOP2w ago
it doesn't boot anything and loops back to the same blue screen
Linus Xu
Linus Xu2w ago
Ok so it’s the missing config files
Trajan Beil
Trajan BeilOP2w ago
oh, maybe those were in the Fedora folder?
Linus Xu
Linus Xu2w ago
Is there a 1G partition on your drive? Windows should be unable to read it
Trajan Beil
Trajan BeilOP2w ago
Yes, it's just named "Primary Partition." I guess I don't know how to tell if it's readable or not by Windows
Linus Xu
Linus Xu2w ago
Do you have winbtrfs installed? I’m trying to see if it’s possible to recreate the missing files but there’s an ID I don’t know how to get from windows
Trajan Beil
Trajan BeilOP2w ago
I've never heard of winbtrfs, so I assume I don't have it. is it something I can find and download?
Linus Xu
Linus Xu2w ago
It’s fine Do you still have the installer drive for bazzite?
Trajan Beil
Trajan BeilOP2w ago
no, I reformatted that drive. I can redownload bazzite and flash it back onto it if needed
Linus Xu
Linus Xu2w ago
Ok so here’s an idea Download the rpm for grub2-efi-x64 and shim-x64
Trajan Beil
Trajan BeilOP2w ago
okay, I Googled it and found a list of a lot. do I choose the one on top, presumably the newest one? Distribution listed as: "Fedora Rawhide for x86_64"
Linus Xu
Linus Xu2w ago
I’ll say go for F41
Trajan Beil
Trajan BeilOP2w ago
Fedora 41 updates for x86_64 or Fedora 41 for x86_64
Linus Xu
Linus Xu2w ago
Updates
Trajan Beil
Trajan BeilOP2w ago
nice, okay I'll get it now
Linus Xu
Linus Xu2w ago
Versions should be grub2-efi-x64-2.12-15.fc41.x86_64 and shim-x64-15.8-3.x86_64 from what I'm seeing
Trajan Beil
Trajan BeilOP2w ago
yep, I got both of them
Linus Xu
Linus Xu2w ago
Extract both of them I'm not sure how rpms work but there should be some structure like boot/efi/EFI/fedora in both of them And mount the ESP in the same way as before since I presume you rebooted
Trajan Beil
Trajan BeilOP2w ago
oh. when I downloaded them, they just showed up as single .rpm files. not like an extractable folder
Linus Xu
Linus Xu2w ago
They are essentially just archives So any unarchiver software should be able to work with them 7-zip will be a solution for example
Trajan Beil
Trajan BeilOP2w ago
oh yes, I have that. when I extract them, now they're each a ZSTD file in a folder
Linus Xu
Linus Xu2w ago
That should be another layer of compression
Trajan Beil
Trajan BeilOP2w ago
oh, even more extraction? lol okay
Trajan Beil
Trajan BeilOP2w ago
7zip doesn't want to extract this second layer?
No description
Trajan Beil
Trajan BeilOP2w ago
okay, let me try these ones out instead oh no, I get the ZSTD layer again. is it something with my system
Linus Xu
Linus Xu2w ago
Try directly opening in 7-zip? Or I’ll just copy my version ig
Trajan Beil
Trajan BeilOP2w ago
okay, I updated 7Zip and maybe it works now? it's a .cpio file
Linus Xu
Linus Xu2w ago
Yes that’s correct
Trajan Beil
Trajan BeilOP2w ago
whew, we made it
Linus Xu
Linus Xu2w ago
For both packages, copy everything from the boot/efi/EFI/Fedora to your ESP So that you have like P:\EFI\fedora\grubx64.efi for example
Trajan Beil
Trajan BeilOP2w ago
hm, okay so I have the packages. I also remounted to the P drive. but how do I actually access the P drive to copy the folders over? I can't find the P drive just through the normal Windows folders
Linus Xu
Linus Xu2w ago
It should be in explorer alongside C and everything else afaik May need admin privileges Or worst case just copy over the command line
Trajan Beil
Trajan BeilOP2w ago
okay! I think I did it successfully is it time to try and reboot?
Linus Xu
Linus Xu2w ago
Just to be sure You have grubx64.efi in the fedora folder right? That should allow us to make some progress
Trajan Beil
Trajan BeilOP2w ago
yes. there's also mmx64.efi, shim.efi, shimx64.efi. and an Excel spreadsheet file of BOOTX64
Linus Xu
Linus Xu2w ago
Then try rebooting Most likely we will be dropped to a grub shell since there should be a missing config file
Trajan Beil
Trajan BeilOP2w ago
I got that repeating blue screen again when trying to boot originally, but then I changed to trying to boot with grubx64.efi and it took me to a black grub screen, maybe this is the shell you're talking about? GRUB version 2.12
Linus Xu
Linus Xu2w ago
Is there like a grub > at the bottom?
Trajan Beil
Trajan BeilOP2w ago
yes!
Linus Xu
Linus Xu2w ago
Ok progress Now we need to find the boot partition Try ls Should give you a list of partitions like (hd0, gpt1)
Trajan Beil
Trajan BeilOP2w ago
(memdisk) (proc) (hd0) (hd0,gpt7) (hd0,gpt6) (hd0,gpt5) (hd0,gpt4) (hd0,gpt3) (hd0,gpt2) (hd0,gpt1)
Linus Xu
Linus Xu2w ago
ls each of them until you find one that says filesystem is ext4 I would guess it’s gpt 3, 4, or 5 If one looks like a match, ls it again with an ending slash like ls (hd0, gpt3)/ The goal is to find a partition that has the folder grub2
Trajan Beil
Trajan BeilOP2w ago
gpt7 - btrfs gpt6 - ext2 gpt5 - fat gpt4 - unknown gpt3 - unknown gpt2 - unknown gpt1 - fat
Linus Xu
Linus Xu2w ago
Then try 6
Trajan Beil
Trajan BeilOP2w ago
that one returned as: lost+found/efi/loader.1/ostree/boot loader grub2/bootupd-state.json
Linus Xu
Linus Xu2w ago
That’s the one set root=(hd0, gpt6) set prefix=(hd0, gpt6)/grub2 insmod normal normal
Trajan Beil
Trajan BeilOP2w ago
oh! something's happening
Linus Xu
Linus Xu2w ago
If all goes well it should lead to the normal grub menu
Trajan Beil
Trajan BeilOP2w ago
oh it actually booted me straight back into Bazzite
Linus Xu
Linus Xu2w ago
Nice That is temporary though
Trajan Beil
Trajan BeilOP2w ago
oh no... can we fix it permanently?
Linus Xu
Linus Xu2w ago
Try rpm-ostree status With some luck it should be able to restore grub to it’s original state
Trajan Beil
Trajan BeilOP2w ago
so I restart the device and make my way back to the grub shell with the grub> thing and then type in the rpm-ostree status?
Linus Xu
Linus Xu2w ago
Yes, for now you will need to do the four lines every time to get back to bazzite And judging from the FAT partition in 5, I now believe I have overcomplicated the matter :clueless:
Trajan Beil
Trajan BeilOP2w ago
lol, well that's fine but rpm-ostree status gives me error: ../../grub-core/script/function.c:119:can't find command 'rpm-ostree.'
Linus Xu
Linus Xu2w ago
No not in the grub shell In bazzite, once you have booted
Trajan Beil
Trajan BeilOP2w ago
ohhhh let me get back into Bazzite with the magic four lines and then do that again okay, I ran rpm-ostree status in the terminal on Bazzite. it said State: idle, and then a bunch of stuff in Deployments do you want to know what it says, or should I just try rebooting and see if it fixed the problem now?
Linus Xu
Linus Xu2w ago
It won’t fix the problem yet Try mount
Trajan Beil
Trajan BeilOP2w ago
oh, I'm getting ahead and too excited
Linus Xu
Linus Xu2w ago
Look for a line that mentions /boot/efi And check if the device name it mentions at the start of the line says 1 or 5 Probably like /dev/nvme0n1p1
Trajan Beil
Trajan BeilOP2w ago
there's a lot of lines, trying to find /boot/efi in here somehow
Linus Xu
Linus Xu2w ago
Or just try mount | grep /boot/efi
Trajan Beil
Trajan BeilOP2w ago
okay, I did that. what should I be looking for on what it gave me?
Linus Xu
Linus Xu2w ago
The device name It should be either /dev/nvme0n1p1 or p5 I think
Trajan Beil
Trajan BeilOP2w ago
device name is /dev/nvme0n1p1
Linus Xu
Linus Xu2w ago
Try cat /etc/fstab Also look for the line that mentions /boot/efi, which should say UUID= something at the beginning
Trajan Beil
Trajan BeilOP2w ago
UUID=B013-75F3 /boot/efi
Linus Xu
Linus Xu2w ago
Then sudo blkid /dev/nvme0n1p1 And do the same for p5 There should be one that matches the UUID above
Trajan Beil
Trajan BeilOP2w ago
p1 UUID matched
Linus Xu
Linus Xu2w ago
So p1 is the intended ESP all along… Now just in case sudo mount /dev/nvme0n1p5 /mnt And check what’s in /mnt
Trajan Beil
Trajan BeilOP2w ago
can't find in /etc/fstab
Linus Xu
Linus Xu2w ago
Shouldn’t need to be there Just mount over the terminal
Trajan Beil
Trajan BeilOP2w ago
oh, I mean, I get that message after I type in that command. did I mount it wrong?
Linus Xu
Linus Xu2w ago
Did you include the /mnt at the end? sudo mount /dev/nvme0n1p5 /mnt
Trajan Beil
Trajan BeilOP2w ago
let me try again, maybe I typed it wrong okay, when I typed in sudo mount /dev/nvme0n1p5 /mnt, I hit enter and I can't tell if anything happened. it just brings me to another command line
Linus Xu
Linus Xu2w ago
That’s normal
Trajan Beil
Trajan BeilOP2w ago
oh okay
Linus Xu
Linus Xu2w ago
Now check /mnt with your file explorer Dolphin or whatever their gnome equivalent is Again may ask for your password Does it also have an EFI folder?
Trajan Beil
Trajan BeilOP2w ago
ah okay. I have folders "AsusWinRE", "AsusWinREBackup" and "System Volume Information" I don't see an EFI folder
Linus Xu
Linus Xu2w ago
Hmmm so there is only 1 ESP all along… sudo umount /mnt Then mount | grep /boot And find the line that does not say /boot/efi, just /boot Most likely /dev/nvme0n1p6
Trajan Beil
Trajan BeilOP2w ago
yep! type ext4
Linus Xu
Linus Xu2w ago
sudo blkid /dev/nvme0n1p6 And keep track of the UUID Will be much longer than the previous ones, just in case
Trajan Beil
Trajan BeilOP2w ago
f26929fd-c2b2-43fe-9563-759c845d6249
Linus Xu
Linus Xu2w ago
sudo nano /boot/efi/EFI/fedora/grub.cfg And write the following
search --no-floppy --fs-uuid --set=dev f26929fd-c2b2-43fe-9563-759c845d6249
set prefix=($dev)/grub2

export $prefix
configfile $prefix/grub.cfg
search --no-floppy --fs-uuid --set=dev f26929fd-c2b2-43fe-9563-759c845d6249
set prefix=($dev)/grub2

export $prefix
configfile $prefix/grub.cfg
It may help if you can directly copy from, for example, a web discord session
Trajan Beil
Trajan BeilOP2w ago
okay, let me give this a go
Linus Xu
Linus Xu2w ago
Once done, Control-O, Enter, and Control-X
Trajan Beil
Trajan BeilOP2w ago
uh oh, Error writing /boot/efi/EFI/fedora/grub.cfg: No such file or directory
Linus Xu
Linus Xu2w ago
In another terminal tab, sudo ls /boot/efi/EFI
Trajan Beil
Trajan BeilOP2w ago
Boot Microsoft
Linus Xu
Linus Xu2w ago
That’s… majorly strange rpm -qa | grep grub
Trajan Beil
Trajan BeilOP2w ago
yep, there's a bunch of grub2 lines
Linus Xu
Linus Xu2w ago
sudo ls /boot/efi
Trajan Beil
Trajan BeilOP2w ago
DroidSansFallback.atf, EFI, RC72LA.BIN, 'System Volume Information'
Linus Xu
Linus Xu2w ago
That’s also normal…
Trajan Beil
Trajan BeilOP2w ago
wait, I just had a thought. maybe I copied my files over stupidly way back then. is it possible the file path should be Boot/boot/efi/EFI if there are a bunch of nested folders
Linus Xu
Linus Xu2w ago
Makes sense Check in your file explorer then
Trajan Beil
Trajan BeilOP2w ago
omg, there are so many nested folders
Linus Xu
Linus Xu2w ago
Just make sure you have /boot/efi/EFI/fedora
Trajan Beil
Trajan BeilOP2w ago
it's like boot>boot>efi>EFI>Boot>boot>EFI>fedora
Linus Xu
Linus Xu2w ago
Two layers of EFI is normal Two of boot is usually not
Trajan Beil
Trajan BeilOP2w ago
maybe when I copied over the packages there were multiples or something umm... how do I go about fixing it? can I just pull them out of some of these nested folders
Linus Xu
Linus Xu2w ago
ls /boot
Trajan Beil
Trajan BeilOP2w ago
boot bootupd-state.json efi grub2 loader loader.0 lost+found ostree
Linus Xu
Linus Xu2w ago
Oh nvm /boot/boot is normal Then sudo find /boot -name fedora
Trajan Beil
Trajan BeilOP2w ago
/boot/efi/EFI/Boot/boot/efi/EFI/fedora
Linus Xu
Linus Xu2w ago
sudo ls /boot/efi/EFI/Boot/boot/efi/EFI/fedora
Trajan Beil
Trajan BeilOP2w ago
BOOTX64.CSV grubx64.efi mmx64.efi shim.efi shimx64.efi
Linus Xu
Linus Xu2w ago
sudo mkdir /boot/efi/EFI/fedora Then sudo mv /boot/efi/EFI/Boot/boot/efi/EFI/fedora/* /boot/efi/EFI/fedora/
Trajan Beil
Trajan BeilOP2w ago
mv: cannot stat '/boot/efi/EFI/Boot/boot/efi/EFI/fedora/*': No such file or directory
Linus Xu
Linus Xu2w ago
Then sudo -i And do the mv without sudo
Trajan Beil
Trajan BeilOP2w ago
okay, I entered it. it didn't really show anything
Linus Xu
Linus Xu2w ago
ls /boot/efi/EFI/fedora
Trajan Beil
Trajan BeilOP2w ago
BOOTX64.CSV grubx64.efi mmx64.efi shim.efi shimx64.efi
Linus Xu
Linus Xu2w ago
ls /boot/efi/EFI/boot
Trajan Beil
Trajan BeilOP2w ago
boot B00TIA32.EFI bootx64.efi fbia32.efi fbx64.efi
Linus Xu
Linus Xu2w ago
rm -rf /boot/efi/EFI/boot/boot
Trajan Beil
Trajan BeilOP2w ago
done
Linus Xu
Linus Xu2w ago
exit The other tab is still running nano I think?
Trajan Beil
Trajan BeilOP2w ago
yes, I think so
Linus Xu
Linus Xu2w ago
Then Ctrl-O, Enter, and Ctrl-X there
Trajan Beil
Trajan BeilOP2w ago
whee, it worked this time. after we sorted out the folders
Linus Xu
Linus Xu2w ago
Then we should be all set Try rebooting into both systems
Trajan Beil
Trajan BeilOP2w ago
the moment of truth! let me give this a go now Windows worked. Bazzite took me to the grub shell with the grub>
Linus Xu
Linus Xu2w ago
Hmmmmmm Do the four line again And sudo grub2-install /dev/nvme0n1p1 in bazzite Then ujust regenerate-grub
Trajan Beil
Trajan BeilOP2w ago
I can't get out of the grub shell now with those 4 lines it just kind of clears the black screen after the last line and goes back to what it originally looks like
Linus Xu
Linus Xu2w ago
Then go back to windows and delete the P:\EFI\fedora\grub.cfg
Trajan Beil
Trajan BeilOP2w ago
can I boot to Windows from the grub shell? Bazzite is top priority for booting and I can't get to BIOS to get back into Windows
Linus Xu
Linus Xu2w ago
insmod part_gpt
insmod chain
set root=(hd0,gpt1)
chainloader /EFI/Microsoft/Boot/bootmgfw.efi
boot
insmod part_gpt
insmod chain
set root=(hd0,gpt1)
chainloader /EFI/Microsoft/Boot/bootmgfw.efi
boot
Or if your BIOS supports booting from file, choose the bootmgfw.efi from there
Trajan Beil
Trajan BeilOP2w ago
okay, I'm back into Windows now. so have to mount to P and then deleted that grub.cfg
Linus Xu
Linus Xu2w ago
Yes After that you should be able to return to bazzite with the 4 lines again Then sudo grub2-install /dev/nvme0n1p1 and ujust regenerate-grub
Trajan Beil
Trajan BeilOP2w ago
okay, it said it was generating a grub config file and adding a boot menu entry and then that it's done time to give it another reboot?
Linus Xu
Linus Xu2w ago
Try sudo cat /boot/efi/EFI/fedora/grub.cfg just in case With some luck it will generate a correct version
Trajan Beil
Trajan BeilOP2w ago
cat: /boot/efi/EFI/fedora/grub.cfg: No such file or directory is that the grub.cfg file I deleted earlier when I got stuck in the grub shell
Linus Xu
Linus Xu2w ago
It's probably normal... Yes it is Try rebooting then
Trajan Beil
Trajan BeilOP2w ago
okay oop, this grub shell is back again to haunt me I thought I deleted you
Linus Xu
Linus Xu2w ago
It should The default config is not working for some reason so we have to like configure it on the spot every time
Trajan Beil
Trajan BeilOP2w ago
interestingly, when I do the 4 lines of code to get out of the grub shell, now it shows me more options. it used to be only Fedora on there, but now there's like 2 versions of Fedora, Windows Boot Manager, and an UEFI choice
Linus Xu
Linus Xu2w ago
That's what regenerate-grub does
Trajan Beil
Trajan BeilOP2w ago
ohhh
Linus Xu
Linus Xu2w ago
And would you mind giving the full output of sudo blkid /dev/nvme0n1p6 in bazzite? Again it would be the best to just copy
Trajan Beil
Trajan BeilOP2w ago
/dev/nvme0n1p6: UUID="f26929fd-c2b2-43fe-9563-759c845d6249" BLOCK_SIZE="4096" TYPE="ext4" PARTUUID="00e4ac6f-ca5c-4f0a-acdc-3ee59e1a3c8c"
Linus Xu
Linus Xu2w ago
search --no-floppy --fs-uuid --set=dev f26929fd-c2b2-43fe-9563-759c845d6249
set prefix=($dev)/grub2

export $prefix
configfile $prefix/grub.cfg
search --no-floppy --fs-uuid --set=dev f26929fd-c2b2-43fe-9563-759c845d6249
set prefix=($dev)/grub2

export $prefix
configfile $prefix/grub.cfg
Then the grub.cfg we made is correct... Let's recreate it and see exactly what is the error then... sudo nano /boot/efi/EFI/fedora/grub.cfg
Trajan Beil
Trajan BeilOP2w ago
yep, I'm in sudo nano again do you want me to retype the search --no-floppy --fs-uuid --set=dev f26929fd-c2b2-43fe-9563-759c845d6249 set prefix=($dev)/grub2 export $prefix configfile $prefix/grub.cfg
Linus Xu
Linus Xu2w ago
Again, best to just copy And Control-O, Enter, Control-X to exit After that reboot, but keep an eye out for other information on the grub shell screen if it happens again
Trajan Beil
Trajan BeilOP2w ago
oh! it worked this time without any grub shell. I must have messed up the code the first time we were in sudo nano
Linus Xu
Linus Xu2w ago
Nice And ofc check both systems
Trajan Beil
Trajan BeilOP2w ago
let me give Windows a try now
Linus Xu
Linus Xu2w ago
Ideally you can just choose the windows entry from the grub menu Or from BIOS, a matter of preference here
Trajan Beil
Trajan BeilOP2w ago
I think we finally did it! I think it's working as it should now
Linus Xu
Linus Xu2w ago
Nice
Trajan Beil
Trajan BeilOP2w ago
do you know how to stop Windows from deleting what it did before?
Linus Xu
Linus Xu2w ago
Unfortunately no
Trajan Beil
Trajan BeilOP2w ago
oh no...
Linus Xu
Linus Xu2w ago
Windows works in strange ways
Trajan Beil
Trajan BeilOP2w ago
so in the future, someone may have to heroically spend 5 hours walking me through something like this again
Linus Xu
Linus Xu2w ago
I haven't seen this myself but there may be other discussions on this somewhere in this server
Trajan Beil
Trajan BeilOP2w ago
I saw a few posts on Reddit from the past few days with people also having this issue, so maybe it was related to a Windows update. but they didn't seem to figure out the problem from what I could see
Linus Xu
Linus Xu2w ago
Yeah Windows nuking a Fedora folder is... immensely strange
Trajan Beil
Trajan BeilOP2w ago
anyway, thank you SO MUCH for all your time and help. you spent a really long time with me walk through the issue
Linus Xu
Linus Xu2w ago
It may help to keep a copy of that folder just in case :happy_green_trees: And np
Trajan Beil
Trajan BeilOP2w ago
save a copy of the Fedora folder? I can do that
Linus Xu
Linus Xu2w ago
Yes To somewhere your windows can read Oh and there is this possibility that later bazzite updates will complain about missing stuff related to grub It will be normal since we sort of just copied the bare minimum for booting up
Trajan Beil
Trajan BeilOP2w ago
oh, I see. Will Bazzite know what to do? or will it break?
Linus Xu
Linus Xu2w ago
It should be fine ostree ensures that And ig I will make a quick summary for closing the issue Cause of problem is that a windows update nuked the Fedora files in the ESP for some reason. Solution: Manually back the main EFI files, under EFI\fedora after mounting the ESP in windows. As UUID cannot be found from Windows, boot up grub with the config missing, and manually set root and prefix for a temporary boot. Once in Bazzite, use blkid to find the UUID for the Bazzite boot partition, and fill in EFI/fedora/grub.cfg accordingly.
Tyler C
Tyler C2w ago
Windows updated yesterday and this happened to me as well. I haven't had time to go through all of this post but will try tomorrow to see if I can get the Bazzite boot option back.
phsxes
phsxes2w ago
would these instructions change in any way if I'm having the exact same issue but I do have two EFI partitions with a single drive configuration?
Kasher_CS
Kasher_CS2w ago
Note that oftentimes the Fedora files are still in the ESP, and just the boot option is deleted This is especially likely if you have two EFIs
phsxes
phsxes2w ago
Yeah I was thinking along those lines but I don’t know exactly how to check if the files are there. Can I use the bazzite (Fedora) live USB to access the command line and mount one of the EFI partitions? If I can, which files should I look for to make sure everything is fine and it’s just the boot option missing? The answer to that might be on this same thread, I just haven’t had a chance to go through it
Kasher_CS
Kasher_CS2w ago
Yes
root@bazzite:/boot/efi# ls EFI/fedora/
BOOTIA32.CSV BOOTX64.CSV grub.cfg grubia32.efi grubx64.efi mmia32.efi mmx64.efi shim.efi shimia32.efi shimx64.efi
root@bazzite:/boot/efi# ls EFI/fedora/
BOOTIA32.CSV BOOTX64.CSV grub.cfg grubia32.efi grubx64.efi mmia32.efi mmx64.efi shim.efi shimia32.efi shimx64.efi
phsxes
phsxes7d ago
Unfortunately the Fedora folder is missing from the EFI folder on the EFI partition I created for bazzite
Kasher_CS
Kasher_CS7d ago
What is on the EFI?
phsxes
phsxes7d ago
Just a BOOT folder
Linus Xu
Linus Xu7d ago
Not even Microsoft??? Oh separate ESPs
Kasher_CS
Kasher_CS7d ago
What's on the other EFI?
phsxes
phsxes7d ago
Let me check
Linus Xu
Linus Xu7d ago
Try hashing boot/bootx64.efi
phsxes
phsxes7d ago
BOOT and Microsoft, no Fedora I don’t know exactly how to hash the file… I think you posted some instructions on this thread, I’ll try later today 49dda68626b94ea6185ddd8498b4a14892cbbfc8
Linus Xu
Linus Xu7d ago
So it’s the same problem as OP Manually populate EFI/fedora folder and you should be good
phsxes
phsxes7d ago
got it, I don't know if the steps will be same given I have two EFI partitions but I'll try to go through what you discussed with the OP thanks! Got it working now!!! Thanks :winku:
auaikajaaaok
auaikajaaaok7d ago
I'm having the same problem as OP, so I downloaded EasyUEFI and see my Fedora entry is also hidden. I plan on following the exact steps in earlier chats, but wanted to know if its normal to have two Windows Boot Manager entries and one is hidden?
phsxes
phsxes7d ago
I cannot recall if mine had multiple Windows Boot Manager entries, but as long as you have the Boot and Microsoft folders and no Fedora folder on your EFI partition (or on either of them if you have two EFI partitions like me), I think the method should still apply It’s worth noting I didn’t need to do the very last steps of the process, after configuring and creating the grub.cfg file it worked for me
auaikajaaaok
auaikajaaaok7d ago
Can anyone tell me how do I do this?
Linus Xu
Linus Xu7d ago
Easiest way is an option in your BIOS, but that will be device specific
phsxes
phsxes7d ago
I'll write up the steps I took after sifting through the original thread in case it comes useful for anyone stumbling upon this: NOTE: Mount your EFI partition(s) and confirm you only have either the BOOT directory or a combination of both BOOT and Microsoft. If that's not the case these steps might not work for you. 1. Follow the steps to generate the hash of the bootx64.efi and bootmgfw.efi files (instructions here: https://discord.com/channels/1072614816579063828/1316221468581036055/1316229156232630333) 2. Confirm your hash starts with 49dda and ends with bbfc8 2. Download the rpm for grub2-efi-x64 and shim-x64 (I downloaded different ones but I don't think posting links would be a good idea, stick to the ones recommended by Linus: https://discord.com/channels/1072614816579063828/1316221468581036055/1316254125859541044) 3. Extract them and extract again the generated .cpio file, for both shim and grub2 4. For both packages, copy everything from the boot/efi/EFI/Fedora to your ESP: https://discord.com/channels/1072614816579063828/1316221468581036055/1316256352825245748 5. Reboot, you should be able to boot intro grub2 now (after selecting that boot entry in your BIOS for "Fedora"), otherwise you'll keep seeing the blue screen or booting into Windows 6. Do the steps starting from here until you can boot into Bazzite: https://discord.com/channels/1072614816579063828/1316221468581036055/1316264693597212672 7. Once in bazzite, go into Desktop mode and open a terminal 8. Type mount | grep /boot and find the line that says /boot (NOT /boot/efi) copy the partition name at the start of the line (/dev/nvme...) 9. type sudo blkid /dev/nvme.. where /dev/nvme.. is the partition name you copied last step 10. Copy the UUID 11. Follow the steps starting here until creating the /boot/efi/EFI/fedora/grub.cfg file: https://discord.com/channels/1072614816579063828/1316221468581036055/1316278476843778089, replacing the first line search --no-floppy --fs-uuid --set=dev f26929fd-c2b2-43fe-9563-759c845d6249 with your UUID after --set=dev I tried copying the step links so follow the original thread as much as possible if you have any questions, gl
auaikajaaaok
auaikajaaaok7d ago
For both packages, copy everything from the boot/efi/EFI/Fedora to your ESP: ⁠:ring_buoy:bazzite-help⁠Bazzite No Longer a Boot Option… How do I do this? I can't find the P drive in my file explorer even after opening with admin priv.
Linus Xu
Linus Xu7d ago
Have you mounted your ESP?
auaikajaaaok
auaikajaaaok7d ago
using mountvol P: /S? Do I have to do it again after doing it the first time?
Linus Xu
Linus Xu6d ago
You shouldn’t need to… That usually works but I’m not sure how windows will handle two ESPs You may need to tweak around with diskpart in that case
auaikajaaaok
auaikajaaaok6d ago
I only have one ESP, let me just redo the steps I must've messed up at some point.
Linus Xu
Linus Xu6d ago
Or just try P: in cmd
auaikajaaaok
auaikajaaaok6d ago
Just to make sure, this is how it should look right?
No description
Linus Xu
Linus Xu6d ago
Looks good to me
auaikajaaaok
auaikajaaaok6d ago
Okay, and then from there I reboot my device and enter my BIOS and should fedora appear again as a boot option or do I need to set up the path of it in the BIOS?
Linus Xu
Linus Xu6d ago
Again depends on the device Booting into EFI/boot/bootx64.efi should usually work
auaikajaaaok
auaikajaaaok6d ago
Looks like everything is back to working like how it was before. I only have one final question, is having two Fedora boot options normal? One has a path that leads to shimx64.efi (that's the one that is first priority when booting) and the other has a path that leads to bootx64.efi. Does it matter which one is higher priority?
Linus Xu
Linus Xu6d ago
The two are usually the same file so I’ll say no
auaikajaaaok
auaikajaaaok6d ago
This may be a dumb question, but no as in its not normal? Or did you mean no, it doesn't matter which is higher priority?
Linus Xu
Linus Xu6d ago
The latter
auaikajaaaok
auaikajaaaok6d ago
Okay, just wanted to clarify. Thanks for all the help as well as you @phsxes!
ArcadeSage
ArcadeSage5d ago
Windows nuked my ability to boot into Bazzite as well. I get to a grub prompt and that's it. @Linus Xu @phsxes do you think the steps above will get it back for me?
Linus Xu
Linus Xu5d ago
Depends on how much damage windows has done If grub is still there you should be able to start from https://discord.com/channels/1072614816579063828/1316221468581036055/1316268045995474954 Or https://discord.com/channels/1072614816579063828/1316221468581036055/1316264653461917788 to find your /boot first
ArcadeSage
ArcadeSage5d ago
Boo, that's just pops me right back to the grub> prompt
Linus Xu
Linus Xu5d ago
Grub prompt is when grub itself works but cannot find a valid config file For bazzite it first loads the EFI/fedora/grub.cfg, which points to your /boot with the real config
JackoBongo
JackoBongo4d ago
Hello there, I'm also having this issue after a Windows update ... I've mounted the first EFI partition and after generated the hash on \EFI\Boot\bootx64.efi and \EFI\Microsoft\Boot\bootmgfw.efi I get ... f416cfc3c840b619cf6f87bbcc7d5a0c9ecd46b1. Are the next steps of the fix (download grub2-efi-x64 and shim-x64 and copy the extracted file on the EFI partitions) relevant or should I just reinstall Bazzite? I've tried to boot on the second EFI partition but it kept boot-lopping on a blue screen.
Kasher_CS
Kasher_CS4d ago
Check the second EFI partition
JackoBongo
JackoBongo4d ago
Unfortunately the second EFI partition only contains bootx64.efi
No description
JackoBongo
JackoBongo4d ago
Ah, the hash on this one is indeed 49dda68626b94ea6185ddd8498b4a14892cbbfc8 Is it safe to carry on the creation of the boot/efi/EFI/Fedora folder on the first ESP using the RPM files linked by @Linus Xu ?
Kasher_CS
Kasher_CS4d ago
Oh this finally explains some stuff oh thank god
JackoBongo
JackoBongo4d ago
(Excuse my ignorance, although I'm fluent in Linux, I'm clearly not a power-user)
Kasher_CS
Kasher_CS4d ago
I'm gonna ping people about this Its same to make it, yes, make sure you create the boot entry as well
JackoBongo
JackoBongo4d ago
Alright, is the boot entry creation covered by the summary written by @phsxes ?
Kasher_CS
Kasher_CS4d ago
Oh yeah copy to the Second ESP, not first That guide assumes hte boot entry has survived unaltered
JackoBongo
JackoBongo4d ago
Ok, so basically, I just fix the second ESP using these steps then selecting it should no longer bring me into a bootloop, right?
Kasher_CS
Kasher_CS4d ago
Yes, you'll at first be at the grub command line Alternativally You can check those chk files, and rename each one to the correct name
JackoBongo
JackoBongo4d ago
It would be hard to be to determine the original filenames. Unless someone knows, I'll try the Grub command line method later today.
No description
Kasher_CS
Kasher_CS4d ago
10 is EFI/fedora/grubx64.efi 9 is EFI/fedora/grubia32.efi 2 and 3 are shimx64.efi and shim.efi 4 is mmx64.efi 1 is shimia32.efi 0 is mmia32.efi 5-8 are text files (BOOTIA32.CSV,BOOTX64.CSV, grub.cfg and I don't know the last)
JackoBongo
JackoBongo4d ago
And all these renamed files should be moved to the boot/efi/EFI/Fedora/ directory of the secondary ESP? BTw thanks for the support @Kasher_CS !
Kasher_CS
Kasher_CS4d ago
Should be in EFI/fedora, yes Verify the contents of the text files in order to know which name they are They are not identical shimx64.efi and shim.efi are identical for me, so that doesn't matter Not boot/efi/EFI/fedora, that's the Linux location
JackoBongo
JackoBongo4d ago
ah right, on the /EFI/Fedora directory of the ESP partition.
Kasher_CS
Kasher_CS4d ago
Yes
JackoBongo
JackoBongo4d ago
fyi, content of FILE0008.CHK is
set BOOT_UUID="20979cf6-c965-44de-8f07-222b0dfba383"
set BOOT_UUID="20979cf6-c965-44de-8f07-222b0dfba383"
Kasher_CS
Kasher_CS4d ago
Secondary grub confgi? Check the others
JackoBongo
JackoBongo4d ago
file 5 contains
shimx64.efi,Fedora,,This is the boot entry for Fedora
shimx64.efi,Fedora,,This is the boot entry for Fedora
6
shimia32.efi,Fedora,,This is the boot entry for Fedora
shimia32.efi,Fedora,,This is the boot entry for Fedora
7 contains a shell script begining with
if [ -e (md/md-boot) ]; then
# The search command might pick a RAID component rather than the RAID,
# since the /boot RAID currently uses superblock 1.0. See the comment in
# the main grub.cfg.
set prefix=md/md-boot
else
if [ -f ${config_directory}/bootuuid.cfg ]; then
source ${config_directory}/bootuuid.cfg
fi
if [ -e (md/md-boot) ]; then
# The search command might pick a RAID component rather than the RAID,
# since the /boot RAID currently uses superblock 1.0. See the comment in
# the main grub.cfg.
set prefix=md/md-boot
else
if [ -f ${config_directory}/bootuuid.cfg ]; then
source ${config_directory}/bootuuid.cfg
fi
After renaming these files (5 as BOOTX64.CSV , 6 as BOOTIA32.CSV and 7 as grub.cfg ) I've moved them in /EFI/FEDORA of the second ESP. I've booted on this partition and got an error
Malformed binary after Attribute Certificate Table
Malformed binary after Attribute Certificate Table
Kasher_CS
Kasher_CS4d ago
File 8 is bootuuid.cfg
JackoBongo
JackoBongo4d ago
Alright, let's put this file and boot again
JackoBongo
JackoBongo4d ago
ah well ...
No description
Linus Xu
Linus Xu4d ago
The hash means shim checks out but other files may be damaged
Tht1ndiAnGuY
Tht1ndiAnGuY4d ago
Managed to get Bazzite up and running again last night. Made a copy of the fedora folder like was suggested just in case
phsxes
phsxes4d ago
If this issue happens to reappear and we have a backup of the Fedora folder, would it be a matter of placing the backup inside the ESP and reboot?
Linus Xu
Linus Xu4d ago
In the vast majority of cases yes May need to update them accordingly if there’s a grub related update
phsxes
phsxes4d ago
Got it, thanks!
JackoBongo
JackoBongo3d ago
Ok, thanks to you, the other method is working. Here is a little guide based on @Linus Xu and @phsxes 1. Identify the ESP - Open the ESP (using EasyUEFI or by mounting it) - Check the hash of the bootx64.efi file
certutil -Hashfile E:\EFI\Boot\bootx64.efi
certutil -Hashfile E:\EFI\Boot\bootx64.efi
It should be 49dda68626b94ea6185ddd8498b4a14892cbbfc8 2. Copy grub2 on ESP - Download the 2 packages https://kojipkgs.fedoraproject.org//packages/grub2/2.12/15.fc41/x86_64/grub2-efi-x64-2.12-15.fc41.x86_64.rpm https://kojipkgs.fedoraproject.org//packages/shim/15.8/3/x86_64/shim-x64-15.8-3.x86_64.rpm - Extract RPM packages and then the CPIO file. - Copy the archives content of boot/efi/EFI/Fedora on the ESP EFI/fedora 3. Start Bazzite - Boot on Fedora, you should reach grub2 prompt - Find the EXT* partition with ls command, result should look like
(memdisk) (proc) (hd0) (hd0,gpt7) (hd0,gpt6) (hd0,gpt5) (hd0,gpt4) (hd0,gpt3) (hd0,gpt2) (hd0,gpt1)
(memdisk) (proc) (hd0) (hd0,gpt7) (hd0,gpt6) (hd0,gpt5) (hd0,gpt4) (hd0,gpt3) (hd0,gpt2) (hd0,gpt1)
- Type ls (hd0,gpt7) for each partition to identify the correct one. - Find the grub2 directory on the correct partition using ls (hd0,gpt7)/, where you replace (hd0,gpt7) by the partition you previously identified - Type the following command
set root=(hd0, gpt7)
set prefix=(hd0, gpt7)/grub2
insmod normal
normal
set root=(hd0, gpt7)
set prefix=(hd0, gpt7)/grub2
insmod normal
normal
(also replace (hd0,gpt7) here ) - Bazzite should boots up 4. Fix Bazzite boot - Go in desktop and open a terminal Identify the mount (line having /boot, NOT boot/efi)
mount | grep /boot
mount | grep /boot
- Get the mount UUID
sudo blkid /dev/nvme0n1p6
sudo blkid /dev/nvme0n1p6
where you replace /dev/nvme0n1p6 by the mount previously identified - Create grub.cfg
sudo nano /boot/efi/EFI/fedora/grub.cfg
sudo nano /boot/efi/EFI/fedora/grub.cfg
- Put the following
search --no-floppy --fs-uuid --set=dev <UUID>
set prefix=($dev)/grub2

export $prefix
configfile $prefix/grub.cfg
search --no-floppy --fs-uuid --set=dev <UUID>
set prefix=($dev)/grub2

export $prefix
configfile $prefix/grub.cfg
Where <UUID> is the value you got from the previous step. This should be it. You can reboot to test it.
Want results from more Discord servers?
Add your server