Clone existing FreeBSD Install onto a disk with Windows 10 already

With UFS file system. I use the Net Install FreeBSD CD, not the USB stick image as it is writable and renders images and or OS partition unbootable.
With the Net Install CD burned to USB with dd, I go into live CD mode and mount my UFS data partition to /media. If my FreeBSD root partition is /dev/nvd0p7 I issue the following command:
Code:
dump -0af - /dev/nvd0p7 | bzip2 > /media/freeX.dump.bz2
Then If I decide to move Operating systems around and decide to put FreeBSD in a smaller partition, I format the new partition FreeBSD UFS and boot the Net Install CD , mount the UFS data partition to /media and the new partition, let's say : /dev/nvd0p5 to /mnt and issue the next command:
Code:
cd /mnt
bzcat /media/freeX.dump.bz2 | restore -rf -
Then edit /etc/fstab to change from /dev/nvd0p7 to nvd0p5 for root and reboot to FreeBSD.
This DUMP program is flawlessly great when used from the non-writable Net Install live CD.
The USB stick image burned with Rufus is no good, eventually have to reinstall from scratch.
But no problems moving it around to different sized partitions on a GPT UEFI system.

EDIT: Worth Mentioning:
Partitions should be created from the Live CD using Gpart otherwise the filesystem may appear as ext2fs (linux fs) rather than freebsd-ufs. I'm pretty sure I haven't done this, which is how I know, I booted to Bootit Bare Metal and toggled the filesystem in properties to freebsd-ufs which works.
 
Back
Top