From nobody Thu Dec 21 18:53:12 2023 X-Original-To: freebsd-hackers@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 4Sx01w4WL8z547pd for ; Thu, 21 Dec 2023 18:53:24 +0000 (UTC) (envelope-from freebsd-rwg@gndrsh.dnsmgr.net) Received: from gndrsh.dnsmgr.net (pdx.rh.CN85.dnsmgr.net [65.75.216.6]) (using TLSv1 with cipher DHE-RSA-AES256-SHA (256/256 bits)) (Client did not present a certificate) by mx1.freebsd.org (Postfix) with ESMTPS id 4Sx01v6sRJz3dQG for ; Thu, 21 Dec 2023 18:53:23 +0000 (UTC) (envelope-from freebsd-rwg@gndrsh.dnsmgr.net) Authentication-Results: mx1.freebsd.org; none Received: from gndrsh.dnsmgr.net (localhost [127.0.0.1]) by gndrsh.dnsmgr.net (8.13.3/8.13.3) with ESMTP id 3BLIrCEv072903; Thu, 21 Dec 2023 10:53:12 -0800 (PST) (envelope-from freebsd-rwg@gndrsh.dnsmgr.net) Received: (from freebsd-rwg@localhost) by gndrsh.dnsmgr.net (8.13.3/8.13.3/Submit) id 3BLIrCHd072902; Thu, 21 Dec 2023 10:53:12 -0800 (PST) (envelope-from freebsd-rwg) From: "Rodney W. Grimes" Message-Id: <202312211853.3BLIrCHd072902@gndrsh.dnsmgr.net> Subject: Re: move FreeBSD installation to a different disk partition on same Laptop In-Reply-To: <2977d629-1168-4acd-9506-fd76f9556d32@bein.link> To: Maxim V Filimonov Date: Thu, 21 Dec 2023 10:53:12 -0800 (PST) CC: Amr Osman , freebsd-hackers@FreeBSD.org X-Mailer: ELM [version 2.4ME+ PL121h (25)] List-Id: Technical discussions relating to FreeBSD List-Archive: https://lists.freebsd.org/archives/freebsd-hackers List-Help: List-Post: List-Subscribe: List-Unsubscribe: Sender: owner-freebsd-hackers@freebsd.org MIME-Version: 1.0 Content-Transfer-Encoding: 7bit Content-Type: text/plain; charset=US-ASCII X-Rspamd-Pre-Result: action=no action; module=replies; Message is reply to one we originated X-Spamd-Result: default: False [-4.00 / 15.00]; REPLY(-4.00)[]; ASN(0.00)[asn:10494, ipnet:65.75.216.0/23, country:US] X-Spamd-Bar: ---- X-Rspamd-Queue-Id: 4Sx01v6sRJz3dQG > Hi, > > You can use dump and restore for UFS file systems. He already said he has done that. > > On 21.12.2023 12:25, Amr Osman wrote: > > Hello, > > > > I have freebsd 14 install on UFS partition on 256 GB GPT disk and I want to move it to a 128 GB UFS partition on another 512GB GPT disk that contains windows 11 and Fedora 39 , I have cloned my system using ? dump | restore ? but I can?t find a way to make freeBSD boot-loader show the cloned system to boot into it as I have the 2 disks on my laptop and I want to make the 256 disk for data only and the other for multi booting using rEFInd > > any help is appreciated > > how to create a boot entry for the cloned system? You can use: efibootmgr -v to see the current EFI boot entires, but I think this is not your issue, and assume you are getting to the FreeBSD loader, but are not sure how to tell it to boot ada1p5 rather than ada0p2? When the menu comes up if you hit 3 that can drop you to the "OK " loader prompt. iirc you can then say: boot ada1p5:/boot/kernel/kernel but it has been a long time since I have done this. You may have to fool around with variables using set loaddev=ada1p5: Much of this may become automagic if you just remark ada0p2, your UFS parition on ada0, as something other than FreeBSD UFS so that the loader.efi finds ada1p5 all on its own as the parition to boot. > > > > My Disk structure > > > > ada0 > > msdos 300MB EFI with rEFInd > > UFS 256 GB FREEBSD 14 > > > ada1 > > 500GB freeSpace (I deleted that due to bug on windows installer that prevented installation to continue due to multiple EFI present on my laptop) > > ada1p2 150 GB NTFS WINDOWS 11 > > ada1p3 128 GB EXT4 Fedora Linux > > ada1p4 100 GB exFat shared Data > > ada1p5 100 GB UFS > > > > > Thanks > > amr > > -- > wbr, Maxim Filimonov > > > -- Rod Grimes rgrimes@freebsd.org