XO-1.5 users: need your SD card data
quozl at laptop.org
Thu Apr 14 22:10:19 EDT 2011
As an alternative, consider identifying the unused blocks in the
filesystem, and avoid including them in the .zd file. This would make
it unnecessary to know whether the bits will be set or cleared by the
card. ext2, ext3, and ext4 care nothing for the bits in unused blocks.
zerofree  demonstrates how to identify the unused blocks. The
attached patch to zerofree-1.0.1 lets me dump the block numbers of the
unused blocks without changing the filesystem:
zerofree -nd filesystem.img > filesystem-free-blocks
The block numbers might then be used by a modified zhashfs, or zhashfs
might make the same block bitmap test calls that zerofree makes.
It is said by the author  and in various places that zerofree can
work with ext4 ... I've run it against the ext4 partition of an SD card
that contains os14 ... with no apparent ill-effects.
However, Richard Jones suggests  that files with extents may not be
handled. I'm not sure if that is a concern for olpc-os-builder images.
-------------- next part --------------
A non-text attachment was scrubbed...
Size: 706 bytes
Desc: not available
More information about the Devel