From owner-freebsd-questions@FreeBSD.ORG Mon Aug 1 18:20:35 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 AA4AD16A41F for ; Mon, 1 Aug 2005 18:20:35 +0000 (GMT) (envelope-from alexandre.delay@free.fr) Received: from postfix4-2.free.fr (postfix4-2.free.fr [213.228.0.176]) by mx1.FreeBSD.org (Postfix) with ESMTP id 4642543D45 for ; Mon, 1 Aug 2005 18:20:35 +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 postfix4-2.free.fr (Postfix) with ESMTP id C39B1323439 for ; Mon, 1 Aug 2005 20:20:33 +0200 (CEST) Received: from artemis (artemis [192.168.2.2]) by serveur.thrruss.org (8.13.0/8.13.0) with SMTP id j71ILR2Z013813 for ; Mon, 1 Aug 2005 20:21:27 +0200 From: "Alexandre D." To: Date: Mon, 1 Aug 2005 20:20:50 +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: <20050801170619.GB767@beatrix.daedalusnetworks.priv> X-MimeOLE: Produced By Microsoft MimeOLE V6.00.2800.1478 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 18:20:35 -0000 Interresting thing: After all this (even restore), I launched sysinstall. I went in the fdisk section, selected the right disk, the right slice and pressed S (toggle bottable flags), then w (write changes) and q to quit. Then I choosed the "Install the FreeBSD Boot Manager". Now it works. It boots from the second disk. I don't understand what went wrong in my script. What do I forget? Do you understand?? cheers -----Message d'origine----- De : owner-freebsd-questions@freebsd.org [mailto:owner-freebsd-questions@freebsd.org]De la part de Giorgos Keramidas Envoye : lundi 1 aout 2005 19:06 A : Alexandre D. Cc : Gary W. Swearingen; freebsd-questions@freebsd.org Objet : Re: Migrate primary disk (duplicate) 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? _______________________________________________ freebsd-questions@freebsd.org mailing list http://lists.freebsd.org/mailman/listinfo/freebsd-questions To unsubscribe, send any mail to "freebsd-questions-unsubscribe@freebsd.org"