RTP+NT dual boot system

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

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

  1. 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 :wink:.

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.

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

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

References

Writing an IPL Program
http://qdn.qnx.com/support/docs/neutrino/building/load_process.html

Programming Tools - The QNX Boot Process
By Chris McKillop, QNX Software Systems Ltd.
http://qdn.qnx.com/articles/jan1901/boot.html

Windows NT Troubleshooting
By Kathy Ivens, (c)1998 Osborne McGraw-Hill, ISBN 0-07-882471-0

It works fine with W2000 and QNX 6.1.0
Really good procedure

“Eduard Kromskoy” <ed1k@yahoo.com> a écrit dans le message news:
01c10dc8$58aae6a0$1400a8c0@ED1K…

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

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

  1. 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 > :wink:> .

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.

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

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

Thanks!

I supposed you are going to install QNX on primary master disk. I did not
try to boot own OS what is placed on another drive by ntldr. So, what you
could do if you wish to install QNX on non primary master drive and you
wish to use NT boot menu? The solution is to use cardware program
“bootpart”. You can find this small and useful program at:
http://www.winimage.com/bootpart.htm
The program seems to work fine for IDE drives.

Best regards,
Eduard.
P.S. Thank incognito, he pointed at problem and solution.