Date: Sun, 5 Jun 2011 06:59:44 +0200 From: Polytropon <freebsd@edvax.de> To: Matthias Apitz <guru@unixarea.de> Cc: "questions@FreeBSD.org Questions" <questions@freebsd.org> Subject: Re: Partitioning with gpart or old style slices? Message-ID: <20110605065944.4cab117a.freebsd@edvax.de> In-Reply-To: <20110605044021.GA2213@tinyCurrent> References: <4DEAAE54.1050508@locolomo.org> <BANLkTinoDAOxj0AYvYmdia_jLhW54F4jig@mail.gmail.com> <alpine.BSF.2.00.1106042039240.34792@wonkity.com> <20110605044021.GA2213@tinyCurrent>
next in thread | previous in thread | raw e-mail | index | archive | help
On Sun, 5 Jun 2011 06:40:22 +0200, Matthias Apitz <guru@unixarea.de> wrote: > Since some time I'm as well using gpart(8) to setup new systems with the > following sequence: > > # gpart create -s mbr ad4 # Init the disk with an MBR > # gpart add -t freebsd ad4 # Create a BSD container > # gpart create -s bsd ad4s1 # Init with a BSD scheme > # gpart add -t freebsd-ufs -s 1G ad4s1 # 1GB for / > # gpart add -t freebsd-swap -s 2G ad4s1 # 2GB for swap > # gpart add -t freebsd-ufs -s 2G ad4s1 # 2GB for /var > # gpart add -t freebsd-ufs -s 1G ad4s1 # 1GB for /tmp > # gpart add -t freebsd-ufs ad4s1 # all rest for /usr > # gpart set -a active -i 1 ad4 Just a side question that may be interesting for addition in a new Handbook section: When you use the "old" method, you can leave out the slicing step, creating a "dangerously" (haha) dedicated disk for use with FreeBSD. Would this also work with gpart by omitting the "gpart create -s bsd ad4s1" step and then refering to ad4 instead of ad4s1 in the "gpart add -t freebsd-ufs/swap" steps? > But the result is not ready for boot after install the kernel and > system; I allways have to go again with the sysinstall(8) tool to set > the 'A' flag; don't know what I'm missing (and the man page is not very > instructive on this); thanks I agree about the manpage; "gpart set -a attrib -i index [-f flags] geom" is mentioned in the synopsis, but there's no further mentioning of the -a option and its parameters. Maybe (haven't tested!) "gpart set -a active -i 1 ad4s1" is equivalent to setting the "A" flag using sysinstall? -- Polytropon Magdeburg, Germany Happy FreeBSD user since 4.0 Andra moi ennepe, Mousa, ...
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?20110605065944.4cab117a.freebsd>