To set up dual booting with the NT loader, you need to provide the
loader with a copy of the Linux boot sector. We'll
describe how to do that on a computer running Windows NT with an NTFS
filesystem (note that Windows NT should be installed on your system
already). See the NT OS Loader+Linux mini-HOWTO for more information
and other alternatives.
You should have a Linux boot floppy or CD available so that if
necessary you can boot Linux before the NT boot loader has been
modified. You also should have a DOS-formatted floppy to transfer the
boot sector to the Windows NT partition. If you are running LILO and
it is already installed, you may need to modify
/etc/lilo.conf as described later. Otherwise,
install LILO or GRUB to the boot sector of the Linux partition; once
the Linux boot manager is installed and you have a configuration
file, you can set up the system for dual booting.
The following instructions assume your Linux partition is on
/dev/hda2. If Linux is on another partition in
your system, be sure to replace /dev/hda2 in the
following examples with the correct partition. The instructions also
assume that you have a floppy drive to make a diskette for
transferring the boot sector to your NTFS filesystem. If you
don't have a floppy drive, you will have to use some
other means of doing the transfer. If you have an NT FAT partition,
you can mount that on Linux and transfer the file there. Other
possibilities include putting it on a CD, transferring it over a
network to another system while you reboot to NT, or even emailing it
to yourself and reading it from the NT side.
Now you can shut down Windows NT and reboot. NT will prompt you with
a menu that looks something like this:
OS Loader V4.00
Please select the operating system to start:
Windows NT Workstation Version 4.00
Windows NT Workstation Version 4.00 [VGA mode]
Linux
Select Linux, and the NT loader will read the Linux boot sector and
transfer control to LILO or GRUB on the Linux partition.
If you are using LILO and you later modify
/etc/lilo.conf or rebuild the kernel, you need
to rerun the lilo command, create a
new bootsect.lnx file, and replace the version
of bootsect.lnx on the Windows NT partition with
the new version. In other words, you need to rerun Steps 2-6.