From owner-freebsd-fs@FreeBSD.ORG Sun Mar 10 20:37:05 2013 Return-Path: Delivered-To: freebsd-fs@freebsd.org Received: from mx1.freebsd.org (mx1.FreeBSD.org [8.8.178.115]) by hub.freebsd.org (Postfix) with ESMTP id 693822C5 for ; Sun, 10 Mar 2013 20:37:05 +0000 (UTC) (envelope-from cr@caltel.com) Received: from mail1.caltel.com (mail1.caltel.com [66.102.144.6]) by mx1.freebsd.org (Postfix) with ESMTP id 3620EEC0 for ; Sun, 10 Mar 2013 20:37:04 +0000 (UTC) X-IronPort-Anti-Spam-Filtered: true X-IronPort-Anti-Spam-Result: Ap8EACPuPFFCZpCq/2dsb2JhbABCxESBYXSCJgEBBThAEQsYCRYPCQMCAQIBRRMIAQGIDwy7TgSPFRaDKgOIco1jhWeLDoMqHA X-IPAS-Result: Ap8EACPuPFFCZpCq/2dsb2JhbABCxESBYXSCJgEBBThAEQsYCRYPCQMCAQIBRRMIAQGIDwy7TgSPFRaDKgOIco1jhWeLDoMqHA X-IronPort-AV: E=Sophos;i="4.84,819,1355126400"; d="scan'208";a="16947872" Received: from host-170.a66-102-144.caltel.com (HELO codys-mac.local) ([66.102.144.170]) by smtp.caltel.com with ESMTP/TLS/DHE-RSA-CAMELLIA256-SHA; 10 Mar 2013 13:36:55 -0700 Message-ID: <513CEEE7.8090400@caltel.com> Date: Sun, 10 Mar 2013 13:36:55 -0700 From: Cody Ritts Organization: CalTel User-Agent: Mozilla/5.0 (Macintosh; Intel Mac OS X 10.6; rv:17.0) Gecko/20130216 Thunderbird/17.0.3 MIME-Version: 1.0 To: freebsd-fs@freebsd.org Subject: Re: Aligning MBR for ZFS boot help References: <513C1629.50501@caltel.com> <513CD9AB.5080903@caltel.com> <513CE369.4030303@caltel.com> In-Reply-To: Content-Type: text/plain; charset=ISO-8859-1; format=flowed Content-Transfer-Encoding: 7bit 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 20:37:05 -0000 I have never seen ANY reference to installing the /boot/zfsboot with gpart. And if you look at how that ZFS boot code is installed, it is not like any of the other boot codes that gpart does install. I dont even know how you would construct the syntax. the bootcode arguments seem to be GPT and MBR specific, and mutually exclusive. https://wiki.freebsd.org/RootOnZFS/ZFSBootPartition#A_Installing_FreeBSD_to_the_ZFS_filesystem I know that if I leave either of those dd commands out when installing, the system will not boot. If I leave out the ada0s1 boot code, the system just hangs after mbr is run. If I leave out the ada0s1a boot code, I get an error. (I dont remember what) Ultimately, I am aligned and running so I am happy enough. 32MB is an acceptable loss. I am burnt out on struggling with the bootloader. I have been doing it in various ways for DAYS now trying to just figure out ZFS boot at all. There are a lot of broken (or old?) ZFS boot howtos that made the process more difficult than it should be for me because I wasnt luck enough to stumble onto the "correct" articles right off the bat. I do everything the hard way :) Thanks Cody On 3/10/13 12:51 PM, Warren Block wrote: > On Sun, 10 Mar 2013, Cody Ritts wrote: > >> Yeah, just for clarity: >> >>> root@lightning# gpart show da0s1 >>> => 0 39068064 da0s1 BSD (18G) >>> 0 32 - free - (16k) >>> 32 39067648 1 freebsd-zfs (18G) >>> 39067680 384 - free - (192k) >> >> and >> >>> dd if=/boot/zfsboot of=/dev/da0s1 count=1 >>> dd if=/boot/zfsboot of=/dev/da0s1a skip=1 seek=1024 >> >> will not boot. > > But is that putting zfsboot in the right place? Try installing zfsboot > with gpart. >