Questions tagged as ['du']

Score: 0
Athena Wisdom avatar
Find Largest Directories/Files when Drive is Full
gr flag

When the drive of an Ubuntu 20.04 server is full, how can we find out the directories/files with the largest sizes, ranked from largest to smallest? This can allow me to find some files to delete (likely log files)

Tried installing ncdu but theres insufficient space

# sudo apt install ncdu
Reading package lists... Error!
E: Write error - write (28: No space left on device)
E: Write error - write (2 ...
Score: 1
Keep running out of space, where have my harddrive space gone?
mm flag

I'm kind of a Linux noob and have been for almost 15 years, but I am trying to keep it active and learn more.

I have a Intel NUC with 120-ish NVMe SSD storage which I'm using for a home server. It has Ubuntu Server 18.04 installed and the only thing on it should be about 10 Docker containers and their respective volumes. I have Synology NAS shares mounted for larger data (main use is Plex server) ...

Score: 0
Why is my filesystem size larger than the partition size. (df vs fdisk)
br flag

So... I get that fdisk lists partition sizes, and df lists filesystem sizes, and that filesystem may use a portion of the partition and disagree on the size, but why would df list filesystem sizes that are larger that the partition sizes?

enter image description here

df: /dev/sda6 200G

fdisk: /dev/sda5 7.8G