Linux - GeneralThis Linux forum is for general Linux questions and discussion.
If it is Linux Related and doesn't seem to fit in any other forum then this is the place.
Notices
Welcome to LinuxQuestions.org, a friendly and active Linux Community.
You are currently viewing LQ as a guest. By joining our community you will have the ability to post topics, receive our newsletter, use the advanced search, subscribe to threads and access many other special features. Registration is quick, simple and absolutely free. Join our community today!
Note that registered members see fewer ads, and ContentLink is completely disabled once you log in.
If you have any problems with the registration process or your account login, please contact us. If you need to reset your password, click here.
Having a problem logging in? Please visit this page to clear all LQ-related cookies.
Get a virtual cloud desktop with the Linux distro that you want in less than five minutes with Shells! With over 10 pre-installed distros to choose from, the worry-free installation life is here! Whether you are a digital nomad or just looking for flexibility, Shells can put your Linux machine on the device that you want to use.
Exclusive for LQ members, get up to 45% off per month. Click here for more info.
I have a 500GB ext3 volume which under df is saying is 20% used (94GB), yet when I do du, it only shows some dozens of KB. This volume is used as a working volume for our backups (Amanda) but should have basically 0 usage when there is nothing running.
[root@windsor holding]# df -h /holding
Filesystem Size Used Avail Use% Mounted on
/dev/sdc1 504G 94G 385G 20% /holding
[root@windsor holding]# du -sh /holding
36K /holding
By default when an ext2/3 filesystem is created 5% (25GB in your case) is reserved for root use. This is supposed to reduce fragmentation as well as allow root to log in case the filesystem becomes full. Since this is a data partition you can safely reduce this to zero. Reserved space does not show up as being used which is why the numbers from the output of df do not add up. You can change the amount of reserved space via the tune2fs command.
Now what is using 94 GB is a more difficult question to answer. Could be hidden files try:
du -hax
I think something was terribly wrong with that volume. I started fsck on it and it said fs contains errors, check forced, and it's been running for an hour doing nothing. It's an empty volume so even 500G shouldn't take very long, right?
Anyhow, I'm going to leave it fscking overnight and if it's still doing nothing tomorrow, like I said, it's only 36KB of data so I'll just pull that off and wipe the file system.
LinuxQuestions.org is looking for people interested in writing
Editorials, Articles, Reviews, and more. If you'd like to contribute
content, let us know.