list-freebsd-2004 at morbius.sent.com
Mon Jan 16 10:51:49 PST 2006
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.
More information about the freebsd-questions