NewWork mode: your Claude Code or Codex on work calls, answering from your project's codeSkip to content
Middle0 views

Where can you set Linux kernel parameters (for example, to disable an NVIDIA graphics card)?

Practice

Asked at

AI answer

Kernel parameters are set in the bootloader's command line at startup. For GRUB, they are usually added to GRUB_CMDLINE_LINUX in /etc/default/grub, after which the GRUB configuration is regenerated and the system is rebooted. The commands for regenerating it depend on the distribution.

To prevent the NVIDIA driver from loading, you can add, for example, modprobe.blacklist=nvidia,nvidia_drm,nvidia_modeset,nvidia_uvm. For Nouveau, use modprobe.blacklist=nouveau nouveau.modeset=0. If the driver is loaded from initramfs, you may also need an initramfs parameter (for example, rd.driver.blacklist=...) and to rebuild initramfs. Alternatively, you can add the module to /etc/modprobe.d/ and rebuild initramfs. Before making changes, verify that the system will be able to boot without this graphics card, and keep a rollback method available.