Latest LQ Deal: Latest LQ Deals
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 09-21-2008, 11:22 PM   #1
LQ Newbie
Registered: Aug 2005
Location: cebu,phillippines
Posts: 11

Rep: Reputation: 0
partition space and disk space usage and free don't match

when i command cfdisk this is the result :

Name Flags Part Type FS Type [Label] Size (MB)
sda1 Boot Primary Linux ReiserFS 7994.98
sda5 Logical Linux swap 592.23

when i command df this is the result :

Filesystem 1K-blocks Used Available Use% Mounted on
/dev/sda1 3903620 3511988 391632 90% /

hope u guys can help me. im running out of space now. by the way im running a vmware on windows xp. thanks.
Old 09-21-2008, 11:38 PM   #2
LQ Veteran
Registered: Nov 2005
Location: Annapolis, MD
Distribution: Mint
Posts: 17,809

Rep: Reputation: 743Reputation: 743Reputation: 743Reputation: 743Reputation: 743Reputation: 743Reputation: 743
I get 38753256 total space using df, and 39062016 total space using fdisk -l. I think the difference has to do with overhead in the filesystem.

In your case, the big difference suggests something wrong with the filesystem. Did you, for example, re-size that partition? Can you boot from live CD, or another OS, and run fsck?
Old 09-22-2008, 02:02 AM   #3
LQ Newbie
Registered: Aug 2005
Location: cebu,phillippines
Posts: 11

Original Poster
Rep: Reputation: 0
before i install the slackware i created 2 partitions. but i changed it to 1.
when i command fsck this the result.
fsck 1.39 (29-May-2006).
Old 02-22-2013, 01:57 PM   #4
Registered: Aug 2012
Location: earth
Distribution: Mint Xfce, Korora Gnome3, Ubuntu Server NoGui,
Posts: 136

Rep: Reputation: 1
a little info

I find the disk space reported is often inconsistent. Keep in mind some partioning programs and or hard drives use gigabits not gigabytes and round 1024 to 1000 so this cause discrepancies throughout depending on how its interpreted by software and OS. Also I think journaled fs's keep some space set aside for backups of recently deleted files. See man for shred and it talks about this and how and why shred is not reliable on modern fs's and joirnaled fs's. In my case I had 49GB reported free by my system but a "dd if=/dev/zero of=/home/zero file" command yeilded a 56GB file. How is that possible if I had only 49GB of free space. I found this issue when I realized bleachbit was not wiping my whole drive because I was able to recover files so I ran above command and that wiped those other files bleachbit didn't so you can see that the OS and bleachbit were not seeing or using a portion of the unallocated space.
Here is my about that situation:

Last edited by minty33; 02-22-2013 at 01:59 PM.


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
Ambiguity in free disk space in /home partition vharishankar Linux - General 15 02-22-2013 03:58 PM
Disk Space Usage Question kaplan71 Linux - General 6 04-11-2005 03:22 PM
3Gb of disk space lost! Disk space problem or mother board conflicts with HDD Mistreated Linux - Hardware 4 12-06-2004 04:58 PM
Formating free space: WinXP pro and RH9 dualboot with free space on 3rd drive Vermicious Linux - General 2 03-22-2004 06:10 AM > Forums > Linux Forums > Linux - Newbie

All times are GMT -5. The time now is 09:14 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
Open Source Consulting | Domain Registration