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 Backing up a QNX4 hard disk.
Ref. No. QNX.000010111
Category(ies) Installation, Filesystem
Issue How can a QNX4 hard drive be backed up? Are there any utilities available?
Solution There are two methods of making a hard disk backup in QNX4.

Method 1:

Use software provided in the contributed software section (/usr/free).  There is a utility that is located in

http://www.qnx.com/cgi-bin/dir_find.cgi?/usr/free/qnx4/os/utils/disk/

or
on quics.qnx.com (telnet/ftp).

/usr/free/qnx4/os/utils/disk/QNX_drive_copy.gz
and
/usr/free/qnx4/os/utils/disk/QNX_drive_copy.gz.readme

*****************************************************************************
NOTE:
QNX (QSSL) did not make this utility so QNX cannot offer any support for this
if any is needed.  You may need to create a new .boot image so that the drive
will properly boot.
*****************************************************************************



Method 2:

Raw disk copy, this will copy all partitions on the drive.

Things needed for this to work:

- The exact same drive that is currently in the system (size, make, model, everything).

1.  Install the drive as a slave to the master, or in a SCSI system simply install it, but don't boot from it.

2.  Once installed, check to make sure that the drive has been recognized by QNX.  Type

  "ls /dev"

after logging in and you should see a hd0 or hd0.0 and if the drive was detected there will be a hd1 or hd1.0.

3.  Type from the commandline

  "cp /dev/hd0 /dev/hd1"

This will copy everything on that drive, partition tables, etc onto the second drive (the one you just installed).


*****************************************************************************
NOTE:  If you are planning on relocating the drive to a different computer
remember that you may need to recreate the .boot image for that particular
system.  See Chapter 2 "Building an OS Image" on how to create a new image
for the system.
*****************************************************************************