[Pianod] Compiling on Raspberry Pi A+
Perette Barella
perette at barella.org
Sat Jul 23 16:59:12 PDT 2016
I just noticed a mistake in this procedure. I used device capacity (1K-blocks column) instead of free space (Available column). The second step should be:
> - Now make a temp file a little smaller than the free capacity. dd uses 512-byte blocks:
> dd if=/dev/random count=17000000 | tee foobar | cksum
--
Perette Barella • perette at barella.org • 585-286-1312
176 Middlesex Road, Rochester NY 14610
> On 2016年07月23日, at 19:38, Perette Barella <perette at barella.org> wrote:
>
> You could do something like this to make sure what’s being written to the SD card is consistent
> - Get the free space on the device:
> $ df -k .
> Filesystem 1K-blocks Used Available Use% Mounted on
> /dev/root 15183756 5530452 8980448 39% /
>
> - Now make a temp file a little smaller than the free capacity. dd uses 512-byte blocks:
> dd if=/dev/random count=30000000 | tee foobar | cksum
>
> - When that completes
> cksum foobar
>
> - If the checksums don’t match… then I/O to your SD card isn’t being consistent. Of course, this checks free space, and there could be bad areas that contain operating system and the compiler.
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.deviousfish.com/pipermail/pianod-deviousfish.com/attachments/20160723/a350fa3b/attachment-0002.htm>
More information about the Pianod
mailing list