[Soekris] Ultradesic Guides under FreeBSD 7.0
Poul-Henning Kamp
phk at phk.freebsd.dk
Mon Jan 14 19:35:53 UTC 2008
In message <1B9A5C70-C78B-4056-A404-B545324F7B64 at ctrlsft.com>, 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
phk at FreeBSD.ORG | TCP/IP since RFC 956
FreeBSD committer | BSD since 4.3-tahoe
Never attribute to malice what can adequately be explained by incompetence.
More information about the Soekris-tech
mailing list