Date: Fri, 22 Feb 2013 11:53:55 +0100 From: David Demelier <demelier.david@gmail.com> To: uki <ukaszg@gmail.com> Cc: freebsd-questions@freebsd.org Subject: Re: Root on zfs (stable9) - how to make it bootable Message-ID: <CAO%2BPfDcyPWeMcr-ZbaZhgiC_HeCibvW5o220ryc%2BgJJkYw7zrw@mail.gmail.com> In-Reply-To: <CAN_VB4Wh88oOz7vNGgtKq7w41q8OXF=39hYup-Uwm6OowDEVHA@mail.gmail.com> References: <CAN_VB4Wh88oOz7vNGgtKq7w41q8OXF=39hYup-Uwm6OowDEVHA@mail.gmail.com>
next in thread | previous in thread | raw e-mail | index | archive | help
There are a lot of example in gpart(8) man page. You should use it I think you should do something like gpart bootcode -b /boot/pmbr ada0 gpart bootcode -p /boot/gptzfsboot -i 1 ada0 (The second assume that you have a freebsd-boot as first index in ada0) Cheers, 2013/2/22 uki <ukaszg@gmail.com> > Hi, > > I want to install freebsd9 (stable) on zfs root, unfortunately my bios > is unable to recognize GPT discs. > I'm using MBR disc, with BSD slice (on mbr index 4) containing > freebsd-zfs filesystem. > > I've no idea how to make it bootable, I've tried using: > > zpool export sys > dd if=3D/boot/zfsboot of=3D/dev/ada0s4 count=3D1 > dd if=3D/boot/zfsboot of=3D/dev/ada0s4a skip=3D1 seek=3D1024 > zpool import sys > > > When I select F4 (slice with zfs) whilst booting the computer just turns > off. > How do I make it boot? Do I need freebsd-boot slice? > > I have set bootfs property on pool, and added vfs.root.mountfrom to > loader.conf. > > > Cheers, > =C5=81ukasz Gruner > _______________________________________________ > freebsd-questions@freebsd.org mailing list > http://lists.freebsd.org/mailman/listinfo/freebsd-questions > To unsubscribe, send any mail to " > freebsd-questions-unsubscribe@freebsd.org" --=20 Demelier David
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?CAO%2BPfDcyPWeMcr-ZbaZhgiC_HeCibvW5o220ryc%2BgJJkYw7zrw>