Project Home
Project Home
Wiki
Wiki
Discussion Forums
Discussions
Project Information
Project Info
Forum Topic - How to backup or copy hard drive with QNX 4.25 installed: (7 Items)
   
How to backup or copy hard drive with QNX 4.25 installed  
I have QNX 4.25 running on a Intel celeron machine. I need to format a new drive and copy all the files on this machine 
over to a new hard drive. The new drive will be mounted in a identical system for backup use only.Anyone know how to 
format /copy files with this version?
How to backup or copy hard drive with QNX 4.25 installed  
Hi Sherman,

I think that the simplest way is cloning with the dd. In this case you don't 
need format new drive, just:

# dd if=/dev/hd0 of=/dev/hd1

Where /dev/hd0 is a source disk, /dev/hd1 is a destination disk. The 
destination disk must be equal or large  than the source one.

-- 
Respectfully,
Oleg

> I have QNX 4.25 running on a Intel celeron machine. I need to format a new 
drive and copy all the files on this machine over to a new hard drive. The new 
drive will be mounted in a identical system for backup use only.Anyone know 
how to format /copy files with this version?
> 
> 
> 
> _______________________________________________
> 
> General
> http://community.qnx.com/sf/go/post91623
> 
Re: How to backup or copy hard drive with QNX 4.25 installed  
Hello Oleg,

Thank you for the information, I will try this soon as the machine comes
available  to me.

Re: How to backup or copy hard drive with QNX 4.25 installed  
> I have QNX 4.25 running on a Intel celeron machine. I need to format a new 
> drive and copy all the files on this machine over to a new hard drive. The new
>  drive will be mounted in a identical system for backup use only.Anyone know 
> how to format /copy files with this version?


Try this:

http://quics.qnx.com/cgi-bin/print_des.cgi?/usr/free/qnx4/os/utils/disk/+QNX_drive_copy.gz

Works better as you likely will not have two identical drives which dd would need if you were to do a block by block 
copy.

Best regards,

Erick
Re: How to backup or copy hard drive with QNX 4.25 installed  
One of the nice things about QNX is that you can just copy the files, with a few caveats.  You don't want to overwrite .
inodes and .bitmap, and you don't want to copy stuff that's not actually part of the file system.  After you have 
partitioned and dinit'ed a drive, simply use

cp -RX / /hdnew

The -X prevents .inodes and .bitmap from being overwritten, but it also prevents .boot and .altboot from being 
overwritten as well, so you have to follow up with

cp /.boot /hdnew/.boot
cp /.altboot /hdnew/.altboot

I usually reverse the order of this so that I don't forget to copy .boot and .altboot after the long copy of the hard 
drive.  I also usually add a -v to the long copy and a "time" instruction, so the whole process looks like this:

fdisk /dev/hdXXX
mount -p /dev/hdXXX
dinit -hq /dev/hdXXXt77
mount /dev/hdXXXt77 /hdnew
cp /.boot /hdnew/.boot
cp /.altboot /hdnew/.altboot
time cp -vRX / /hdnew

-James Ingraham
Sage Automation, Inc.
Re: How to backup or copy hard drive with QNX 4.25 installed  
I cloned the HDD using Drive Image 2002

Peter
Re: How to backup or copy hard drive with QNX 4.25 installed  
I cloned the HDD using Drive Image 2002

Peter.