Dual boot, NT and Linux.
 

Dual Booting Windows NT and Linux is not very hard at all. Some of the newer boot managers can deal with it themselves, but sometimes you have to do some modifications. All that it requires is a special utility called BOOT.EXE and a little information about the Windows NT boot manager. It is very easy to setup Linux to boot with Windows NT and use the Linux boot manager instead of the Windows NT boot manager but most people only want to have to go through one boot manager when they start up their computer. Before you proceed you will need the following BOOT.EXE, a Red Hat Linux CD (I've only tested this on the Red Hat distribution....), Windows NT already installed, and finally a boot disk with some dos version of FDISK on it. NOTE: I have never tried this on a machine that did not have the boot manager in FAT or FAT 32 file system but I've read that it works the same way with NTFS. The only change that must be made to the procedure is to dump the file that boot.exe creates to the a: disk and restart under NT to copy the file from the disk to the c: drive. After doing that, reboot off the disk and continue as described.


Step I.

The first thing that you need to do is download BOOT.EXE from the link above and put it onto the boot disk. Also it is a good idea to put edit and attrib on the boot disk. 

Step II.

Boot your computer on the boot disk and make a backup of the Windows NT mbr by typing:

boot /r /drive:0 mbr a:\mbr.nt

Step II.

Now that you're sure your boot disk works and that the fdisk.exe on the boot disk works, feel free to reboot your computer with the Red Hat Linux install disk in.

Step IV.

It really doesn't matter how or what components of Red Hat that you install, all that matters is at the end when it asks you to setup LILO you have to do it. Setting up LILO is fairly simple, it will want to boot Windows NT with the name "dos" but just leave that there because you won't ever be using that method to boot Windows NT. Also make sure that you tell LILO to put itself on the master boot record! This is the default option, please do not change it.

Step V.

When you reboot your computer you should see something that says "LILO boot:" at this prompt simply strike enter because Linux should be setup as the default boot option. Now you are going to change LILO so that it won't make you wait 30 seconds before booting Linux. Go into Linux and type "pico /etc/lilo.conf" and find the line that says "timeout=50" (or some other number) change it to say timeout=0 this will cause Linux to boot immediately when it is loaded from the NT boot manager. Save the changes to the file and run the command /sbin/lilo -v (note: you have to be on as root to run this command).

Step VI.

Reboot with the system with the boot disk in. At the A: prompt type the command:

boot /r /drive:0 mbr A:\mbr.lin

Step VII.

Copy the NT mbr back to the drive by typing:

boot /w /drive:0 mbr a:\mbr.nt

(or using fdisk /mbr if you prefer) this will clean the MBR and in this case restore the NT boot manager.

Step VIII.

The final thing that you need to do is change the NT boot manger. If you are using NTFS you will have to

Step IX.

The final thing that you need to do is change the NT boot manger. If you are using NTFS you will have to go back into NT to do this, otherwise it is possible by using the bootdisk. Go back to the A: prompt and type:

copy mbr.lin c:\mbr.lin

Deretter må du endre litt på oppstarten til Windiws:

attrib -s -h -r c:\boot.ini

Next type "edit c:\boot.ini" and put in an menu option that says 

c:\mbr.lin = "Linux"

save the changes and close the file. Then type "attrib +s +h +r c:\boot.ini" and reboot the computer.

 
 
Design 19©96-20©03, Robert Grefstad