Skip navigation.
Home
The QNX Community Portal

View topic - QNX2 hard disk format

QNX2 hard disk format

For the old QNX2 and QNX4 RTOS

QNX2 hard disk format

Postby hkhoi » Sat Sep 11, 2010 10:13 pm

Hi all,

Our CNC machine runs QNX2 and boots from a hard disk. It is a very old machine that has 486 processor.
I coud do the image of the whole CNC part but can't restore the image because the hard disk is DOS formatted. So
Could anyone show me how to create a QNX2 hard disk?
Please show me in details cause I am a newbie of this OS.

Thanks in advance.
hkhoi
New Member
 
Posts: 1
Joined: Sat Sep 11, 2010 9:58 pm

RE: QNX2 hard disk format

Postby maschoen » Mon Sep 13, 2010 5:17 am

Your question is not very clear. What is it you want to do? Duplicate the hard drive? It is unlikely that merely duplicating the disk will create a bootable QNX 2 hard drive. If the hard drives are identical, or if they have the same number of heads sectors/track it may work.

A DOS formatted disk is the same as a disk with no formatting to QNX. You can just write over the DOS formatting.

The process to make a bootable hard drive is not simple. Here is a brief summary.

1) Mount the hard drive
2) use fdisk to put a QNX partition on the drive
3) mount the partition
4) dinit the partition
5) copy needed files to partition usually using "backup"

At this point, you need to have the new hard drive as the primary (not slave) drive on the primary controller. Since it probably wasn't during the last 5 steps, you might need a bootable floppy disk. After booting the floppy you mount the hard drive.

6) finally you run the boot command

If your system has serial ports or parallel ports in special locations, you might have to run osconfig before step 6.
maschoen
QNX Master
 
Posts: 2644
Joined: Wed Jun 25, 2003 5:18 pm


Return to QNX2 and QNX4

Who is online

Users browsing this forum: No registered users and 1 guest