Date: Fri, 12 Feb 2021 17:01:01 -0700 From: "Russell L. Carter" <rcarter@pinyon.org> To: Bakul Shah <bakul@iitbombay.org> Cc: freebsd-current@freebsd.org Subject: Re: upgrade stable/12 -> stable/13 zfs + boot partition Mediasize 64K Message-ID: <10e4e603-5ba9-b965-2548-2aa08c02809b@pinyon.org> In-Reply-To: <AD122BC6-0249-49DB-A6F7-7671437808BF@iitbombay.org> References: <6cd9f937-1bcc-3f50-87dc-fcbf038dff6a@pinyon.org> <AD122BC6-0249-49DB-A6F7-7671437808BF@iitbombay.org>
next in thread | previous in thread | raw e-mail | index | archive | help
On 2/11/21 9:34 PM, Bakul Shah wrote: > On Feb 11, 2021, at 7:13 PM, Russell L. Carter <rcarter@pinyon.org> wrote: >> >> root@terpsichore> gpart show >> => 34 625142381 da0 GPT (298G) >> 34 128 1 freebsd-boot (64K) >> 162 8388608 2 freebsd-swap (4.0G) >> 8388770 616753645 3 freebsd-zfs (294G) > > You can do something like > > gpart delete -i 2 da0 > gpart resize -s 512k -i 1 da0 > gpart add -t freebsd-swap da0 > gpart bootcode -p /boot/gptzfsboot -i 1 da0 This reminds me of a question that I had, does a stable/13 installworld install the bootcode? I am now guessing it doesn't, on account of it might be difficult to figure out what partition to install it to. That might explain why the zfs root boot over the stable/12 disks failed. > > gpart list da0 > will show the swap partition last but it will still be /dev/da0p2 > > Practice on a md0 device if you want to test this. > > truncate -s 20G file > mdconfig -a -t vnode -f file > gpart create -s GPT md0 > etc. > I really appreciate these instructions, thank you. Russell
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?10e4e603-5ba9-b965-2548-2aa08c02809b>