Skip site navigation (1)Skip section navigation (2)
Date:      Sun, 30 Nov 2003 21:24:09 +0000
From:      Matthew Seaman <m.seaman@infracaninophile.co.uk>
To:        Barry Skidmore <skidmore@digital-village.net>
Cc:        FreeBSD-Questions <freebsd-questions@freebsd.org>
Subject:   Re: Order of Creation of Partions
Message-ID:  <20031130212409.GB6518@happy-idiot-talk.infracaninophile.co.uk>
In-Reply-To: <1070222530.58178.69.camel@digital-village.net>
References:  <1070222530.58178.69.camel@digital-village.net>

next in thread | previous in thread | raw e-mail | index | archive | help

--GRPZ8SYKNexpdSJ7
Content-Type: text/plain; charset=us-ascii
Content-Disposition: inline
Content-Transfer-Encoding: quoted-printable

On Sun, Nov 30, 2003 at 03:02:10PM -0500, Barry Skidmore wrote:
> I am preparing to do a fresh install of 4.9-RELEASE, and read in the
> Handbook the following recommended partitions, and the order in which
> they should be created:
>=20
> /
> swap
> /var
> /tmp
> /usr
>=20
> I would like to have two additional partitions, but do not see in the
> Handbook their ordering, relative to the above:
>=20
> /boot
> /home

Any way you like.  sysinstall(8) doesn't give you the option, but if
you use disklabel(8), other than the first three partitions -- da0s1a
(root), da0s1b (swap) and da0s1c (whole disk -- never used as such)
you can create partitions from da0s1d upto a maximum of da0s1h and
mount them as whatever filesystems you want.  Once you've got the root
and swap partitions sorted, how you lay out the rest makes little
difference.  There are minor gains to be made by placing the most
heavily used partitions towards the outer cylinders of the disk, but
that doesn't apply on RAID5 or RAID0 (striped) disk arrays, and the
amount gained hardly justifies the effort spent tweaking things.
Layout is more a matter of individual taste than anything.

Two points though:

   i) Don't put /boot on a separate partition.  /boot contains stuff
that is essential for booting the system, and as such *has* to be part
of the root filesystem.

  ii) It's not so much the order of creation of the partitions that
counts, but the order they lie across the drive. You don't even have
to make the b, d, e, f, g, h partitions lie in cylinder order,
although it would be perverse to shuffle them around arbitrarily.
Putting the root 'a' partition anywhere except starting at cylinder 1
is asking for trouble though -- this is one of those conventions that
practically has the force of law.

	Cheers,

	Matthew

--=20
Dr Matthew J Seaman MA, D.Phil.                       26 The Paddocks
                                                      Savill Way
PGP: http://www.infracaninophile.co.uk/pgpkey         Marlow
Tel: +44 1628 476614                                  Bucks., SL7 1TH UK

--GRPZ8SYKNexpdSJ7
Content-Type: application/pgp-signature
Content-Disposition: inline

-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.2.3 (FreeBSD)

iD8DBQE/yl/5dtESqEQa7a0RAoM8AJ92t70dAJ25FBAlZwXdXPzk8W5KZwCdEymG
fphIZxyLg2cKRBMAlgp7ddM=
=yRn/
-----END PGP SIGNATURE-----

--GRPZ8SYKNexpdSJ7--



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?20031130212409.GB6518>