LinuxQuestions.org
Download your favorite Linux distribution at LQ ISO.
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - General
User Name
Password
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.

Notices



Reply
 
Search this Thread
Old 07-08-2002, 09:35 PM   #1
mikeshn
Member
 
Registered: Feb 2002
Distribution: Fedora Core 2
Posts: 586

Rep: Reputation: 30
df -h .. Lying?


Hello

Below is given the partition of my hard drive. I have probably very stupid question. For example /dev/hda3 is 13 GIG ( 10 GIG [available] + 2.2 GIG[used] = 12.2 GIG) where is another 0.8 GIG of hard drive? Same story with /dev/hda2. What is wrong?


root@localhost /]# df -h
Filesystem Size Used Avail Use% Mounted on
/dev/hda3 13G 2.2G 10G 17% /
/dev/hda2 50M 14M 34M 28% /boot
none 125M 0 124M 0% /dev/shm
Thanks
 
Old 07-08-2002, 09:42 PM   #2
pickledbeans
Member
 
Registered: Jun 2002
Location: Bailey, CO
Distribution: Slackware
Posts: 483

Rep: Reputation: 31
My geuss is its just rounding. I seen fs listed at 100% that still had space on the. try df -k and df -m?
Then again I'm not sure how ext2 journaling effects file space?
 
Old 07-08-2002, 09:52 PM   #3
finegan
Guru
 
Registered: Aug 2001
Location: Dublin, Ireland
Distribution: Slackware
Posts: 5,700

Rep: Reputation: 57
First, like pickledbeans said, there is quite a lot lost to inode space for the filesystem.

Second, hard drive manufacturers are cheap and give your bytes to you in linear space, so 13Gb is:

13,000,000,000 bytes.

Meanwhile every operating system on the planet treats 1k as

1024 bytes. (2 to the tenth) So 1 Meg:

1024x1024 = 1048576 bytes. (2 to the twenthieth) So 1 Gig:

1048576x1024 = 1073741824 bytes.

13000000000 / 1073741824 = 12.11Gb so really the drive probably has more linear bytes on it than it claims (hard to make the platters so bloody precise)

Cheers,

Finegan
 
  


Reply


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
URGENT- cfdisk or df are lying to me! TGWDNGHN Linux From Scratch 3 10-14-2005 09:53 AM
mii-tool apparently lying about 3COM cards MensaWater Linux - Networking 4 09-29-2005 11:13 AM
is apt-get buggy or is aptitude lying!? Daveb3 Debian 14 07-26-2005 04:55 PM
Linux Association says Bill Gates is lying to readers of Der Spiegel Ephracis Linux - News 1 03-30-2005 03:24 PM
who is lying??? yenonn General 30 01-02-2004 03:35 AM


All times are GMT -5. The time now is 01:50 AM.

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