XK0-005 · 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. To enable external storage modules after they have been disabled, the insmod command is used to manually insert the specific kernel module responsible for USB storage.
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
(37 responses)- A3% (1)
- B3% (1)
- C5% (2)
- D89% (33)
Why each option
To enable external storage modules after they have been disabled, the `insmod` command is used to manually insert the specific kernel module responsible for USB storage.
`rmmod` (remove module) is used to unload a kernel module from the kernel, which is the opposite of what is needed to enable external storage.
`modinfo` displays information about a kernel module, such as its description, author, and dependencies, but it does not load or unload the module.
`depmod` is used to generate a list of module dependencies and map files, which helps `modprobe` load modules efficiently, but it does not load modules itself.
The `insmod` command (insert module) is used to load a specified kernel module into the Linux kernel from its file path. In this scenario, `/lib/modules/3.6.12-100-generic/kernel/drivers/usb/storage/usb-storage.ko` is the full path to the kernel module responsible for handling USB storage devices, so `insmod` will enable its functionality.
Concept tested: Linux kernel module management (`insmod`)
Source: https://man7.org/linux/manpages/man8/insmod.8.html
Topics
Community Discussion
No community discussion yet for this question.