Mounting NAND flash as the root file system

Ricard Wanderlof ricard.wanderlof at axis.com
Tue Apr 28 03:23:31 EDT 2009


On Mon, 27 Apr 2009, Jatin Sharma wrote:

> When I boot the kernel using ramdisk (FS in RAM), I am able to run the
> flash_eraseall utility successfully. But the mount command fails:
>
> WDS# mount -t jffs2 /dev/mtd0 /mnt
> mount: mounting /dev/mtd0 on /mnt failed

You should be using the block device - /dev/mtdblock0 - and not the 
character device when mounting.

/Ricard
--
Ricard Wolf Wanderlöf                           ricardw(at)axis.com
Axis Communications AB, Lund, Sweden            www.axis.com
Phone +46 46 272 2016                           Fax +46 46 13 61 30



More information about the linux-mtd mailing list