From owner-freebsd-questions Tue Jun 5 16:14:26 2001 Delivered-To: freebsd-questions@freebsd.org Received: from guru.mired.org (okc-65-26-235-186.mmcable.com [65.26.235.186]) by hub.freebsd.org (Postfix) with SMTP id 0044B37B406 for ; Tue, 5 Jun 2001 16:14:20 -0700 (PDT) (envelope-from mwm@mired.org) Received: (qmail 88618 invoked by uid 100); 5 Jun 2001 23:14:20 -0000 From: Mike Meyer MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Transfer-Encoding: 7bit Message-ID: <15133.26572.144362.477966@guru.mired.org> Date: Tue, 5 Jun 2001 18:14:20 -0500 To: Nathan Cc: questions@freebsd.org Subject: Re: documentation help, installation and the swap partition In-Reply-To: <48275822@toto.iv> X-Mailer: VM 6.90 under 21.1 (patch 14) "Cuyahoga Valley" XEmacs Lucid X-face: "5Mnwy%?j>IIV\)A=):rjWL~NB2aH[}Yq8Z=u~vJ`"(,&SiLvbbz2W`;h9L,Yg`+vb1>RG% *h+%X^n0EZd>TM8_IB;a8F?(Fb"lw'IgCoyM.[Lg#r\ 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 Nathan types: > I am trying to document how the partitions are laid out in FreeBSD and I > have noticed that the installation will place the sector offsets of the > b (swap) partition before the last partition. And will also place the > sector offsets of the largest partition as the last regardless to its > name (ie: d or h) > > The question is why ? is it due to performance reasons ? or safety ? or > other ? I have looked for specific documentation on this but I can't > seem to find it. Both your assertions are false - see label below. Then again, one of your assumptions is false. FreeBSD doesn't lay out partitions; users do. There are two tools for doing that: disklabel and sysinstall. Sysinstall may default to the behaviors you mention; disklabel doesn't. Come to think of it, the default behavior for sysinstall is to allocate standard-size partitions for the initial partitions, and dump everything else into the last one. Given that modern disks are *much* larger than those standard-size partitions, that will tend to make the last partition the largest one on the disk. # size offset fstype [fsize bsize bps/cpg] a: 5120000 0 4.2BSD 0 0 0 # (Cyl. 0 - 5417*) b: 1048576 5120000 swap # (Cyl. 5417*- 6527*) c: 14666337 0 unused 0 0 # (Cyl. 0 - 15519*) e: 5120000 6168576 4.2BSD 1024 8192 16 # (Cyl. 6527*- 11945*) f: 3377761 11288576 4.2BSD 1024 8192 16 # (Cyl. 11945*- 15519*) http://www.mired.org/home/mwm/ Independent WWW/Perforce/FreeBSD/Unix consultant, email for more information. To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-questions" in the body of the message