Bradley Peggram
04/16/2020 11:32 PM
post120474
|
Hi there,
has anyone updated the old QNX4 script QNX_drive_copy to work under QNX6...specifically 6.3.0.
I want a faster way to clone a 16GB drive than either dd or cp /dev/hd# /dev/hd#
I had a go at modifying it but am still struggling to get it to work. I can get it to fdisk and mount but not copy
correctly.
Any help would be great.
Thanks.
Details of script below and attached.
---
Readme.txt
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 <cinquini@alamar-usa.com> 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
|
|
|