XK0-005 · Question #252
A new video card was added to a customer workstation. To get the new video card to work correctly, a systems administrator needs to remove support for the nouveau video driver on the Linux…
The correct answer is A. Use rmmod -f nouveau. To immediately disable a loaded kernel module like nouveau, the rmmod -f command is used to forcefully unload it from memory.
Question
A new video card was added to a customer workstation. To get the new video card to work correctly, a systems administrator needs to remove support for the nouveau video driver on the Linux workstation. Which of the following will accomplish this task?
Options
- AUse rmmod -f nouveau.
- BUse modprobe -R nouveau.
- CAdd blacklist nouveau to /etc/modprobe.d/blacklist.conf.
- DAdd blacklist nouveau to /etc/modprobe.conf.
How the community answered
(22 responses)- A95% (21)
- B5% (1)
Why each option
To immediately disable a loaded kernel module like `nouveau`, the `rmmod -f` command is used to forcefully unload it from memory.
`rmmod -f nouveau` forcefully unloads the `nouveau` kernel module from the running kernel's memory. This immediately removes support for the driver, allowing for installation or activation of a new video card driver without conflicts.
`modprobe -R nouveau` is not a standard command for forcefully removing a module; `modprobe -r` is synonymous with `rmmod` but `rmmod -f` is more appropriate for forceful removal.
Adding `blacklist nouveau` to `/etc/modprobe.d/blacklist.conf` prevents the module from loading *at boot time*, but it does not remove an already loaded module from the current session.
`/etc/modprobe.conf` is an outdated configuration file; modern Linux systems use files within `/etc/modprobe.d/` for module configuration, and this method only prevents loading at boot, not immediate removal.
Concept tested: Linux kernel module management
Source: https://manpages.debian.org/stable/kmod/rmmod.8.en.html
Topics
Community Discussion
No community discussion yet for this question.