In message <[EMAIL PROTECTED]>, Steven Finnegan 
writes:
>This is mainly addressed to David Courtney, or anyone else who may  
>have tried using the Ultradesic scripts under FreeBSD 7.0
>
>Using the script that writes the system image to CF, with FreeBSD  
>6.1,  I have always been successful with the line:
>       
>       gzcat <gz_image_file> | dd of=/dev/ad0 bs=64k
>
>However, under FreeBSD 7.0 this line now fails,

It was never correct in the first place, the correct command
would have been:

        gzcat <gz_image_file> | dd of=/dev/ad0 ibs=64k obs=64k

Notice "obs" instead of "bs".

With "bs" it expects same size blocks on input and output, and
if it reads 213 bytes from input, it writes 213 bytes to output.

With obs, it will always fill a 64k buffer before writing the
output (with the obvious, correct, handling at EOF).

(ibs=64k is technically not necesary, but it is faster to read
stuff from the pile in 64k chunks than in 512 byte chunks.)




-- 
Poul-Henning Kamp       | UNIX since Zilog Zeus 3.20
[EMAIL PROTECTED]         | TCP/IP since RFC 956
FreeBSD committer       | BSD since 4.3-tahoe    
Never attribute to malice what can adequately be explained by incompetence.
_______________________________________________
Soekris-tech mailing list
[email protected]
http://lists.soekris.com/mailman/listinfo/soekris-tech

Reply via email to