From owner-freebsd-questions Wed Oct 4 11:27:31 2000 Delivered-To: freebsd-questions@freebsd.org Received: from comp04.prc.uic.edu (comp04.prc.uic.edu [128.248.230.104]) by hub.freebsd.org (Postfix) with SMTP id 43C7037B502 for ; Wed, 4 Oct 2000 11:27:29 -0700 (PDT) Received: (qmail 75212 invoked by uid 1000); 4 Oct 2000 18:27:49 -0000 Date: Wed, 4 Oct 2000 13:27:48 -0500 From: Lucas Bergman To: Ciprian Turcanu Cc: freebsd-questions@freebsd.org Subject: Re: How can I reinstall MBR loader? Message-ID: <20001004132748.A75195@comp04.prc.uic.edu> Reply-To: iceberg@pobox.com References: <005801c02e54$9b18d3c0$b200000a@deltanet.ro> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii X-Mailer: Mutt 1.0i In-Reply-To: <005801c02e54$9b18d3c0$b200000a@deltanet.ro>; from cip@deltanet.ro on Wed, Oct 04, 2000 at 03:40:37PM -0700 Sender: owner-freebsd-questions@FreeBSD.ORG Precedence: bulk X-Loop: FreeBSD.ORG > I have installed win95 and FreeBSD. Today I needed to reinstall > Windows, and my MBR was rewritten. How Can I reinstall FreeBSD > loader? I have a FreeBSD (bootable) instalation CD. This comes up a lot. The short answer is % man boot0cfg Here's a copy of a (much longer) answer to this question I wrote to someone else about a month ago: Boot from the first CD. Then choose the FIXIT option from sysinstall. Insert the second CD when it asks, and jump over to the fixit shell with -. From the shell, mount your FreeBSD drive # mount /dev/ad0s2 /mnt or whatever. Then, you can refresh the MBR with # chroot /mnt # mount -a # /usr/sbin/boot0cfg -Bv ad0 Of course, check boot0cfg(8) for details. The `mount -a' step is, of course, unnecessary if your /usr is on the same partition as /. HTH, Lucas To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-questions" in the body of the message