Subscribe to Windows IT Pro
September 25, 2000 12:00 AM

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

Windows IT Pro
InstantDoc ID #15683
Rating: (1)

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).

Related Content:

ARTICLE TOOLS

Comments
  • Anonymous User
    7 years ago
    May 10, 2005

    No need to do all this work. It's more simple to use Lilo.

  • onu
    8 years ago
    Jul 06, 2004

    It's funny to look back on old windows articles concerning linux... "If you stubbornly insist on using Linux..." of yesteryear, vs the current "Please, please don't use Linux!" of today.

    Hilarious!

  • JR
    8 years ago
    May 01, 2004

    I believe the whole point of this article is to NOT use the linux boot loader. As i am now in the process of rectifying (it's taken me about 4 hours to figure out how to wipe the MBR) my hdd after removing linux from my system, this is an informative alternative to using linux boot-loaders

  • Tim Finch
    10 years ago
    Oct 02, 2002

    I think 'stubbornly insist' is unnecessary in the opening paragraph. There are many reasons why its useful to have both OSes on your PC. I agree with Evan, where he says to allow Linux's boot loaders (GRUB is an excellent alternative to LILO, comes with Red Hat 7.3) which will do the work for you. This is the set up I have, GRUB happily dual boots Windows 2000 and Red Hat Linux.

  • Evan Inker
    12 years ago
    Oct 16, 2000

    As an alternative, you can also install Win2k first and then Linux. If you do it this way, LILO Boot Manager can be configured to prompt you to select which OS you would like to start, without the need for startup diskettes...

You must log on before posting a comment.

Are you a new visitor? Register Here

advertisement

advertisement

Windows is a trademark of the Microsoft group of companies. Windows IT Pro is used by Penton Media Inc. under license from owner.