0

I have a Linux CentOs7 server, The server parition dev/mapper/centos-root/size is 80GB When I run df I can see that 58 GB are in use.

enter image description here

When I do du -shx * I see that there is more or less 28GB space taken by data enter image description here

Where are the remaining 30gb gone? Any help would be great. Thanks

  • I find it strange that several directories have 0 size, e.g. bin. That doesn't make sense. lib and lib64 most definitely have something in them, including bin. – Ungeheuer Sep 16 at 14:16
  • Aren't /bin and and /sbin just symlinks to like /usr/bin and /usr/sbin? That's the way it is on my Manjaro and $ du -shx * shows 0 for them indeed. – puzzle Sep 16 at 15:29
  • Most likely any difference between du and df is the result of files that are deleted but still open. Can you reboot? If not, look into ‘lsof’ to find deleted files open by running processes. – jsbillings Sep 17 at 0:24
0

Try to use ncdu for visualize hd usage.

ncdu is the "ncursers du", so you need to have ncurses lib if you want to compile the code your self.

Be sure to run the tool as root, cause some file will be only visible to the root user.

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

Not the answer you're looking for? Browse other questions tagged or ask your own question.