Date: Sun, 2 Apr 2023 20:02:48 -0400 From: mike tancsa <mike@sentex.net> To: Henrik Morsing <henrik@morsing.cc>, questions@freebsd.org Subject: Re: Migrating to new disk Message-ID: <512a2c9c-b5d6-4231-ba93-208d658206bd@sentex.net> In-Reply-To: <ZCnxKNeiBYmsoiRM@morsing.cc> References: <ZCgN887wVFE%2BOMR3@morsing.cc> <ZCmgxWVc1g9oKCnc@morsing.cc> <8657aa62-1405-1d60-1dd7-f64f99da3ab2@sentex.net> <ZCnxKNeiBYmsoiRM@morsing.cc>
next in thread | previous in thread | raw e-mail | index | archive | help
On 4/2/2023 5:18 PM, Henrik Morsing wrote: > On Sun, Apr 02, 2023 at 03:09:15PM -0400, mike tancsa wrote: > > Hi Mike, > > [...] >>> >>> >> What does >> >> gpart list >> >> show on your new disk ? > > At bottom of this email. > >> >> When I do a bare metal restore, I do something like this >> >> echo "" >> echo "# Create zfs boot (512k) and a 220 gig root partition" >> gpart create -s gpt $DESTDEVICE >> gpart add -a 4k -s 40M -t efi $DESTDEVICE >> gpart add -a 4k -s 8G -t freebsd-swap -l swap1 $DESTDEVICE >> gpart add -a 4k -t freebsd-zfs -l $DISKNAME $DESTDEVICE >> newfs_msdos -F 32 -c 1 /dev/${DESTDEVICE}p1 >> mkdir -p /mnttmp >> mount -t msdosfs /dev/${DESTDEVICE}p1 /mnttmp >> mkdir -p /mnttmp/EFI/BOOT >> cp /boot/loader.efi /mnttmp/EFI/BOOT/BOOTX64.efi >> umount /mnttmp > > Exact same steps I have done. When I boot I get this: > What is in /boot/loader.conf ? And did you set the right pool name ? zpool set bootfs=$POOLNAME/ROOT/default $POOLNAME
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?512a2c9c-b5d6-4231-ba93-208d658206bd>