Linux Step By Steps

Dual Boot Win2k example

From: Nate Cole cole_n_g@yahoo.com
1.  Prereqs:  Two floppies - format one to FAT, the other will be a Linux boot floppy.
1a.  Install W2k normal

2.  Get a partition available for Linux.  I used PartitionMagic .

3.  Install Linux to your partition.  Most modern distros _ask_ where you want the boot entry.  I recommend putting it in the partition where Linux is installed.  W2k will _always_ put the MBR on the first disk, and I won't stomp on it (though I'd like to :))

4.  When asked, make a boot disk (important - if you don't, you won't be able to boot Linux, as the first boot loader found will run, W2k).

5.  If you need to reboot, keep that floppy in there.

6. Log in as root.  Look at /etc/lilo.conf and make sure the default boot location is indeed where you installed.  If not, you can change it and apply by running lilo.

7.  execute:
# dd if=/dev/hdc1 bs=512 count=1 of=bootsect.lnx

This takes the first 512 bytes from the partition holding the boot record, and puts it into a file called bootsect.lnx. Replace /dev/hdc1 with the partition you used.

8.  mcopy that file to your _DOS_ floppy (don't forget to mount it first):
# mcopy bootsect.lnx /mnt/floppy

9.  Restart your machine, no floppies.  The W2k loader should show "normally" and get you right in to W2k.

10.  Add an entry for W2k boot loader.

10a.  In a command shell, copy the file a:\bootsect.lnx into c:\.

10b.  Make it read-only.
10c.  attrib -r -h boot.ini and make a backup.
10d.  Add an entry down by the bottom:
c:\bootsect.lnx="Boot the Greatest OS of All - Linux"
10e.  attrib +r +h boot.ini