From owner-freebsd-questions Mon Jun 3 22:41:21 2002 Delivered-To: freebsd-questions@freebsd.org Received: from lexx.zssm.zp.ua (lexx.zssm.zp.ua [212.8.32.8]) by hub.freebsd.org (Postfix) with ESMTP id 944B037B403 for ; Mon, 3 Jun 2002 22:41:08 -0700 (PDT) Received: from server.hermes-comp.zp.ua (germes-comp.zssm.zp.ua [212.8.32.132] (may be forged)) by lexx.zssm.zp.ua (8.9.2/8.9.2) with ESMTP id IAA12281; Tue, 4 Jun 2002 08:34:40 +0300 (EET DST) Received: from localhost (localhost [127.0.0.1]) by server.hermes-comp.zp.ua (8.11.3/8.11.3) with ESMTP id g545VLG32878; Tue, 4 Jun 2002 08:31:27 +0300 (EEST) (envelope-from stalker@hermes-comp.zp.ua) Date: Tue, 4 Jun 2002 08:31:21 +0300 (EEST) From: Alexander V Zubchenko To: Drew Tomlinson Cc: Subject: Re: Drive Space - Am I Getting All I Should? In-Reply-To: <003101c20b3e$13a0d320$0301a8c0@bigdaddy> Message-ID: <20020604082402.F32721-100000@server.hermes-comp.zp.ua> MIME-Version: 1.0 Content-Type: TEXT/PLAIN; charset=US-ASCII Sender: owner-freebsd-questions@FreeBSD.ORG Precedence: bulk List-ID: List-Archive: (Web Archive) List-Help: (List Instructions) List-Subscribe: List-Unsubscribe: X-Loop: FreeBSD.ORG Hi! On Mon, 3 Jun 2002, Drew Tomlinson wrote: > I added a 80G IDE drive to my 4.5 machine. I used /stand/sysinstall > to FDisk and Label the drive. Now after mounting, df -h shows: > > Filesystem Size Used Avail Capacity Mounted on > /dev/ad0s1e 72G 1.0K 66G 0% /ftp Yes some space is preserved by filesystem, but, imho, there is also other factor. Manufacturer of your drive may calculate 80G as 80'000'000'000 bytes. I'd calc with bc (with precision equal to 5 digits after point) real capacity of the drive and get 74.5G. > dmesg shows the drive as 76319M so 72G seems reasonable: > > ad0: 76319MB [155061/16/63] at ata0-master UDMA33 In PC BIOS disk may has maximum of 16 heads and 63 sectors per track. It recalculate real geometry changing number of cylinders to get around. And capacity of recalculated drive also may diffs from real value. > > The /stand/sysinstall disklabel editor sees it as the same size: > > Part Mount Size Newfs Part Mount Size > Newfs > ---- ----- ---- ----- ---- ----- ---- - > ---- > ad0s1e /ftp 76319MB UFS Y > > But the FDISK partition editor sees the drive geometry differently > than dmesg: > > Disk name: ad0 FDISK Partition > Editor > DISK Geometry: 30629 cyls/81 heads/63 sectors = 156299787 sectors And this is your real drive geometry, imho. Happy life for all, Stalker. To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-questions" in the body of the message