Chillibear
A place for notes about stuff

Posts Tagged ‘dump’

Clone FreeBSD

Clone a running FreeBSD system to another disk. Source drive: ad0, target drive ad1 Prepare the target drive cd /tmp/ df -h > liveFSsizes bsdlabel da0s1 > liveSPsizes dd if=/dev/zero of=/dev/da1 count=2 fdisk -BI /dev/da1 bsdlabel -B -w da1s1 bsdlabel -R da1s1 liveSPsizes cat liveSPsizes newfs -U /dev/da1s1a newfs -U /dev/da1s1d newfs -U /dev/da1s1e newfs [...]