From owner-freebsd-questions@FreeBSD.ORG Tue Aug 2 06:20:56 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 201BA16A41F for ; Tue, 2 Aug 2005 06:20:56 +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 B2AC243D46 for ; Tue, 2 Aug 2005 06:20:55 +0000 (GMT) (envelope-from alexandre.delay@free.fr) Received: from imp6-q.free.fr (imp6-q.free.fr [212.27.42.6]) by postfix4-2.free.fr (Postfix) with ESMTP id F0EE13233B0; Tue, 2 Aug 2005 08:20:54 +0200 (CEST) Received: by imp6-q.free.fr (Postfix, from userid 33) id BDAE3263C6; Tue, 2 Aug 2005 08:20:54 +0200 (MEST) Received: from proxy8.sncf.fr (proxy8.sncf.fr [171.16.4.10]) by imp6-q.free.fr (IMP) with HTTP for ; Tue, 02 Aug 2005 08:20:54 +0200 Message-ID: <1122963654.42ef10c6aaf0a@imp6-q.free.fr> Date: Tue, 02 Aug 2005 08:20:54 +0200 From: alexandre.delay@free.fr To: "Gary W. Swearingen" References: In-Reply-To: MIME-Version: 1.0 Content-Type: text/plain; charset=ISO-8859-1 Content-Transfer-Encoding: 8bit User-Agent: Internet Messaging Program (IMP) 3.2.5 X-Originating-IP: 171.16.4.10 Cc: 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: Tue, 02 Aug 2005 06:20:56 -0000 > > 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. I agree with you that fdisk and boot0cfg ?!should!? have done that. I tried a lot of different commands: fdisk -B... fdisk -b /boot/boot0... boot0cfg -B ... boot0cfg -b /boot/boot0 ... > > If I use any command line utility to restore the boot manager, it doesnt > > work. > > Does "any" include "boot0cfg"? yes > > 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 I'll try this this evening.