XK0-004 · Question #109
A Linux administrator opens a ticket to have an external hard drive mounted. As a security policy, external storage kernel modules are disabled. Which of the following is the BEST command for adding…
The correct answer is D. insmod /lib/modules/3.6.12-100-generic/kernel/drivers/usb/storage/usb- storage.ko. insmod loads a kernel module directly from a specified file path into the running kernel, which is the correct command to enable the USB storage module when it has been disabled.
Question
A Linux administrator opens a ticket to have an external hard drive mounted. As a security policy, external storage kernel modules are disabled. Which of the following is the BEST command for adding the proper kernel module to enable external storage modules?
Options
- Armmod /lib/modules/3.6.12-100-generic/kernel/drivers/usb/storage/usb- storage.ko
- Bmodinfo /lib/modules/3.6.12-100-generic/kernel/drivers/usb/storage/usb- storage.ko
- Cdepmod /lib/modules/3.6.12-100-generic/kernel/drivers/usb/storage/usb- storage.ko
- Dinsmod /lib/modules/3.6.12-100-generic/kernel/drivers/usb/storage/usb- storage.ko
How the community answered
(52 responses)- A2% (1)
- B6% (3)
- C2% (1)
- D90% (47)
Why each option
insmod loads a kernel module directly from a specified file path into the running kernel, which is the correct command to enable the USB storage module when it has been disabled.
rmmod removes an already-loaded kernel module from the running kernel, which is the opposite of what is needed to enable a disabled module.
modinfo displays metadata about a kernel module such as its description, parameters, and dependencies, but does not load or insert the module into the kernel.
depmod generates a modules.dep dependency file used by modprobe to resolve dependencies, but does not itself load any module into the running kernel.
insmod inserts a kernel module directly into the running kernel by specifying the full path to the .ko file, allowing the administrator to immediately load usb-storage.ko without requiring module dependency resolution, which is the correct approach when adding a specific disabled module.
Concept tested: Loading kernel modules manually with insmod
Source: https://linux.die.net/man/8/insmod
Topics
Community Discussion
No community discussion yet for this question.