Creating an ext3 partition on an mtd device

Mark Ryden markryde at gmail.com
Wed Aug 26 15:44:31 EDT 2009


Hello,

I want to create an ext2 partition on an mtd device.

The is the output of cat /proc/mtd
dev:    size   erasesize  name

 mtd0: 00100000 00040000 "UBoot"
 mtd1: 00400000 00040000 "UImage"
 mtd2: 7fb00000 00040000 "Root"
 mtd3: 00800000 00010000 "spi0.0"


 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 ?

Regards,
Mark Ryden



More information about the linux-mtd mailing list