Home > FreeBSD, Trouble-Shooting > Restore FreeBSD bootloader after installing windows

Restore FreeBSD bootloader after installing windows

When you install wind**s after freeBSD (or another *nix family, eg : linux, MAC) it always automatically replace/override the MBR and bootloader with its own (windows only).
Then you can’t boot all OS except windows (this selfish feature especially annoying me).
Then you need to restore your MBR and bootloader using FreeBSD’s, this is the step :

  • boot using FreesBSD CD / usbdisk / floppy
  • choose menu Fixit
  • in the Fixit shell, reinstall FreeBSD MBR code with

fdisk -B -b /boot/boot0 /dev/ad4 
change /dev/ad4 with your own slice identifier

  • exit and reboot
  • and…. taraaaaaaa… You get FreeBSD (un-selfish) bootloader automagically detect both BSD and windows

happy hacking.

Note :
MBR : Master Boot Record.

reference:
http://www.freebsd.org/doc/handbook/boot-blocks.html
http://forums.freebsd.org/showthread.php?t=12793

Advertisements
  1. No comments yet.
  1. No trackbacks yet.

Leave a Reply

Fill in your details below or click an icon to log in:

WordPress.com Logo

You are commenting using your WordPress.com account. Log Out / Change )

Twitter picture

You are commenting using your Twitter account. Log Out / Change )

Facebook photo

You are commenting using your Facebook account. Log Out / Change )

Google+ photo

You are commenting using your Google+ account. Log Out / Change )

Connecting to %s

%d bloggers like this: