Migrate primary disk (duplicate)
Giorgos Keramidas
keramida at ceid.upatras.gr
Mon Aug 1 17:06:23 GMT 2005
On 2005-08-01 18:59, "Alexandre D." <alexandre.delay at free.fr> wrote:
> 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}
The dd/geom stuff shouldn't really be necessary, AFAIK.
> 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
Hmmm, are you sure restore doesn't write files in their absolute
location?
Also, can you try running boot0cfg on the destination disk, as a final
step, before trying to boot from it?
More information about the freebsd-questions
mailing list