(Transferred from Wiki by Peter)
- Install Windows first. Leave room for Linux or put it on another drive (/dev/hdb)
- Install Linux using expert mode.
- When you install you Linux boot loader, choose LILO, NOT grub. DO NOT select MBR. Choose the first sector of your root partition. This will be /dev/hda2 if on the same hard drive or /dev/hdb1 if on another drive. The boot= directive in /etc/lilo.conf tells Lilo where it should place its primary boot loader. In general, you can either specify the master boot record (/dev/hda) or the root partition of your Linux installation (is usually is /dev/hda1 or /dev/hda2).
If you have another operating system installed in your hard drive, you'd better install Lilo to the root partition instead of the MBR. In this case, you must mark the partition as ``bootable using the ``a command of fdisk or the ``b command of cfdisk. If you don't overwrite the master boot sector you'll find it easier to uninstall Linux and Lilo if needed.
- Make the boot floppy, during the Linux installation (VERY IMPORTANT)
- When Linux is installed, reboot booting off the floppy you created.
- With Linux up, insert a FRESHLY formatted floppy and mount it with
mount -t msdos /dev/fd0 /mnt/floppy
or where ever you mount your floppy.
- Enter on the command line
dd if=/dev/hdb1 of=/mnt/floppy/bootsect.lin bs=1 count=512 /devhdb1
will vary on where you root partition is. Unmount floppy and reboot.
- W2k will come up normally. Copy the bootsect.lin file you just created to c:\.
- Open up Windows explorer and set it to show all files. Go to the c:\ and find the file (it's a hidden file) boot.ini. Edit the boot.ini file, and at the bottom of the file
Don't forget the quotes around Linux!!
- You're done! A little note the win2k boot loader will put you into LILO so you'll select Linux on the w2k boot loader and the Linux again in LILO