Hello QNX Experts,
I’m inexperienced with QNX and and only slightly more experienced with
Linux and my job is to maintain an industrial computer running QNX. I
think it’s QNX 4 -as a guess- but I’m not experienced enough to even
know that.
Firstly a bit about my hardware setup. The industrial computer is 2
computers in 1 - there is a one complete spare in the same case. Each
computer has a PCMCIA slot with a PC card, 5 gig hard disk inside.
These hard disks are product number MK5002MPL and made by Toshiba.
Since one hard disk failed, only one computer is functioning and I
have purchased a blank replacement MK5002MPL.
I need to make an exact copy of the functioning hard drive with 2 QNX
partitions to the spare hard drive. I do not have the installation
disks for QNX but I do have a functioning zip disk and zip disk
backups of the hard disk.
The 2nd partition on the hard disk is a service partition where I can
make a zip disk backup of the drive and restore from it. I booted
from this service partition from the functioning drive and then
changed the hard disk in the PC card slot to the blank one but the
restore wouldn’t work this way. The restore program complains that
the original hard disk has been removed.
So then I put both hard disks in a Windows 98 machine and tried using
Drive Image 4.0. Unfortunately the hard disk with QNX won’t even show
up in Windows and Drive Image has to run in DOS and from DOS none of
the removeable hard disks are visible.
Next up was linux. I typed
ls /proc/ide
and got
drivers hda hdc hde hdg
[color=blue:8880780e32]ide0 ide1 ide2 ide3
[/color:8880780e32]piix
The blank hard disk is hde
#./fdisk -l /dev/hde
Units = cylinders of 15120 * 512 bytes
Device Boot Start End Blocks Id System
/dev/hde1 1 649 4906408+ b Win95 FAT32
The disk with QNX is hdg
#./fdisk -l /dev/hdg
Units = cylinders of 15120 * 512 bytes
Device Boot Start End Blocks Id System
/dev/hde3 625 649 189000 b QNX4.x 3rd part
/dev/hde4 * 1 624 4717408+ b QNX4.x
But I’m unable to mount the QNX filesystem
#mount /dev/hdg4 /mnt/n201
mount: fs type qnx4fs not supported by kernel
But I’m not sure I need to mount the file system in order to image the
hard disk. Next I thought I’d try either “dd” (never used it before)
or Partimage on either the whole hard disk or just the service
partition so I can restore from the zip disk. Or, if I need to mount
the partition, I’ll look at how to upgrade my kernel to support QNX.
I’m running Redhat Linux 7.1 kernel version 2.4.2-2 (I think)
Can someone please help me?
Cheers,
Ben