The header is just a 1K block - dd should copy this also - note, the copied tape will need an identicle bar code of course ...
I've just tried it, coping the header from one tape to another using dd ...
Only way to find it, it to give it a go I guess ...
Here I have two tapes in two drives ....
Drive Name Label Ready RecMID ExtMID Wr.Enbl. Type Host DrivePath Status ============================================================================= Drive000 Yes Yes R1TP00 Yes 4mm womble /devices/pci@1e,600000/pci@0/pci@9/p TL4
HP.DAT72X6.000 Yes Yes R0TP00 Yes 4mm womble /dev/rmt/1cbn TL4
Here is the header of media R0TP00
root@womble $ mt -f /dev/rmt/1cbn rew root@womble $ od -c /dev/rmt/1cbn 0000000 V O L 1 R 0 T P 0 0 \0 \0 \0 \0 \0 \0 0000020 \0 \0 \0 \0 \0 \0 \0 001 \0 \0 \0 \f O 006 ý C 0000040 \0 \0 \0 \0 \0 \0 \0 \0 \0 \0 \0 \0 \0 \0 \0 \0 0000060 \0 \0 \0 \0 \0 \0 \0 \0 \0 \0 \0 \n \0 \0 \0 001 0000100 \0 \0 \0 \0 \0 \0 \0 \0 \0 \0 004 \0 \0 \0 \0 \0 0000120 \0 \0 \0 \0 \0 \0 \0 \0 \0 \0 \0 \0 \0 \0 \0 \0 * 0000160 T h I s I s A B P t A p 0000200 E h E a D e r \0 \0 \0 \0 \0 \0 \0 \0 0000220 \0 \0 \0 \0 \0 \0 \0 \0 \0 \0 \0 \0 \0 \0 \0 \0 * 0002000
And here is the header of R1TP00
root@womble $ od -c /dev/rmt/0cbn
0000000 V O L 1 R 1 T P 0 0 \0 \0 \0 \0 \0 \0 0000020 \0 \0 \0 \0 \0 \0 \0 001 \0 \0 \0 \f N Ã 233 ð 0000040 \0 \0 \0 \0 \0 \0 \0 \0 \0 \0 \0 \0 \0 \0 \0 \0 0000060 \0 \0 \0 \0 \0 \0 \0 \0 \0 \0 \0 013 \0 \0 \0 001 0000100 \0 \0 \0 \0 \0 \0 \0 \0 \0 \0 004 \0 \0 \0 \0 \0 0000120 \0 \0 \0 \0 \0 \0 \0 \0 \0 \0 \0 \0 \0 \0 \0 \0 * 0000160 T h I s I s A B P t A p 0000200 E h E a D e r \0 \0 \0 \0 \0 \0 \0 \0 0000220 \0 \0 \0 \0 \0 \0 \0 \0 \0 \0 \0 \0 \0 \0 \0 \0 * 0002000
I copied the header like this :
root@womble $ dd if=/dev/rmt/0cbn of=/dev/rmt/1cbn bs=1024 count=1 1+0 records in 1+0 records out
Let's read the header again on R0TP00 ( /dev/rmt/1cbn ) - it should come back as R1TP00
It does ...
root@womble $ mt -f /dev/rmt/1cbn rew root@womble $ od -c /dev/rmt/1cbn 0000000 V O L 1 R 1 T P 0 0 \0 \0 \0 \0 \0 \0
Martin |
|