Skip site navigation (1)Skip section navigation (2)
Date:      Tue, 2 Aug 2005 21:05:12 +0200
From:      "Alexandre D." <alexandre.delay@free.fr>
To:        <freebsd-questions@freebsd.org>
Subject:   RE: Migrate primary disk (duplicate)
Message-ID:  <MAEBLPAGHGPMOKCBICBNMELGCHAA.alexandre.delay@free.fr>
In-Reply-To: <s1zms12svm.ms1@mail.opusnet.com>

next in thread | previous in thread | raw e-mail | index | archive | help
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." <alexandre.delay@free.fr> 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




Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?MAEBLPAGHGPMOKCBICBNMELGCHAA.alexandre.delay>