Home tmade.de

Home Wiki

Kernel

Check loaded modules:

lsmod 
cat /proc/modules 

Load manually a module:

modprobe modulename      #Loads module + dependencies
insmod modulename        #Loads just the module

Modules are stored in:

cat /proc/modules

Modprobe configuration:

/etc/modprobe.conf

Remove a loaded module:

rmmod modulename

Compile a Linux Kernel:

cd /usr/src/linux
make dep
make mrprop
make clean
make menuconfig
make
make CONFIG_DEBUG_SECTION_MISMATCH=y
make modules 
make modules_install
make install

Note:

Regular (vanilla) Kernelsources just know the command

make oldconfig

and reads in the content of the “.config” file (inside “/usr/src/linux/.config”)

The command

make cloneconfig 

reads the configuration of the running kernel (/proc/config.gz) and saves it as

.config

Kernel moduls are files stored in:

/lib/modules/kernel-version/

Kernel Commands

uname -r                #Show Kernel version
uname -a                #Show OS info 
cat /etc/issue          #Show OS info
cat /etc/SuSE-release   #Show OS info
cat /proc/cpuinfo 
cat /proc/meminfo 
cat /proc/mounts        #Is more reliable in conflicts/problems than /etc/mtab !!
cat /proc/filesystems 
cat /proc/partitions