nerdexam
CompTIA

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.

System Management

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)
  • A
    3% (1)
  • B
    3% (1)
  • C
    5% (2)
  • D
    89% (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.

Armmod /lib/modules/3.6.12-100-generic/kernel/drivers/usb/storage/usb- storage.ko

`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.

Bmodinfo /lib/modules/3.6.12-100-generic/kernel/drivers/usb/storage/usb- storage.ko

`modinfo` displays information about a kernel module, such as its description, author, and dependencies, but it does not load or unload the module.

Cdepmod /lib/modules/3.6.12-100-generic/kernel/drivers/usb/storage/usb- storage.ko

`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.

Dinsmod /lib/modules/3.6.12-100-generic/kernel/drivers/usb/storage/usb- storage.koCorrect

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

#Kernel Module Management#Linux Commands#System Administration#USB Storage

Community Discussion

No community discussion yet for this question.

Full XK0-005 Practice