Making, drinking tea and reading an opus magnum from Joe Szedula:
> >On 10/7/05 1:32 PM, Michael Shalayeff ([EMAIL PROTECTED]) wrote:
> >> I use a command like:
> >> 
> >> cpio -o -z -v -F /dev/rst0 < in.lst > out.lst
> >> 
> >> to perform a backup. But when I attempt to index the tape contents using:
> >> 
> >> cpio -i -t -v -z -F /dev/rst0
> >> 
> >> I get:
> >> 
> >> gzip: /dev/stdin: unrecognized file format
> >> cpio: End of archive volume 1 reached
> >> Oct  7 11:50:48 sys /bsd: st0: 10-byte record too big
> >> Oct  7 11:50:48 sys /bsd: st0: 10-byte record too big
> > (snip)
> >
> >you have to pipe it thru dd.
> >tapes work in blocks. gzip is not exactly like that
> 
> I don't understand. How do I do that with cpio? cpio doesn't use stdin or 
> stdout (except for lists of files and messages) does it? Doesn't "-z" on 
> the cpio command line mean Compress/Uncompress archive using gzip(1) 
> format.

cpio -o -z -v | dd of=/dev/nrst0
dd if=/dev/nrst0 | cpio -i -t -z -v

-- 
    paranoic mickey       (my employers have changed but, the name has remained)

Reply via email to