Review your favorite Linux distribution.
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 06-22-2006, 09:49 AM   #1
Registered: Aug 2005
Location: Lancashire (United Kingdom)
Distribution: Debian Etch, on 686 machine.
Posts: 509

Rep: Reputation: 31
df and kdiskfree show different readings and missing disk space

when I do df it says:

Filesystem 1K-blocks Used Available Use% Mounted on
/dev/hda1 14421344 1681096 12007688 13% /
tmpfs 128500 0 128500 0% /dev/shm
/dev/hda3 103257112 15241216 82770676 16% /home
tmpfs 128500 104 128396 1% /dev

However when I run kdiskfree it says:

hda1 is 13.8gb (i told it to give me 15 gb furing the install) and has used 16.7%
hda3 is 98.5gb and that it has used 19.8%

Now which one is displaying the correct output?

Is it not detecting some disk space here?

because even when I add on my swap space to the figures given by kdiskfree it still only comes to 112.937 gb and i have a 120 gb drive. Even when I add up all the sizes of the partitions and the swap it still does not come to 120gb (this could be me being rubbish at math).

Does anyone see anything wrong with this, or is correct? If there is something wrong what do you suggest, would formating the entire drive with dban and then creating the partitions from scratch again sort out the issue?

Thanks in advance.

Old 06-22-2006, 10:06 AM   #2
Registered: Aug 2005
Location: Lancashire (United Kingdom)
Distribution: Debian Etch, on 686 machine.
Posts: 509

Original Poster
Rep: Reputation: 31
forgot to add this is the output from fdisk -l:

Disk /dev/hda: 122.9 GB, 122942324736 bytes
255 heads, 63 sectors/track, 14946 cylinders
Units = cylinders of 16065 * 512 = 8225280 bytes

Device Boot Start End Blocks Id System
/dev/hda1 1 1824 14651248+ 83 Linux
/dev/hda2 1825 1886 498015 82 Linux swap / Solaris
/dev/hda3 * 1887 14946 104904450 83 Linux


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
Wrong calculation of free disk space by kdiskfree AGazzaz Mandriva 2 02-09-2006 06:25 AM
du and df give me different readings for the same drive. eviltama Debian 2 01-01-2006 11:38 PM
kdiskfree broken kde3.3.2 qt3.3.3 vtwinracersp2 Linux - Software 2 12-23-2004 02:39 PM
KDiskFree and KwikDisk raysr Mandriva 2 12-09-2004 07:17 PM
CPU activity readings esteeven Linux - Hardware 2 03-10-2003 06:42 PM > Forums > Linux Forums > Linux - Newbie

All times are GMT -5. The time now is 04:07 PM.

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