How does FreeBSD calculate disk sizes
Elessar
elessar at galgenberg.net
Mon Nov 3 02:11:35 PST 2003
Hi
On Mon, 3 Nov 2003 12:07:15 +0300
Odhiambo Washington <wash at wananchi.com> wrote:
> Hello users,
>
> I have a disk which is actually 72GB. 2GB has been used as swap while
> the rest was given to /.
Well, 72GByte in the manufacturer's notation which is decimal.
So your disk has 72 * 10^3^3 (= 72'000'000'000) Bytes.
freeBSD works - like every other OS i know - not decimal but dual.
Therefor the disk has 67.055225 * 2^10^3 (= 72'000'000'000) Bytes.
> sucks# uname -nmr
> sucks.wananchi.com 5.1-RELEASE-p10 i386
>
> sucks# df -h
> Filesystem Size Used Avail Capacity Mounted on
> /dev/da0s1a 64G 1.8G 57G 3% /
> devfs 1.0K 1.0K 0B 100% /dev
Here we have our 67GiByte disk without the 2GiByte Swap, and a little
bit of unused space due to Sector 63 thingies.
So da0s1a ends up having 64GiByte of which iirc 8-10% are reserved and
used for filesystem optimizations. Makes 57GiByte available with 3% (or
1.8Gi) being used.
So everything is there, it's just a little math. And yes, it's quite
a pain in the ass, but you will get used to it ;]
Joerg
-------------- next part --------------
A non-text attachment was scrubbed...
Name: not available
Type: application/pgp-signature
Size: 187 bytes
Desc: not available
Url : http://lists.freebsd.org/pipermail/freebsd-questions/attachments/20031103/4cedd63d/attachment.bin
More information about the freebsd-questions
mailing list