- Community Home
- >
- Servers and Operating Systems
- >
- Operating Systems
- >
- Operating System - HP-UX
- >
- unix newby dd issue
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
02-03-2010 08:21 AM
02-03-2010 08:21 AM
Mount command by itself gives
10/0/15/0.6.0 disk HP 36 etc
10/0/15/0.5.0 disk Seagate 36 etc
I formated the dd command as:
dd if=10/0/15/0.6.0 of=10/0/15/0.5.0
but I receive an error that dd can't find 10/0/15/0.6.0
Please help.
Thanks
Dave
Solved! Go to Solution.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
02-03-2010 08:27 AM
02-03-2010 08:27 AM
Re: unix newby dd issue
Use ioscan to find the device file, e.g. /dev/rdsk/c1t2d0
Hope this helps!
Regards
Torsten.
__________________________________________________
There are only 10 types of people in the world -
those who understand binary, and those who don't.
__________________________________________________
No support by private messages. Please ask the forum!
If you feel this was helpful please click the KUDOS! thumb below!

- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
02-03-2010 08:28 AM
02-03-2010 08:28 AM
Re: unix newby dd issue
Did you tried with physical path.
dd if=/dev/dsk/cXtXdX of=/dev/dsk/cXtXdX
Suraj
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
02-03-2010 08:32 AM
02-03-2010 08:32 AM
Re: unix newby dd issue
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
02-03-2010 08:34 AM
02-03-2010 08:34 AM
Re: unix newby dd issue
or
# ioscan -fnCdisk
or
# ioscan -fnkCdisk
or
# ioscan -fnH10/0/15/0
Hope this helps!
Regards
Torsten.
__________________________________________________
There are only 10 types of people in the world -
those who understand binary, and those who don't.
__________________________________________________
No support by private messages. Please ask the forum!
If you feel this was helpful please click the KUDOS! thumb below!

- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
02-03-2010 08:38 AM
02-03-2010 08:38 AM
Re: unix newby dd issue
I think ioscan -fnCdisk
Is best.
I/O path's not being files will not work with dd
SEP
Owner of ISN Corporation
http://isnamerica.com
http://hpuxconsulting.com
Sponsor: http://hpux.ws
Twitter: http://twitter.com/hpuxlinux
Founder http://newdatacloud.com
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
02-03-2010 08:42 AM
02-03-2010 08:42 AM
Re: unix newby dd issue
Dave
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
02-03-2010 08:45 AM
02-03-2010 08:45 AM
Re: unix newby dd issue
Hope this helps!
Regards
Torsten.
__________________________________________________
There are only 10 types of people in the world -
those who understand binary, and those who don't.
__________________________________________________
No support by private messages. Please ask the forum!
If you feel this was helpful please click the KUDOS! thumb below!

- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
02-03-2010 09:00 AM
02-03-2010 09:00 AM
Re: unix newby dd issue
Thanks
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
02-03-2010 10:26 AM
02-03-2010 10:26 AM
Re: unix newby dd issue
Thanks Guys.
Now I just have to figure how to schedule this to happen every Sunday at 3am in the background. That is when no one has used the workstation since Friday.
Thanks
Dave
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
02-03-2010 12:34 PM
02-03-2010 12:34 PM
SolutionVery, very slowly. Without the bs option, it will take 3-4 times longer since each read/write is only 512 bytes. Add bs=1024k to the end of the line:
dd if=/dev/dsk/c2t6d0 of=/dev/dsk/c2t5d0 bs=1024k
Bill Hassell, sysadmin
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
02-03-2010 02:07 PM
02-03-2010 02:07 PM
Re: unix newby dd issue
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
02-03-2010 02:16 PM
02-03-2010 02:16 PM
Re: unix newby dd issue
> dd if=/dev/dsk/c2t6d0 of=/dev/dsk/c2t5d0 worked.
And you can improve its performance not only by increasing the block size as Bill noted, but by using the *raw* device file. This bypasses the UNIX buffer cache which is a pure waste in this operation. Use:
# dd if=/dev/rdsk/c2t6d0 of=/dev/rdsk/c2t5d0 bs=1024k
Note the raw ('rdsk') devices.
Regards!
...JRF...
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
02-03-2010 02:28 PM
02-03-2010 02:28 PM
Re: unix newby dd issue
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
02-03-2010 02:37 PM
02-03-2010 02:37 PM
Re: unix newby dd issue
> # dd if=/dev/rdsk/c2t6d0 of=/dev/rdsk/c2t5d0 bs=1024k
Note the raw ('rdsk') devices.
Regards!
...JRF...
ABC Inc
Feb 3, 2010 22:28:04 GMT N/A: Question Author
> OK, thanks. But how about using bs=32768k? Also, what about scheduling it to run in the background?
I seem to recall that 1024k is an optimal upper bound.
As for running in the background, simply do:
# nohup dd if=/dev/rdsk/c2t6d0 of=/dev/rdsk/c2t5d0 bs=1024k &
Regards!
...JRF...
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
02-03-2010 02:51 PM
02-03-2010 02:51 PM
Re: unix newby dd issue
Thanks
Dave
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
02-03-2010 02:56 PM
02-03-2010 02:56 PM
Re: unix newby dd issue
Empirical testing shows that the speed increase begins to fall off at 1 MB records (1024K). It's not the RAM that is the issue, it is the disk and drivers. Some kernel subsystems will break up ultra long records (like 32 MB) into 1 or 2 MB chunks. I your case, you have a slow workstation with slow internal disks running an OS that was obsolete 10 years ago.
You can certainly do some testing with smaller data chunks by limiting the block count (count=100) and then varying the bs size.
Bill Hassell, sysadmin
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
02-03-2010 03:26 PM
02-03-2010 03:26 PM
Re: unix newby dd issue
> I mean background as scheduled for Sunday morning.
Then 'cron' the process:
0 1 * * 0 dd if=/dev/rdsk/c2t6d0 of=/dev/rdsk/c2t5d0 bs=1024k
See the 'crontab' manpages. The above would run at 0100 hours every Sunday. You will get a mail to your account with the record count when it finishes.
Regards!
...JRF...
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
02-04-2010 10:11 AM
02-04-2010 10:11 AM
Re: unix newby dd issue
The right arrow and the heart are blinking.
How long should it take on a 36.4 gb scsi drive?
Can I reboot the system or how do I stop it or should I stop it?
Thanks again
Dave
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
02-04-2010 10:28 AM
02-04-2010 10:28 AM
Re: unix newby dd issue
> Yesterday I started the dd without the bs option. It is still running. How long should it take on a 36.4 gb scsi drive?
I'm not surprised that with a default block size of 512 bytes it is still going.
Find the process (pid) and kill it. If it is running in the background of your current session, do 'jobs' and then 'kill %n' where 'n' is the number in square brackets at the very left of the line describing the process.
If the process is running in the foreground, type 'CTL+C' to kill it. Otherwise:
# UNIX95= ps -C dd -opid= | xargs kill -9
Regards!
...JRF...
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
02-04-2010 11:37 AM
02-04-2010 11:37 AM
Re: unix newby dd issue
Thanks
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
02-05-2010 09:02 AM
02-05-2010 09:02 AM
Re: unix newby dd issue
Now I will put in the cron job and be finished.
Thanks again.
Dave