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.
- 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.
- Get a minimal gentoo install CD and boot it up.
- 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.
- Run
You should now have dualboot working.
| Home ↑ Top RSS |
Leave a comment: