Solved move FreeBSD installation to a different disk partition on same Laptop

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?
I used

cd /mnt/dst
dump -0 -f - /dev/ada0p2 | restore -r -Dv -f -


My Disk structure

ada0
msdos 300MB EFI with rEFInd
UFS 256 GB FREEBSD 14 <— current system

ada1
500MB 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 <—- target for clone


Thanks
amr
 
Solved 😁

I did recreate the EFI partition ada1p6
and used ‘gdisk’ to sort it and give it the ada1p1 location
Then copied the EFI/freebsd into it
Rebooted and now I have 2 freebsd boot options
Then reworked fstab on the cloned system so it reflects the partition layout changes
And it works
 
Back
Top