From owner-freebsd-questions@FreeBSD.ORG Mon Nov 1 09:06:56 2010 Return-Path: Delivered-To: freebsd-questions@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id 4AE411065670 for ; Mon, 1 Nov 2010 09:06:56 +0000 (UTC) (envelope-from guru@unixarea.de) Received: from ms16-1.1blu.de (ms16-1.1blu.de [89.202.0.34]) by mx1.freebsd.org (Postfix) with ESMTP id D61468FC16 for ; Mon, 1 Nov 2010 09:06:55 +0000 (UTC) Received: from [93.104.51.125] (helo=current.Sisis.de) by ms16-1.1blu.de with esmtpsa (TLS-1.0:DHE_RSA_AES_256_CBC_SHA1:32) (Exim 4.69) (envelope-from ) id 1PCqLu-0001JR-LH; Mon, 01 Nov 2010 10:06:54 +0100 Received: from current.Sisis.de (current [127.0.0.1]) by current.Sisis.de (8.14.3/8.14.3) with ESMTP id oA196thV002947; Mon, 1 Nov 2010 10:06:55 +0100 (CET) (envelope-from guru@unixarea.de) Received: (from guru@localhost) by current.Sisis.de (8.14.3/8.14.3/Submit) id oA196sAR002946; Mon, 1 Nov 2010 10:06:54 +0100 (CET) (envelope-from guru@unixarea.de) X-Authentication-Warning: current.Sisis.de: guru set sender to guru@unixarea.de using -f Date: Mon, 1 Nov 2010 10:06:53 +0100 From: Matthias Apitz To: Bruce Cran Message-ID: <20101101090653.GA2874@current.Sisis.de> References: <20101031200258.GA1302@tiny.Sisis.de> <201011010003.54682.bruce@cran.org.uk> MIME-Version: 1.0 Content-Type: text/plain; charset=iso-8859-1 Content-Disposition: inline Content-Transfer-Encoding: 8bit In-Reply-To: <201011010003.54682.bruce@cran.org.uk> X-Operating-System: FreeBSD 8.0-CURRENT (i386) User-Agent: Mutt/1.5.19 (2009-01-05) X-Con-Id: 51246 X-Originating-IP: 93.104.51.125 Cc: freebsd-questions@freebsd.org Subject: Re: sysinstall(8) && bsdlabel a new disk X-BeenThere: freebsd-questions@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list Reply-To: Matthias Apitz List-Id: User questions List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Mon, 01 Nov 2010 09:06:56 -0000 El día Monday, November 01, 2010 a las 12:03:54AM +0000, Bruce Cran escribió: > On Sunday 31 October 2010 20:02:58 Matthias Apitz wrote: > > > How this is supposed to work using sysinstall(8) > > or should one use only bsdlabel(8) directly in such a case? > > sysinstall isn't really intended for post-install use: you should probably > learn how to use gpart instead - e.g. > > gpart create -s mbr /dev/disk > gpart add -t freebsd /dev/disk > gpart create -s bsd /dev/disk > gpart add -t freebsd-ufs /dev/disks1 > > newfs /dev/disks1a Combining the above and your posting in http://lists.freebsd.org/pipermail/freebsd-fs/2010-August/009176.html for my case I should have done: # 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 Right? I'm unsure about the 3rd command (gpart create -s bsd ad4s1), should it use 'ad4' as you say above, or 'ad4s1' as in the August's post? In any case, next time whene I have an empty disk to initialize, I will play around with this. Thanks again matthias -- Matthias Apitz t +49-89-61308 351 - f +49-89-61308 399 - m +49-170-4527211 e - w http://www.unixarea.de/