Dear All.
I have a small vps that I run a few domains on. Its 20gb of space and used is about 12gb. Doing some investigating. I ran the du
command on the /
This return me a few results but main ones to focus on is;
236M /y
1.3G /boot
1.7G /usr
2.1G /home
2.2G /var
4.8G /lib
What is the /y
dir? but more importantly /lib
is 4.8gb, looking deeper the /lib/modules
was 4.3gb, going into that and running the du comand returned me this;
42M /lib/modules/4.4.0-22-generic
42M /lib/modules/4.4.0-38-generic
42M /lib/modules/4.4.0-42-generic
42M /lib/modules/4.4.0-45-generic
42M /lib/modules/4.4.0-47-generic
44M /lib/modules/4.4.0-51-generic
44M /lib/modules/4.4.0-53-generic
51M /lib/modules/4.4.0-57-generic
51M /lib/modules/4.4.0-59-generic
51M /lib/modules/4.4.0-62-generic
53M /lib/modules/4.4.0-109-generic
53M /lib/modules/4.4.0-63-generic
53M /lib/modules/4.4.0-64-generic
53M /lib/modules/4.4.0-66-generic
53M /lib/modules/4.4.0-67-generic
53M /lib/modules/4.4.0-83-generic
209M /lib/modules/4.4.0-70-generic
209M /lib/modules/4.4.0-71-generic
209M /lib/modules/4.4.0-72-generic
209M /lib/modules/4.4.0-75-generic
209M /lib/modules/4.4.0-77-generic
209M /lib/modules/4.4.0-78-generic
209M /lib/modules/4.4.0-79-generic
209M /lib/modules/4.4.0-87-generic
209M /lib/modules/4.4.0-89-generic
209M /lib/modules/4.4.0-91-generic
209M /lib/modules/4.4.0-92-generic
209M /lib/modules/4.4.0-93-generic
209M /lib/modules/4.4.0-96-generic
209M /lib/modules/4.4.0-97-generic
209M /lib/modules/4.4.0-98-generic
213M /lib/modules/4.4.0-135-generic
213M /lib/modules/4.4.0-137-generic
I tried clearing the old modules with a sudo apt-get autoremove --purge
but it gets stuck in a infinite loop keep listing all the files, removing and the listing and removing. Anyone know what the cause of this? Does virtual min just prevent the deletion of these files or is it just run really slowly as I left it run for about 10 minutes and then just shutdown ssh channel.
Thanks