1847855 Members
2460 Online
104021 Solutions
New Discussion

Re: cpio

 
Regina Mitchell
Frequent Advisor

cpio

I???m trying to extract the file install.sh from a 4mm tape that was copied via cpio.
Cpio ???iBcuv ???install.sh??? < /dev/rmt/0m
But I get the error ???If you want to go on, type device/file name when ready???. Anything I type gives me ???that didn???t work???. Any ideas?
4 REPLIES 4
Mark Grant
Honored Contributor

Re: cpio

This means that cpio thinks it has reached the end of the tape and is expecting you to put another one in and then type the device name again.
Never preceed any demonstration with anything more predictive than "watch this"
Massimo Bianchi
Honored Contributor

Re: cpio

Try using using pax:

pax -rf archive install.sh

Massimo
Jeff Schussele
Honored Contributor

Re: cpio

Hi Shawn,

You should take a look at the contents of the cpio volume to determine the path/filename to extract - do

cpio -itv < /dev/rmt/0m

It may be that the file is actually /opt/install.sh or something.
Then use the full pathname & try again.

HTH,
Jeff
PERSEVERANCE -- Remember, whatever does not kill you only makes you stronger!
Keith Bevan_1
Trusted Contributor

Re: cpio

Shawn,

You could omit the c option as this would be looking for a header on the tape (unless of course you know there is a header label).

Other ideas are use the t & v options for a table and verbose output to the screen, also try removing the B standard block size flag.

Try cpio -itv < /dev/rmt/0m

to view the tape contents

Finally, check the clean status of your 4mm dat drive. Do the heads need cleaning ?

Keith
You are either part of the solution or part of the problem