B. How Do I Dual Boot Windows 2000 and Linux from Ntloader?
Total Page:16
File Type:pdf, Size:1020Kb
B. HOW DO I DUAL BOOT WINDOWS 2000 AND LINUX FROM NTLOADER?
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. 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 # dd if=/dev/hdc1 bs=512 count=1 of=bootsect.lnx
14. Now use mcopy to copy this file to a DOS disk.
# mcopy bootsect.lnx a:
15. You can now shut down Linux.
# shutdown -h now
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"
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).