Date: Sun, 10 Mar 2013 01:12:23 -0500 From: J David <j.david.lists@gmail.com> To: Cody Ritts <cr@caltel.com> Cc: freebsd-fs@freebsd.org Subject: Re: Aligning MBR for ZFS boot help Message-ID: <CABXB=RRE3%2Bnq9RioVi4Er4kRP_=Tbonoh=rnh91Ew=3hzYapbw@mail.gmail.com> In-Reply-To: <513C1629.50501@caltel.com> References: <513C1629.50501@caltel.com>
next in thread | previous in thread | raw e-mail | index | archive | help
On Sun, Mar 10, 2013 at 12:12 AM, Cody Ritts <cr@caltel.com> 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.
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?CABXB=RRE3%2Bnq9RioVi4Er4kRP_=Tbonoh=rnh91Ew=3hzYapbw>