Home
Developer Resources
QNX RTOS v4
QNX RTOS v4 Knowledge Base

QNX RTOS v4 Knowledge Base

Foundry27
Foundry27
QNX RTOS v4 project
Resources

QNX RTOS v4 Knowledge Base

Title How to add a second hard drive to a QNX2.15 system
Ref. No. QNX.000009332
Category(ies) Installation, Filesystem, Configuration
Issue How do we add a second hard drive to our QNX2.15 system?

Solution To mount a second hard drive to your controller and have QNX recognize it is quite simple. Issue the mount command with the appropriate disk number (remember, however, that DOS partitions are also mounted with a disk number, so be careful not to overlap them).

For most cases, we suggest that you issue the mount command as follows:

x09mount disk 4 d=3 p=2 o=0 s=0

x09fdisk 4

x09mount disk 4 d=3 p=2 pa=qnx

x09Note that the disk.ahascsi driver differs from all other drivers in that you should specify s=1 for the first mount.
x09
The following table will help you understand what we've just done:

This option:x09specifies:

d=3x09that you are using the same driver as disk 3

p=2x09that this will be the second physical device (for SCSI devices, you would use P=1 + scsi-id)

o=0x09that the offset for the drive is zero

s=0x09the size of the drive (a size of 0 informs the driver to read the physical size at the disk)

Before you begin, make sure you have the latest mount command, which recognizes the o= and s= options. You can download the latest version of this command from QUICS.