From owner-freebsd-fs@FreeBSD.ORG Sun Mar 10 06:12:24 2013 Return-Path: Delivered-To: freebsd-fs@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:1900:2254:206a::19:1]) by hub.freebsd.org (Postfix) with ESMTP id 001A0F1B for ; Sun, 10 Mar 2013 06:12:23 +0000 (UTC) (envelope-from jdavidlists@gmail.com) Received: from mail-ia0-x234.google.com (mail-ia0-x234.google.com [IPv6:2607:f8b0:4001:c02::234]) by mx1.freebsd.org (Postfix) with ESMTP id B82EEE39 for ; Sun, 10 Mar 2013 06:12:23 +0000 (UTC) Received: by mail-ia0-f180.google.com with SMTP id f27so2641701iae.39 for ; Sat, 09 Mar 2013 22:12:23 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20120113; h=mime-version:x-received:sender:in-reply-to:references:date :x-google-sender-auth:message-id:subject:from:to:cc:content-type; bh=w6/rYYWSyXwzz89OE/o5rZnnfZ/WdbZVvdodMSfphAQ=; b=INB4eZmwilgwy7KnF1pJpESNXnW+/q3M8nhKnNH1Q54bcDG3dm7DfrxFkz9PZYHEeK iYe4AwHa8vooJp0DdLGHOamvYLTHRH8HPmpdPLayrMN8fU7XbGA12rQ2u3VStNZsCVkq g66DSBYUoVs4AHJU8wp/h5INoAa2wdhYviotWLekYg5ueammOhqcgHIXi2GwT2EtjkiD uGwev1g2ojX2R+3ZYlBvlvuva4Ik3nxqSM9N6b8LOnrwfRAwz58cbJ2OIdut+MvJHtzG nyzCss7jDBHn4aPnEZW7/4VHssLZBidhhUFrKGh5481PL6WdkQBmHSoVT++lDC0cpOJt 2w6A== MIME-Version: 1.0 X-Received: by 10.50.57.166 with SMTP id j6mr4152902igq.21.1362895943253; Sat, 09 Mar 2013 22:12:23 -0800 (PST) Sender: jdavidlists@gmail.com Received: by 10.42.153.133 with HTTP; Sat, 9 Mar 2013 22:12:23 -0800 (PST) In-Reply-To: <513C1629.50501@caltel.com> References: <513C1629.50501@caltel.com> Date: Sun, 10 Mar 2013 01:12:23 -0500 X-Google-Sender-Auth: 7XRxo5UqAysIqAivjxj_0tEH3xQ Message-ID: Subject: Re: Aligning MBR for ZFS boot help From: J David To: Cody Ritts Content-Type: text/plain; charset=ISO-8859-1 X-Content-Filtered-By: Mailman/MimeDel 2.1.14 Cc: freebsd-fs@freebsd.org X-BeenThere: freebsd-fs@freebsd.org X-Mailman-Version: 2.1.14 Precedence: list List-Id: Filesystems List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Sun, 10 Mar 2013 06:12:24 -0000 On Sun, Mar 10, 2013 at 12:12 AM, Cody Ritts wrote: > I have a new intel atom appliance that will not boot from a GPT partition > table. It came with an SSD, so I am trying to align it to 1MB for the > erase block size. > I looked and looked and I don't see where you're creating a GPT partition table or indeed doing anything with GPT. You create an MBR table here: > gpart create -s mbr ada0 >> > And seem to stick with it through the rest of your example. If you adjust this to: gpart create -s gpt ada0 You may get better results, because MBR is indeed going to saddle you with cylinder boundaries using some inscrutable probably-fictional geometry. I think you'd want something like gpart add -t freebsd-boot -b 34 -s 128 ada0 gpart bootcode -b /boot/pmbr -p /boot/gptzfsboot -i 1 ada0 gpart add -b 2048 -s 51G -l zroot -t freebsd-zfs ada0 gpart add -s 8G -t freebsd-swap ada0 But that might need some tweaking. Your zpool will then use the "zroot" partition / ada0p2. Hope that is helpful.