-   Linux - Newbie (
-   -   Inconsistent disk usage (

kraig22 02-18-2010 08:16 AM

Inconsistent disk usage
My english is bad so please be a little indulgent.

A few days ago, I installed Debian Lenny on a 500GB HD, on remote computer with no problem. I created a few users, installed some packages and so on. I also installed quota and allocated a 25GB quota to one of those users. No problem.

Now I remotely re-installed the same Debian version, using the default partition system, installed gnome for testing purpose and some packages.
I created a few users, one of them with the same name as in the previous installation. I did'nt install quotas.
I have webmin installed and I get the some results as below on the "system information" page / Local disk space.

When I type df -h in the console I get a weird result on the sda2 line :

Filesystem Size Used Avail Use% Mounted on

/dev/sda2 452G 222M 429G 1% /home

The problem is, as you can see, there are around 22GB missing !
Anyway I haven't installed 22GB of packages.
I searched the net for infos, read df man pages about this and found nothing.

Can someone explain me or help me fixing the problem please ?


michaelk 02-18-2010 08:32 AM

By default when an ext2/3 filesystem is formatted 5% is reserved for roots use. This is supposed to reduce fragmentation as well as allow root to login in case the filesystem becomes full. You can use tune2fs to reduce the amount of reserved space.

kraig22 02-18-2010 08:44 AM

Thanks a lot for these precisions. I didn't know about that and never noticed this before or on other posts about disk usage... I'll use tunefs as you suggested. Problem solved.

All times are GMT -5. The time now is 02:52 AM.