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 08-01-2006, 08:50 AM   #1
Mitsuhashi
LQ Newbie
 
Registered: Jul 2003
Distribution: kubuntu dapper (kernel 2.6.15) with XGL
Posts: 16

Rep: Reputation: 0
Lost space on HD


Hi!
I've created (with gparted) a new ext2 partition of 59GB on my hard disk.
I've succesfully mounted on my filesystem but I've noticed a strange thing.
With df I see that there are only 56GB avaible of the total 59GB of the partition even if I didn'n copy any file on it, it's empty but 3GB are used... how is it possibile?

(P.S.: Excuse me for my bad english)
 
Old 08-01-2006, 08:54 AM   #2
michaelk
Moderator
 
Registered: Aug 2002
Posts: 12,172

Rep: Reputation: 784Reputation: 784Reputation: 784Reputation: 784Reputation: 784Reputation: 784Reputation: 784
When an ext2/3 filesystem is created by default 5% is reserved for root. This is allows root access the partition in case the filesystem becomes full and reduce fragmentation. You can use tune2fs to change the amount of reserved space.
 
Old 08-01-2006, 08:59 AM   #3
fogcat
Member
 
Registered: May 2004
Location: Cortland County NY USA
Distribution: Mint
Posts: 60

Rep: Reputation: 15
There could be several answers that I can think of, all of them harmless:

1) The reported size is based on "regular" numbers, not a binary amount. Binary is broken down in amounts of 1024 not 1000.

2) Your partion info does not show MBR (you didn't say if you had a multi boot system).

3) If you do have *dows on your system, it does it's own thingy with your partions.

I hope that this isn't confusing, it is really quite simple, you most likely have no problem whatsoever.

Good luck
 
Old 08-01-2006, 09:01 AM   #4
marozsas
Senior Member
 
Registered: Dec 2005
Location: Campinas/SP - Brazil
Distribution: SuSE, RHEL, Fedora, Ubuntu
Posts: 1,393
Blog Entries: 1

Rep: Reputation: 64
Because your system reserves 5% for root. Even when the filesystem is full there is some space to root fix the things. This extra space can be used only by root.

You can check it by yourself, with the "tune2fs -l /dev/your-disk-partition-here". Take a look in "Block count" (the total size in blocks), "Reserved block count" (the reserved space in blocks) and "Block size" (the size in bytes of 1 block).
 
Old 08-01-2006, 09:01 AM   #5
Mitsuhashi
LQ Newbie
 
Registered: Jul 2003
Distribution: kubuntu dapper (kernel 2.6.15) with XGL
Posts: 16

Original Poster
Rep: Reputation: 0
Thanks very much... Now that I know why that space is seen as used I'll leave all how it is.

Thanks marozsas for your explanation
 
Old 08-01-2006, 09:03 AM   #6
syg00
LQ Veteran
 
Registered: Aug 2003
Location: Australia
Distribution: Lots ...
Posts: 12,499

Rep: Reputation: 1077Reputation: 1077Reputation: 1077Reputation: 1077Reputation: 1077Reputation: 1077Reputation: 1077Reputation: 1077
Just blame the journal - doesn't come for free.
And the "reserved" michaelk also mentioned of course.
 
Old 08-01-2006, 10:57 AM   #7
benjithegreat98
Senior Member
 
Registered: Dec 2003
Location: Shelbyville, TN, USA
Distribution: Fedora Core, CentOS
Posts: 1,019

Rep: Reputation: 45
Quote:
Originally Posted by syg00
Just blame the journal - doesn't come for free.
I thought that ext2 was not a journaled FS. That is the primary difference in ext2 and ext3.
 
Old 08-01-2006, 05:32 PM   #8
syg00
LQ Veteran
 
Registered: Aug 2003
Location: Australia
Distribution: Lots ...
Posts: 12,499

Rep: Reputation: 1077Reputation: 1077Reputation: 1077Reputation: 1077Reputation: 1077Reputation: 1077Reputation: 1077Reputation: 1077
Exactly right - d'oh.
I specifically read that as ext3, hence my comment.
Sorry, was late at night here - ignore the bit about the journal.
 
  


Reply

Tags
disk, ext2, free, hard, partition, space


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
ext3 lost space??? Fordor Linux - General 15 07-10-2005 01:09 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
lost harddrive space trolsbane Linux - Hardware 7 10-05-2003 05:35 PM
lost disk space HELP kjell1979 Linux - Software 3 08-08-2001 05:34 PM
Lost Swap Space rayflynn Linux - General 1 08-05-2001 04:44 PM


All times are GMT -5. The time now is 09:38 PM.

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