From owner-freebsd-stable@FreeBSD.ORG Thu Dec 3 14:31:52 2009 Return-Path: Delivered-To: freebsd-stable@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id AD2B3106566C for ; Thu, 3 Dec 2009 14:31:52 +0000 (UTC) (envelope-from tevans.uk@googlemail.com) Received: from mail-ew0-f209.google.com (mail-ew0-f209.google.com [209.85.219.209]) by mx1.freebsd.org (Postfix) with ESMTP id 33F458FC13 for ; Thu, 3 Dec 2009 14:31:51 +0000 (UTC) Received: by ewy1 with SMTP id 1so248192ewy.14 for ; Thu, 03 Dec 2009 06:31:51 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=googlemail.com; s=gamma; h=domainkey-signature:mime-version:received:in-reply-to:references :date:message-id:subject:from:to:cc:content-type; bh=5h/Qgz8yUOfS02SUsK2PbhhzuKeaB6/WuQV+5JXj9hA=; b=EZ4ec8aY6nwU+nccDknbQfP46Zq//9c2mYPWu89NHyqMUVT4a3GUw3xQ8DNsDf1uWQ 5NlUtX8eop8PgrDGPMZexmuTAAIjagMIPQ3lvMKVVa4syBMyOjVI1qv96Frjaa9pLg5a gB6FK61NgVdvbVeI3DY6sCZFE+GfJqJ3MRP9E= DomainKey-Signature: a=rsa-sha1; c=nofws; d=googlemail.com; s=gamma; h=mime-version:in-reply-to:references:date:message-id:subject:from:to :cc:content-type; b=MD33/A6caC18VvZCoKRHQCWOX+O5u3YWO3OJ3l0Sb6aJq/L2llOppx1kzny48RlWiw jqff9eGUKiGpKm23QjZLBwTkbpxja+7NC6XToDt5UUL/rz+SOj8oMVNUCmrrLy+8hBio 2vIrcoNT62KfSnWaIRTLb3+DfGwtsrPeo4S5Y= MIME-Version: 1.0 Received: by 10.213.25.66 with SMTP id y2mr1698992ebb.93.1259850708536; Thu, 03 Dec 2009 06:31:48 -0800 (PST) In-Reply-To: <20091203141527.GB64702@roberto-al.eurocontrol.fr> References: <20091203141527.GB64702@roberto-al.eurocontrol.fr> Date: Thu, 3 Dec 2009 14:31:48 +0000 Message-ID: <2e027be00912030631u78b4fde6x88883c108f280222@mail.gmail.com> From: Tom Evans To: Ollivier Robert Content-Type: text/plain; charset=UTF-8 Cc: freebsd-stable@freebsd.org Subject: Re: FreeBSD 8 GPT install, how? X-BeenThere: freebsd-stable@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: Production branch of FreeBSD source code List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Thu, 03 Dec 2009 14:31:52 -0000 On Thu, Dec 3, 2009 at 2:15 PM, Ollivier Robert wrote: > According to Steven Hartland: >> >> I've found a number things articles on how to achieve this on previous >> versions, but they are all quite complex and was hoping there was a nice >> easy way on 8.0 given the improvements listed in the release notes. >> >> Any pointers? > > A plug for my ZFS-on-ROOT howto here: > http://www.keltia.net/howtos/zfsboot > This, like other howtos I've seen, seems to delight in making gpart as difficult and cumbersome to use as possible. This one is better than the ones on the wiki, who seem to think we should calculate the size of a partition in 512k blocks. Eg: gpart add -b 34 -s 128 -t freebsd-boot da0..da1 64 KB boot gpart add -b 162 -s 1G -t freebsd-swap -l swapN da0..da1 1 GB swap gpart add -t freebsd-zfs da0..da1 7.5 GB rest Most of these arguments are unnecessary. gpart generally already knows where to put a partition (computers apparently are quite good at adding 2 numbers together), so specifying offsets just isn't necessary. This boils down to: gpart add -s 64K -t freebsd-boot $dev gpart add -s 1G -t freebsd-swap -l swapN $dev gpart add -t freebsd-zfs $dev Cheers Tom