Fdisk disk size issue on RHEL 4

Anne Moore diabeticithink at yahoo.com
Fri Dec 18 01:59:48 UTC 2009


Hi Nigel

The 46 GIG was partition size. 

What you wrote makes good sense, thank you. 

However, I'm still having an issue with tune2fs to gain the extra space.
Perhaps you can help with the solution.

I have a 150 GIG partition on ext3
I use "tune2fs -m 1 /dev/sde1 (shrinks the reserved data to 1% instead of
5%).
That should free up about 7 GIG's or more. 
However, even though the reserved amount shows less, the 146 GIG hasn't
increased at all. It should be reading 153 GIG's now, but as I mentioned, it
doesn't. I find this out by runing by mounting the /dev/sde1 and running "df
-h" and it reads "146 gig" no matter what I do.

Any idea on how to get this working so I can free up more space?

Thank you!

Anne






Is that 46GB for the filesystem size, or the partition size?

At the very least you want to work in units of 1024 not 1000. So that
should be 50*1024M i.e. 51200M. To get nearer you should really
calculate the size in bytes and that gives you 50*1024*1024*1024, or
53687MB.

Also, when creating the filesystem don't forget that mkfs normally
reserves 5% for root by default, which you can alter with the -m flag.
There are still filesystem overheads which you cannot remove.

If your customers really don't understand this, ask them to format a
500GB disk on their home PC and then explain why Windows tells them it's
not 500GB. (I presume they are normally Windows users, given their
demonstrated ability in the clueless department).

-- 
Nigel Wade, System Administrator, Space Plasma Physics Group,
            University of Leicester, Leicester, LE1 7RH, UK
E-mail :    nmw ion le ac uk
Phone :     +44 (0)116 2523548, Fax : +44 (0)116 2523555
Anne Moore wrote:
> Greetings All
> 
> I'm using FDISK to slice up my RHEL 4 servers. However, when I input, for
> instance, "+50000M" for a 50 GIG partition, it actually only shows 46
GIG's
> after the partition is complete. This is upsetting my customer who believe
> I'm not doing things correctly. 
> 
> How do I determine how to get exactly the storage amount specified while
> using fdisk?
> 
> Thank you for you expert assistance.
> 
> Anne
> 

Is that 46GB for the filesystem size, or the partition size?

At the very least you want to work in units of 1024 not 1000. So that
should be 50*1024M i.e. 51200M. To get nearer you should really
calculate the size in bytes and that gives you 50*1024*1024*1024, or
53687MB.

Also, when creating the filesystem don't forget that mkfs normally
reserves 5% for root by default, which you can alter with the -m flag.
There are still filesystem overheads which you cannot remove.

If your customers really don't understand this, ask them to format a
500GB disk on their home PC and then explain why Windows tells them it's
not 500GB. (I presume they are normally Windows users, given their
demonstrated ability in the clueless department).

-- 
Nigel Wade, System Administrator, Space Plasma Physics Group,
            University of Leicester, Leicester, LE1 7RH, UK
E-mail :    nmw ion le ac uk
Phone :     +44 (0)116 2523548, Fax : +44 (0)116 2523555




More information about the redhat-list mailing list