where is my disk space?
Posted
by
user166241
on Super User
See other posts from Super User
or by user166241
Published on 2012-10-18T22:10:45Z
Indexed on
2012/10/18
23:05 UTC
Read the original article
Hit count: 172
linux
|hard-drive
I recently had a problem with .xsession-errors file - it became very big (> 90GB) and took all disk space: How I can check what takes disk space in /tmp?. I cleaned it with command > .xsession-errors
but after an hour it became large again. So I deleted it (rm .xsession-errors
) - it helped because it wasn't recreated but again after hour disk space disappeared - now there is no .xsession-errors
anymore but I don't know where is the memory:
df
Filesystem 1K-blocks Used Available Use% Mounted on
/dev/sda1 106640456 101223392 4 100% /
udev 8166744 8 8166736 1% /dev
tmpfs 3270224 972 3269252 1% /run
none 5120 0 5120 0% /run/lock
none 8175552 152 8175400 1% /run/shm
du -sc * .[^.]* | sort -n
0 initrd.img
0 initrd.img.old
0 proc
0 sys
0 vmlinuz
0 vmlinuz.old
4 cdrom
4 lib64
4 media
4 mnt
4 selinux
8 dev
12 srv
16 lost+found
68 tmp
1124 run
3396 lib32
5164 .rpmdb
5540 root
8888 sbin
9120 bin
17132 etc
106080 opt
116956 boot
861908 lib
3530584 usr
3821836 var
13371260 home
21859112 total
So there is around 100GB used but executing du -sc * .[^.]* | sort -n
in root directory finds only ~21 GB - so what takes 80GB?? How to check it? I suspect that when I deleted the `.xsession-errors' file the errors were redirected somwhere else - but where?
© Super User or respective owner