On Jul 25, 2011, at 2:36 PM, Amir Goldstein wrote: > I am going to make a 3rd guess and we will see who was closest ;-) > My guess is that Round wan't a "short" image, just like he wrote. > vfat image can simply be truncated, because all initial blocks are at the > beginning of the partition. Sure, but why did he want a "short"/truncated image? Because it's faster to load onto the flash device for mass production, right? If you can do that with a specialized tool that writes the necessary blocks and not the ones that are all zeros, it solves his high-level need. > One could truncate the result of an ext4 image to quite less than 4G, > for example, if flex_bg is set to 32, all bitmaps are at the block group 0. > copies of the super block can be discarded, since one has the copy in > the image file. You could do that, but it's a lot more complicated, and you still need to write a tool that determines the first block where it is safe to truncate away the backup superblocks. And you have to hack mke2fs, and use special options to make sure the flex bg size is large enough so that all of the block group descriptors are the beginning of the disk. It's much simpler to use a sparse image and then use a special tool to write the file system image onto the MMC device. The approach you outlined can work, but it's a lot more complicated and easy to mess up. -- Ted -- To unsubscribe from this list: send the line "unsubscribe linux-ext4" in the body of a message to majordomo@xxxxxxxxxxxxxxx More majordomo info at http://vger.kernel.org/majordomo-info.html