Subject: Re: access to device fails after update
To: Jukka Salmi <jukka-netbsd@2004.salmi.ch>
From: Noriyuki Soda <soda@sra.co.jp>
List: current-users
Date: 06/21/2004 02:11:23
>>>>> On Sun, 20 Jun 2004 18:55:19 +0200,
Jukka Salmi <jukka-netbsd@2004.salmi.ch> said:
> I think gzip is the problem: using a gzip binary from a stable (1.6.2)
> system works; using one from -current does not. Furhtermore, using
>
> $ gzip -dc image.gz >out; cat out | dd of=/dev/rwd0d bs=16k
>
> works, but
>
> $ gzip -dc image.gz | dd of=/dev/rwd0d bs=16k
> does not; after reading and writing a certain amount of data, dd
> all at once reads only 2084 instead of 16k bytes (see trace above)
> if data is coming from gzip.
>
>
> Any hints?
Well, I guess what you really meant to do is the following:
gzip -dc image.gz | dd of=/dev/rwd0d obs=16k conv=osync
Although I'm not sure why the gzip binary from 1.6.2 works.
--
soda