How do I dual boot Windows 2000 and Linux from NTLoader?

A. If you stubbornly insist on using Linux, here is a procedure you can use to enable a boot to Linux with Win2K NTLoader:

  1. Install Win2K as usual onto NTFS, and ensure you have also created the four Win2K boot/recovery disks.
  2. Boot the system with the boot disk that comes with Red Hat Linux 6.2, then install Linux from the Red Hat CD-ROM.
  3. Create your Linux "/" and swap partitions on a spare disk or partitions.
  4. When prompted, select "Yes, make a BOOT DISK." You use this disk in step 8 to get into Linux. If you choose "put LILO to LINUX partition boot record instead of MBR" you may skip the next 3 steps.
  5. Linux overwrites the Win2K Master Boot Record (MBR). Boot Win2K using the four recovery disks, go into Recover, then select Command mode.
  6. When prompted, log on as Administrator.
  7. Execute the fixboot and fixmbr commands. You can now boot Win2K again as usual.
  8. To boot Linux from NTLoader, insert the Linux boot disk and restart the system.
  9. Log on to Linux as root.
  10. Type cd /etc and examine the lilo.conf file. At the beginning of this file, you will find an entry that shows where the default boot partition is (e.g., /dev/had).
  11. Modify this entry (e.g., using EMACS) so that it points to the disk and partition you installed Linux to. For example, if you installed Linux to /dev/hdc1, alter the original entry to reflect the appropriate disk and partition. In this case, you would change /dev/hda to /dev/hdc1. (If you don't remember where you installed Linux to, the last entry in lilo.conf will have an "image" entry that specifies the root disk/partition.
  12. Now execute LILO to write out the boot entry to /dev/hdc1 (type the command LILO without arguments). You should see a warning about this disk/partition not being on the first disk. Ignore it; we're happy that it's not stomping on the Win2K MBR!
  13. You need to copy this boot sector to your Win2K partition so that boot.ini can reference it for your Linux entry. While you are still in Linux, use dd to raw copy the boot sector to an appropriate file.

    # cd<br>
    # dd if=/dev/hdc1 bs=512 count=1 of=bootsect.lnx <br><br>
  14. Now use mcopy to copy this file to a DOS disk.

    # mcopy bootsect.lnx a: <br><br>
  15. You can now shut down Linux.

    # shutdown -h now <br><br>
  16. Boot into Win2K.
  17. Copy bootsect.lnx onto C: (and make it read-only).
  18. Add to your boot.ini a Linux entry--for example

    C:\bootsect.lnx="Linux" <br><br>

When you reboot, if you select Linux, you will see a LILO: prompt for a few seconds, then the system will boot into Linux (press Enter if you don't want to wait, and the system will boot into Linux instantly).

Hide comments


  • Allowed HTML tags: <em> <strong> <blockquote> <br> <p>

Plain text

  • No HTML tags allowed.
  • Web page addresses and e-mail addresses turn into links automatically.
  • Lines and paragraphs break automatically.