Subject: Tranferring a System
To: None <port-alpha@netbsd.org>
From: Ray Phillips <r.phillips@mailbox.uq.edu.au>
List: port-alpha
Date: 12/05/2001 12:24:08
Dear NetBSD/alpha:
Is it possible to create a system disk by copying the contents of a
disk that has NetBSD installed on it to another one?
I thought the following scheme might work, but I'm not sure how cp
will treat device files and sockets (and possibly other files I don't
understand).
Assuming a working machine has one disk with / and /usr partitions,
create partitions on a second one, at least as large as those on the
first, and then (pardon the pseudo-code in the third line)...
# mount /dev/sd1a /mnt
# cd /
# cp -Rp ***list of files and directories in `/' except for usr*** /mnt
# umount /mnt
# mount /dev/sd1d /mnt
# cd /usr
# cp -Rp * /mnt
# umount /mnt
# /usr/mdec/installboot -v /dev/rsd1c /usr/mdec/bootxx_ffs
Perhaps there's a recognised standard way of doing this that I don't
know about? Can dd do it, even if the size of the partions on the
two disks are not the same?
Ray