Creating an ext3 partition on an mtd device

Justin Waters justin.waters at timesys.com
Wed Aug 26 17:26:37 EDT 2009


Mark,

On Wed, 2009-08-26 at 15:44 -0400, Mark Ryden wrote:
> Hello,
> 
> I want to create an ext2 partition on an mtd device.

No, you don't.

See: http://www.linux-mtd.infradead.org/faq/general.html#L_ext2_mtd

and

http://www.linux-mtd.infradead.org/doc/ubifs.html#L_raw_vs_ftl

>  I tried to create a partition with fdisk /dev/mtdblock2
>  The device is /dev/mtdblock2p1
>  but: mkfs.ext3 /dev/mtdblock2p1  fails
> 
>  What should I do ? Is it right in this case to use fdisk at all ?

Unless you have some hard requirement for EXT2, you are much better off
using a flash file system, like ubifs or jffs2.  Check out
http://www.linux-mtd.infradead.org for more info.

> Regards,
> Mark Ryden

- Justin Waters




More information about the linux-mtd mailing list