- Community Home
- >
- Servers and Operating Systems
- >
- Operating Systems
- >
- Operating System - HP-UX
- >
- dd command
Categories
Company
Local Language
Forums
Discussions
Forums
- Data Protection and Retention
- Entry Storage Systems
- Legacy
- Midrange and Enterprise Storage
- Storage Networking
- HPE Nimble Storage
Discussions
Forums
Discussions
Discussions
Discussions
Forums
Discussions
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
- BladeSystem Infrastructure and Application Solutions
- Appliance Servers
- Alpha Servers
- BackOffice Products
- Internet Products
- HPE 9000 and HPE e3000 Servers
- Networking
- Netservers
- Secure OS Software for Linux
- Server Management (Insight Manager 7)
- Windows Server 2003
- Operating System - Tru64 Unix
- ProLiant Deployment and Provisioning
- Linux-Based Community / Regional
- Microsoft System Center Integration
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Community
Resources
Forums
Blogs
- Subscribe to RSS Feed
- Mark Topic as New
- Mark Topic as Read
- Float this Topic for Current User
- Bookmark
- Subscribe
- Printer Friendly Page
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
06-10-2002 05:11 AM
06-10-2002 05:11 AM
dd command
I want know if the following command is correct
#dd if=/dev/dsk/c0t11d0 of=/dev/dsk/cxtdz
On the end I will puting the new disk on tha emplacement of the old one and I want know if I muts do some things for that this action will tranparent for ths system..!!
Thanks
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
06-10-2002 05:12 AM
06-10-2002 05:12 AM
Re: dd command
First, add a block size (bs=1024k) to the end of your command - otherwise it will take forever.
Second, is the new disk identical to the old? You can have problems if not.
Pete
Pete
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
06-10-2002 05:14 AM
06-10-2002 05:14 AM
Re: dd command
Cheers
Duncan
I am an HPE Employee

- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
06-10-2002 05:15 AM
06-10-2002 05:15 AM
Re: dd command
#dd if=/dev/dsk/cxtxdx of=/dev/dsk/cxtxdx bs=1024k
You can use block devices as well as character devices, sometimes block are much faster than character.
hope it help You
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
06-10-2002 05:21 AM
06-10-2002 05:21 AM
Re: dd command
live free or die
harry
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
06-10-2002 05:36 AM
06-10-2002 05:36 AM
Re: dd command
Use
#pvmove /dev/dsk/c1t0d0 /dev/dsk/c2t0d0
First one is old disk...next one is new disk.
#pvmove -n /dev/vg01/lvol2 /dev/dsk/c1t0d0 /dev/dsk/c2t0d0
( if you want to move physical extents of lvol2 from one disk to another)
You can use dd if you have a raw filesystem and if both the disk capacities are same.
Or else you can create a new VG and Filesystem and then use this command to copy the data
#cd /source-dir
#find . -depth -print | cpio -pdlmuv /target-dir
Hope this helps.
Piyush
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
06-10-2002 05:40 AM
06-10-2002 05:40 AM
Re: dd command
In any case, if you are going to physically remove the (if input file) disk and replace it with the of (output file) disk there will not be a problem..
But pvmove as suggested works just as well!!
Later,
Bill
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
06-10-2002 06:43 AM
06-10-2002 06:43 AM
Re: dd command
As others suggested, I won't suggest U to go for dd. dd is suitable when U want to restore one HDD's data when U are not able to mount that file system because of some bad block or some other reason.
If U are able to mount ur file system, then back and restore the data or do direct dumb, Or even U can use pvmove... it is up to U.
Best of luck
Shahul