From owner-freebsd-questions@FreeBSD.ORG Sun Jun 5 05:54:25 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 5A613106566C for ; Sun, 5 Jun 2011 05:54:25 +0000 (UTC) (envelope-from rsimmons0@gmail.com) Received: from mail-yw0-f54.google.com (mail-yw0-f54.google.com [209.85.213.54]) by mx1.freebsd.org (Postfix) with ESMTP id 137CF8FC15 for ; Sun, 5 Jun 2011 05:54:24 +0000 (UTC) Received: by ywf7 with SMTP id 7so1820265ywf.13 for ; Sat, 04 Jun 2011 22:54:24 -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:date :message-id:subject:from:to:cc:content-type :content-transfer-encoding; bh=yiCx1anFSR4Pn5oTcBeOtq9+MqK/NSjZ09wd/WwLz/o=; b=C6PMHJvVvPNO2aw55QPhnKP7hCw9bO920m2uAcckcd9Ohp56KPwF1jB2WI2F7A998e S3HR2QXQ4fclyiid4T0jKGX9NjOAGPfDYBjTmcXf92AMqzv1BvjvMZ7PN3VIEebuFVV2 aStD7CuU+i7sA4F8ieVYZAPl3uSoYM5e6Aixg= DomainKey-Signature: a=rsa-sha1; c=nofws; d=gmail.com; s=gamma; h=mime-version:in-reply-to:references:date:message-id:subject:from:to :cc:content-type:content-transfer-encoding; b=iiLYe0cvwrl4dYBBzcrC3l2W2jdm0mjkUgdN4dj/qF3OoyPNtjazqHmkSOZxdUv9CR DTUSTRi/of+lUjQattb/1l+ckBPHaTrWvMHqLr4r+U60JAwIAoarpCf/Q1A6MQl6T6ao UlQ4oB+rnCsq3FhYh2WRJ9lPObyEyw1ft8ZnM= MIME-Version: 1.0 Received: by 10.101.180.22 with SMTP id h22mr2621589anp.80.1307253264233; Sat, 04 Jun 2011 22:54:24 -0700 (PDT) Received: by 10.100.227.17 with HTTP; Sat, 4 Jun 2011 22:54:24 -0700 (PDT) In-Reply-To: References: <4DEAAE54.1050508@locolomo.org> <20110605044021.GA2213@tinyCurrent> <201106050103.47416.rsimmons0@gmail.com> Date: Sun, 5 Jun 2011 01:54:24 -0400 Message-ID: From: Robert Simmons To: Odhiambo Washington Content-Type: text/plain; charset=ISO-8859-1 Content-Transfer-Encoding: quoted-printable Cc: questions@freebsd.org 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:54:25 -0000 On Sun, Jun 5, 2011 at 1:39 AM, Odhiambo Washington wr= ote: > 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 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.