- Community Home
- >
- Servers and Operating Systems
- >
- Operating Systems
- >
- Operating System - HP-UX
- >
- Re: tar data to be view
Operating System - HP-UX
1819836
Members
2598
Online
109607
Solutions
Forums
Categories
Company
Local Language
юдл
back
Forums
Discussions
Forums
- Data Protection and Retention
- Entry Storage Systems
- Legacy
- Midrange and Enterprise Storage
- Storage Networking
- HPE Nimble Storage
Discussions
Discussions
Discussions
Discussions
Forums
Forums
Discussions
юдл
back
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
Discussion Boards
Discussion Boards
Blogs
Information
Community
Resources
Community Language
Language
Forums
Blogs
Go to solution
Topic Options
- 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
тАО10-15-2009 07:21 AM
тАО10-15-2009 07:21 AM
Hi Guys,
I have HP UX-10.0 box
I watn to add data to the tape by tar. Before adding data, i want to check any data already there in tape(mt -t dev/Om status is not work in hpux 10.0). So pls anybody tell me the command to veryfy the data in the tape.
Thanks
vinay
I have HP UX-10.0 box
I watn to add data to the tape by tar. Before adding data, i want to check any data already there in tape(mt -t dev/Om status is not work in hpux 10.0). So pls anybody tell me the command to veryfy the data in the tape.
Thanks
vinay
Solved! Go to Solution.
2 REPLIES 2
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО10-15-2009 07:24 AM
тАО10-15-2009 07:24 AM
Re: tar data to be view
tar -t will list the tar archive that already exists on the tape, if that's what you mean.
Pete
Pete
Pete
Pete
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО10-15-2009 07:47 AM
тАО10-15-2009 07:47 AM
Solution
you can use "tar -tvf /dev/rmt/0m" which will list the existing contents of the first tar file on the tape (or error out if nothings there / not tar format).
there is a problem with this method though. Unless you already know how many tar files are on the tape, you're going to have to use a non-rewind device and repeat the command until it errors, as its always possible someone did something like:
tar -cvf /dev/rmt/0mn
tar -cvf /dev/rmt/0mn
tar -cvf /dev/rmt/0m
which would create 3 separate tar files on the tape.
I don't recommend trying to add information to an existing tape, as it *does not* get appended to the existing archive / replace and existing file. In addition, any little mistake when entering the command can trash the existing archive, making the tape unusable.
Tape is relatively cheap, I'd use a new one....and sleep better having done so.
there is a problem with this method though. Unless you already know how many tar files are on the tape, you're going to have to use a non-rewind device and repeat the command until it errors, as its always possible someone did something like:
tar -cvf /dev/rmt/0mn
tar -cvf /dev/rmt/0mn
tar -cvf /dev/rmt/0m
which would create 3 separate tar files on the tape.
I don't recommend trying to add information to an existing tape, as it *does not* get appended to the existing archive / replace and existing file. In addition, any little mistake when entering the command can trash the existing archive, making the tape unusable.
Tape is relatively cheap, I'd use a new one....and sleep better having done so.
The opinions expressed above are the personal opinions of the authors, not of Hewlett Packard Enterprise. By using this site, you accept the Terms of Use and Rules of Participation.
Company
Learn About
News and Events
Support
© Copyright 2025 Hewlett Packard Enterprise Development LP