pfr will dump
copy everything?
dump
works at the raw, disk-level, so it will copy everything: animal, vegetable, or mineral.
pfr Should I use the fss(4)
to create a snapshot and then invoke the -x
flag?
No need for snapshots if the filesystem is read-only (as it would be in single-user mode):
mount -t tmpfs tmp /tmp # scratch-space for dump(8)
newfs -O2 /dev/r<new-dev>
mount /dev/<new-dev> /targetroot
dump -0af - / | (cd /targetroot; restore -rf -)
export TERM=wsvt25
vi /targetroot/etc/fstab /targetroot/boot.cfg
umount /targetroot
If your NetBSD system is spread across multiple mount-points, you'll have to dump and restore those file-systems as well. Finally, make the new disk bootable--trivial if you have UEFI.