Skip site navigation (1)Skip section navigation (2)
Date:      Mon, 03 Nov 2003 10:51:59 +0100
From:      Alexander Marx <mad-ml@madness.at>
To:        Odhiambo Washington <wash@wananchi.com>
Cc:        freebsd-questions@freebsd.org
Subject:   Re: How does FreeBSD calculate disk sizes
Message-ID:  <3FA6253F.4050101@madness.at>
In-Reply-To: <20031103090715.GC20234@ns2.wananchi.com>
References:  <20031103090715.GC20234@ns2.wananchi.com>

next in thread | previous in thread | raw e-mail | index | archive | help
Odhiambo Washington wrote:
> Hello users,
> 
> I have a disk which is actually 72GB. 2GB has been used as swap while
> the rest was given to /.
> 
> Can someone explain to me what I could be missing here, because what
> I am seeing isn't what I expect. Perhaps it's just right while I am
> the dumb one. Why isn't the whole size reported?
[...]

first of all, a "72GB harddisk" isn't actually a 72GB harddisk; this might
sound funny, but harddisk manufacturers are engineering people and they
are usually thinking in terms of 1000s
(see http://www.seagate.com/support/kb/disc/bytes.html)

so your disk actually only holds 72000000000 bytes (~69GB) ...
which is perfectly consistent with your fdisk output.

further, reading tunefs(8) you will find, that per default your filesystem
reserves some space (8%) for root ...

: -m minfree
:             Specify the percentage of space held back from normal users; the
:             minimum free space threshold.  The default value used is 8%.


.. subtracting 8% from the remaining 69GB roughly gives 64GB.

so your disk is just fine.

regards,
alex.




Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?3FA6253F.4050101>