From owner-freebsd-questions@FreeBSD.ORG Sun Jun 5 05:03:50 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 0E483106564A for ; Sun, 5 Jun 2011 05:03:50 +0000 (UTC) (envelope-from rsimmons0@gmail.com) Received: from mail-qw0-f54.google.com (mail-qw0-f54.google.com [209.85.216.54]) by mx1.freebsd.org (Postfix) with ESMTP id B68F48FC0A for ; Sun, 5 Jun 2011 05:03:49 +0000 (UTC) Received: by qwc9 with SMTP id 9so1778096qwc.13 for ; Sat, 04 Jun 2011 22:03:49 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=gamma; h=domainkey-signature:from:reply-to:to:subject:date:user-agent :references:in-reply-to:mime-version:content-type :content-transfer-encoding:message-id; bh=zLfpTyDUKHuLsgtWNBrDCicwX1w6gR//DTQq5hGvalc=; b=pgIYhrob2CYS+82wdSVq/k7TAKHzdh7Shu+FIR0Itzvw6Cve6kBsQSEMVh7yy6ru5R QTOROI3bMJdSnq2y+WB8Sd6N0WMFQGfZkIBnYmbbE1HJ0AHFh7D01ZIL5VrEveZvbAqF uxLMWZpCG0heG1EUDvaeFigpFdGVZ+jeqJ+vk= DomainKey-Signature: a=rsa-sha1; c=nofws; d=gmail.com; s=gamma; h=from:reply-to:to:subject:date:user-agent:references:in-reply-to :mime-version:content-type:content-transfer-encoding:message-id; b=ah6latZ9Wj2Ke6nayIP5beng6a12jZVEvTeez0iQSBRwYOZVhLBIJd12a8tCsGuxNi 04xof2uaeKASpF+5g/zHjPeT4AJsIp7t4RK8QxSRZztOABNWS+fTpTFzJ9LnQNDgDnfd sY5NhQdkcOVHk61/ICZcHnJGvtSBPOYaOiKEI= Received: by 10.229.43.209 with SMTP id x17mr2556142qce.257.1307250228953; Sat, 04 Jun 2011 22:03:48 -0700 (PDT) Received: from skynet.localnet (pool-108-28-47-226.washdc.fios.verizon.net [108.28.47.226]) by mx.google.com with ESMTPS id f16sm2044841qck.21.2011.06.04.22.03.48 (version=SSLv3 cipher=OTHER); Sat, 04 Jun 2011 22:03:48 -0700 (PDT) From: Robert Simmons To: questions@freebsd.org Date: Sun, 5 Jun 2011 01:03:47 -0400 User-Agent: KMail/1.13.6 (Linux/2.6.38-8-generic; KDE/4.6.3; i686; ; ) References: <4DEAAE54.1050508@locolomo.org> <20110605044021.GA2213@tinyCurrent> In-Reply-To: <20110605044021.GA2213@tinyCurrent> MIME-Version: 1.0 Content-Type: Text/Plain; charset="iso-8859-1" Content-Transfer-Encoding: 7bit Message-Id: <201106050103.47416.rsimmons0@gmail.com> Cc: 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: rsimmons0@gmail.com List-Id: User questions List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Sun, 05 Jun 2011 05:03:50 -0000 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