Migrate primary disk (duplicate)
Alexandre D.
alexandre.delay at free.fr
Mon Aug 1 16:59:15 GMT 2005
Here is the complete process I follow:
sysctl kern.geom.debugflags=16
dd if=/dev/zero of=/dev/${disk} bs=1k count=1
fdisk -BI ${disk}
disklabel -B -w -r ${disk}s1 auto
disklabel -R ${disk}s1 generique.disklabel
newfs /dev/${disk}s1a
newfs /dev/${disk}s1d
mount /dev/${disk}s1a ./mnt
cd ./mnt
dump 0uafL - / | restore xf -
cd ..
umount ./mnt
mount /dev/${disk}s1d ./mnt
cd ./mnt
dump 0uafL - /usr | restore xf -
cd ..
umount ./mnt
-----generique.disklabel file-------
a: 41943040 0 4.2BSD
b: 2097152 * swap
d: * * 4.2BSD
------
If I do the same with /stand/sysinstall in stead of
dd if=/dev/zero of=/dev/${disk} bs=1k count=1
fdisk -BI ${disk}
disklabel -B -w -r ${disk}s1 auto
It works well.
More information about the freebsd-questions
mailing list