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

cpio: Bad magic number/header.

Status
Not open for further replies.

rcbatlinux

Technical User
Mar 30, 2001
80
0
0
US
Hi,

I have a script that runs each night that works fine, however today it came back with an error:

cpio: Bad magic number/header.

First it copies the files to tape:

cpio -ocBv > devicename < files

Then it reads for a file at the end:

cpio -icvumB &quot;/PATH/TESTFILE&quot; < devicename

It displayed this message on the last command. It appeared to write to the tape fine but then returned the cpio: Bad magic number/header on read. Any ideas what this message actually means?

rcbatlinux
 
<i>Any ideas what this message actually means?</i>
<p>
The different cpio headers all start with what's called a &quot;magic number&quot;, usually 070707 in binary or ascii. What this error messages means is that it expected to read this number at the start of the file header and it could not. Possible a bad tape. Good luck.
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top