I’m getting an error during the final stages of installing Fedora Linux: « Installation failed. Installation cannot continue due to a critical error: Installation of the system failed: Bootloader installation. Error details: org.fedoraproject.Anaconda.BootloaderInstallationError: gen_grub_cfgstub script failed».
I don’t know what to do. I tried deleting the old Fedora installation files, but that didn’t help. I’ve read a bit about this error—maybe it’s related to EFI, or maybe there’s an issue with GRUB—but I’m not sure. I’m sorry, I don’t have much knowledge on this topic, and I’m really frustrated (I know there isn’t much information here, let me know if you need more, thx)Please help in any way you can ![]()
So, your BootloaderInstallationError: gen_grub_cfg error means Anaconda (Fedora’s installer) successfully copied the system files, but failed when trying to install GRUB and without a bootloader, the system can’t start after installation. The two most common culprits I’ve encountered are issues with EFI/Secure Boot and disk partitioning problems.
A few questions will help clarify things:
- Is this a new install or replacing an existing OS?
- Are you dual-booting with Windows or is Fedora the only OS?
- Is it a laptop or desktop?
Regardless, the first thing I’d try is to check UEFI/BIOS settings:
- Reboot into UEFI/BIOS setup.
- Disable “Secure Boot” temporarily.
- Make sure the boot mode is set to “UEFI” and not “Legacy/CSM.”
- Save and retry the installation.
Thank you for taking the time to look into my issue.
I’ve tried reinstalling Fedora about five times, and I’ve disabled Secure Boot and set the boot mode to UEFI.
- I had a different Linux distribution installed, but I cleared the disk space and am now trying to install Fedora.
- I’m using a dual-boot setup with Windows.
- I’m using an Honor MagicBook X16 laptop (Intel i5-13420H).
Let me explain the situation in more detail: For a while, I tried using a different distribution, but I had a problem where it seemed like I had installed it, yet Windows would still boot without giving me a choice of operating system. I tried to fix it, but nothing worked. I entered commands in the terminal, including all sorts of tweaks to GRUB and disk partitioning, but I gave up, wiped the space with this distro and am now trying to install Fedora. It’s very likely that I did something wrong and created these problems myself due to a lack of knowledge.
Likely your first installation of diffrent distro fill windows boot efi with files and if you try install fedora to dual boot with windows specially automatic partitioning fail to do install of bootloader .Unlikely boot efi of windows is tiny limited with space about 200mb and if is filled with files from another distro then should be cleaned too
You’re right, but for some reason, according to what Windows says, my EFI partition is only 100 MB and can’t be any larger. I did clear it of the old distribution, so now I only have “Microsoft” and “boot” there, but the EFI partition is still 100 MB. I don’t know how much space Fedora needs for this, but it’s clear that this isn’t enough. I don’t know if it’s possible to somehow create a separate EFI partition for Fedora with more storage space.
Windows default is to hibernate. You will need to disable that in Windows. It can be easier to completely wipe the system disk, install Fedora, and (assuming you can’t do everything you need in Fedora), reinstall Windows.
Yeah, I’ve already thought about that option. I don’t wanna bother myself or others with my silly questions but I’ll still try to do something and see what other people have to say, if that doesn’t work I’ll resort to that drastic measure. Thanks
Fedora doesn’t need much, only about 8 MB. So lack of EFI partition space may not be the actual issue here.
I used to dual-boot Windows and Fedora - my EFI partition was 100 MB, and it still didn’t get more than half full. (Admittedly that was Windows 10, idk about Windows 11.)
Well, if that’s really the case, then I’m almost certain the problem is with GRUB. When I installed my first distribution, as I mentioned earlier, I ran into trouble when I wasn’t given the option to choose an operating system. So I started typing in all sorts of commands I found online related to UEFI. I don’t remember the full commands, but I do remember some parts:
“grub-install”
“boot-entries”
chroot and many, many other different commands that I don’t understand at all
If your installation gets far enough to show that “BootloaderInstallationError”, then most likely all the other parts of the system (apart from the bootloader) got installed correctly.
After the installation, you could try rebooting into the Fedora Live USB, and following these instructions to repair the bootloader:
I can’t guarantee it will work, but if you do get a problem doing it this way, the error message should be more informative.