Skip site navigation (1)Skip section navigation (2)
Date:      Wed, 2 Feb 2005 10:25:43 +0100
From:      Oliver Fuchs <oliverfuchs@onlinehome.de>
To:        freebsd-questions@freebsd.org
Subject:   Re: Problem with booting freebsd
Message-ID:  <20050202092543.GA979@oliverfuchs.onlinehome.de>
In-Reply-To: <DEAC07346E6B43409D8CFF5D94967B9322A8CC@mx.risk.az>
References:  <DEAC07346E6B43409D8CFF5D94967B9322A8CC@mx.risk.az>

next in thread | previous in thread | raw e-mail | index | archive | help
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



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