11-21-2013 01:22 AM
My computer is HP B2600 Workstation, OS is HP-UX B10.20. I have a "Install tape" , now i want to create a duplicated "install tape". Could anyone help me?
11-21-2013 02:33 PM
Your install tape is probably an Ignite backup image. If you have Ignite installed you can use the command "copy_boot_tape". There are options to copy from tape drive to tape drive or from tape drive to a file and then from the file to the tape drive. See the man page.
if you are not sure of the contents then it may be an "it depends" answer. Using 'dd' may be the best choice, but maybe not.
Search this forum for "DDS tape to tape copy" and you will see what I mean.
11-23-2013 05:15 PM
>Using 'dd' may be the best choice, but maybe not.
I don't think dd(1) will work because you need to copy variable length records and copy the EOF marks, until EOT.
12-11-2013 02:12 AM
Thank for your reply. I've tried with these commands and it's work:
(insert the install tape into the tape drive)
dd if=/dev/rmt/0mn of=/var/tmp/f1 bs=2k
dd if=/dev/rmt/0m of=/var/tmp/f2 bs=10k
(insert blank tape now)
dd if=/var/tmp/f1 of=/dev/rmt/0mn bs=2k
dd if=/var/tmp/f2 of=/dev/rmt/0m bs=10k
12-11-2013 12:40 PM
The dd commands worked, but did you confirm that the tape works as you expect?
As Dennis points out variable record lengths would not be copied correctly using 'dd', so its worth checking if you have not done so.
12-22-2013 06:26 PM
It's worked like everything i wanted. Because that tape only has 02 block size: 2k and 10k. So dd command can duplicate everything with 2k and 10k block.