wiki:DualBoot
Last modified 12 years ago Last modified on 05/08/06 13:34:25

It is sometimes preferable to have a system that can dual boot linux and Windows. This document assumes that the computer came with a recent version of Windows preinstalled, or that you have already installed Windows on it.

The first step is to get some free space for Linux to live on. There are many tools that can do this for you, a basic one that can fit on a usb disk or floppy is ntfsresize. You can download the latest staticly linked ntfsresize from http://linux-ntfs.sourceforge.net/info/ntfsresize.html#static

That page also has full details

fdisk -l /dev/hdx # get partition info
sfdisk -d /dev/hda > hda.pt # save the full partition table
./ntfsresize --info /dev/hda1
./ntfsresize --no-action --size 11000M /dev/hda1
./ntfsresize --size 11000M /dev/hda1
./ntfsresize --info --force /dev/hda1
fdisk /dev/hda 

Within fdisk, delete the NTFS partition and add it back with the same start but a smaller size (slightly larger than the size you gave ntfsresize above). The most important command is:

Command (m for help): n
Command action
   e   extended
   p   primary partition (1-4)
p
Partition number (1-4): 1
First cylinder (1-2480, default 1): 1
Last cylinder or +size or +sizeM or +sizeK (1-2480, default 2480): +11200M 

Then install Red Hat with KickStart. During the installation you may want to create a small VFAT (FAT32) partition for sharing data between Windows and Linux.

The Red Hat installation should put something like this in /etc/grub.conf:

title Other
        rootnoverify (hd0,0)
        chainloader +1

You can edit it so the title is something more meaningful like "Windows XP Pro."