Project Home
Project Home
Documents
Documents
Wiki
Wiki
Discussion Forums
Discussions
Project Information
Project Info
Forum Topic - QNX Drive Copy: (5 Items)
   
QNX Drive Copy  
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
Attachment: Text QNX_drive_copy.gz 1.85 KB
Re: QNX Drive Copy  
Depending on what you want to do, you would probably be better of using

http://docserver.bts.rim.net/mainlinewebsite/index.html#com.qnx.doc.neutrino.utilities/topic/m/mkqnx6fs.html


mkqnx6fs with the -x option.


Cheers

John

________________________________
From: Bradley Peggram <community-noreply@qnx.com>
Sent: Friday, April 17, 2020 5:32:08 AM
To: osmeta-core_os
Subject: QNX Drive Copy

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



_______________________________________________

OSMeta
http://community.qnx.com/sf/go/post120474
To cancel your subscription to this discussion, please e-mail osmeta-core_os-unsubscribe@community.qnx.com
Attachment: HTML sf-attachment-mime38758 4.77 KB
Re: QNX Drive Copy  
Hi John,

thanks for the response.  I tried to follow your link but it doesn't work.  I also googled mkqnx6fs and I can't find any
 documentation talking about the -x.  Could you update your link please if that explains it?

Thanks,
Bradley.
Re: QNX Drive Copy  
Sorry just realized that's a new feature on QNX710, which is still prerelease.

________________________________
From: Bradley Peggram <community-noreply@qnx.com>
Sent: Friday, April 17, 2020 9:01:50 AM
To: osmeta-core_os
Subject: Re: QNX Drive Copy

Hi John,

thanks for the response.  I tried to follow your link but it doesn't work.  I also googled mkqnx6fs and I can't find any
 documentation talking about the -x.  Could you update your link please if that explains it?

Thanks,
Bradley.



_______________________________________________

OSMeta
http://community.qnx.com/sf/go/post120478
To cancel your subscription to this discussion, please e-mail osmeta-core_os-unsubscribe@community.qnx.com
Attachment: HTML sf-attachment-mime38762 1.82 KB
Re: QNX Drive Copy  
Not sure whether I should act in this forum at all. I'm absolutely not a developer. However, at times, I will try out 
something. In this case: My car is an Audi A5 build 2015. It has an QNX based so called MMI installed. This MMI (version
 3GP of 3G+) runs QNX from a HDD. What I would like to do is replace the HDD by a SSD and at the same time make a backup
 of the HDD. So I need to make a diskcopy of the OEM HDD. I have downloaded the VMware QNX_Eval_RT QNX Neutrino version 
6.4.1.  No problem there, it works OK. My question is: Does this eval copy include everthing necessary to fdisk/format 
de new SSD drive and make a full diskcopy. If not, what alternatives do I have.

Regards, Bert