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 [...]
I recently saw a blog post with some tips for dealing with the FreeBSD ports tree. The tip I thought was particularly useful regarding creating binary backups (i.e. packages) of important ports before upgrading them, just in case you need to roll back by installing the package. pkg_create -b portname will create a package for [...]
© Chillibear | Theme DePo Skinny | Header image from: Andrews, William: 'Curiosities of the Church: Studies of Curious Customs, Services and Records' (1891)