From owner-freebsd-questions@FreeBSD.ORG Mon Aug 1 17:06:23 2005 Return-Path: X-Original-To: freebsd-questions@freebsd.org Delivered-To: freebsd-questions@freebsd.org Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id 9976616A41F for ; Mon, 1 Aug 2005 17:06:23 +0000 (GMT) (envelope-from keramida@ceid.upatras.gr) Received: from aiolos.otenet.gr (aiolos.otenet.gr [195.170.0.93]) by mx1.FreeBSD.org (Postfix) with ESMTP id CBA4643D46 for ; Mon, 1 Aug 2005 17:06:22 +0000 (GMT) (envelope-from keramida@ceid.upatras.gr) Received: from beatrix.daedalusnetworks.priv (aris.bedc.ondsl.gr [62.103.39.226]) by aiolos.otenet.gr (8.13.4/8.13.4/Debian-1) with SMTP id j71H6Kcj020333; Mon, 1 Aug 2005 20:06:20 +0300 Received: from beatrix.daedalusnetworks.priv (localhost [127.0.0.1]) by beatrix.daedalusnetworks.priv (8.13.3+Sun/8.13.3) with ESMTP id j71H6KBH000810; Mon, 1 Aug 2005 20:06:20 +0300 (EEST) Received: (from keramida@localhost) by beatrix.daedalusnetworks.priv (8.13.3+Sun/8.13.3/Submit) id j71H6JSh000809; Mon, 1 Aug 2005 20:06:19 +0300 (EEST) Date: Mon, 1 Aug 2005 20:06:19 +0300 From: Giorgos Keramidas To: "Alexandre D." Message-ID: <20050801170619.GB767@beatrix.daedalusnetworks.priv> References: Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: Cc: "Gary W. Swearingen" , freebsd-questions@freebsd.org Subject: Re: Migrate primary disk (duplicate) X-BeenThere: freebsd-questions@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: User questions List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Mon, 01 Aug 2005 17:06:23 -0000 On 2005-08-01 18:59, "Alexandre D." 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?