The UNIX and Linux Forums  

Go Back   The UNIX and Linux Forums > Top Forums > UNIX for Dummies Questions & Answers
Google UNIX.COM


UNIX for Dummies Questions & Answers If you're not sure where to post a UNIX or Linux question, post it here. All UNIX and Linux newbies welcome !!

More UNIX and Linux Forum Topics You Might Find Helpful
Thread Thread Starter Forum Replies Last Post
cpio error. alisevA3 UNIX for Dummies Questions & Answers 1 05-03-2006 09:04 AM
Please help with cpio on HP-UX soestx HP-UX 3 01-13-2006 03:07 PM
cpio kok UNIX for Dummies Questions & Answers 2 08-12-2004 05:57 AM
Help with cpio rooh UNIX for Dummies Questions & Answers 2 04-08-2003 03:41 PM
cpio wipro fluid power UNIX for Dummies Questions & Answers 2 06-18-2001 07:56 AM

Closed Thread
 
Submit Tools LinkBack Thread Tools Search this Thread Display Modes
  #1  
Old 06-16-2003
Registered User
 

Join Date: Jun 2003
Posts: 2
Unhappy cpio problem

Hi everyone.

I'm needing some help with this. I've made some backups on the same tape using cpio.

With cpio -civt < /dev/rmt/0un i could see the first backups files, but now i'm getting the next messages <<End of medum on "imput">> <<To continue, type device/file name when ready>>.

I really need to see the files on the tape. Any idea?
Forum Sponsor
  #2  
Old 06-16-2003
RTM's Avatar
RTM RTM is offline
Hog Hunter
 
Join Date: Apr 2002
Location: On my motorcycle
Posts: 3,039
What commands did you use to create the tape? If the device was not set for no-rewind, then you may only have the last backup on there.

Please post OS and version along with the command you used to create the tape.


Added note from the man page:
If, when writing to a character device (-o) or reading from
a character device (-i), cpio reaches the end of a medium
(such as the end of a diskette), and the -O and - I options
are not used, cpio prints the following message:

To continue, type device/file name when ready.

To continue, you must replace the medium and type the char-
acter special device name (/dev/rdiskette for example) and
press RETURN. You may want to continue by directing cpio to
use a different device. For example, if you have two floppy
drives you may want to switch between them so cpio can
proceed while you are changing the floppies. (Simply press-
ing RETURN causes the cpio process to exit.)
  #3  
Old 06-16-2003
Registered User
 

Join Date: Jun 2003
Posts: 2
Thanks for the interest

The tape is set for no-rewind. There’s no problem with that.
I’m running on Sun Solaris 8.

At the directory containing the files I backed up I made:
ls | cpio –oc > /dev/rmt/0un

I made mt rew to rewind the tape.
Now I’m trying
cpio –civt < /dev/rmt/0un
to see my files on the tape. There’s where I got the message.
  #4  
Old 06-16-2003
Perderabo's Avatar
Unix Daemon
 

Join Date: Aug 2001
Location: Washington DC Area
Posts: 8,667
Well I just tried this and I cannot duplicate your problem.

I did:
cd one
ls | cpio -oc > /dev/rmt/0un
cd ../two
ls | cpio -oc > /dev/rmt/0un
mt rewind
cpio -civt < /dev/rmt/0un
cpio -civt < /dev/rmt/0un

And each of the last two commands gave me a different table of contents. This was on SunOS 5.6.
Google The UNIX and Linux Forums
Closed Thread

Tags
cpio

Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes




All times are GMT -7. The time now is 08:28 AM.


Powered by: vBulletin, Copyright ©2000 - 2006, Jelsoft Enterprises Limited.
The UNIX and Linux Forums Content Copyright ©1993-2008. All Rights Reserved.Ad Management by RedTyger Visit The Complex Event Processing Blog

Content Relevant URLs by vBSEO 3.2.0