Help answer threads with 0 replies.
Go Back > Forums > Linux Forums > Linux - Newbie
User Name
Linux - Newbie This Linux forum is for members that are new to Linux.
Just starting out and have a question? If it is not in the man pages or the how-to's this is the place!


  Search this Thread
Old 03-28-2011, 06:25 PM   #1
Registered: Aug 2010
Location: Warsaw, Poland
Distribution: Ubuntu 10.04 LTS on IBM Lenovo R61e, RHEL5-6,SLES10-11
Posts: 262

Rep: Reputation: 1
disk capacity vanished


I partitioned my new hdd in the following scheme.
Disk /dev/sdb: 120.0 GB, 120034123776 bytes
240 heads, 63 sectors/track, 15505 cylinders
Units = cylinders of 15120 * 512 = 7741440 bytes
Sector size (logical/physical): 512 bytes / 512 bytes
I/O size (minimum/optimal): 512 bytes / 512 bytes
Disk identifier: 0xf099f099

   Device Boot      Start         End      Blocks   Id  System
/dev/sdb1               1       15505   117217768+  83  Linux
When I perform 'df -h' it shows the following :
Filesystem            Size  Used Avail Use% Mounted on
/dev/sdb1             111G  188M  105G   1% /media/4369cb28-c94e-4218-97b8-4c2929827f43
Why 'df -h' shows Size 111G when 'fdisk -l' shows 120 GB ?
What happened to 9 GB of space ?

thx for help.
Old 03-28-2011, 06:55 PM   #2
Registered: Nov 2005
Distribution: Fedora, Redhat
Posts: 372

Rep: Reputation: 101Reputation: 101
Well, to start with the 120GB is the disk manufacturer's fraudulent drive size that is a "decimalized" value (they all do it).
120034123776 / (1000*1000*1000) = 120.034123776GB.

But the other value is the same number shown as a "power of two" value (i.e. 1K = 1024; 1M =1024*1024 or 1048576; 1G =1024*1024*1024 or 1073741824).
120034123776 / (1024*1024*1024) = 111.790489196777344GB.

And then there is a certain amount of overhead to any filesystem for inodes, directories, unusable starting addresses or ending addresses of partitions because of alignment. And other stuff I'm ignorant of.

Last edited by tommylovell; 03-28-2011 at 07:28 PM.
Old 03-28-2011, 07:38 PM   #3
LQ Guru
Registered: Aug 2004
Location: Sydney
Distribution: Centos 6.7, Centos 5.10
Posts: 16,923

Rep: Reputation: 2215Reputation: 2215Reputation: 2215Reputation: 2215Reputation: 2215Reputation: 2215Reputation: 2215Reputation: 2215Reputation: 2215Reputation: 2215Reputation: 2215
Alsop, the default is for the system to reserve (5% iirc) for private use by the system/root in case the user area fills up and/or keeping partition defragged ie temp storage for moving blocks around.


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 Off
HTML code is Off

Similar Threads
Thread Thread Starter Forum Replies Last Post
Finding capacity of Hard disk manoj.linux AIX 4 12-07-2010 12:51 AM
Hard disk vanished! What happened? lucmove Linux - Hardware 1 09-13-2009 03:13 AM
I can't access the full capacity of my hard disk urpion Linux - Newbie 5 10-20-2008 02:04 PM
Samba displaying incorrect disk capacity on windows clients... fred22 Linux - Software 1 03-30-2006 09:24 PM
how to find disk capacity Henry_1 Linux - General 4 09-12-2003 12:40 AM

All times are GMT -5. The time now is 02:00 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