Saturday, August 15, 2009

LPI 102v part_001

001. What command would load the module msdos.o and all its dependancies ?

A. modifo -a msdos
B. lsmod -a msdos
C. modprobe msdos
D. insmod -d msdos

Ans: C

002. What command will unload a kernel module ?

A. rmmod
B. unmod
C. delmod
D. modprobe
E. unloadmod

Ans : A

003. The ______ command will list the currently loaded kernel modules.

Ans : lsmod


004. You wish to remove a module from the kernel called fat. Assume this module has no dependancies. Type in the simplest command to do this :


Ans : rmmod fat


005. You have just added new modules to you system. What command would you execute to rebuild the modules.dep file ?

A. depmod --rebuild
B. update-dependancies
C. depmod -a
D. insmod -dependancies

Ans : C

006. Which of the following correctly describe the relationship between depmod and modprobe ?

A. depmod creates a dependency file for use by modprobe
B. modprobe create a dependency file for use by depmod
C. they have no relationship
D. they can replace each other


Ans : A

Explanation : Depmod creates a "Makefile" -like dependency file, based on the symbols it fineds in the set of modules mentioned on the command line or from the directories specified in the configuration file. This dependency file is late used by modprobe to automatically load the correct module or stack of modules.


007. The normal use of depmod is to include which of the following lines in one of the files in /etc/rc.d so the correct module dependencies will be available after booting the system ?

A. /sbin/depmod -a
B. /sbin/depmod -p
C. /sbin/depmod -r
D. /sbin/depmod -c

Ans: A

Explanation : depmod creates a dependency file for the modules given on the command line. This dependency file can be used by modprobe to automatically load the relevant modules. The normal use of depmod is to include the line /sbin/depmod -a in one of the files in /etc/rc.d so the correct module dependencies will be available after booting the system.


008. What command option of depmod allows you to print a list of all unresolved symbols ?

A. -e
B. -l
C. -i
D. -a

Ans: A

Explanation : depmod creates a dependency file for the modules given on the command line. -e : print a list of all unresolved sysmbols.


009. Which of the following commands loads the module file into the kernel and changes any symbols that are defined on the command line ?

A. insmod
B. depmod
C. modprobe
D. setmod

Ans : A


010. What option of the insmod command can you use to force the loading of module even if problems are encountered?

A. -f
B. -F
C. -u
d. -r

Ans : A

No comments:

Post a Comment