cloning hard disks

I have a triple boot PC with QNX, Linux, and Windows 98 installed. Is there
any way to clone the existing drive to another drive which is identical
(same size and manufacturer as the original drive)?

Thanks,
Bret

cp /dev/hd0 /dev/hd1

Previously, Bret Costic wrote in comp.os.qnx:
{ I have a triple boot PC with QNX, Linux, and Windows 98 installed. Is there
{ any way to clone the existing drive to another drive which is identical
{ (same size and manufacturer as the original drive)?
{
{ Thanks,
{ Bret
{
{
{


Pat Ford email: pford@qnx.com
QNX Software Systems, Ltd. WWW: http://www.qnx.com
(613) 591-0931 (voice) mail: 175 Terence Matthews
(613) 591-3579 (fax) Kanata, Ontario, Canada K2M 1W8

You could try software from Ghost, or at least that is the name of the s/w.

It can clone one drive to another regardless of different type or
geometries.

K

“Bret Costic” <bcostic@ces.clemson.edu> wrote in message
news:8ln650$c7j$1@hubcap.clemson.edu

I have a triple boot PC with QNX, Linux, and Windows 98 installed. Is
there
any way to clone the existing drive to another drive which is identical
(same size and manufacturer as the original drive)?

Thanks,
Bret

On Wed, 26 Jul 2000 13:39:06 -0400, Pat Ford <pford@qnx.com> wrote:

cp /dev/hd0 /dev/hd1

Will this preserve the MBR and all of the lilo boot information? If so
this would be idea.

And is it cp /dev/hd0 or /dev/hd0.0 ?

Guess it wouldn’t hurt to try…

thanks
nick

You can use dd utility:

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

and wait some minutes …

Bret Costic wrote:

I have a triple boot PC with QNX, Linux, and Windows 98 installed. Is there
any way to clone the existing drive to another drive which is identical
(same size and manufacturer as the original drive)?

Thanks,
Bret

How’s it going, Pat?

Previously, Pat Ford wrote in comp.os.qnx:

cp /dev/hd0 /dev/hd1

The simple answers are always the best. :slight_smile: However this might have a
2GB limit (2^31-1 bytes). A Trivial (yes, capital ‘T’) program which
did block reads and block writes could duplicate any size disk or
partition.

People always seem to be amazed that the above can be done, and (given
identical media for source and destination) you end up with an exact
copy. Yes, complete with all MBR LILO ABC and XYZ information.

However, it seemed implicit in the way POSIX deals with files that this
could be done, so I let it be done (or I didn’t not let it be done) in
Fsys. A file is a file is a file, whether it is block-special, regular
or directory you can read it given appropriate permissions – POSIX says
this is required. And you should be able to write to block-special
files too. So all the rest just falls out. :slight_smile:


William A. (Bill) Flowers Phone: +1-727-669-9999
Insight Control Systems Fax: +1-727-669-8999

New Year’s Resolution: SaddleSore 1000 ™ or bust!
http://www.ironbutt.com

Karl Morant <karl@connecttech.com> wrote:

You could try software from Ghost, or at least that is the name of the s/w.

Doesn’t always work.

It can clone one drive to another regardless of different type or
geometries.

Yes it can, but the result won’t always boot QNX successfully.

When we did the installs for the post-QNX2000 training, the
training facility there had Ghost, and we tried using it. It
worked to/from machines where the sizes (geometries) were
similar, but for the total number of images we tried, it worked
for about 1/3 of the cases.

-David

Previously, William A. Flowers wrote in comp.os.qnx:
{ How’s it going, Pat?

pretty good, so you haven’t been shot yet eh?

{
{ Previously, Pat Ford wrote in comp.os.qnx:
{ > cp /dev/hd0 /dev/hd1
{
{ The simple answers are always the best. :slight_smile:

I am the master of simple 8*)

{ However this might have a 2GB limit (2^31-1 bytes).

DOOH!!, I’ll have to give that a try

{ A Trivial (yes, capital ‘T’) program which
{ did block reads and block writes could duplicate any size disk or
{ partition.

\

Pat Ford email: pford@qnx.com
QNX Software Systems, Ltd. WWW: http://www.qnx.com
(613) 591-0931 (voice) mail: 175 Terence Matthews
(613) 591-3579 (fax) Kanata, Ontario, Canada K2M 1W8