Migrate primary disk (duplicate)

Alexandre D. alexandre.delay at free.fr
Tue Aug 2 19:04:52 GMT 2005

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 at opusnet.com]
Envoye : mardi 2 aout 2005 00:30
A : Alexandre D.
Cc : freebsd-questions at freebsd.org
Objet : Re: Migrate primary disk (duplicate)

"Alexandre D." <alexandre.delay at 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

More information about the freebsd-questions mailing list