Tweaking the Kernel

I spent yesterday trying, unsuccessfully, to modify the kernel, removing modules that I don’t need.  In this case, the modules are the Cram, Reiser, and Squash filesystems.

The following command lists the modules in the kernel:


To get the filesystem modules,

lsmod | egrep “fs.ko$” | less

To remove a module, either the rmmod or modprobe commands can be used.  Modprobe is preferred.  This intelligently adds or removes modules.

The command I used was:

sudo modprobe -v -n -r cramfs reiserfs squashfs

-v –verbose
-n –dry-run
-r –remove

The verbose option should tell me what’s happening, error or not, but the above command executed with no error, or feedback of any kind.

modprobe expects an up-to-date modules.dep file, as generated by depmod.  I looked for and found modules.dep, so I am still stumped on this one.


Leave a Reply

Fill in your details below or click an icon to log in: Logo

You are commenting using your account. Log Out /  Change )

Google+ photo

You are commenting using your Google+ account. Log Out /  Change )

Twitter picture

You are commenting using your Twitter account. Log Out /  Change )

Facebook photo

You are commenting using your Facebook account. Log Out /  Change )


Connecting to %s

%d bloggers like this: