Skip site navigation (1)Skip section navigation (2)
Date:      Wed, 26 Nov 2003 15:28:33 +0000
From:      Matthew Seaman <m.seaman@infracaninophile.co.uk>
To:        Noah <admin2@enabled.com>
Cc:        freebsd-questions@freebsd.org
Subject:   Re: backup drive bootabel
Message-ID:  <20031126152833.GA7575@happy-idiot-talk.infracaninophile.co.uk>
In-Reply-To: <20031126143823.M26427@enabled.com>
References:  <20031112154647.M33110@enabled.com> <3FB25926.2000109@rtl.org> <20031112171905.M63476@enabled.com> <20031112182055.GC24384@happy-idiot-talk.infracaninophile.co.uk> <20031112223108.M65151@enabled.com> <20031113100504.GB33477@happy-idiot-talk.infracaninophile.co.uk> <20031126143823.M26427@enabled.com>

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

--YiEDa0DAkWCtVeE4
Content-Type: text/plain; charset=us-ascii
Content-Disposition: inline
Content-Transfer-Encoding: quoted-printable

On Wed, Nov 26, 2003 at 06:39:42AM -0800, Noah wrote:

> I am using FreeBSD 4.8 Stable
>=20
> # boot0cfg -B -b /boot/mbr -s 1 da1
> boot0cfg: /boot/mbr: unknown or incompatible boot code
> # ls -l /boot/mbr
> -r--r--r--  1 root  wheel  512 Aug 24 14:26 /boot/mbr
>=20
>=20
> so I am not clear what the issue is here?

Opps. Sorry.  boot0cfg only operates on /boot/boot0 which is the
FreeBSD special Master Boot Record: part of the boot0, boot1, boot2
chain.

To deal with a standard MBR, you have to use fdisk(8).  Try:

    # fdisk -B -b /boot/mbr -i da1

This will walk you through the current settings interactively, letting
you generate a slice table, change the active slice and rewrite the
boot code.

Of course, just to confuse you, fdisk(8) will talk all about
"partitions", but be assured it actually means "slices" in *BSD speak.
(partitions are generated within each slice using disklabel(8) which
is a BSD specific thing.  slices are generic for practically all OSes
that can run on the IA32 architecture from DOS onwards.)

> the disk is a little bit of  a different size with different partition si=
zes.
>  woudl that Make a difference.  what esle can I check here?

The disk geometry won't make any difference to the boot block.
fdisk(8) will read in the current partition table and give you the
opportunity to modify things, but don't do that unless you really do
intend to wipe the disk contents.

	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

--YiEDa0DAkWCtVeE4
Content-Type: application/pgp-signature
Content-Disposition: inline

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

iD8DBQE/xMahdtESqEQa7a0RAp3kAJsFEXTI4ZwhrWAUtNHUOsgNcaln0wCdGBcz
53WrkpcsbH3a2jForbnBFrU=
=4JrK
-----END PGP SIGNATURE-----

--YiEDa0DAkWCtVeE4--



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