Make a copy of a harddisk using dd under HP-UX (293 Views)
Reply
Occasional Visitor
Marc Binder
Posts: 3
Registered: ‎08-22-2002
Message 1 of 6 (293 Views)
Accepted Solution

Make a copy of a harddisk using dd under HP-UX

[ Edited ]

Hello,

how can I make a copy of a harddisk (SCSI and identical) using dd under HP-UX 10.20.

Thanks Marc

 

 

P.S.This thread has been moved from  Archived Desktops and Workstations Boards to HP-UX > sysadmin- HP Forums Moderator

Honored Contributor
Vincent Farrugia
Posts: 1,675
Registered: ‎08-13-2001
Message 2 of 6 (293 Views)

Re: Make a copy of a harddisk using dd under HP-UX

Hello,

To where do you wish the copy to end? From the harddisk to what?

Vince
Tape Drives RULE!!!
Occasional Visitor
Marc Binder
Posts: 3
Registered: ‎08-22-2002
Message 3 of 6 (293 Views)

Re: Make a copy of a harddisk using dd under HP-UX

Hello Vincent,

I wish to make a copy to another identical harddisk in same system. (HP9000 715/50)

Thanks
Honored Contributor
Vincent Farrugia
Posts: 1,675
Registered: ‎08-13-2001
Message 4 of 6 (293 Views)

Re: Make a copy of a harddisk using dd under HP-UX

Hello,

Command is

dd if=/dev/dsk/c#t#d# of=/dev/dsk/c$t$d$ bs=64k

where c#t#d# is the device file for the source harddisk

c$t$d$ is the device file for the destination harddisk.

What do you want to achieve though? You want to mirror the disks, or you just want a backup?

HTH,
Vince
Tape Drives RULE!!!
Occasional Visitor
Marc Binder
Posts: 3
Registered: ‎08-22-2002
Message 5 of 6 (293 Views)

Re: Make a copy of a harddisk using dd under HP-UX

Hello Vincent,

my actual harddisk is very loud and I want to replace it by the other disk. So the new disk must work like the old one.

Thanks Marc
Trusted Contributor
Michael Lampi
Posts: 209
Registered: ‎04-08-1997
Message 6 of 6 (293 Views)

Re: Make a copy of a harddisk using dd under HP-UX

A better dd command would use the raw (character) device files rather than the block device files. A larger block size would run a little faster, too:

dd if=/dev/rdsk/c#t#d0 of=/dev/rdsk/c#t#d0 bs=1024k

where '#' is replaced by the appropriate values corresponding to your input disk and your output disk.
A journey of 1000 steps ends in a mile.
The opinions expressed above are the personal opinions of the authors, not of HP. By using this site, you accept the Terms of Use and Rules of Participation.