From owner-freebsd-questions@FreeBSD.ORG Mon Feb 28 14:30:40 2011 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 E23E41065670 for ; Mon, 28 Feb 2011 14:30:40 +0000 (UTC) (envelope-from ftp51246-2575596@sh4-5.1blu.de) Received: from sh4-5.1blu.de (sh4-5.1blu.de [213.83.63.54]) by mx1.freebsd.org (Postfix) with ESMTP id A871B8FC0C for ; Mon, 28 Feb 2011 14:30:40 +0000 (UTC) Received: from ftp51246-2575596 by sh4-5.1blu.de with local (Exim 4.50) id 1Pu3Wm-0001J0-AU for freebsd-questions@freebsd.org; Mon, 28 Feb 2011 14:52:44 +0100 Date: Mon, 28 Feb 2011 14:52:44 +0100 From: Matthias Apitz To: freebsd-questions@freebsd.org Message-ID: <20110228135243.GA3148@sh4-5.1blu.de> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline X-Operating-System: FreeBSD 7.0-RELEASE (i386) User-Agent: Mutt/1.5.9i Subject: using gpart(8) to slice a 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, 28 Feb 2011 14:30:41 -0000 Hello, Last weekend I've installed 9-CURRENT on a laptop by booting a (prepared) system from an USB key and slicing the disk with: # 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 Then I mounted the ad4s1a ... ad4s1f as a target files system tree below /mnt and installed the system with 'make instal ... DESTDIR=/mnt'; all went fine, but the created partition on ad4 was not marked as bootable (flag 'A'). So I used sysinstall(8) from the again booted USB key to set ad4s1 bootable and to install in addition the FreeBSD boot manager. After this the (new) system came up fine and is working. I've read the man page of gpart(8) but do not see clearly what I did wrong with the above sequence and esp. what would have set the missing boot flag? Any hint? Thanks in advance matthias -- Matthias Apitz t +49-89-61308 351 - f +49-89-61308 399 - m +49-170-4527211 e - w http://www.unixarea.de/