Thursday, 27 June 2013

Loading kernel modules during booting

Sometimes, it is becomes necessary to force loading of a kernel module at boot time.

 Linux checks for the existence of the /etc/rc.modules file at boot time, which contains various commands to load modules.

The rc.module should be used, not rc.local because rc.modules is executed earlier in the boot process.

For example, the following commands configure loading of the "flash"  module at boot time (as root):


# echo modprobe flash >> /etc/rc.modules 
# chmod +x /etc/rc.modules
 
Done :) 

No comments:

Post a comment

Note: only a member of this blog may post a comment.