PCS Logo

Dual-booting with QNX and other boot issues



Introduction

QNX is the operating system of choice for a small number of Physics labs and classes.  Much of the "official" documentation regarding QNX is sparse, thus it is the intention of PCS to document basic configuration and support solutions within the system  as they are discovered.

Changing the default boot OS

To activate the QNX operating system partition as default:

In Windows, log in as administrator.

Open a command prompt, and enter the command:

diskpart

At the Diskpart prompt, enter the commands: 

select disk 0
select part 3
active
exit

Then close the window and restart. The system should boot into QNX.

To activate the Windows operating system partition as default:

In Windows, log in as administrator.

Open a command prompt, and enter the command:

diskpart

At the Diskpart prompt, enter the commands: 

select disk 0
select part 2
active
exit

Then close the window and restart. The system should boot into Windows.

Troubleshooting the MBR and boot sectors

To reinstall the QNX MBR (if you are imaging OS's):
 
Using the QNX boot loader will allow you to choose which OS to boot.  If you aren't presented an option on which partition to boot from (assuming this is dual-boot system), then this is what you need to do.

Boot from the QNX installation CD.

Choose the option to boot from the hard drive.

Log in as root, open a terminal window, and enter the command:

fdisk /dev/hd0 loader

Reboot, and you should now be able to boot from different partitions.


To reinstall the QNX boot sector (or secondary loader):

Now that we can boot different partitions, you might need to reinstall the boot sector for the QNX partition.  When you choose the QNX partition from the primary boot loader, and it writes a bunch of "........" to the screen, your boot sector is corrupt.

Boot from the QNX installation CD.

Choose the option to boot from the hard drive.

Log in as root, and open a terminal window.

Use the command df to check the device name your QNX partition has been assigned (i.e. /dev/hd0t79).

Run the command dloader to see what secondary loaders are available (i.e. pc2).

Using the information gathered from above, issue the following command:

dloader /dev/hd0t79 pc2

QNX should now be bootable.




Last Updated:  3/23/2005

Questions regarding this document should be sent to pcs@physics.ucsb.edu

PCS Logo