Disk image

Does anyone know of a utility that will make a ‘ghost’ image of a QNX4.24
SCSI drive onto an identical drive for backup purposes.

On Thu, 7 Apr 2005 10:17:15 +0100, Ray Threadgould
<microcon@globalnet.co.uk> wrote:

Does anyone know of a utility that will make a ‘ghost’ image of a
QNX4.24 SCSI drive onto an identical drive for backup purposes.
Did you try this one:

cp /dev/hd0t77 /dev/hd1t77

Tony.

“Tony” <mts.spb.suxx@mail.ru> wrote in message
news:opsou3k7xeo93ri4@mobile…

On Thu, 7 Apr 2005 10:17:15 +0100, Ray Threadgould
microcon@globalnet.co.uk> > wrote:

Does anyone know of a utility that will make a ‘ghost’ image of a
QNX4.24 SCSI drive onto an identical drive for backup purposes.
Did you try this one:
cp /dev/hd0t77 /dev/hd1t77

Tony.

You’ll want to copt the partition map too.

Use this instead.

cp /dev/hd0 /dev/hd1

On Thu, 7 Apr 2005 14:32:19 -0600, Bill Caroselli <qtps@earthlink.net>
wrote:

You’ll want to copt the partition map too.
Use this instead.
cp /dev/hd0 /dev/hd1
I thought this would be my next suggestion, since the partition layout is

easily reconstructed with fdisk.

Tony.

Thanks. It’s obvious really !
Ray

Tony <mts.spb.suxx@mail.ru> wrote in message news:opsowur3uro93ri4@mobile…

On Thu, 7 Apr 2005 14:32:19 -0600, Bill Caroselli <> qtps@earthlink.net
wrote:
You’ll want to copt the partition map too.
Use this instead.
cp /dev/hd0 /dev/hd1
I thought this would be my next suggestion, since the partition layout is
easily reconstructed with fdisk.

Tony.

Bill Caroselli wrote:

Did you try this one:
cp /dev/hd0t77 /dev/hd1t77

Use this instead.

cp /dev/hd0 /dev/hd1

Beware that cp will stop without warning after copying 2Gb (the maximum
size of a regular file), even when copying a block special file!

If your partition is larger, I’m afraid you’re out of luck.

Cheers
Anders

There is a script called QNX_drive_copy on the QNX website/downloads section
that might work for you.

Gord

Thanks for the warning. The partition is 32Gb so looks like I’ll have to
copy the files the hard way.
Ray

Anders Larsen <al@alarsen.net> wrote in message
news:pan.2005.04.09.19.48.58.790787@alarsen.net

Bill Caroselli wrote:

Did you try this one:
cp /dev/hd0t77 /dev/hd1t77

Use this instead.

cp /dev/hd0 /dev/hd1

Beware that cp will stop without warning after copying 2Gb (the maximum
size of a regular file), even when copying a block special file!

If your partition is larger, I’m afraid you’re out of luck.

Cheers
Anders

Did you try using ‘dd’ instead of ‘cp’?

“Ray Threadgould” <microcon@globalnet.co.uk> wrote in message
news:d3g43g$sle$1@inn.qnx.com

Thanks for the warning. The partition is 32Gb so looks like I’ll have to
copy the files the hard way.
Ray

Anders Larsen <> al@alarsen.net> > wrote in message
news:> pan.2005.04.09.19.48.58.790787@alarsen.net> …
Bill Caroselli wrote:

Did you try this one:
cp /dev/hd0t77 /dev/hd1t77

Use this instead.

cp /dev/hd0 /dev/hd1

Beware that cp will stop without warning after copying 2Gb (the maximum
size of a regular file), even when copying a block special file!

If your partition is larger, I’m afraid you’re out of luck.

Cheers
Anders

“Eric Johnson” <eric@qnx.com> wrote in message
news:d3gkcl$aiu$1@inn.qnx.com

Did you try using ‘dd’ instead of ‘cp’?

Still the script is much better because it will work even if the disk are
not of the same geometry. Further more the script is probably faster unless
the HD is close to full. If the 32Gig HD has 1Gig of file, why copy the
whole 32Gig image. The script also has the advantage of defragmenting
files.

“Ray Threadgould” <> microcon@globalnet.co.uk> > wrote in message
news:d3g43g$sle$> 1@inn.qnx.com> …
Thanks for the warning. The partition is 32Gb so looks like I’ll have to
copy the files the hard way.
Ray

Anders Larsen <> al@alarsen.net> > wrote in message
news:> pan.2005.04.09.19.48.58.790787@alarsen.net> …
Bill Caroselli wrote:

Did you try this one:
cp /dev/hd0t77 /dev/hd1t77

Use this instead.

cp /dev/hd0 /dev/hd1

Beware that cp will stop without warning after copying 2Gb (the maximum
size of a regular file), even when copying a block special file!

If your partition is larger, I’m afraid you’re out of luck.

Cheers
Anders
\

I can’t find this script at all, any clues please ???

Gord Sipko <mountkidd_AT_shaw_DOT_ca@nospam.com> wrote in message
news:d3duga$9kn$1@inn.qnx.com

There is a script called QNX_drive_copy on the QNX website/downloads
section
that might work for you.

Gord

Hello Ray

Try here:

ftp://ftp.qnx.com/usr/free/qnx4/os/utils/disk/

Note that it is from our old user free site and therefore not officially
supported. Make sure that you read the readme before use.

Thanks,
Rodney


Ray Threadgould wrote:

I can’t find this script at all, any clues please ???

Gord Sipko <> mountkidd_AT_shaw_DOT_ca@nospam.com> > wrote in message
news:d3duga$9kn$> 1@inn.qnx.com> …

There is a script called QNX_drive_copy on the QNX website/downloads

section

that might work for you.

Gord

\

I was just looking at the script and it looks like it uses cp, so this
may not do what you want it too because of the size of the partitions
that you are trying to copy.

Rodney



Rodney Dowdall wrote:

Hello Ray

Try here:

ftp://ftp.qnx.com/usr/free/qnx4/os/utils/disk/

Note that it is from our old user free site and therefore not officially
supported. Make sure that you read the readme before use.

Thanks,
Rodney


Ray Threadgould wrote:

I can’t find this script at all, any clues please ???

Gord Sipko <> mountkidd_AT_shaw_DOT_ca@nospam.com> > wrote in message
news:d3duga$9kn$> 1@inn.qnx.com> …

There is a script called QNX_drive_copy on the QNX website/downloads


section

that might work for you.

Gord

\

The script will be fine, it copies individual files not the entire
partition at once. So it won’t run into the 2GB limit. It is the
perferable way (depending on who you talk to), otherwise just use dd

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

to get an exact copy of the drive, and it won’t run into the 2GB problem
either.

E.


Rodney Dowdall wrote:

I was just looking at the script and it looks like it uses cp, so this
may not do what you want it too because of the size of the partitions
that you are trying to copy.

Rodney



Rodney Dowdall wrote:

Hello Ray

Try here:

ftp://ftp.qnx.com/usr/free/qnx4/os/utils/disk/

Note that it is from our old user free site and therefore not
officially supported. Make sure that you read the readme before use.

Thanks,
Rodney


Ray Threadgould wrote:

I can’t find this script at all, any clues please ???

Gord Sipko <> mountkidd_AT_shaw_DOT_ca@nospam.com> > wrote in message
news:d3duga$9kn$> 1@inn.qnx.com> …

There is a script called QNX_drive_copy on the QNX website/downloads



section

that might work for you.

Gord

\

Did you try the QNX_Drive_copy script?

[clip]
Try here:

ftp://ftp.qnx.com/usr/free/qnx4/os/utils/disk/

Note that it is from our old user free site and therefore not officially
supported. Make sure that you read the readme before use.

Thanks,
Rodney
[end clip]


You can use cp, however it will take you alot of time, so if you can
mount the partition use the script listed above.

Best regards,

Erick

el_novato wrote:

Hello, how are you?. Please, excuse my english grammar

I have a similar situation.

We have machines (equipments) using computers, and computers use QNX
Ver 4.24 One of the machines have a problem to “login-in” like/as
operator (login: operator ), and someone
try to load [i:a880f66587]startup[/i:a880f66587] from another
computer. At the end, the computer sent the message:

[i:a880f66587]Starting QNX …
Path=0 EIDE
target=0 lun=0 Direct-Access (0) Maxter 6E030L0 Rev:
mount: mount ( ) of /dev/hd0.0t77 failed: Input/Output error.
mount: mount ( ) of /dev/hd0.0t77 failed:
Input/Output error[/i:a880f66587].

I could not recovery the information and get access to the har disk.

I made the following

1.-
I used another hard disk as Master, and connected the damage hard disk
as slave, but the it was not possible the access.

2.-
I tried to make a entire image in a new hard disk from another
computer, using the new disk as slave:

[i:a880f66587]cp hd0.0 hd0.1[/i:a880f66587]

The computer start to copy information, but after some minutes sent
the message:

[i:a880f66587]Ran out of disk space writting
//1/dev/hd0.1.[/i:a880f66587]

The Master disk is of 40Gb and the slave is of 30 Gb, then I used
another disk of 80Gb but after some minutes, the computer sent the
same message [i:a880f66587]Ran out of disk space writting
//1/dev/hd0.1.[/i:a880f66587].

3.-
3.1 I copied the first files like [i:a880f66587]etc[/i:a880f66587],
mouting the slave disk

[i:a880f66587]mount -p /dev/hd0.1
mount /dev/hd0.1t77 /hd[/i:a880f66587]

3.2- I copied the other files by means of LAN. Using ftp in
another computer.

I have two QNX version 2 & 4, in the old version, it is possible
to make a entire image of the hard disk directly using
[i:a880f66587]cp[/i:a880f66587].

Is it possible to do it in QNX Ver: 4.24,or why not it is possible?.

Thanks in advance