1

I'm working on reduction of kernel size in Ubuntu. I've compiled and installed the kernel 5.2.3 stable now i want to remove kernel modules manually.

I've tried with rmmod command and after rebooting the Ubuntu it appears again in lsmod list.

I want to reduce kernel size so that i can run stably on 64 MB machines? Can someone guide me how can i do this?

Minner
  • 13
  • 5

1 Answers1

2

rmmod just unloads kernel modules but doesn't remove them from the kernel.

You need to recompile the kernel. See What's a simple way to recompile the kernel? for how to do that.

When recompiling to have to change the kernel's configuration in the make menuconfig or make xconfig step and remove the modules and other unneeded features there. The new kernel's configuration isn't affected by rmmod.