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. -moj > -bash-3.1$ df -h > Filesystem Size Used Avail Capacity Mounted on > /dev/wd0a 7.3G 78.9M 6.9G 1% / > /dev/wd0d 22.0G 512M 20.4G 2% /usr > /dev/wd0e 7.2G 6.7M 6.8G 0% /var > /dev/wd1a 183G 38.0G 136G 22% /mnt > > Can anyone explain this? Have I done something wrong here? More > importantly, is there a simple way to remedy this and get my 38GB back? > > Alex Kirk