Operating System - HP-UX
1849134 Members
2416 Online
104041 Solutions
New Discussion

Re: MOUNT A TAPE DEVICE FOR BROWSING

 
Pat Copland
Occasional Advisor

MOUNT A TAPE DEVICE FOR BROWSING

How can I mount my DDS2 tape device to browse the contents on the tape?

"ioscan -fnC tape" yeilds:

H/W Path 8/16/5.3.0
Driver stape
list of other files (dev/rmt/0m, dev/rmt/0mb..)
5 REPLIES 5
Kofi ARTHIABAH
Honored Contributor

Re: MOUNT A TAPE DEVICE FOR BROWSING

It depends on how the tape was written...

tar = tar -tvf /dev/rmt/0m
fbackup = frecover -r -N -f /dev/rmt/0m
etc.
nothing wrong with me that a few lines of code cannot fix!
Bill McNAMARA_1
Honored Contributor

Re: MOUNT A TAPE DEVICE FOR BROWSING

I don't have a system in front of me
at the moment but I believe the mt
command will do that... it does for
ignite tapes at least, I believe they're
either pax'ed or tar'd.

man mt

Hope that helps,
Bill
It works for me (tm)
Kofi ARTHIABAH
Honored Contributor

Re: MOUNT A TAPE DEVICE FOR BROWSING

a couple more for the pile:

strings /dev/rmt/0m
dd if=/dev/rmt/0m of=/dev/`who -uRm |awk '{ print $2 }'`
nothing wrong with me that a few lines of code cannot fix!
Kevin Ernst
Regular Advisor

Re: MOUNT A TAPE DEVICE FOR BROWSING

You mean mount for random access, like floppies and CD-ROMs? I don't believe that's possible (at least with stock HP-UX), *or* practical. Use the appropriate command-line options for the backup utility used (as shown in Kofi's posts) to produce an index of what's on the tape, and peruse that.
f. halili
Trusted Contributor

Re: MOUNT A TAPE DEVICE FOR BROWSING

I think it depends on how that tape was created.

If you use cpio:
# cpio -itv < /dev/rmt/Om

If you use tar:
# tar -tvf /dev/rmt0m


`fnhalili`
derekh