You are not logged in.

#1 2024-12-11 14:57:17

tfrond
Member
Registered: 2024-12-08
Posts: 1

Blacklisting grub kernel module settings before first-time boot

Hi,

If I want to edit grub's behaviour before it does its thing during first-time installation, I'm aware I can press the 'e' key when the grub menu comes up and drop into a shell. Then, once I've made the necessary changes, resume the boot normally.

I'm pretty sue the problem I'm encountering on my particular computer (typical Intel i9 with Nvidia graphics cards (in SLI)) could possibly be solved by blacklisting the Nouveau drivers. It's all a bit of guesswork at the moment.

If I want to blacklist Nouveau, I understand I need to add "modprobe.blacklist=nouveau" to the GRUB_CMDLINE_LINUX (list of) values.

I'm not quite sure about exactly how to do this and where exactly I add this line, and if any other steps are necessary.

Could you give me some guidance?


[6.357009] nouveau 0000:01:00.0: DRM: failed to create kernel channel,
-22 [7.096236] nouveau 0000:02:00.0: DRM: failed to create kernel channel, -22

(initramfs) stdin: Invalid argument stdin: Invalid argument stdin: Invalid argument stdin: Invalid argument mount: mounting /cow on /root failed: Invalid argument overlay mount failed

Last edited by tfrond (2024-12-11 15:03:47)

Offline

#2 2024-12-11 15:41:43

seth
Member
From: Won't reply 2 private help req
Registered: 2012-09-03
Posts: 75,713

Re: Blacklisting grub kernel module settings before first-time boot

https://wiki.archlinux.org/title/Kernel … and_line_2
"module_blacklist=nouveau" will completely deny loading that module, the other one is for modprobe to ignore the aliases but the module can be loaded by other means

I need to add "modprobe.blacklist=nouveau" to the GRUB_CMDLINE_LINUX (list of) values.

No, you need to

press the 'e' key when the grub menu comes up and drop into a shell. Then, once I've made the necessary changes, resume the boot normally

Also try to add "nomodeset" instead (it'll preclude a GUI environment but won't require drm)

[6.357009] nouveau 0000:01:00.0: DRM: failed to create kernel channel, -22
[7.096236] nouveau 0000:02:00.0: DRM: failed to create kernel channel, -22

do you have two nvidia GPUs?

(initramfs) stdin: Invalid argument stdin: Invalid argument stdin: Invalid argument stdin: Invalid argument mount: mounting /cow on /root failed: Invalid argument overlay mount failed

Looks like there's more trouble, though?
Make a photo of your screen when things failed, upload it eg. to imgur and link it here (please do not embed it)

Offline

#3 2024-12-11 16:03:58

cryptearth
Member
Registered: 2024-02-03
Posts: 2,165

Re: Blacklisting grub kernel module settings before first-time boot

tfrond wrote:

(typical Intel i9 with Nvidia graphics cards (in SLI)

*sigh* - that's about the level my non-tech friends talk about computer stuff
the skew class i9 is pretty much the most useless part of many modern cou model numbers - what is important are the up to 5 digits + several letters that follows the skew class - like 12900KF or 10700HQ - that's the important when you talk about "what's the type of cpu"

also: nvidia SLI (and amd crossfire) is a thing of the past and no longer supported by drivers or games - and unless using the additional card for some very specific workload like CAD or to just provide additional screen outputs it either doesn't grant any boosts or rather comes with degraded performance like micro stutters

anyway - back to topic

what you asking for is modifications of the file /etc/default/grub - this can be done before installing grub and generatings its config for the first time - it can also be done at any time after that
as this is nvid specific here's a good start: https://wiki.archlinux.org/title/NVIDIA#Installation

Offline

Board footer

Powered by FluxBB