Oleg Bolshakov
|
How to backup or copy hard drive with QNX 4.25 installed
|
Oleg Bolshakov
02/16/2012 6:16 AM
post91632
|
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
>
|
|
|
Erick Muis
|
Re: How to backup or copy hard drive with QNX 4.25 installed
|
Erick Muis
02/17/2012 3:45 PM
post91664
|
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
|
|
|
James Ingraham(deleted)
|
Re: How to backup or copy hard drive with QNX 4.25 installed
|
James Ingraham(deleted)
03/14/2012 2:58 PM
post92120
|
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.
|
|
|
Petr Kadlec(deleted)
|
Re: How to backup or copy hard drive with QNX 4.25 installed
|
Petr Kadlec(deleted)
05/08/2013 7:53 PM
post101269
|
Re: How to backup or copy hard drive with QNX 4.25 installed
I cloned the HDD using Drive Image 2002
Peter
|
|
|
Petr Kadlec(deleted)
|
Re: How to backup or copy hard drive with QNX 4.25 installed
|
Petr Kadlec(deleted)
05/08/2013 7:55 PM
post101270
|
Re: How to backup or copy hard drive with QNX 4.25 installed
I cloned the HDD using Drive Image 2002
Peter.
|
|
|