From owner-freebsd-questions@FreeBSD.ORG Mon Aug 1 16:59:15 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 36EEE16A41F for ; Mon, 1 Aug 2005 16:59:15 +0000 (GMT) (envelope-from alexandre.delay@free.fr) Received: from postfix3-1.free.fr (postfix3-1.free.fr [213.228.0.44]) by mx1.FreeBSD.org (Postfix) with ESMTP id CA0EC43D46 for ; Mon, 1 Aug 2005 16:59:14 +0000 (GMT) (envelope-from alexandre.delay@free.fr) Received: from serveur.thrruss.org (eur10-1-82-241-181-23.fbx.proxad.net [82.241.181.23]) by postfix3-1.free.fr (Postfix) with ESMTP id A4C3B1734AF; Mon, 1 Aug 2005 18:59:12 +0200 (CEST) Received: from artemis (artemis [192.168.2.2]) by serveur.thrruss.org (8.13.0/8.13.0) with SMTP id j71H03HS011064; Mon, 1 Aug 2005 19:00:05 +0200 From: "Alexandre D." To: "Gary W. Swearingen" , Date: Mon, 1 Aug 2005 18:59:27 +0200 Message-ID: MIME-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit X-Priority: 3 (Normal) X-MSMail-Priority: Normal X-Mailer: Microsoft Outlook IMO, Build 9.0.2416 (9.0.2911.0) Importance: Normal In-Reply-To: X-MimeOLE: Produced By Microsoft MimeOLE V6.00.2800.1478 X-Mailman-Approved-At: Tue, 02 Aug 2005 12:37:32 +0000 Cc: Giorgos Keramidas , 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 16:59:15 -0000 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.