From owner-freebsd-questions@FreeBSD.ORG Wed Feb 2 09:25:07 2005 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 8214316A4CF for ; Wed, 2 Feb 2005 09:25:07 +0000 (GMT) Received: from moutng.kundenserver.de (moutng.kundenserver.de [212.227.126.189]) by mx1.FreeBSD.org (Postfix) with ESMTP id E553C43D2D for ; Wed, 2 Feb 2005 09:25:06 +0000 (GMT) (envelope-from oliverfuchs@onlinehome.de) Received: from [212.227.126.207] (helo=mrelayng.kundenserver.de) by moutng.kundenserver.de with esmtp (Exim 3.35 #1) id 1CwGl0-0004kG-00 for freebsd-questions@freebsd.org; Wed, 02 Feb 2005 10:25:06 +0100 Received: from [217.246.201.124] (helo=oliverfuchs.onlinehome.de) (TLSv1:EDH-RSA-DES-CBC3-SHA:168) (Exim 3.35 #1) id 1CwGkw-0000fS-00 for freebsd-questions@freebsd.org; Wed, 02 Feb 2005 10:25:04 +0100 Received: from oliverfuchs.onlinehome.de (localhost.onlinehome.de [127.0.0.1]) j129PjbM001010 for ; Wed, 2 Feb 2005 10:25:45 +0100 (CET) (envelope-from oliverfuchs1@oliverfuchs.onlinehome.de) Received: (from oliverfuchs1@localhost) by oliverfuchs.onlinehome.de (8.13.1/8.13.1/Submit) id j129Pig6001009 for freebsd-questions@freebsd.org; Wed, 2 Feb 2005 10:25:44 +0100 (CET) (envelope-from oliverfuchs1) Date: Wed, 2 Feb 2005 10:25:43 +0100 From: Oliver Fuchs To: freebsd-questions@freebsd.org Message-ID: <20050202092543.GA979@oliverfuchs.onlinehome.de> Mail-Followup-To: freebsd-questions@freebsd.org References: Mime-Version: 1.0 Content-Type: text/plain; charset=iso-8859-15 Content-Disposition: inline In-Reply-To: User-Agent: Mutt/1.4.2.1i X-Provags-ID: kundenserver.de abuse@kundenserver.de auth:c2b2791553508cc938db2bcf18721a3c Subject: Re: Problem with booting freebsd 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, 02 Feb 2005 09:25:07 -0000 On Wed, 02 Feb 2005, Adil F. Mamedov wrote: > Hello! > > After my WINDOWS XP crashed, I decided to reinstall it... But I forgot > that during windows installation it overwrites the MBR. So, instead of > prompting me for the OS to load (FreeBSD or Windows), the system loads > Windows. When I found this problem, I have booted my system from the CD, > then entered Fixit menu, booted the Live File System CD and went to the > Console at VTY4. Then I did the following: > Hi, the reinstalling of your boot manager is a FAQ: [...] Hi, the reinstalling of your boot manager is a FAQ: [...] Hi, the reinstalling of your boot manager is a FAQ: [...] Hi, the reinstalling of your boot manager is a FAQ: [...] Hi, the reinstalling of your boot manager is a FAQ: [...] Hi, the reinstalling of your boot manager is a FAQ: [...] Hi, the reinstalling of your boot manager is a FAQ: [...] Hi, the reinstalling of your boot manager is a FAQ: [...] Hi, the reinstalling of your boot manager is a FAQ: [...] Hi, the reinstalling of your boot manager is a FAQ: [...] Hi, the reinstalling of your boot manager is a FAQ: [...] Hi, the reinstalling of your boot manager is a FAQ: [...] Hi, the reinstalling of your boot manager is a FAQ: [...] 3.9 Windows killed my boot manager! How do I get it back? You can reinstall the boot manager FreeBSD comes with in one of three ways: Running DOS, go into the tools/ directory of your FreeBSD distribution and look for bootinst.exe. You run it like so: ...\TOOLS> bootinst.exe boot.bin and the boot manager will be reinstalled. Boot the FreeBSD boot floppy again and go to the Custom installation menu item. Choose Partition. Select the drive which used to contain your boot manager (likely the first one) and when you come to the partition editor for it, as the very first thing (e.g. do not make any changes) select (W)rite. This will ask for confirmation, say yes, and when you get the Boot Manager selection prompt, be sure to select ``Boot Manager''. This will re-write the boot manager to disk. Now quit out of the installation menu and reboot off the hard disk as normal. Boot the FreeBSD boot floppy (or CDROM) and choose the ``Fixit'' menu item. Select either the Fixit floppy or CDROM #2 (the ``live'' filesystem option) as appropriate and enter the fixit shell. Then execute the following command: Fixit# fdisk -B -b /boot/boot0 bootdevice substituting bootdevice for your real boot device such as ad0 (first IDE disk), ad4 (first IDE disk on auxiliary controller), da0 (first SCSI disk), etc. [...] Oliver > > > mount /dev/ad0s3a /mnt - mount root filesystem > > fdisk -B -b /mnt/boot/boot0 /dev/ad0 - recover the MBR > > > > The last command gives me the error: ad0 Permission Denied. > > Note, that my Live File System CD is for the 4.4 Release, but I have 5.3 > Release installed on my system. I don't expect this to be the reason of > my problem, but anyway, who knows .... > > _______________________________________________ > freebsd-questions@freebsd.org mailing list > http://lists.freebsd.org/mailman/listinfo/freebsd-questions > To unsubscribe, send any mail to "freebsd-questions-unsubscribe@freebsd.org" -- ... don't touch the bang bang fruit