I have a strange problem. My harddrive is according to df -h
full:
$ df -h
Filesystem Size Used Avail Use% Mounted on
tmpfs 383M 1.1M 382M 1% /run
/dev/sda1 38G 36G 0 100% /
tmpfs 1.9G 0 1.9G 0% /dev/shm
tmpfs 5.0M 0 5.0M 0% /run/lock
/dev/sda15 253M 1.1M 252M 1% /boot/efi
tmpfs 383M 4.0K 383M 1% /run/user/1000
But, when I want to check which directory is eating up how much space I get the following output:
$ sudo du -ahd 1 | sort -h
du: cannot access './proc/1204547/task/1204547/fd/4': No such file or directory
du: cannot access './proc/1204547/task/1204547/fdinfo/4': No such file or directory
du: cannot access './proc/1204547/fd/3': No such file or directory
du: cannot access './proc/1204547/fdinfo/3': No such file or directory
0 ./bin
0 ./dev
0 ./lib
0 ./lib32
0 ./lib64
0 ./libx32
0 ./proc
0 ./sbin
0 ./sys
4.0K ./media
4.0K ./mnt
4.0K ./srv
16K ./lost+found
56K ./tmp
80K ./root
1.1M ./run
5.9M ./etc
39M ./home
121M ./boot
152M ./opt
1.4G ./snap
1.8G ./var
2.1G ./usr
5.6G .
I am actually confused because I'd expect here to see the directory which contains all this data. But adding up the numbers does not yield 36GB of data.
What is going on here?