Skip site navigation (1)Skip section navigation (2)
Date:      Sun, 10 Mar 2013 13:36:55 -0700
From:      Cody Ritts <cr@caltel.com>
To:        freebsd-fs@freebsd.org
Subject:   Re: Aligning MBR for ZFS boot help
Message-ID:  <513CEEE7.8090400@caltel.com>
In-Reply-To: <alpine.BSF.2.00.1303101349540.7637@wonkity.com>
References:  <513C1629.50501@caltel.com> <alpine.BSF.2.00.1303101006490.5989@wonkity.com> <513CD9AB.5080903@caltel.com> <alpine.BSF.2.00.1303101326530.7218@wonkity.com> <513CE369.4030303@caltel.com> <alpine.BSF.2.00.1303101349540.7637@wonkity.com>

next in thread | previous in thread | raw e-mail | index | archive | help
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.
>



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?513CEEE7.8090400>