Did you know LQ has a Linux Hardware Compatibility List?
Go Back > Forums > Linux Forums > Linux - General
User Name
Linux - General This 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.


  Search this Thread
Old 06-12-2004, 05:12 PM   #1
LQ Newbie
Registered: Jun 2004
Posts: 3

Rep: Reputation: 0
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

Last edited by navaneethanj; 06-12-2004 at 05:14 PM.
Old 06-12-2004, 11:07 PM   #2
LQ Guru
Registered: Jan 2001
Posts: 24,147

Rep: Reputation: 229Reputation: 229Reputation: 229
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.
Old 06-12-2004, 11:17 PM   #3
Senior Member
Registered: Dec 2001
Location: 35.7480 N, 95.3690 W
Distribution: Debian, Gentoo, Red Hat, Solaris
Posts: 2,070

Rep: Reputation: 46
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.
Old 06-14-2004, 07:38 AM   #4
LQ Newbie
Registered: Jun 2004
Posts: 3

Original Poster
Rep: Reputation: 0
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.
Old 06-14-2004, 07:57 AM   #5
Registered: Aug 2002
Posts: 13,322

Rep: Reputation: 1093Reputation: 1093Reputation: 1093Reputation: 1093Reputation: 1093Reputation: 1093Reputation: 1093Reputation: 1093
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.
Old 06-14-2004, 12:55 PM   #6
LQ Newbie
Registered: Jun 2004
Posts: 3

Original Poster
Rep: Reputation: 0
Gr8 answer. Thanks for your help.



Thread Tools Search this Thread
Search this Thread:

Advanced Search

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Similar Threads
Thread Thread Starter Forum Replies Last Post
Size in superblock is different from the physical size of the partition cyberfishee Linux - Hardware 16 08-12-2012 01:40 PM
Added second harddrive as a partition, but now the partition size is wrong.. mlsbraves Linux - General 5 08-17-2005 08:10 PM
file system size larger than fysical size:superblock or partition table corrupt klizon Linux - General 0 06-18-2004 04:18 PM
fdisk partition size differs from mounted partition size jimieee Linux - General 3 10-15-2003 03:10 AM
root partition shows wrong total size Dergro Linux - General 12 10-08-2003 12:49 PM

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

Main Menu
Write for LQ is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration