LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Linux - Newbie (https://www.linuxquestions.org/questions/linux-newbie-8/)
-   -   Missing hard drive space? (https://www.linuxquestions.org/questions/linux-newbie-8/missing-hard-drive-space-740319/)

Quads 07-15-2009 01:16 PM

Missing hard drive space?
 
I just put in a secondary drive, a 1TB. It formatted out to only 917GB, which doesn't seem right, but okay. Its an ext3 file system.

The drive is empty, but it shows 6% used, leaving only 870GB free. Why is that?

Wim Sturkenboom 07-15-2009 01:58 PM

Hard disk vendors use 1000 for kilobyte while computers use 1024. So Your harddisk is (in computerterms) smaller than what the HD vendor claims; 1000/1024 to the power of 4 is 91% so your 917GB is more or less right.

I don't know the finer details of filesystems, but it makes sense to me that during the formatting information is already written to the disk. Is 6% much? I don't know.

David1357 07-15-2009 02:17 PM

Quote:

Originally Posted by Quads (Post 3608516)
The drive is empty, but it shows 6% used, leaving only 870GB free. Why is that?

The used space is overhead for the journal and backup data for superblocks.

Here is an article describing ext3 overhead in more detail.

michaelk 07-15-2009 02:32 PM

By default ext2/3 filesystems reserve 5% for roots use. This is to help fragmentation and allow root to login if the filesystem becomes full. If its a secondary drive and not / you can safely change reserve space to zero using tune2fs.

Quads 07-15-2009 02:49 PM

Quote:

Originally Posted by Wim Sturkenboom (Post 3608557)
Hard disk vendors use 1000 for kilobyte while computers use 1024. So Your harddisk is (in computerterms) smaller than what the HD vendor claims; 1000/1024 to the power of 4 is 91% so your 917GB is more or less right.

I don't know the finer details of filesystems, but it makes sense to me that during the formatting information is already written to the disk. Is 6% much? I don't know.

Yes, I'm aware that the vendors lie, they always have ;) It wasn't the 917GB that had me worried, I was curious where the other forty something gig went to.

lazlow 07-15-2009 03:25 PM

If the amount being reserved is too much for you and it is not where the / (as in root) partition is, you can change the amount reserved. There have been a number of thread here about how to do this.

David1357 07-15-2009 04:21 PM

Quote:

Originally Posted by michaelk (Post 3608597)
By default ext2/3 filesystems reserve 5% for root's use.

It would have been nicer if someone had posted the relevant section from the mkfs.ext3 man page:
Code:

      -m reserved-blocks-percentage
              Specify the percentage of the filesystem blocks reserved for
              the super-user.  This avoids fragmentation, and allows root-
              owned daemons, such as syslogd(8), to continue to function
              correctly after non-privileged processes are prevented from
              writing to the filesystem.  The default percentage is 5%.

The information without an authoritative reference is just information.


All times are GMT -5. The time now is 06:44 AM.