From owner-freebsd-questions@FreeBSD.ORG Wed Nov 26 07:29:02 2003 Return-Path: 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 0178C16A4CE for ; Wed, 26 Nov 2003 07:29:02 -0800 (PST) Received: from smtp.infracaninophile.co.uk (happy-idiot-talk.infracaninophile.co.uk [81.2.69.218]) by mx1.FreeBSD.org (Postfix) with ESMTP id 6CA9B43FE9 for ; Wed, 26 Nov 2003 07:28:57 -0800 (PST) (envelope-from m.seaman@infracaninophile.co.uk) Received: from happy-idiot-talk.infracaninophile.co.uk (localhost [127.0.0.1]) hAQFSXqt007887 (version=TLSv1/SSLv3 cipher=DHE-RSA-AES256-SHA bits=256 verify=NO); Wed, 26 Nov 2003 15:28:41 GMT (envelope-from matthew@happy-idiot-talk.infracaninophile.co.uk) Received: (from matthew@localhost)id hAQFSXv6007886; Wed, 26 Nov 2003 15:28:33 GMT (envelope-from matthew) Date: Wed, 26 Nov 2003 15:28:33 +0000 From: Matthew Seaman To: Noah Message-ID: <20031126152833.GA7575@happy-idiot-talk.infracaninophile.co.uk> Mail-Followup-To: Matthew Seaman , Noah , freebsd-questions@freebsd.org 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> Mime-Version: 1.0 Content-Type: multipart/signed; micalg=pgp-sha1; protocol="application/pgp-signature"; boundary="YiEDa0DAkWCtVeE4" Content-Disposition: inline In-Reply-To: <20031126143823.M26427@enabled.com> User-Agent: Mutt/1.5.5.1i X-Spam-Status: No, hits=-4.9 required=5.0 tests=BAYES_00 autolearn=ham version=2.60 X-Spam-Checker-Version: SpamAssassin 2.60 (1.212-2003-09-23-exp) on happy-idiot-talk.infracaninophile.co.uk cc: freebsd-questions@freebsd.org Subject: Re: backup drive bootabel X-BeenThere: freebsd-questions@freebsd.org X-Mailman-Version: 2.1.1 Precedence: list List-Id: User questions List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Wed, 26 Nov 2003 15:29:02 -0000 --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--