1830940 Members
1744 Online
110017 Solutions
New Discussion

dd error

 
Kiyoung
Advisor

dd error

I'm using C3600 with HPUX 11.00(support plus Mar,2001).
When I use dd command.
There's a error.
dd if=/dev/rdsk/c3t6d0 of=/dev/rdsk/c3t5d0 bs=1024k
There's error.
'dd: Tape-to-tape copy is not allowed.'
Please let me know.

Kiyoung.
8 REPLIES 8
Paula J Frazer-Campbell
Honored Contributor

Re: dd error

Hi

From man dd:-


WARNINGS
You may experience trouble writing directly to or reading directly
from a cartridge tape. For best results, use tcio(1) as an input or
output filter. For example, for output to a cartridge tape, use

... | dd ... | tcio -ovVS 256 /dev/rct/c4t1d0

or, for input from a cartridge tape, use

tcio -ivS 256 /dev/rct/c4t1d0 | dd ... | ...


See man tcio.


HTH

Paula
If you can spell SysAdmin then you is one - anon
Paula J Frazer-Campbell
Honored Contributor

Re: dd error

Hi Again

Also check here:-


http://forums.itrc.hp.com/cm/QuestionAnswer/1,,0xfcd20bce6f33d6118fff0090279cd0f9,00.html


Paula
If you can spell SysAdmin then you is one - anon
Wodisch
Honored Contributor

Re: dd error

Hi,

using a block-device for the reading should omit your problem...

Just my $0.02,
Wodisch
harry d brown jr
Honored Contributor

Re: dd error

Wodisch hit it on the head, try using the BLOCK devices:

dd if=/dev/dsk/c3t6d0 of=/dev/dsk/c3t5d0 bs=1024k

Another note on DISK to DISK copies, you will be copying each track of data, of which there are side effects.

live free or die
harry
Live Free or Die
Kiyoung
Advisor

Re: dd error

Thanks for your help.
Devices are harddisk driver.
I tried to copy using block-device.
It works well, but it takes so many times (1GByte/Hour) more than using character-device.
When I use HPUX10.20, it supported character-device(400MB/min) and block-device(1GB/Hour).
Please let me know, how can i use dd commnad with character device.

kiyoung.
Zeev Schultz
Honored Contributor

Re: dd error

Do you have patch PHKL_26452 (last SCSI i/o
cumulative patch) installed?

check it with swlist -l patch | grep

This patch depends on phkl_18543 and phkl_24187
Hope this helps.Do not use block device with
dd,it'll take hours :).
So computers don't think yet. At least not chess computers. - Seymour Cray
Dragan Krnic_2
Advisor

Re: dd error

The command

cp /dev/rdsk/c3t6d0 /dev/rdsk/c3t5d0

would accomplish the same at about the same speed as dd bs=1024k. I couldn't reproduce your error on my 11.0 with the same command, probably because my patches are more recent thatn March'01. I also often use dd to clone installed systems, because it says in the end how many blocks it has read, but this is not essential. cp will do the job just as fast.
no quote
Kiyoung
Advisor

Re: dd error

I installed PHKL_26452 (last SCSI i/o
cumulative patch) and tried to copy, but same error occurs.
The command cp cannot copy them.
I need more help.
Thank you.

Kiyoung.