Adding External Storage Kernel Modules | Linux+ Exam XK0-004 | CompTIA

Add Kernel Module for External Storage | Linux+ Exam XK0-004

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?

Answers

Explanations

Click on the arrows to vote for the correct answer

A. B. C. D.

D.

https://www.cyberciti.biz/faq/linux-how-to-load-a-kernel-module-automatically-at-boot-time/

The BEST command for adding the proper kernel module to enable external storage modules in this scenario would be D. insmod /lib/modules/3.6.12-100-generic/kernel/drivers/usb/storage/usb-storage.ko.

Explanation:

The Linux administrator needs to mount an external hard drive, but external storage kernel modules are disabled as a security policy. A kernel module is a piece of code that can be loaded into the Linux kernel at runtime, which allows the kernel to support new hardware or file systems.

The options provided in the question are as follows:

A. rmmod /lib/modules/3.6.12-100-generic/kernel/drivers/usb/storage/usb-storage.ko This command is used to remove a kernel module from the Linux kernel at runtime. In this case, the command is attempting to remove the usb-storage kernel module, which is not the correct approach to enable external storage modules.

B. modinfo /lib/modules/3.6.12-100-generic/kernel/drivers/usb/storage/usb-storage.ko This command displays information about a kernel module, including its version, author, description, and dependencies. While this command provides useful information about the usb-storage kernel module, it does not enable external storage modules.

C. depmod /lib/modules/3.6.12-100-generic/kernel/drivers/usb/storage/usb-storage.ko This command creates a dependency file that lists the dependencies of the specified kernel module. It does not enable external storage modules.

D. insmod /lib/modules/3.6.12-100-generic/kernel/drivers/usb/storage/usb-storage.ko This command is used to insert a kernel module into the Linux kernel at runtime. In this case, the command is attempting to insert the usb-storage kernel module, which is the correct approach to enable external storage modules.

Therefore, the BEST command for adding the proper kernel module to enable external storage modules is D. insmod /lib/modules/3.6.12-100-generic/kernel/drivers/usb/storage/usb-storage.ko.