lists.openwall.net   lists  /  announce  owl-users  owl-dev  john-users  john-dev  passwdqc-users  yescrypt  popa3d-users  /  oss-security  kernel-hardening  musl  sabotage  tlsify  passwords  /  crypt-dev  xvendor  /  Bugtraq  Full-Disclosure  linux-kernel  linux-netdev  linux-ext4  linux-hardening  linux-cve-announce  PHC 
Open Source and information security mailing list archives
 
Hash Suite: Windows password security audit tool. GUI, reports in PDF.
[<prev] [next>] [<thread-prev] [thread-next>] [day] [month] [year] [list]
Message-Id: <2F7A8BEF-0AF3-4642-A8BD-CDF30AB3917F@mit.edu>
Date:	Tue, 26 Jul 2011 00:13:54 -0400
From:	Theodore Tso <tytso@....EDU>
To:	Amir Goldstein <amir73il@...il.com>
Cc:	Round Robinjp <roundrobinjp@...oo.co.jp>,
	linux-ext4@...r.kernel.org
Subject: Re: flashing large eMMC partitions with ext4


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@...r.kernel.org
More majordomo info at  http://vger.kernel.org/majordomo-info.html

Powered by blists - more mailing lists

Powered by Openwall GNU/*/Linux Powered by OpenVZ