From nobody Mon Apr 3 00:02:48 2023 X-Original-To: questions@mlmmj.nyi.freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2610:1c1:1:606c::19:1]) by mlmmj.nyi.freebsd.org (Postfix) with ESMTP id 4PqWLL6vSMz43DGL for ; Mon, 3 Apr 2023 00:02:50 +0000 (UTC) (envelope-from mike@sentex.net) Received: from smarthost1.sentex.ca (smarthost1.sentex.ca [IPv6:2607:f3e0:0:1::12]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature RSA-PSS (4096 bits) server-digest SHA256 client-signature RSA-PSS (2048 bits) client-digest SHA256) (Client CN "smarthost1.sentex.ca", Issuer "R3" (verified OK)) by mx1.freebsd.org (Postfix) with ESMTPS id 4PqWLL4dpZz3sNN for ; Mon, 3 Apr 2023 00:02:50 +0000 (UTC) (envelope-from mike@sentex.net) Authentication-Results: mx1.freebsd.org; none Received: from pyroxene2a.sentex.ca (pyroxene19.sentex.ca [199.212.134.19]) by smarthost1.sentex.ca (8.17.1/8.16.1) with ESMTPS id 33302mTe090831 (version=TLSv1.3 cipher=TLS_AES_256_GCM_SHA384 bits=256 verify=FAIL); Sun, 2 Apr 2023 20:02:49 -0400 (EDT) (envelope-from mike@sentex.net) Received: from [IPV6:2607:f3e0:0:4::29] ([IPv6:2607:f3e0:0:4:0:0:0:29]) by pyroxene2a.sentex.ca (8.16.1/8.15.2) with ESMTPS id 33302lUg010077 (version=TLSv1.3 cipher=TLS_AES_128_GCM_SHA256 bits=128 verify=NO); Sun, 2 Apr 2023 20:02:48 -0400 (EDT) (envelope-from mike@sentex.net) Message-ID: <512a2c9c-b5d6-4231-ba93-208d658206bd@sentex.net> Date: Sun, 2 Apr 2023 20:02:48 -0400 List-Id: User questions List-Archive: https://lists.freebsd.org/archives/freebsd-questions List-Help: List-Post: List-Subscribe: List-Unsubscribe: Sender: owner-freebsd-questions@freebsd.org X-BeenThere: freebsd-questions@freebsd.org MIME-Version: 1.0 User-Agent: Mozilla/5.0 (Windows NT 10.0; Win64; x64; rv:102.0) Gecko/20100101 Thunderbird/102.9.1 Subject: Re: Migrating to new disk Content-Language: en-US To: Henrik Morsing , questions@freebsd.org References: <8657aa62-1405-1d60-1dd7-f64f99da3ab2@sentex.net> From: mike tancsa In-Reply-To: Content-Type: text/plain; charset=UTF-8; format=flowed Content-Transfer-Encoding: 8bit X-Scanned-By: MIMEDefang 2.84 X-Rspamd-Queue-Id: 4PqWLL4dpZz3sNN X-Spamd-Bar: ---- X-Spamd-Result: default: False [-4.00 / 15.00]; REPLY(-4.00)[]; ASN(0.00)[asn:11647, ipnet:2607:f3e0::/32, country:CA] X-Rspamd-Pre-Result: action=no action; module=replies; Message is reply to one we originated X-ThisMailContainsUnwantedMimeParts: N 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