Date: Sun, 5 Jun 2011 01:54:24 -0400 From: Robert Simmons <rsimmons0@gmail.com> To: Odhiambo Washington <odhiambo@gmail.com> Cc: questions@freebsd.org Subject: Re: Partitioning with gpart or old style slices? Message-ID: <BANLkTi=_CfrmosNBD=qoxiKdSCXQagNY5w@mail.gmail.com> In-Reply-To: <BANLkTimgfejSW-BjmT-XUFJc-EaKOzAYMg@mail.gmail.com> References: <4DEAAE54.1050508@locolomo.org> <alpine.BSF.2.00.1106042039240.34792@wonkity.com> <20110605044021.GA2213@tinyCurrent> <201106050103.47416.rsimmons0@gmail.com> <BANLkTimgfejSW-BjmT-XUFJc-EaKOzAYMg@mail.gmail.com>
next in thread | previous in thread | raw e-mail | index | archive | help
On Sun, Jun 5, 2011 at 1:39 AM, Odhiambo Washington <odhiambo@gmail.com> wr= ote: > On Sun, Jun 5, 2011 at 08:03, Robert Simmons <rsimmons0@gmail.com> wrote: >> On Sunday, June 05, 2011 12:40:22 AM Matthias Apitz wrote: >> > Since some time I'm as well using gpart(8) to setup new systems with t= he >> > following sequence: >> > >> > # gpart create -s mbr ad4 =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 # Init the d= isk with an MBR >> > # gpart add -t freebsd ad4 =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0# Create a B= SD container >> > # gpart create -s bsd ad4s1 =A0 =A0 =A0 =A0 =A0 =A0 =A0 # Init with a = BSD scheme >> > # gpart add -t freebsd-ufs =A0-s 1G ad4s1 =A0 # 1GB for / >> > # gpart add -t freebsd-swap -s 2G ad4s1 =A0 # 2GB for swap >> > # gpart add -t freebsd-ufs =A0-s 2G ad4s1 =A0 # 2GB for /var >> > # gpart add -t freebsd-ufs =A0-s 1G ad4s1 =A0 # 1GB for /tmp >> > # gpart add -t freebsd-ufs ad4s1 =A0 =A0 =A0 =A0 =A0# all rest for /us= r >> > # gpart set -a active -i 1 ad4 >> > >> > 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 ver= y >> > instructive on this); thanks >> >> You need to install the bootcode: >> >> This will install the interactive one: >> gpart bootcode -b /mnt2/boot/boot0 ad4 >> >> this will install the non-interactive one: >> gpart bootcode -b /mnt2/boot/mbr ad4 >> > > This is interesting and here is my question: > > Taking the above example from Matthias, assume that I have done everythin= g > including installing the bootcode, then I realize I am not happy with the > scheme and I need to change. > How do I wipe the whole thing in one go so that I can start afresh? > > gpart destroy ad4 ?? Yes, but first you must delete all of the slices/partitions. Think of it this way: you must go backwards down the path you just came with a delete for each add, then a destroy for each create. > Why is there no sysinstall-style GUI for gpart? Hopefully, because sysinstall is soon going to be taken out back and shot, and its replacement will be gpart-aware and therefore GPT-aware.
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?BANLkTi=_CfrmosNBD=qoxiKdSCXQagNY5w>