From owner-freebsd-questions@FreeBSD.ORG Mon Jan 16 18:51:49 2006 Return-Path: X-Original-To: freebsd-questions@freebsd.org Delivered-To: freebsd-questions@freebsd.org Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id 23F7416A41F for ; Mon, 16 Jan 2006 18:51:49 +0000 (GMT) (envelope-from list-freebsd-2004@morbius.sent.com) Received: from out4.smtp.messagingengine.com (out4.smtp.messagingengine.com [66.111.4.28]) by mx1.FreeBSD.org (Postfix) with ESMTP id 0568643D6D for ; Mon, 16 Jan 2006 18:51:40 +0000 (GMT) (envelope-from list-freebsd-2004@morbius.sent.com) Received: from frontend1.internal (mysql-sessions.internal [10.202.2.149]) by frontend1.messagingengine.com (Postfix) with ESMTP id 11BCDD2FDC2 for ; Mon, 16 Jan 2006 13:51:34 -0500 (EST) Received: from frontend2.messagingengine.com ([10.202.2.151]) by frontend1.internal (MEProxy); Mon, 16 Jan 2006 13:51:34 -0500 X-Sasl-enc: J81/fFG1BpjVgfJnDbl61r9kamlsyb0Gi7yNzFdO40Xb 1137437493 Received: from gumby.localdomain (88-104-206-18.dynamic.dsl.as9105.com [88.104.206.18]) by frontend2.messagingengine.com (Postfix) with ESMTP id 3F171571507 for ; Mon, 16 Jan 2006 13:51:33 -0500 (EST) From: RW To: freebsd-questions@freebsd.org Date: Mon, 16 Jan 2006 18:51:28 +0000 User-Agent: KMail/1.9.1 References: <200601161750.49358.malcolm.kay@internode.on.net> In-Reply-To: <200601161750.49358.malcolm.kay@internode.on.net> MIME-Version: 1.0 Content-Type: text/plain; charset="iso-8859-6" Content-Transfer-Encoding: 7bit Content-Disposition: inline Message-Id: <200601161851.32485.list-freebsd-2004@morbius.sent.com> Subject: Re: Partitioning X-BeenThere: freebsd-questions@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: User questions List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Mon, 16 Jan 2006 18:51:49 -0000 On Monday 16 January 2006 07:20, Malcolm Kay wrote: > On Mon, 16 Jan 2006 04:03 am, Jona Joachim wrote: > > > > After creating a slice I created the partitions inside it with > > disklabel. In every example I saw the swap partition was in > > the second place. However, I want it to be in the beginning of > > the disk as this should result in better performance. Are > > there any concerns about this layout? I basically used the > > standards mentioned by the manual pages of disklabel: > > > > 8 partitions: > > # size offset fstype [fsize bsize bps/cpg] > > a: 2g * swap > > b: * * 4.2BSD 4096 16384 64 > > c: * * unused > > Partition 'a' for root and 'b' for swap is a strongly established > convention and departure could lead to all sorts of hassles. > > If you must have swap earlier than the root partition then retain > the labels but change the positions -- that is set the offset of > 'a' so that it falls after 'b' and set the 'b' partition at or > near the beginning of the slice. > > To me it it is not entirely clear whether reservations for things > like disklabels are not automatically taken care of when 'a' is > the first partition in the slice, so I suggest if you place the > 'b' partition first you do this with an offset of 16 sectors. If you use sysinstall for this, it's all handled automatically. You will end up with 'b' and 'd' partitions for swap and data, and no 'a' partition.