Technical article 126844

dtype(C) does not recognise tapes with cpio(C) archives on OpenServer 6.0.0

OpenServer 6.0.0

Written · Last revised

Problem

I have a tape with a cpio(C) archive on it. If I put the tape into the tape drive and, as root, enter:

dtype /dev/rmt/ctape0
I get:
/dev/rmt/ctape0 I/O error

Cause

dtype(C) uses a read size of 6*512byte blocks when reading from a device. If the cpio archive is not written with a block size of 512 bytes, or one which is compatible with a read of 6*512 bytes, then dtype will fail with the error described above.

Solution

There is no solution for cpio archives that have already been written to tape.

If you want your future cpio archives to be recognisable using dtype(C) then use the -C option and specify a multiple of 6*512bytes when writing your archives.

From the Xinuos technical article database, record 126844. Reproduced with permission. The original is at www.sco.com/ta/126844, which is reachable but blocked from search engines.

Next step

Need this fixed rather than explained?

Tell us the release, what the system runs and what it is doing. We will reply by email with what we would do next.

  • You deal with the people who do the work
  • No obligation, and no upgrade required before we will help
  • We tell you plainly if something is not worth doing

Send an enquiry

We reply by email. If a server is down, say so in the first line. You can also write to help@scoexpert.com.