nerdexam
CompTIA

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.

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

(52 responses)
  • A
    2% (1)
  • B
    6% (3)
  • C
    2% (1)
  • D
    90% (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.

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

rmmod removes an already-loaded kernel module from the running kernel, which is the opposite of what is needed to enable a disabled module.

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

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.

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

depmod generates a modules.dep dependency file used by modprobe to resolve dependencies, but does not itself load any module into the running kernel.

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

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

#insmod#kernel modules#USB storage#device drivers

Community Discussion

No community discussion yet for this question.

Full XK0-004 Practice