LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Linux - Newbie (https://www.linuxquestions.org/questions/linux-newbie-8/)
-   -   understanding lsmod (https://www.linuxquestions.org/questions/linux-newbie-8/understanding-lsmod-810881/)

Undermind 05-29-2010 03:05 AM

understanding lsmod
 
Hello there fellow penguinfollowers

I have embarked on a project to create a full harddisk encryption, with the /boot partition on a usb drive, as described in this tutorial http://linuxreviews.org/howtos/secur.../index.html.en

Now, the first step says to compile a kernel with all modules compiled into the kernel itself rather than loaded seperately. I know i can use lsmod for this, but i have a little trouble understanding what the output of lsmod means. Does it simply list all the modules loaded, or does it list the status of all modules present, loaded or not? And what does the numbers to the left mean?

Code:

example output
Module                  Size  Used by
ipv6                  236668  14
ext2                  55924  1
snd_hda_codec_realtek  186046  1
snd_hda_intel          19249  3


business_kid 05-29-2010 03:13 AM

Your modules are on disk in /lib/modules. The ones the kernel is using are in ram, and they are what is shown by lsmod. lsmod is 'ls' for modules.

Presuming you plug in and mount everything you want to use, save that lsmod output. Then compile those modules in(if it says you have to) and forget the ones you had on disk. Then when you type 'lsmod' there should be no modules in use.

I wish you luck, btw. You will need it.

Undermind 05-29-2010 03:34 AM

Thanks for clearing that up for me. And i do not doubt the fact that it will be hard to get working. But i'll learn something from the process in any case :)

syg00 05-29-2010 05:05 AM

The kernel built process now has options to do most of the work for you - see here.


All times are GMT -5. The time now is 03:43 AM.