Date: Thu, 19 Apr 2007 07:49:17 +0530 From: "Amarendra Godbole" <amarendra.godbole@gmail.com> To: freebsd-questions@freebsd.org Subject: [solution] Re-installing Windows *after* FreeBSD Message-ID: <294439d20704181919h16b0c83fsd6481653d51d5c0c@mail.gmail.com>
next in thread | raw e-mail | index | archive | help
Hi, I recently came across a problem where I had to re-install Windows XP on my laptop, which already had FreeBSD on the second slice. I am sure many must have faced this issue, and hence I am posting this solution that I adopted to re-install Windows (okay, here I already have two slices, first for Windows and second for FreeBSD). Typical disk setup: 40G HDD on Dell Latitude D400 laptop. First slice (partition on Windows parlance) of 15G and second slice of 25G for FreeBSD. Pre-condition: Windows slice already exists. This procedure typically applies to re-installing Windows. Steps: 1. Re-install Windows in a normal way, making sure you don't touch the FreeBSD slice of the machine. Since Win does not honor the MBR, it will install its own MBR after the installation, thus hiding FreeBSD. 2. After step 1., boot the machine from FreeBSD boot CD-ROM (CD 1) of your release. Mine is FreeBSD 6.2-RELEASE 3. In sysinstall, go to the Fixit mode, and select the option for "live" FreeBSD system. You will now get a prompt something like: "Fixit#" 4. Run the following command: boot0cfg -B ad0 This command re-installs the boot0 boot manager on disk ad0. It will properly detect both OSes', and re-install the MBR appropriately. 5. Reboot. You will now be greeted with the very famous prompts: F1 DOS F2 FreeBSD Hope this helps. Similar thing (re-installing grub) can be done for Windows and Linux dual-boot, when Win kicks off grub. -Amarendra
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?294439d20704181919h16b0c83fsd6481653d51d5c0c>