I was running a bash script which created a 14G file in the tmp directory , I deleted it still I cant find the directory or file which is large.
My output for df -h
Filesystem Size Used Avail Use% Mounted on
udev 474M 0 474M 0% /dev
tmpfs 99M 11M 88M 11% /run
/dev/vda1 25G 25G 0 100% /
tmpfs 491M 0 491M 0% /dev/shm
tmpfs 5.0M 0 5.0M 0% /run/lock
tmpfs 491M 0 491M 0% /sys/fs/cgroup
/dev/vda15 105M 3.9M 101M 4% /boot/efi
/dev/loop0 90M 90M 0 100% /snap/core/7917
/dev/loop1 55M 55M 0 100% /snap/lxd/12211
/dev/loop2 94M 94M 0 100% /snap/core/8935
/dev/loop3 68M 68M 0 100% /snap/lxd/14194
tmpfs 99M 0 99M 0% /run/user/0
/dev/loop4 55M 55M 0 100% /snap/core18/1705
/dev/loop5 49M 49M 0 100% /snap/gtk-common-themes/1474
/dev/loop6 153M 153M 0 100% /snap/chromium/1071
tmpfs 99M 0 99M 0% /run/user/1000
My output for du -sh in / directory
du: cannot access './proc/19935/task/19935/fd/4': No such file or directory
du: cannot access './proc/19935/task/19935/fdinfo/4': No such file or directory
du: cannot access './proc/19935/fd/3': No such file or directory
du: cannot access './proc/19935/fdinfo/3': No such file or directory
4.7G .
I cant install ncdu or any other tools since the disk is full , considering the summarized size after du -sh where is the rest of the space out of 25GB
My lsb-release
DISTRIB_ID=Ubuntu
DISTRIB_RELEASE=19.10
DISTRIB_CODENAME=eoan
DISTRIB_DESCRIPTION="Ubuntu 19.10"
Output for du -sh /*/
119M /bin/
97M /boot/
0 /dev/
5.9M /etc/
212M /home/
682M /lib/
4.0K /lib32/
4.0K /lib64/
4.0K /libx32/
16K /lost+found/
4.0K /media/
4.0K /mnt/
4.0K /opt/
du: cannot access '/proc/20791/task/20791/fd/4': No such file or directory
du: cannot access '/proc/20791/task/20791/fdinfo/4': No such file or directory
du: cannot access '/proc/20791/fd/3': No such file or directory
du: cannot access '/proc/20791/fdinfo/3': No such file or directory
0 /proc/
72K /root/
11M /run/
30M /sbin/
1.9G /snap/
4.0K /srv/
0 /sys/
17M /tmp/
845M /usr/
768M /var/
du -sh
with root permission? – phuclv Apr 05 '20 at 10:04du -sh /*/
to get the size of each sub folder. And try to clean old kernels and /tmp first. No more disk space: How can I find what is taking up the space? – phuclv Apr 05 '20 at 10:49du -sh /*/
will list only directories but not files due to the trailing slash at the end of the command. Some space might be occupied by swapfile. Please check withdu -sh /*
again, this will also list files which may exist in the/
-directory. – mook765 Apr 05 '20 at 13:16swapon -s
. Did you ever reboot since you deleted that file in the/tmp
-directory? – mook765 Apr 05 '20 at 13:30