On 1/31/07, Mats O Jansson <[EMAIL PROTECTED]> wrote:
On Wed, 31 Jan 2007 [EMAIL PROTECTED] wrote:

> I just moved a 200GB hard drive from a 3.7 box to a 4.0 box, and since
> my data was all backed up, I decided to run disklabel, create a fresh
> partition that spanned the whole disk, and then run newfs on that
> partition. I expect to not have all 200GB, between the whole issue of
> poorly labeled disk sizes and the 5% reserved by default. What I don't
> expect, however, is to see ** 22% ** of my disk already in use:

Its all about how you interprets k, M and G. In base 10 one k is 1000 but
in base 2 it is 1024. G is 1000000000 in base 10 but 1073741824 in base 2.

Disk manufactors are using base 10 and computers base 2. So if the disk
manufactor say its 200Gb it would be about 186Gb in OpenBSD. But dmesg
reports what size OpenBSD think the disk has.


Your point being?  df already takes that into consideration.  Did you look:

$ df -h
> Filesystem     Size    Used   Avail Capacity  Mounted on
> /dev/wd1a      183G   38.0G    136G    22%    /mnt
>

He's asking about the 38G, not the difference between 200 and 183.

Greg

Reply via email to