teleost.org

Navigation:
Home  Comments

Tags:
linux  windows  boot 

How to install Windows after Linux

I will assume you have a working Linux installation and free space for installing windows. This space can of course be either before or after your Linux partitions on the disk but you will then have to adapt these instructions to your partition layout.

I will also assume you are using the grub bootloader, that you're booting from /dev/hda (IDE channel 0, master), that /dev/hda1 is your boot partition and that you will be installing Windows on /dev/hda4.

  1. Insert the Windows CD and install. This will overwrite the Linux bootloader.

    Do not delete any partitions in the Windows installer, you should have cleared space for windows using fdisk or parted.

  2. Get a minimal gentoo install CD and boot it up.

  3. Step by step:

    • Run

      mount /dev/hda1 /mnt/gentoo -t ext2

    • Run

      nano -v /mnt/gentoo/grub/grub.conf

      Append these lines:

      title=Windows
      rootnoverify (hd0,3)
      makeactive
      chainloader +1

    • Hit Ctrl-X, hit Y, and press enter.

    • Run

      grub-install /dev/hda

    • Wait for it to finish and run reboot. Don't forget to remove the CD.

You should now have dualboot working.


Comments:
No comments have been posted.

Leave a comment:

Name:  
URL:  
Comment:  


Home   Top  RSS