Date: Mon, 1 Aug 2005 20:06:19 +0300 From: Giorgos Keramidas <keramida@ceid.upatras.gr> To: "Alexandre D." <alexandre.delay@free.fr> Cc: "Gary W. Swearingen" <garys@opusnet.com>, freebsd-questions@freebsd.org Subject: Re: Migrate primary disk (duplicate) Message-ID: <20050801170619.GB767@beatrix.daedalusnetworks.priv> In-Reply-To: <MAEBLPAGHGPMOKCBICBNMEKKCHAA.alexandre.delay@free.fr> References: <xtslxt4r9w.lxt@mail.opusnet.com> <MAEBLPAGHGPMOKCBICBNMEKKCHAA.alexandre.delay@free.fr>
next in thread | previous in thread | raw e-mail | index | archive | help
On 2005-08-01 18:59, "Alexandre D." <alexandre.delay@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?
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?20050801170619.GB767>