|
From: | Tim Kientzle |
Subject: | Re: old (1990) cpio archive reporting the error: unknown file type |
Date: | Fri, 16 Dec 2022 09:21:32 -0800 |
This appears to be a CPIO archive stored in the original cpio format introduced as part of Programmer’s Work Bench (PWB), a variant of 6th Edition UNIX. The PWB format differed from that used in 7th Edition Unix in how it represented file types. The first file in this archive, for example, is stored with a file type of octal 110644. In the PWB format, this indicated a regular file with IALLOC and ILARG flags set (neither of which is relevant for cpio purposes). In later 7th Edition, this is nonsense (a “regular file” that is also a “named pipe”), which explains the errors you are seeing. In short, you’ll need to find or write a program that can extract the PWB format. I’m not sure if GNU cpio can do this — it probably assumes “bin” format is the 7th Edition Format. I don’t recall if bsdcpio can extract this or not — I’d have to check the sources. Fortunately, cpio format is very easy to read. It has a fixed-layout header for each entry, followed by the filename and file contents. So if you know how to read binary data from one file and write it to another, you can probably cobble up something workable in an afternoon. The header details can be found online: https://man.archlinux.org/man/cpio.5.en Tim
|
[Prev in Thread] | Current Thread | [Next in Thread] |