PDA

View Full Version : Different ways to load kernel modules. What is the difference?



vksingh
March 17th, 2010, 04:23 PM
Hi All,

I got two ways to load the kernel modules,

insmod /lib/modules/2.5.1/kernel/fs/fat/fat.o
insmod /lib/modules/2.5.1/kernel/fs/msdos/msdos.o
or just run "modprobe -a msdos".


What is the difference between the above two ways?


Thanks,


Vivek

falconindy
March 17th, 2010, 04:41 PM
modprobe is both smarter and safer than insmod.

ssam
March 17th, 2010, 04:42 PM
ismod loads a module from the full path.
modprode finds the module by its name, and also loads any dependency modules.

see
man insmod
man modprobe

(its a bit like the difference between dpkg and apt-get)