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 Chris Miller on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

CPIO error

Status
Not open for further replies.
Oct 17, 2006
227
Hi all

I have ran the below script trying to restore a file from tape

mt -f /dev/st0 rewind
mkdir /tmp/newdir
cd /tmp/newdir
cpio -icdvr -C32768 --no-absolute-filenames -I /dev/st0 data/jvedi/jv-ediinp

but it keeps comming up

cpio: read error: Input/output error

does anyone have any ideas?? if I'm doing anything wrong??


thanks

robert
 
I can copy a file from the top of the tape but not hte bottom so I tried to set the block size from zero to 1024
Is there a reson why you can't set the block size on a tape

error input / output


mt -f /dev/st0 setblk 1024???
 
Are you able to dd off the entire tape with no I/O errors, e.g.

[tt]dd if=/dev/st0 of=/dev/null[/tt]

Annihilannic.
 
Thanks for the reply I'm not really a linux person but as I need to recove this file I'll take all the help I can get!!


What is happening at the moment is that Ive switched on my dev box with out new ultrium drive put a couple of clea cycles through. strange thing is that on last nights tape I can get the file but not on the one I need. Hence trying a different box.

I have put the
dd if=/dev/st0 of=/dev/null ( what does it do?)
dd: reading '/dev/st0: cannot allocate memory
0+0 records in
0+0 records out


strange thing is that I can set the block size on this but when I try to read it cpio –itcv –C32768 < /dev/st0

I get '/dev/st0': cannot allocate memory


 
robert030975 said:
dd if=/dev/st0 of=/dev/null ( what does it do?)

dd just dumps data from one file or device to another; this command just reads from the tape device and sends the data to /dev/null (i.e. discards it) to test whether you can read the entire tape.

Judging by the result it sounds like your tape device is not correctly configured on that system.

What does mt -f /dev/st0 status return?

Annihilannic.
 
SCSI 2 tape drive:
File number=0, block number=0, partition=0.
Tape block size 0 bytes. Density code 0X42 (no translation)
soft error count since last status=0
General status bits on (45010000):
BOT WR_PROT ONLINE IM_REP_EN
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top