I am using ubuntu 18.04 bionic.
I'am getting errors like this with every command.
for example I got this error for the "mkdir" command.
mkdir: cannot create directory ‘/var/lib/apt/lists’: No space left on device
I can not run any command.
I did a lot of research on the internet. none of them worked for me.
My disk status:
Filesystem Size Used Avail Use% Mounted on
udev 2.0G 0 2.0G 0% /dev
tmpfs 395M 656K 394M 1% /run
/dev/vda1 78G 14G 65G 17% /
tmpfs 2.0G 0 2.0G 0% /dev/shm
tmpfs 5.0M 0 5.0M 0% /run/lock
tmpfs 2.0G 0 2.0G 0% /sys/fs/cgroup
/dev/vda15 105M 3.6M 101M 4% /boot/efi
tmpfs 395M 0 395M 0% /run/user/0
df -hi
Filesystem Inodes IUsed IFree IUse% Mounted on
udev 490K 384 490K 1% /dev
tmpfs 494K 631 493K 1% /run
/dev/vda1 9.9M 9.9M 0 100% /
tmpfs 494K 1 494K 1% /dev/shm
tmpfs 494K 4 494K 1% /run/lock
tmpfs 494K 18 494K 1% /sys/fs/cgroup
/dev/vda15 0 0 0 - /boot/efi
tmpfs 494K 11 494K 1% /run/user/0
du
4 ./.config/htop
8 ./.config
4 ./.gnupg/private-keys-v1.d
8 ./.gnupg
4 ./vst_install_backups/1553954077/clamd
4 ./vst_install_backups/1553954077/spamassassin
4 ./vst_install_backups/1553954077/bind
4 ./vst_install_backups/1553954077/postgresql
4 ./vst_install_backups/1553954077/proftpd
4 ./vst_install_backups/1553954077/mysql
4 ./vst_install_backups/1553954077/apache2
4 ./vst_install_backups/1553954077/dovecot
4 ./vst_install_backups/1553954077/exim4
4 ./vst_install_backups/1553954077/vsftpd
4 ./vst_install_backups/1553954077/nginx
4 ./vst_install_backups/1553954077/vesta
4 ./vst_install_backups/1553954077/mongodb
4 ./vst_install_backups/1553954077/php
60 ./vst_install_backups/1553954077
64 ./vst_install_backups
27564 ./.cache/composer/repo/https---repo.packagist.org
27568 ./.cache/composer/repo
124 ./.cache/composer/vcs/https---github.com-bluerhinos-phpMQTT.git/objects/pack
4 ./.cache/composer/vcs/https---github.com-bluerhinos-phpMQTT.git/objects/info
132 ./.cache/composer/vcs/https---github.com-bluerhinos-phpMQTT.git/objects
4 ./.cache/composer/vcs/https---github.com-bluerhinos-phpMQTT.git/branches
4 ./.cache/composer/vcs/https---github.com-bluerhinos-phpMQTT.git/refs/heads
4 ./.cache/composer/vcs/https---github.com-bluerhinos-phpMQTT.git/refs/tags
12 ./.cache/composer/vcs/https---github.com-bluerhinos-phpMQTT.git/refs
52 ./.cache/composer/vcs/https---github.com-bluerhinos-phpMQTT.git/hooks
8 ./.cache/composer/vcs/https---github.com-bluerhinos-phpMQTT.git/info
228 ./.cache/composer/vcs/https---github.com-bluerhinos-phpMQTT.git
232 ./.cache/composer/vcs
4 ./.cache/composer/files
27812 ./.cache/composer
27816 ./.cache
4 ./.local/share/nano
8 ./.local/share
12 ./.local
16 ./.composer
4 ./.ssh
27964 .
df -hi
, ie. do you have inodes available? or are they all used up? – guiverc Sep 23 '20 at 12:30du
will allow you to find your cause.. (so you canrm
the culprit) – guiverc Sep 23 '20 at 12:35du
? – omero Sep 23 '20 at 12:46du
(disk usage) will need to be told to look for inodes, ie. option--inodes
is required. You hunt for a directory that's got likely millions of files in it... either you are using buggy software, or have a mis-configuration causing tons of tiny files to be created.rm
will fix the issue yes, but when you find it you still need to fix the cause or it'll happen again & you'll be repeating this process again & again... – guiverc Sep 23 '20 at 12:50du
you're using, but I'd say: NO. Try to find small files withfind / -size 0c
, where you increase 0c by one each time. (1c, 2c, 3c, but do read the manual, 1b, 2b are possible too). I agree with @guiverc that you are likely to find many. THEN, you need to find out where they came from and if the process making them is terminated. Then, withfind
, it would be easy to do a-delete
, but PLEASE do read the man page for find (man find
). – Adriaan Sep 23 '20 at 12:55