From owner-freebsd-questions@FreeBSD.ORG Mon Aug 1 20:26:30 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 AE16A16A41F for ; Mon, 1 Aug 2005 20:26:30 +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 2175743D45 for ; Mon, 1 Aug 2005 20:26:30 +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 78C1D323439 for ; Mon, 1 Aug 2005 22:26:29 +0200 (CEST) Received: from artemis (artemis [192.168.2.2]) by serveur.thrruss.org (8.13.0/8.13.0) with SMTP id j71KRM1p018328 for ; Mon, 1 Aug 2005 22:27:23 +0200 From: "Alexandre D." To: Date: Mon, 1 Aug 2005 22:26:46 +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) In-Reply-To: Importance: Normal 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 20:26:30 -0000 I made several tests. the exact problem is to install the freebsd boot manager. If I use any command line utility to restore the boot manager, it doesnt work. If I use /stand/sysinstall, choose fdisk and "Install the FreeBSD boot Manager", it works What is the exact command line for this? cheers Alex -----Message d'origine----- De : owner-freebsd-questions@freebsd.org [mailto:owner-freebsd-questions@freebsd.org]De la part de Alexandre D. Envoye : lundi 1 aout 2005 20:21 A : freebsd-questions@freebsd.org Objet : RE: Migrate primary disk (duplicate) 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" _______________________________________________ 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"