Operating System - HP-UX
1820884
Members
3587
Online
109628
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
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
тАО03-01-2002 10:58 AM
тАО03-01-2002 10:58 AM
cpio
Hi
Can anyone give me the cpio command syntax to read and extract the contents from tape.
Thanks
Prathap.
Can anyone give me the cpio command syntax to read and extract the contents from tape.
Thanks
Prathap.
3 REPLIES 3
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО03-01-2002 11:02 AM
тАО03-01-2002 11:02 AM
Re: cpio
You would need to know most of the options used to create the tape if it is cpio.
You may want to look at using pax to read it.
man pax
You may want to look at using pax to read it.
man pax
My house is the bank's, my money the wife's, But my opinions belong to me, not HP!
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО03-01-2002 11:08 AM
тАО03-01-2002 11:08 AM
Re: cpio
Some example that you may give it a shot... (remember cpio is very particular with what options you used)
# cpio -ictv < /dev/rmt/1m
==>verify what is on the tape
# cpio -iudmcx < /dev/rmt/1m
==>restore all files on tape
# cpio -icvdxumB < /dev/rmt/1m
==>restore one file
# cpio -ictv < /dev/rmt/1m
==>verify what is on the tape
# cpio -iudmcx < /dev/rmt/1m
==>restore all files on tape
# cpio -icvdxumB < /dev/rmt/1m
==>restore one file
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО03-01-2002 11:17 AM
тАО03-01-2002 11:17 AM
Re: cpio
Hi:
You need to repeat all those combinations but also leave off the 'c' option. 'c' means ASCII header format; no 'c' means binary header data. There's jusy no way to know and you may have to send the data through dd if the data was reblocked.
I would start with these:
cpio -icBvt < /dev/rmt/0m
cpio -iBvt < /dev/rmt/0m
cpio -icvt < /dev/rmt/0m
cpio -ivt < /dev/rmt/0m
Those are all safe and one of them should at least give you a partial listing. If you get a partial listing, you know that you next need to fight the blocking factor.
You need to repeat all those combinations but also leave off the 'c' option. 'c' means ASCII header format; no 'c' means binary header data. There's jusy no way to know and you may have to send the data through dd if the data was reblocked.
I would start with these:
cpio -icBvt < /dev/rmt/0m
cpio -iBvt < /dev/rmt/0m
cpio -icvt < /dev/rmt/0m
cpio -ivt < /dev/rmt/0m
Those are all safe and one of them should at least give you a partial listing. If you get a partial listing, you know that you next need to fight the blocking factor.
If it ain't broke, I can fix that.
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