Answer the question
In order to leave comments, you need to log in
Out of disk space. How to determine exactly where the cause is?
I execute df -h
Filesystem Size Used Avail Use% Mounted on
/dev/sda1 48G 48G 0 100% /
udev 10M 0 10M 0% /dev
tmpfs 792M 33M 759M 5% /run
tmpfs 2.0G 92K 2.0G 1% /dev/shm
tmpfs 5.0M 0 5.0M 0% /run/lock
tmpfs 2.0G 0 2.0G 0% /sys/fs/cgroup
tmpfs 396M 24K 396M 1% /run/user/1000
3.4G ./usr
4.0K ./lib64
4.0K ./mnt
4.0K ./opt
4.0K ./srv
4.3G .
5.1M ./tmp
7.7M ./etc
8.0K ./media
8.5M ./sbin
9.6M ./home
12M ./bin
16K ./lost+found
31M ./boot
38M ./root
207M ./lib
620M ./var
3.3GiB [##########] /usr
616.0MiB [# ] /var
206.2MiB [ ] /lib
37.8MiB [ ] /root
. 32.7MiB [ ] /run
30.0MiB [ ] /boot
11.7MiB [ ] /bin
9.5MiB [ ] /home
8.5MiB [ ] /sbin
7.7MiB [ ] /etc
92.0KiB [ ] /dev
64.0KiB [ ] /tmp
e 16.0KiB [ ] /lost+found
8.0KiB [ ] /media
4.0KiB [ ] /lib64
e 4.0KiB [ ] /srv
e 4.0KiB [ ] /opt
e 4.0KiB [ ] /mnt
. 0.0 B [ ] /proc
0.0 B [ ] /sys
@ 0.0 B [ ] initrd.img
@ 0.0 B [ ] vmlinuz
Total disk usage: 4.2GiB Apparent size: 4.2GiB Items: 266400
Answer the question
In order to leave comments, you need to log in
see the size of deleted but used files
sudo lsof | awk '/deleted/ {sum+=$7} END {print sum}'
Maybe something "holds" the deleted file? For example log. Look:sudo lsof | grep -i delete
maybe the disk was not properly marked when installing Linux'a? Didn't think about it
Didn't find what you were looking for?
Ask your questionAsk a Question
731 491 924 answers to any question