Skip site navigation (1)Skip section navigation (2)
Date:      Sun, 19 Sep 2004 13:09:27 +0100
From:      Matthew Seaman <m.seaman@infracaninophile.co.uk>
To:        Abe Olson <bung-foo@comcast.net>
Cc:        freebsd-questions@freebsd.org
Subject:   Re: winxp freebsd dual boot with freebsd on second HD
Message-ID:  <20040919120927.GF51161@happy-idiot-talk.infracaninophile.co.uk>
In-Reply-To: <414CD0D3.2030802@comcast.net>
References:  <414CD0D3.2030802@comcast.net>

next in thread | previous in thread | raw e-mail | index | archive | help

--ni93GHxFvA+th69W
Content-Type: text/plain; charset=iso-8859-1
Content-Disposition: inline
Content-Transfer-Encoding: quoted-printable

On Sat, Sep 18, 2004 at 05:20:35PM -0700, Abe Olson wrote:
=20
> The instructions say:
> "Other operating systems, in particular Windows=AE 95, have been known to=
=20
> overwrite an existing MBR with their own. If this happens to you, or you=
=20
> want to replace your existing MBR with the FreeBSD MBR then use the=20
> following command:
>=20
> # fdisk -B -b /boot/boot0 device
>=20
> Where device is the device that you boot from . . ."

You have to do that to all bootable drives in your machine -- so
assuming your Windows disk is ad0 and your FreeBSD disk is ad2, you'ld
run:

    # fdisk -B -b /boot/boot0 ad0
    # fdisk -B -b /boot/boot0 ad2

In either case, you shouldn't need to rewrite the partition table.

See also boot0cfg(8) for a tool that lets you configure exactly how
the boot blocks work.  Indeed, you can use boot0cfg(8) instead of
fdisk(8) to achieve your ends:

    # boot0cfg -B -b /boot/boot0 ad0
    # boot0cfg -B -b /boot/boot0 ad2

boot0cfg only ever affects the boot blocks; unlike fdisk it doesn't do
anything with partition tables, other than allow you to choose which
slices to boot from.

Note that the boot0 boot block is very minimal -- it fits into a
single 512 byte sector -- and that many people prefer 3rd party boot
managers like GAG: http://gag.sourceforge.net/ which, while quite a
bit bigger, have a much friendlier user interface.

	Cheers,

	Matthew

--=20
Dr Matthew J Seaman MA, D.Phil.                       26 The Paddocks
                                                      Savill Way
PGP: http://www.infracaninophile.co.uk/pgpkey         Marlow
Tel: +44 1628 476614                                  Bucks., SL7 1TH UK

--ni93GHxFvA+th69W
Content-Type: application/pgp-signature
Content-Disposition: inline

-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.2.6 (FreeBSD)

iD8DBQFBTXb3iD657aJF7eIRAvX5AKCQL2yVkenuMEVxlSJWE9/r3qv3QwCguhO0
Xrxzvac/XHTU+F74TQuFx5U=
=jFn/
-----END PGP SIGNATURE-----

--ni93GHxFvA+th69W--



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