From owner-freebsd-questions@FreeBSD.ORG  Sun Jun  5 04:59:47 2011
Return-Path: <owner-freebsd-questions@FreeBSD.ORG>
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 A51D2106566B
	for <questions@freebsd.org>; Sun,  5 Jun 2011 04:59:47 +0000 (UTC)
	(envelope-from freebsd@edvax.de)
Received: from mx02.qsc.de (mx02.qsc.de [213.148.130.14])
	by mx1.freebsd.org (Postfix) with ESMTP id 698C98FC0C
	for <questions@freebsd.org>; Sun,  5 Jun 2011 04:59:47 +0000 (UTC)
Received: from r55.edvax.de (port-92-195-63-204.dynamic.qsc.de [92.195.63.204])
	by mx02.qsc.de (Postfix) with ESMTP id E1F5C1E133;
	Sun,  5 Jun 2011 06:59:45 +0200 (CEST)
Received: from r55.edvax.de (localhost [127.0.0.1])
	by r55.edvax.de (8.14.2/8.14.2) with SMTP id p554xiam001617;
	Sun, 5 Jun 2011 06:59:44 +0200 (CEST)
	(envelope-from freebsd@edvax.de)
Date: Sun, 5 Jun 2011 06:59:44 +0200
From: Polytropon <freebsd@edvax.de>
To: Matthias Apitz <guru@unixarea.de>
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>
Organization: EDVAX
X-Mailer: Sylpheed 2.4.7 (GTK+ 2.12.1; i386-portbld-freebsd7.0)
Mime-Version: 1.0
Content-Type: text/plain; charset=US-ASCII
Content-Transfer-Encoding: 7bit
Cc: "questions@FreeBSD.org Questions" <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
Reply-To: Polytropon <freebsd@edvax.de>
List-Id: User questions <freebsd-questions.freebsd.org>
List-Unsubscribe: <http://lists.freebsd.org/mailman/listinfo/freebsd-questions>, 
	<mailto:freebsd-questions-request@freebsd.org?subject=unsubscribe>
List-Archive: <http://lists.freebsd.org/pipermail/freebsd-questions>
List-Post: <mailto:freebsd-questions@freebsd.org>
List-Help: <mailto:freebsd-questions-request@freebsd.org?subject=help>
List-Subscribe: <http://lists.freebsd.org/mailman/listinfo/freebsd-questions>, 
	<mailto:freebsd-questions-request@freebsd.org?subject=subscribe>
X-List-Received-Date: Sun, 05 Jun 2011 04:59:47 -0000

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, ...