Operating System - HP-UX
1752766 Members
5038 Online
108789 Solutions
New Discussion юеВ

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

 
SOLVED
Go to solution
Marc Binder
New Member

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

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 5
Vincent Farrugia
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!!!
Marc Binder
New Member

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
Vincent Farrugia
Honored Contributor
Solution

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!!!
Marc Binder
New Member

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
Michael Lampi
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.