cpio problem


 
Thread Tools Search this Thread
Top Forums UNIX for Dummies Questions & Answers cpio problem
# 1  
Old 06-16-2003
Data 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?
# 2  
Old 06-16-2003
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
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
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.
 
Login or Register to Ask a Question

Previous Thread | Next Thread

10 More Discussions You Might Find Interesting

1. UNIX for Advanced & Expert Users

Cpio - input files (from list) are stored in different order inside cpio archive - why?

Due to budget constraints I have to reinvent an Enterprise backup system in a SPARC (sun4v) Solaris estate (10 & 11). (yep - reinvent wheel, fun but time consuming. Is this wise?! :confused: ) For each filesystem of interest, to try to capture a 'catalog' at the front of each cpio archive (for... (1 Reply)
Discussion started by: am115998
1 Replies

2. SCO

Questions about cpio

Should 'cpio' backup only unmounted filesystems? Should a 'cpio' backup file be restored to a mounted device? Can 'cpio' interact with /dev/root, /dev/u, /dev/stand directly? (1 Reply)
Discussion started by: grips03
1 Replies

3. Debian

CPIO with Ubuntu

Hi, i am new here, and i have a question about cpio. i have a scsi traban tape drive, and i will restore some files and directories. Did anybody knows the instructions with cpio? regards Harald (1 Reply)
Discussion started by: gernsemer
1 Replies

4. UNIX and Linux Applications

CPIO Problem

Hi all, I have a trouble with CPIO: I have a file called asa802. I extract it with the following command: Then I tried to rebuild archive: Filesizes are not identical ! As I saw these messages: I tried: And messages disappears, but filesizes are still not identical Tried... (0 Replies)
Discussion started by: nekkro-kvlt
0 Replies

5. UNIX and Linux Applications

CPIO Problem, copy to the root dir / instead of current dir

HI all, I got a CPIO archive that contains a unix filesystem that I try to extract, but it extract to the root dir / unstead of current dir, and happily it detects my file are newer otherwise it would have overwrited my system's file! I tried all these commands cpio -i --make-directories <... (2 Replies)
Discussion started by: nekkro-kvlt
2 Replies

6. HP-UX

Please help with cpio on HP-UX

Hello all ... I am an Oracle DBA that got stuck in a HP-UX SA role and need some help figuring out a UNIX problem. According to Oracle documentation, I am to issue the following command ... cpio -idcmv <file_name> However when I do, the server just hangs there and does nothing til I... (3 Replies)
Discussion started by: soestx
3 Replies

7. UNIX for Dummies Questions & Answers

cpio

Hello, how can I restore files from a DAT using CPIO ? If I make : # mkdir save # cd /save # cpio -icumvdB </dev/rct0 Does the archive restore only in the directory /save ? And how can I restore a specified file from the DAT with the cpio command ? How can I know the size of the... (2 Replies)
Discussion started by: kok
2 Replies

8. UNIX for Advanced & Expert Users

CPIO related

i have a cpio.z file containing another cpio file . I want to view the contents of the cpio file inside . How to do it? my parent cpio file invoked with cpio -itv looks some thing like ompmum4 sbadgire> zcat 210_2122_ECP_03.cpio.Z| cpio -itv -rwxr-xr-x 1 20519 20519 761856... (1 Reply)
Discussion started by: rraajjiibb
1 Replies

9. UNIX for Dummies Questions & Answers

Help with cpio

Hi all, Please help me with the extraction of files from a cpio. what I mean is basically I have received a file from someone i.e rooh.cpio. this file rooh.cpio contains various files in it. I want to know how I can extract the files and copy them to a different directory . Your quick... (2 Replies)
Discussion started by: rooh
2 Replies

10. UNIX for Dummies Questions & Answers

cpio

by mistake I deleted all the files in /usr2/symix/users/wfpsys/tpsc/ directory. full backup has taken yesterday using "CPIO" command and I am able to view the files from tape also using cpio command. but i couldn't able to restore back the files. Can you please help me immeditely by giving the... (2 Replies)
Discussion started by: wipro fluid power
2 Replies
Login or Register to Ask a Question