Linux - KernelThis forum is for all discussion relating to the Linux kernel.
Notices
Welcome to LinuxQuestions.org, a friendly and active Linux Community.
You are currently viewing LQ as a guest. By joining our community you will have the ability to post topics, receive our newsletter, use the advanced search, subscribe to threads and access many other special features. Registration is quick, simple and absolutely free. Join our community today!
Note that registered members see fewer ads, and ContentLink is completely disabled once you log in.
hi all.
i am having problem removing several loadable modules from a linux 2.6 kernel (redhat5)
i have entered them into a blacklist but it didnt help. removing manually is forbidden due to dependencies that i cannot see. just for example, say i dont use ext3 fs or lvm for that matter and dont want it to load on next boot. ext3 module is used by 2 other modules but their names arent specified in the lsmod command. (means its from the kernel itself?)
what i want to do is to create a new smaller kernel without most of the modules and without recompiling kernel.
See the manpages for modprobe(8). The option you want is -r.
I'm not sure how much luck you are going to have removing modules like ext3.
As for lvm, if you're really not using it, try simply turning off the lvm2-monitor service. (That might prevent the module from loading at boot time -- not sure on that.)
Can you explain why you're trying to do this? Are you expecting to see a big system resource savings?
hi anomie, knudfl, thanks for your quick response.
unloading with the -r option is not good enough because i dont want those module to be loaded from boot. i could wait for boot and schedule a script to unload them but it seems illogical if i can simply remove them from load sequence in first boot.
my goal is to create a smaller kernel by removing all unnecessary module like sound, video, bluetooth etc. rebuilding the kernel is not an option at hte moment because of redhat's support. as for the lvm module, this was just an example to a module which cannot be removed by -r because it has dependencies which cannot be seen in the lsmod command. (even tough i didnt use ext3 or lvm)
Oren.
LinuxQuestions.org is looking for people interested in writing
Editorials, Articles, Reviews, and more. If you'd like to contribute
content, let us know.