Which two statements are true about the modprobe command?

Examine the command on its output:
[root@FAROUT ~] # modprobe –v nfs
Insmod /lib/modules/2.6.39-100.0.12.e16uek.x86_64/kernel/fs/nfs_common/nfs_acl.ko insmod
/lob/modules/2.6.39-100.0.12.e16uek.x86_64/kernel/net/sunrpc/auth_gss/auth_rpcgss.ko
Insmod /lib/modules/2.6.39-100.0.12.e16uek.x86_64/kernel/fs/fscache/fscache/ko
Insmod /lib/modules/2.6.39-100.0.12.e16uek.x86_64/kernel/fs/locked.ko
Insmod /lib/modules/2.6.39-100.0.12.e16uek.x86_64/kernel/fs/nfs/nfs.ko
Which two statements are true about the modprobe command?

Examine the command on its output:
[root@FAROUT ~] # modprobe –v nfs
Insmod /lib/modules/2.6.39-100.0.12.e16uek.x86_64/kernel/fs/nfs_common/nfs_acl.ko insmod
/lob/modules/2.6.39-100.0.12.e16uek.x86_64/kernel/net/sunrpc/auth_gss/auth_rpcgss.ko
Insmod /lib/modules/2.6.39-100.0.12.e16uek.x86_64/kernel/fs/fscache/fscache/ko
Insmod /lib/modules/2.6.39-100.0.12.e16uek.x86_64/kernel/fs/locked.ko
Insmod /lib/modules/2.6.39-100.0.12.e16uek.x86_64/kernel/fs/nfs/nfs.ko
Which two statements are true about the modprobe command?

A.
It will load the nfs module if all the modules upon which it depends have been loaded.

B.
It displays the dependency resolution for the nfs module and loads all the modules upon which
nfs depends before loading the nfs module.

C.
It verifies that the nfs module and all other modules that depend on the nfs module are
installed.

D.
It displays the dependency resolution that would occur if the nfs module were to be loaded
using modprobe nfs.

E.
It only loads the nfs module if all the modules upon which it depends have not been loaded yet.

Explanation:
Reference: http://redhat.activeventure.com/8/customizationguide/ch-kernel-modules.html (kernel
module utilities)



Leave a Reply 8

Your email address will not be published. Required fields are marked *


Nwildner

Nwildner

http://linux.die.net/man/8/modprobe

It will just “say” what the command is doing( -v = verbose).
Since the default behavior is to load the module and it´s dependencies, -v will show dependencies being loaded and the module itself.

Djuro

Djuro

Correct answer is A.

vasben

vasben

man modprobe:

-v, –verbose
Print messages about what the program is doing. Usually modprobe only prints messages if something goes wrong.

So, the correct answer is B

the tuk-ITE'05 CON-KMITL

the tuk-ITE'05 CON-KMITL

Which two statements are true about the modprobe command?

Correct answer is A and B.

*****

*****

Answer: B (and A, if available to select)

The modprobe command loads kernel modules. Syntax: modprobe
And the -v verbose option is used to show if any additional modules are loaded to resolve dependencies.

roman

roman

B
[root@tst ~]# lsmod | grep nfs
[root@tst ~]# modprobe -v nfs

[root@tst ~]# lsmod | grep nfs
nfs 184416 0
fscache 52962 1 nfs
lockd 84641 1 nfs
sunrpc 268153 3 nfs,lockd

Yashika

Yashika

A, B confirmed