Begin File: QNX_drive_copy.gz Description: Copies one drive to another. Keywords: duplicate hard drive disk copy image format master Version: 1.0 Entered-date: 12-Jan-1998 Author: Maurice Cinquini of Philips DVS. Ported-by: Original-site: Copying-policy: This program is public domain Supplemental: This program creates logical copies of hard drives, as opposed to "dd" image copies. Therefore it does not rely on matching drive geometeries, does not copy unused parts of the drive and the copy is defragmented. This script assumes the drives use Logical Block Addressing (LBA) mode, and are only one partition, and that partition is QNX of course. Licenses and "bootability is preserved. A log of is saved in /tmp/log. Only tested with QNX 4.24, single partition, LBA, IDE drives only. The complete procedure to copy drives involves the following steps: 1. Insert the master (source) and slave (blank) hard drives. Depending of the machine setup, slave drives usually needs to have a jumper removed. 2. Boot QNX in a safe mode where there are no programs running that may asynchronously write to the hard drive during the following procedure. If you can't guarantee this, you should use a QNX boot floppy and mount the hard drive manually. 3. Login as root. 4. Verify the Master drive has the kernel built to force LBA option during boot up. Check /boot/build/hard.?? has the line "Fsys.eide fsys -h 64,63", (i.e, sectors,heads for LBA mode.) 5. Run this script. End