- Community Home
- >
- Servers and Operating Systems
- >
- Operating Systems
- >
- Operating System - HP-UX
- >
- Re: problem restoring files from 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
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
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
тАО01-03-2005 02:25 AM
тАО01-03-2005 02:25 AM
I have a DLT tape that has a CPIO archive on it that was created on a AIX machine. I need to recover a few of the files, however, I don't have a AIX machine (yet) to recover to. The problem is that the CPIO command used to write the files uses an option specific to AIX that is not available to HPUX. Here is the command that is used to create the archive:
find $directory -print | cpio -C300ov > $Tape
On HPUX, I cannot find an equivalent option for the -C. I have tried using PAX to restore the files and I am able to get the first file (or part of it from tape) and then I get a message to enter the second volume. Here is the pax command that I am using:
pax -r -x cpio -b 300 -f $tape -v '/string/'
I have tried using the no-rewind device file for the tape and then using mt -t fsf 1 to move the tape forward one file and tried the pax command again but that gives me the following error message:
pax: [offset 0g+0m+0k+0]: I/O error
Please advise, any help/suggestions you may have to get the other files recovered from the tape, cpio, pax, or other.
Thank you!
Tony
Solved! Go to Solution.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО01-03-2005 02:33 AM
тАО01-03-2005 02:33 AM
Re: problem restoring files from CPIO
You must use cpio.
I don't update cpio very often. You may find the feature you need in the latest patch that includes cpio or from a version at the software archive site.
http://hpux.connect.org.uk/hppd/hpux/Gnu/cpio-2.5/
http://www2.itrc.hp.com/service/patch/patchDetail.do?BC=patch.breadcrumb.main|patch.breadcrumb.search|&patchid=PHCO_24440&context=hpux:800:11:11
SEP
Owner of ISN Corporation
http://isnamerica.com
http://hpuxconsulting.com
Sponsor: http://hpux.ws
Twitter: http://twitter.com/hpuxlinux
Founder http://newdatacloud.com
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО01-03-2005 02:38 AM
тАО01-03-2005 02:38 AM
Solution# dd if=/dev/rmt/0m ibs=10240k | cpio -ivdm
-Cblocks is the alternative for -B
GNU cpio supports both, which makes it the best bet for you
Most recent cpio (less than two weeks) were uploaded to my site:
http://mirrors.develooper.com/hpux/#Downloads
10.20: http://mirrors.develooper.com/hpux/cpio-2.6-pa1.1
11.00: http://mirrors.develooper.com/hpux/cpio-2.6-pa2.0
11.11: http://mirrors.develooper.com/hpux/cpio-2.6-elf64
Enjoy, Have FUN! H.Merijn
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО01-03-2005 02:55 AM
тАО01-03-2005 02:55 AM
Re: problem restoring files from CPIO
cpio -icvdBmu < /dev/rmt/Xm
to exec in the dir where you want the files to be restored
HTH
E.
ps happy new year 'verybody
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО01-03-2005 03:04 AM
тАО01-03-2005 03:04 AM
Re: problem restoring files from CPIO
-u = UNCONDITIONALY
cpio allows absolute pathnames, what if I gave you this archive, created on a trusted AIX system?
# echo /etc/passwd | cpio -ocvB >/dev/rmt0
Do you think your HP-UX system will still work after extractiong the tape? I bet next time you will think again ...
Enjoy, Have (safe) FUN! H.merijn
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО01-03-2005 03:04 AM
тАО01-03-2005 03:04 AM
Re: problem restoring files from CPIO
Tony
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО01-03-2005 03:06 AM
тАО01-03-2005 03:06 AM