[xubuntu-users] Fast and usful

Ralf Mardorf ralf.mardorf at rocketmail.com
Fri Mar 4 11:02:31 UTC 2016


Actually /boot has an odd size. Compared to modern hard disk sizes or
even the size of an USB stick, the few bytes the kernel files require
in /boot and /lib/modules etc. are nothing. It doesn't harm to keep a
few kernels, before purging them. Removing an old kernels right after
updating to a new release could harm very much.

The right way to handle this issue is to enlarge the /boot partition or
to merge /boot into the root directory.

However, if you really insist in overhasty purging old kernels, than
really do it, don't copy grotesk commands, that keep all your modules
build by dkms and the very dkms files too.

If you run "dpkg -l" piped through tons off commands, then you do not
"remove old kernels in ubuntu with one command", de facto you are using
several commands and in addition, as already pointed out, you still
keep all your dkms modules and the very dkms files too, so consider to
at least add few dkms related commands too, to get rid of your
proprietary graphics modules, virtual host modules etc..

However, IMO you should keep a few kernels, IOW correct your install, to
make it possible to keep a few kernels.

If don't want to keep ols kernels, than ensure that everything
related old kernels is removed. After you purged a kernel and it's
headers, take a look at /lib/modules/ and /var/lib/dkms/vboxhost/
by running

  ls -hl /lib/modules/ /var/lib/dkms/vboxhost/

you might need to run something similar to

  dkms remove -m vboxhost -v 5.0.12 --all

The above is just an example ;), you likely need to replace vbox with
something else and perhaps don't want to use the --all option ;).




More information about the xubuntu-users mailing list