Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations strongm on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Finding Information on a tape

Status
Not open for further replies.
Oct 17, 2006
227
HI All


I was wondering if the following syntax

cpio -ivt -C32768 < /dev/st0 /data/jvedi/jv-ediinp

is the best way to find this file ( jv-ediimp) on my tape as its taking ages!! I also get the message

cpio: warning: skipped 9373909 bytes of junk
cpio: warning: skipped 594005 bytes of junk
before I quit out.


Thanks


 
It looks like your tape is bad or you have a wrong block size. What is the command used to make the tape?
 
sure heres the script

find /data/live /data/hist /data/informix /data/jvedi /data/live/compress -type
f -print | tee $CPIOLOG | cpio -oc -C32768 -O $DEVICE
 
Then try your command with -ivtc instead of -ivt.
I presume you realize you are not asking to recover the file, just see if its on the tape.
 
And try using -I instead of redirection, e.g.

Code:
cpio -ivt -C32768 -I /dev/st0 >/tmp/tape_listing
grep /data/jvedi/jv-ediinp /tmp/tape_listing

Annihilannic
[small]tgmlify - code syntax highlighting for your tek-tips posts[/small]
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top