- Community Home
- >
- Servers and Operating Systems
- >
- Operating Systems
- >
- Operating System - HP-UX
- >
- Re: How to untar files/directories from a tar 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
Discussions
Discussions
Discussions
Forums
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
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
тАО06-03-2009 07:42 AM
тАО06-03-2009 07:42 AM
Solved! Go to Solution.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО06-03-2009 07:46 AM
тАО06-03-2009 07:46 AM
Solutionmt -t /dev/rmt/0mn fsf 1
tar xvf /dev/rmt/0mn
make sure you use the no-rewind device as in 0mn not the 0m.
HTH
UNIX because I majored in cryptology...
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО06-03-2009 07:49 AM
тАО06-03-2009 07:49 AM
Re: How to untar files/directories from a tar tape
My example assumes tape device /dev/rmt/0mn. Substitute your device where appropriate.
# mt -f /dev/rmt/0mn rew
Make sure tape is at the beginning
# mt -f /dev/rmt/0mn fsf 1
Skip over the boot head of the tape
To get a list of files:
# tar -tvf /dev/rmt/0mn
To extract a file (/etc/hosts for example)
# tar -xvf /dev/rmt/0mn etc/hosts
To extract a dir: (/etc/ for example)
# tar -xvf /dev/rmt/0mn etc
Notice that I am not specifying a leading '/' when specifying a file or directory. All files are stored on the tape relative to the '/' dir, so instead of /etc you have etc on the tape.
You can see this if you do the 'tar -tvf...' to get a list of files on the tape.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО06-03-2009 08:54 PM
тАО06-03-2009 08:54 PM
Re: How to untar files/directories from a tar tape
To get a list of files:
pax -v -f /dev/rmt/0mn
To extract a file (/etc/hosts for example)
pax -v -r -f /dev/rmt/0mn etc/hosts
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО06-04-2009 12:16 AM
тАО06-04-2009 12:16 AM