From owner-freebsd-current@FreeBSD.ORG Thu Oct 22 01:33:58 2009 Return-Path: Delivered-To: freebsd-current@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id C1CD1106566B for ; Thu, 22 Oct 2009 01:33:58 +0000 (UTC) (envelope-from rnoland@FreeBSD.org) Received: from gizmo.2hip.net (gizmo.2hip.net [64.74.207.195]) by mx1.freebsd.org (Postfix) with ESMTP id 7F5E78FC0C for ; Thu, 22 Oct 2009 01:33:58 +0000 (UTC) Received: from [192.168.1.4] (adsl-154-198-93.ard.bellsouth.net [72.154.198.93]) (authenticated bits=0) by gizmo.2hip.net (8.14.3/8.14.3) with ESMTP id n9M1XtqV085033 (version=TLSv1/SSLv3 cipher=DHE-RSA-CAMELLIA256-SHA bits=256 verify=NO); Wed, 21 Oct 2009 21:33:56 -0400 (EDT) (envelope-from rnoland@FreeBSD.org) From: Robert Noland To: Aristedes Maniatis In-Reply-To: <4ADFB244.6060109@ish.com.au> References: <4ADE995A.8080009@ish.com.au> <5208B24B-0ED9-493F-81E4-04BF33FA9062@mac.com> <4ADFABE1.2080001@ish.com.au> <1256172767.2309.1.camel@balrog.2hip.net> <4ADFB244.6060109@ish.com.au> Content-Type: text/plain Organization: FreeBSD Date: Wed, 21 Oct 2009 20:33:50 -0500 Message-Id: <1256175230.2309.27.camel@balrog.2hip.net> Mime-Version: 1.0 X-Mailer: Evolution 2.26.3 FreeBSD GNOME Team Port Content-Transfer-Encoding: 7bit X-Spam-Status: No, score=-1.3 required=5.0 tests=AWL,BAYES_00,RCVD_IN_PBL, RCVD_IN_SORBS_DUL, RDNS_DYNAMIC, SPF_SOFTFAIL autolearn=no version=3.2.5 X-Spam-Checker-Version: SpamAssassin 3.2.5 (2008-06-10) on gizmo.2hip.net Cc: Marcel Moolenaar , freebsd-current@freebsd.org Subject: Re: gpart, bsdlabel and fdisk X-BeenThere: freebsd-current@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: Discussions about the use of FreeBSD-current List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Thu, 22 Oct 2009 01:33:58 -0000 On Thu, 2009-10-22 at 12:15 +1100, Aristedes Maniatis wrote: > On 22/10/09 11:52 AM, Robert Noland wrote: > > On Thu, 2009-10-22 at 11:48 +1100, Aristedes Maniatis wrote: > >> > Hmmm... I was hoping for something more useful than that response. > >> > Where is it documented that I have to do "echo 'a 1' | fdisk -f > >> > - /dev/ad4" to make a disk bootable? > > > I committed a patch the other day that will set the active flag for a > > GPT partitioned disk when you install bootcode on it. > > > Great. Will that make it to RC2? > > Until then, is this the correct procedure to make a disk capable of booting ZFS: > > gpart bootcode -b /boot/boot0 ad4 > echo 'a 1' | fdisk -f - /dev/ad4 I used to do it by just calling "fdisk -a /dev/ad4". It prompts you and did the right thing. Note that only one of my machines needs the active flag specifically set. Most BIOS don't seem to need it, but then some do and it doesn't hurt to set it. > Sean mentions that 16 blocks have to be reserved at the start of the disk (to allow for the bootloader?). Will that also go away with your new patch so that the appropriate space is preserved? Will 16 blocks be enough forever? I don't normally do this, no... But I'm not sure exactly how you have setup your disks. I use GPT and have not needed to do that... I posted the procedure that I use a few minutes ago. robert. > Thanks > > Ari > -- Robert Noland FreeBSD