Fedora 43 - Grub looks like its config file?

Hello, everyone.
I started using fedora a week ago. I installed it on a laptop computer OMEN 16 MAX and had issues with the noveau driver locking the boot.
I learned that I had to modify the grub boot entry (I Have both Windows and Fedora) by adding the modprobe.blacklist=noveau parameter to be able to reach the GUI and get to use the OS.
In a previous troubleshooting step, I removid rhgb and quiet parameters, but after running a grub update following the instructions of modifying the:
/etc/default/grub file and running the grub2-mkconfig -o /boot/grub2/grub.cfg to “permanently include” the noveau blockage, I now would want to restore the rhgb and quiet options.
However, I’ve found out that now, the current /etc/default/grub file is like a copy of the grub.cfg, and no longer is that 4-5 lines of intuitive blocks to know where to add / remove the parameters.

Is this an intended consequence of grub2? Is there a way to “restore” the “grub” file inside /etc/default/ to be like it was before running the grub update?.
Thank you very much.

No, definitely not. Is it possible you inadvertently overwrote the default file by running something like grub2-mkconfig -o /etc/default/grub?

A vanilla version of the file {for a Nvidia user) should look something like this:

GRUB_TIMEOUT=5
GRUB_DISTRIBUTOR="$(sed 's, release .*$,,g' /etc/system-release)"
GRUB_DEFAULT=saved
GRUB_DISABLE_SUBMENU=true
GRUB_TERMINAL_OUTPUT="console"
GRUB_CMDLINE_LINUX="rhgb quiet rd.driver.blacklist=nouveau modprobe.blacklist=nouveau"
GRUB_DISABLE_RECOVERY="true"
GRUB_ENABLE_BLSCFG=true
1 Like

The default /etc/default/grub for a fedora 43 installation should read like this.

$ cat /etc/default/grub
GRUB_TIMEOUT=5
GRUB_DISTRIBUTOR="$(sed 's, release .*$,,g' /etc/system-release)"
GRUB_DEFAULT=saved
GRUB_DISABLE_SUBMENU=true
GRUB_TERMINAL_OUTPUT="console"
GRUB_CMDLINE_LINUX="rhgb quiet"
GRUB_DISABLE_RECOVERY="true"
GRUB_ENABLE_BLSCFG=true

After installing the nvidia driver from rpmfusion it should read something like this.

$ cat /etc/default/grub
GRUB_TIMEOUT=5
GRUB_DISTRIBUTOR="$(sed 's, release .*$,,g' /etc/system-release)"
GRUB_DEFAULT=saved
GRUB_DISABLE_SUBMENU=true
GRUB_TERMINAL_OUTPUT="console"
GRUB_CMDLINE_LINUX="rhgb quiet rd.driver.blacklist=nouveau,nova_core modprobe.blacklist=nouveau,nova_core"
GRUB_DISABLE_RECOVERY="true"
GRUB_ENABLE_BLSCFG=true

You could copy the listing I gave and then delete the existing /etc/default/grub content and paste the copy given into that file before saving it.

I never recommend installing the nvidia driver from any repo other than rpmfusion since that installation makes the necessary changes to grub for proper booting. Some other sites do not properly manage the changes needed for fedora.

Where did you install the nvidia driver from? I assume it was not from the rpmfusion repo since you seem to not have had the proper changes in grub done for you.

2 Likes

Thanks to both of you for providing the contents of grub.

I did install the nvidia drivers through rmpfusion, and while I don’t recall updating the grub with the incorrect argument ( /etc/default/grub instead of the /boot/grub2/grub.cfg ), maybe this is what happened through some incorrect reuse of a command from my side…

Thank you very much!

1 Like