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
03-11-2002 10:10 AM
03-11-2002 10:10 AM
cpio
I am trying to read the contents of the tape with the cpio -icBvt /dev/rmt/1m. It is getting hanged there. Can anyone help me out. Help me out in extracting the tape to disk.
Thanks
Prathap.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
03-11-2002 10:11 AM
03-11-2002 10:11 AM
Re: cpio
DO this:
dd if=/dev/rmt/1m of=/large_diskarea
live free or die
harry
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
03-11-2002 10:14 AM
03-11-2002 10:14 AM
Re: cpio
Try
cpio -itBv < /dev/rmt/1m
Are you using the redirector "<". Also You are using the "c" as well as "t" option,
c --> Copy (extract)
t --> List Contents (No extract)
Try this,
cpio -itBvdl < /dev/rmt/1m
to list contents of tape
cpio -icBvdul < /dev/rmt/1m
to extract contents of tape to disk. Keep an eye on the path it is extracting to.
Hope this helps.
Regds
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
03-11-2002 10:25 AM
03-11-2002 10:25 AM
Re: cpio
# cpio -itcvB < /dev/rmt/1m
should work.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
03-11-2002 10:25 AM
03-11-2002 10:25 AM
Re: cpio
Thanks for the info. I have tried the options given by you. I am getting the error called 'Out of Phase--get help', Perhaps the C option should not be used.
Thanks
Prathap.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
03-11-2002 10:27 AM
03-11-2002 10:27 AM
Re: cpio
dd if=./dev/rmt/1m ibs=102400 of=tape.cpio
file tape.cpio
if cpio still has trouble reading the data, try to use GNU's version of cpio and omit the -c argument. GNU's cpio will try to find out itself and understands more cpio formats than native HP-UX cpio.
GNU cpio can be found and installed from e.g. ftp://download.xs4all.nl/pub/mirror/gnu/cpio/cpio-2.4.2.tar.gz (I couln't find a precompiler binary for HP-UX)
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
03-11-2002 10:34 AM
03-11-2002 10:34 AM
Re: cpio
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
03-11-2002 10:48 AM
03-11-2002 10:48 AM
Re: cpio
I tried the solutions given in the links. Still I am getting the error. If I specify the 'c' option, I am getting the error C option should not be used. I I did't specify the 'c' option, I am getting the error 'C' option should be used.
Thanks
Prathap.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
03-11-2002 10:53 AM
03-11-2002 10:53 AM
Re: cpio
put it somewhere in your path and issue
# ncpio --io-size=102400 -i -t -v
and tell us what happens
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
03-11-2002 10:56 AM
03-11-2002 10:56 AM
Re: cpio
Did you rewind the tape first? Rewind the tape first with
mt -t /dev/rmt/1m rew
and then use cpio command to list the contents
I hope this will help
Aftab
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
03-11-2002 10:57 AM
03-11-2002 10:57 AM
Re: cpio
# cd /tmp
# gzip -d
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
03-11-2002 11:05 AM
03-11-2002 11:05 AM
Re: cpio
ARe you able to list the contents of the archive.
cpio -itBvdul < /dev/rmt/1m
If you are able to do so, then try,
cpio -icBvdulR
You could be having a media problem. Have you tried with another media. Or you can try this media on another server.
Hope this helps.
Regds
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
03-11-2002 11:27 AM
03-11-2002 11:27 AM
Re: cpio
rewind the tape inbetween the list command and the extract command?
mt -t /dev/rmt/1m
cpio -itBvdul < /dev/rmt/1m
If you are able to do so, then try,
mt -t /dev/rmt/1m
cpio -icBvdulR
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
03-11-2002 11:27 AM
03-11-2002 11:27 AM
Re: cpio
Can you let me know where can I get the ncpio utility.
Thanks
Prathap.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
03-11-2002 11:39 AM
03-11-2002 11:39 AM
Re: cpio
I have tried all the solutions, still I am not able to read the contents of the tape.
Thanks
Prathap.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
03-11-2002 11:41 AM
03-11-2002 11:41 AM
Re: cpio
Try this,
dd if=/dev/rmt/1m ibs=1024k obs=1k | cpio -it
Hope this helps.
Regds
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
03-11-2002 11:59 AM
03-11-2002 11:59 AM
Re: cpio
I have tried but still getting the same error.
Thanks
Prathap.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
03-11-2002 12:03 PM
03-11-2002 12:03 PM
Re: cpio
pax (Portable Archive eXchange) is able to read and save both tar and cpio format tapes.
man pax for examples.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
03-11-2002 12:05 PM
03-11-2002 12:05 PM
Re: cpio
Yeah. I have tried pax -r -f /dev/rmt/1m. Still I am not able to read the tape.
Thanks
Prathap.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
03-11-2002 12:57 PM
03-11-2002 12:57 PM
Re: cpio
Maybe I missed this, but what was the complete command line used to create the cpio archive?
Darrell
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
03-11-2002 01:00 PM
03-11-2002 01:00 PM
Re: cpio
I have seen that cause similar problems in the past.
Of course you could have bad media after all this. ;-{
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
03-12-2002 01:27 AM
03-12-2002 01:27 AM
Re: cpio
(temporary) avalable from
http://home.hccnet.nl/h.m.brand/ncpio
Good luck
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
03-13-2002 12:59 AM
03-13-2002 12:59 AM
Re: cpio
mt -t /dev/rmt/1mnb # Note: Added "nb".
dd if=/dev/rmt/1m of=/tmp/record bs=64k count=1
ll /tmp/record
file /tmp/record
rm /tmp/record
Note that especially the output of the ll(1) command (gives the record size of the tape) and of the file(1) command (tries to identify the type of archive/file) is important.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
03-13-2002 08:43 AM
03-13-2002 08:43 AM
Re: cpio
I have tried using 'dd' command. Please find attached as the output of the 'dd' command.
Thanks
Prathap.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
03-13-2002 09:01 AM
03-13-2002 09:01 AM
Re: cpio
Check this thread of Harry:
http://forums.itrc.hp.com/cm/QuestionAnswer/1,,0x29bc0bce6f33d6118fff0090279cd0f9,00.html
HTH,
Shiju