- Community Home
- >
- Servers and Operating Systems
- >
- Operating Systems
- >
- Operating System - HP-UX
- >
- Copy Tape to Tape
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
07-20-2006 05:19 AM
07-20-2006 05:19 AM
dd if=/dev/rmt/0m of=/dev/rmt/1m.
The command completed, but it looks like it only copied one file. I have three files on the first tape. When I do a tar -tvf /dev/rmt/1m, I only see the first file and then it says :Tar end of tape
:Tar to continue, enter
device/file name when ready
or null string to quit.
Solved! Go to Solution.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
07-20-2006 05:21 AM
07-20-2006 05:21 AM
Re: Copy Tape to Tape
maybe try again with the bs= parameter.
Also, don't forget mt -t and rewind the tapes before you start.
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
07-20-2006 05:32 AM
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
07-20-2006 05:39 AM
07-20-2006 05:39 AM
Re: Copy Tape to Tape
Insert both tapes:
#usr/bin/sh
src=/dev/rmt/0mnb
DEST=/dev/rmt/1mnb
BS=10k
mt -f ${SRC} rew # force a rewind
mt -f ${DEST} rew
Now for each image on the tape:
dd if=${SRC} of=${DEST} bs=${BS}
Repeat until dd reports an error.
and finallly eject the media:
mt -f ${SRC} offl # rewind and eject
mt -f ${DEST} offl
If you are putting multiple tar images on a medium, you are really asking for trouble because one mistake can overwrite a previous image and render the entire medium useless.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
07-20-2006 05:42 AM
07-20-2006 05:42 AM
Re: Copy Tape to Tape
You can use this as a reference:
http://www1.itrc.hp.com/service/cki/search.do?category=c0&prevQueryString=&mode=text&searchString=KBRC00008653&searchCrit=allwords&docType=Security&docType=Patch&docType=EngineerNotes&docType=BugReports&docType=Hardware&docType=ReferenceMaterials&docType=ThirdParty&dateRange=all
REgards,
LN
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
07-20-2006 07:47 AM
07-20-2006 07:47 AM
Re: Copy Tape to Tape
I have 3 files on tape one /dev/rmt/0m.
Trying to copy to tape two /dev/rmt/1m.
Did:
mt -f /dev/rmt/0m rew
mt -f /dev/rmt/1m rew
dd if=/dev/rmt/0mn of=/dev/rmt/1mn bs=10
mt -f /dev/rmt/1m rew
tar -tvf /dev/rmt/1m
Get this error: Tar tape block size error
Not sure what I'm doing wrong.
Monte
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
07-20-2006 07:53 AM
07-20-2006 07:53 AM
Re: Copy Tape to Tape
dd if=/dev/rmt/0mn of=/dev/rmt/1mn bs=10
should be:
dd if=/dev/rmt/0mn of=/dev/rmt/1mn bs=10k
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
07-20-2006 07:59 AM
07-20-2006 07:59 AM
Re: Copy Tape to Tape
I wasn't placing the k on bs=10k.
Don't understand why I have to use no rewind on both tapes?
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
07-20-2006 08:06 AM
07-20-2006 08:06 AM
Re: Copy Tape to Tape
Monte
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
07-20-2006 08:08 AM
07-20-2006 08:08 AM
Re: Copy Tape to Tape
If there is but one image on the medium then you can use the rewind device nodes BUT if there are multiple images on the medium then you want to leave the tape positioned exactly where the last operation finished on both the source and destination drives so that subsequent images are correctly handled.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
07-20-2006 09:02 AM
07-20-2006 09:02 AM
Re: Copy Tape to Tape
Steven
Melvyn
A.Clay
LNassar
I've found the answer.
Closing thread.
Monte