LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Linux - General (https://www.linuxquestions.org/questions/linux-general-1/)
-   -   Total partition size - User partition size is not equals to Free partition size (https://www.linuxquestions.org/questions/linux-general-1/total-partition-size-user-partition-size-is-not-equals-to-free-partition-size-192794/)

navaneethanj 06-12-2004 05:12 PM

Total partition size - User partition size is not equals to Free partition size
 
Why in the df command the Total partition size - User partition size is not equals to Free partition size.

Filesystem 1K-blocks Used Available Use% Mounted on
/dev/hda1 10082852 6987452 2583212 74% /
10082852 - 6987452 != 2583212 ?????????
/dev/hda5 15254652 9536944 4942812 66% /advent
/dev/hda2 12092032 9004404 2473380 79% /home

trickykid 06-12-2004 11:07 PM

I fail to see what your trying to ask here? At times there will so much space reserved for root, etc. But it looks as if your df output is accurate. :confused:

darthtux 06-12-2004 11:17 PM

I also don't understand what you are asking. Could you restate it? Try the -h option
df -h
makes the output more readable for you.

navaneethanj 06-14-2004 07:38 AM

Sorry for the short message. Let me explain.

The below is the output of 'df -h' from my linux system.

Filesystem Size Used Avail Use% Mounted on
/dev/hda2 9.6G 7.0G 2.1G 77% /
/dev/hda5 15G 528M 14G 4% /advent
/dev/hda3 11G 2.1G 8.9G 19% /home

Take '/dev/hda2'. Its Size is 9.6GB. Its used size is 7.0GB. So expect that the Free size would 2.6GB (which 9.6 - 7.0). But it shows as 2.1GB. Where 500MB went out. Hope i am clear now.

Let me know if you need any more clarifications.

michaelk 06-14-2004 07:57 AM

By default 5% is reserved for root but not shown as used. The purpose of reserved space is to reduce fragmentation and allow root access in case the file system becomes full. You can use tune2fs to reduce the amount of reserved space.

navaneethanj 06-14-2004 12:55 PM

Gr8 answer. Thanks for your help.

Regards,
Navaneethan.


All times are GMT -5. The time now is 06:24 AM.