how do I backup a jffs2 partition to an image file

Brian Norris computersforpeace at gmail.com
Fri May 11 20:08:45 EDT 2012


On Thu, May 10, 2012 at 10:34 PM,  <geraldwalden at comcast.net> wrote:
> how do I backup a jffs2 partition to a ".bin" file. I want to run jffs2dump on a jffs2 filesystem, and the utility only takes an image file as a parameter.

Right, jffs2dump is not the right tool.

Are you using NAND, or some other bad-block-free flash (e.g., NOR)?

For NAND, I think the nanddump utility would suffice. It is the
complement of nandwrite, which is mentioned for copying an image *to*
the device:
http://www.linux-mtd.infradead.org/faq/nand.html#L_nand_copyimg

For bad-block-free devices, you aren't restricted, and may be able to
just use dd, for instance. See the information regarding *writing* an
image for my rationale:
http://www.linux-mtd.infradead.org/faq/jffs2.html#L_putimage

But I'm not a JFFS2 expert...

Brian



More information about the linux-mtd mailing list