BladeSystem Forums have moved here
To make BladeSystem information easier to find, we have moved the BladeSystem forums here, to Servers and Operating Systems.
System Administration
Showing results for 
Search instead for 
Do you mean 

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

SOLVED
Go to Solution
Occasional Visitor

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

5 REPLIES
Honored Contributor

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

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

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

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
Highlighted
Trusted Contributor

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.