From owner-freebsd-questions@FreeBSD.ORG Tue Aug 2 19:04:52 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 5D5E116A41F for ; Tue, 2 Aug 2005 19:04:52 +0000 (GMT) (envelope-from alexandre.delay@free.fr) Received: from postfix3-2.free.fr (postfix3-2.free.fr [213.228.0.169]) by mx1.FreeBSD.org (Postfix) with ESMTP id CD26D43D48 for ; Tue, 2 Aug 2005 19:04:51 +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-2.free.fr (Postfix) with ESMTP id 26A3AC10D for ; Tue, 2 Aug 2005 21:04:51 +0200 (CEST) Received: from artemis (artemis [192.168.2.2]) by serveur.thrruss.org (8.13.0/8.13.0) with SMTP id j72J5l4v012724 for ; Tue, 2 Aug 2005 21:05:47 +0200 From: "Alexandre D." To: Date: Tue, 2 Aug 2005 21:05:12 +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: X-MimeOLE: Produced By Microsoft MimeOLE V6.00.2800.1478 Importance: Normal 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: Tue, 02 Aug 2005 19:04:52 -0000 I tried: 1) boot0cfg -Bv -s 1 -t 20 ad2 => the boot process stops displaying "F1 FreeBSD ... Default: F1" 2) boot0cfg -Bv -o packet,noupdate -s 1 -t 20 ad2 after doing a sysctl kern.geom.debugflags=16 => the boot process passes "F1 FreeBSD ... Default: F1" and then stops at "can't load kernel" (boot2 I guess) -----Message d'origine----- De : Gary W. Swearingen [mailto:garys@opusnet.com] Envoye : mardi 2 aout 2005 00:30 A : Alexandre D. Cc : freebsd-questions@freebsd.org Objet : Re: Migrate primary disk (duplicate) "Alexandre D." writes: > I made several tests. the exact problem is to install the freebsd boot > manager. But your "fdisk -B -b /boot/boot0" should have done that. I'm not sure if it has defaults that would work for you though. boot0cfg tells you what defaults it will use and lets you change them. > If I use any command line utility to restore the boot manager, it doesnt > work. Does "any" include "boot0cfg"? > If I use /stand/sysinstall, choose fdisk and "Install the FreeBSD boot > Manager", it works > > What is the exact command line for this? Depends upon what you want. Read boot0cfg manpage; it's short. I used this once: boot0cfg -Bv -o packet,noupdate -s 3 -t 9999 ad0