- Community Home
- >
- Servers and Operating Systems
- >
- Operating Systems
- >
- Operating System - HP-UX
- >
- Re: Query on using CPIO
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
12-26-2001 12:26 AM
12-26-2001 12:26 AM
Query on using CPIO
I need to know the command for going through or to list (without writing onto the disk) the contents of the data backed up in a DLT media using CPIO.
Could someone help me on this?
Thanks and Regards,
N.Harinath.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
12-26-2001 12:32 AM
12-26-2001 12:32 AM
Re: Query on using CPIO
Use the -t (listing) option.
if your device is /dev/rmt/2m, then execute:
# cpio -itv < /dev/rmt/2m
Hope this helps. Regards.
Steven Sim Kok Leong
Brainbench MVP for Unix Admin
http://www.brainbench.com
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
12-26-2001 01:56 AM
12-26-2001 01:56 AM
Re: Query on using CPIO
Thanks for your reply.
I tried with it, but its giving the following output,
"Out of Phase - get help
Perhaps -c option shouldn't be used"
Please help me out on this.
Regards,
N.Harinath.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
12-26-2001 04:35 AM
12-26-2001 04:35 AM
Re: Query on using CPIO
It depends on the options you used during the cpio output mode to tape.
Since it is a tape device, use the block device -B option. Thus to list,
# cpio -itvB < /dev/rmt/2m
If -c was used in the output mode, then similarly the -c option must be used in the input mode. Thus to list,
# cpio -ictvB < /dev/rmt/2m
Remember to replace /dev/rmt/2m with the appropriate device file of your DLT tape drive.
Hope this helps. Regards.
Steven Sim Kok Leong
Brainbench MVP for Unix Admin
http://www.brainbench.com
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
12-27-2001 11:51 AM
12-27-2001 11:51 AM
Re: Query on using CPIO
looks like your tape was NOT the first to be written during that backup - you'll have to start with "cpio -ictv < /dev/rmt/0m" on the first tape, wait until it has been completly read, then you'll get the messaeg to exchange the tape and enter the name of the device containing the follow-up tape, and then you re-do the whole procedure until you used the tape you are interested in...
HTH,
Wodisch