Hi,
QNXRTP installation procedure allows users to select their own loader (e.g.
LILO). But LILO is just an example, and NT OS loader is suitable too. I
feel I should explain the usage of NT loader in details. I’ll give you some
information about the dual boot system Windows NT 4.0 + QNX RTP 6.0. But I
believe it is appropriate for Windows 2000 (aka NT 5).
- Terminology
MCP, MCT, MCSE and other professors from Microsoft, please, excuse me. I
assume the boot partition is a primary partition which is marked as active
and ntldr is placed on it. The system partition is a partition where WINNT
folder is placed on. Microsoft assumes just the other way around.
- Preparation
Before QNX installation you need to have Windows NT bootable floppy. Create
Windows NT bootable floppy just by formatting floppy disk in NT environment
and copy the next files to the diskette: ntldr, ntdetect.com, boot.ini (and
ntbootdd.sys if you have got non INT13 device, e.g. SCSI). As a rule, all
Microsoft’s tools create only one primary partition and all others are on
the extended partition. So, if your system partition placed in extended
partition, you need to edit boot.ini file on the floppy, because the number
of system partition will increase as soon as QNX partition will be created.
You need to know that the partitions are numbered from number one (e.g. the
first partition is 1, not 0) and the primary partitions are at the
beginning of the list.
Here is an example of boot.ini for WinNT on volume D (system partition is
#2):
[boot loader]
timeout=5
default=multi(0)disk(0)rdisk(0)partition(2)\WINNT
[operating systems]
multi(0)disk(0)rdisk(0)partition(2)\WINNT=“Windows NT 4.00”
multi(0)disk(0)rdisk(0)partition(2)\WINNT=“Windows NT 4.00 [VGA mode]”
/basevideo /sos
This file must be changed to (system partition will #3):
[boot loader]
timeout=5
default=multi(0)disk(0)rdisk(0)partition(3)\WINNT
[operating systems]
multi(0)disk(0)rdisk(0)partition(3)\WINNT=“Windows NT 4.00”
multi(0)disk(0)rdisk(0)partition(3)\WINNT=“Windows NT 4.00 [VGA mode]”
/basevideo /sos
If you are not sure, you can add to operating systems section the next
lines:
multi(0)disk(0)rdisk(0)partition(2)\WINNT=“Windows NT 4.00 Partition 2”
multi(0)disk(0)rdisk(0)partition(3)\WINNT=“Windows NT 4.00 Partition 3”
multi(0)disk(0)rdisk(0)partition(4)\WINNT=“Windows NT 4.00 Partition 4”
multi(0)disk(0)rdisk(0)partition(5)\WINNT=“Windows NT 4.00 Partition 5”
…
And you will able to try all variants .
If your system partition is the first (volume C) you do not need to edit
boot.ini.
You also need free disk space to create QNX partition (this space must not
be covered by extended partition). PQ magic is suited to do it without data
loss.
- Installation
Install QNX from CD (partitional installation) and answer “own loader”.
After rebooting login as root, launch terminal, insert DOS formatted
diskette into floppy drive and
mount -t dos /dev/fd0 /fs/fd-dos
dd if=/dev/hd0t79 of=/fs/fd0-dos/bootsect.qnx count=1 bs=512
If your boot partition is FAT you can directly copy image of QNX partition
boot sector
dd if=/dev/hd0t79 of=/fs/hd0-dos/bootsect.qnx count=1 bs=512
- Last stroke
Insert Windows NT bootable floppy into drive A: and reboot the system. I
assume you allow booting from floppy in BIOS. Log in as administrator. Copy
the bootsect.qnx file from floppy to boot partition and edit the boot.ini
file on the partition. Here is an example of boot.ini:
[boot loader]
timeout=5
default=multi(0)disk(0)rdisk(0)partition(3)\WINNT
[operating systems]
multi(0)disk(0)rdisk(0)partition(3)\WINNT=“Windows NT 4.00”
multi(0)disk(0)rdisk(0)partition(3)\WINNT=“Windows NT 4.00 [VGA mode]”
/basevideo /sos
C:\bootsect.qnx=“QNX RealTime Platform 6.0.0”
So, you need to add line for QNX and, perhaps, to change number of NT
system partition.
Note boot.ini file has hidden, system and read-only attributes, so
:> attrib -s -h -r C:\boot.ini
:> edit C:\boot.ini
:> attrib +s +h +r C:\boot.ini
:> windisk
Mark your NT boot partition (as a rule it’s volume C) as ACTIVE. That’s
all. Is it difficult? Remove floppy and reboot.
Note if you have selected QNX loader during QNX installation:
You don’t need the bootable floppy on steps before and the last step is to
remove QNX loader from master boot record. You are able to do it by booting
from DOS/Win9X bootable floopy. I believe fdisk /mbr helps, but I have not
tried it for case if non-MS partition is placed on disk. Anyway, you can
try fdisk /status to make sure the fdisk understands your hard drive
configuration correctly.
Note if you are going to update QNXRTP to 6.1 release:
After running upgrade package you must boot in NT and mark QNX partition as
active. Reboot in QNX and update your bootsect.qnx file. Use NT bootable
floppy to restore stuff.
Note all:
I hope the information above will be useful and I decline all
responsibility
Best regards,
Eduard.