From owner-freebsd-questions@FreeBSD.ORG Sun Jun 5 05:40:12 2011 Return-Path: Delivered-To: questions@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id 2783B1065672 for ; Sun, 5 Jun 2011 05:40:12 +0000 (UTC) (envelope-from odhiambo@gmail.com) Received: from mail-pw0-f54.google.com (mail-pw0-f54.google.com [209.85.160.54]) by mx1.freebsd.org (Postfix) with ESMTP id ECD0F8FC15 for ; Sun, 5 Jun 2011 05:40:11 +0000 (UTC) Received: by pwj8 with SMTP id 8so2012156pwj.13 for ; Sat, 04 Jun 2011 22:40:11 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=gamma; h=domainkey-signature:mime-version:in-reply-to:references:from:date :message-id:subject:to:content-type; bh=yGNzdBUW5vE+AVTWLChfHm5CGasdPiKodGf++/gk5Lc=; b=dcwjghchuzYE1p27bQYx5v8gI0FS9Zm/oYpmlqw4e/zAogS6DWTxwY9fjM6pGVjCXc qUsUKbHVSV74CqwGPo6U5x+u4TbjItRSe/0huCFl1cgFWbBat1ijOmUjDPprBiCqhVBZ ZTDMK3MioqT1ekFcmV48ZQHDnliWoo9+nr9+Y= DomainKey-Signature: a=rsa-sha1; c=nofws; d=gmail.com; s=gamma; h=mime-version:in-reply-to:references:from:date:message-id:subject:to :content-type; b=w0VfcGNYpsa7P3rcE2ympx9aBY/WqxfhtZRFIRK7YYCFBsEWLjhglqK98y7o1Q6Nak wtN1lbm9i/Pc/frMeJrlKk2pAmlame3jKMsGBRh/0OLuuu85qEG4CnnxBKaKa6slpRfa uGOnY0ZuPa7Kii0IszOYTanY3r33LdB0dmUOE= Received: by 10.68.15.196 with SMTP id z4mr1475129pbc.59.1307252411496; Sat, 04 Jun 2011 22:40:11 -0700 (PDT) MIME-Version: 1.0 Received: by 10.68.46.136 with HTTP; Sat, 4 Jun 2011 22:39:31 -0700 (PDT) In-Reply-To: <201106050103.47416.rsimmons0@gmail.com> References: <4DEAAE54.1050508@locolomo.org> <20110605044021.GA2213@tinyCurrent> <201106050103.47416.rsimmons0@gmail.com> From: Odhiambo Washington Date: Sun, 5 Jun 2011 08:39:31 +0300 Message-ID: To: questions@freebsd.org Content-Type: multipart/related; boundary=bcaec52156639e79c404a4f06b46 X-Content-Filtered-By: Mailman/MimeDel 2.1.5 Cc: Subject: Re: Partitioning with gpart or old style slices? 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: Sun, 05 Jun 2011 05:40:12 -0000 --bcaec52156639e79c404a4f06b46 Content-Type: text/plain; charset=ISO-8859-1 On Sun, Jun 5, 2011 at 08:03, Robert Simmons 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 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 > > > > 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 > > 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 everything 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 ?? Why is there no sysinstall-style GUI for gpart? -- Best regards, Odhiambo WASHINGTON, Nairobi,KE +254733744121/+254722743223 _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ I can't hear you -- I'm using the scrambler. Please consider the environment before printing this email. --bcaec52156639e79c404a4f06b46--