- Community Home
- >
- Servers and Operating Systems
- >
- Operating Systems
- >
- Operating System - HP-UX
- >
- Copy a DAT to another DAT
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
08-15-2002 03:54 AM
08-15-2002 03:54 AM
Copy a DAT to another DAT
how can I copy an entire DAT to another DAT ??
like diskcopy in DOS .....
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
08-15-2002 03:57 AM
08-15-2002 03:57 AM
Re: Copy a DAT to another DAT
dd if=/dev/rmt/0m of=/dev/rmt/1m bs=nnn
Pete
Pete
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
08-15-2002 04:03 AM
08-15-2002 04:03 AM
Re: Copy a DAT to another DAT
You need to know what type of data is on that tape (i.e. block size, number of sections, etc.).
E.g. a tape with a single standard tar archive section on it can be copied using:
# dd if=/dev/rmt/XXX of=/dev/rmt/XXX bs=10k
I don't know of any tool that does some kind of low level copy, regardsless what format is on the medium.
Regards...
Dietmar.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
08-15-2002 04:05 AM
08-15-2002 04:05 AM
Re: Copy a DAT to another DAT
dd should work!
Hope that you have 2 DAT drives for this operation ;)
Best Regards
Yogeeraj
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
08-15-2002 04:13 AM
08-15-2002 04:13 AM
Re: Copy a DAT to another DAT
# dd if=/dev/rmt/0m ibs=102400 of=xx count=1
# wc -c xx (or ls -l xx)
1024 xx
1024 above is just an example to use below
Above answers are ok. Having only one tape drive - and enough disk space
# dd if=/dev/rmt/0m ibs=1024 of=xx
# mt offl
- insert target tape -
# dd if=xx of=/dev/rmt/0m bs=1024
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
08-15-2002 04:21 AM
08-15-2002 04:21 AM
Re: Copy a DAT to another DAT
As stated dd will do it but you must ensure that the blocksize (bs=) is at least as big as the largest blocksize on the tape. If you specify a blocksize that is too small then dd will write truncated blocks and your copy tape will be corrupt. dd reports the number of complete and partial blocks read and written at end of run, see man dd and look for DIAGNOSTICS. You want to ensure that there are 0 partial blocks read.
If there is more than one file on the tape then you'll have to repeat the dd command until all files have been copied.
The following script fragment will cater for multiple files:-
while (( ${?} == 0 ));
do
dd if=/dev/rmt?? of=/dev/rmt?? bs=256k
done
dd will fail when it reaches EOF on the input tape and the loop will exit.
Regards,
John
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
08-16-2002 12:20 AM
08-16-2002 12:20 AM
Re: Copy a DAT to another DAT
Once we know that, we can give more specific answers, because there is no generic answer.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
08-16-2002 07:56 PM
08-16-2002 07:56 PM
Re: Copy a DAT to another DAT
http://forums.itrc.hp.com/cm/QuestionAnswer/1,,0x96b70bce6f33d6118fff0090279cd0f9,00.html
http://forums.itrc.hp.com/cm/QuestionAnswer/1,,0x316efd3f91d3d5118ff40090279cd0f9,00.html
Great help in finding them:
http://forums.itrc.hp.com/cm/TopSolutions/1,,CA673458!1!questions,00.html
live free or die
harry