Got Permission denied error message when issuing flash_eraseall onmtd1 partition

Ian Phan iphan at echelon.com
Wed Apr 18 22:18:46 EDT 2007


Hello,

I finally was able to get flash_eraseall to work on /dev/mtd1 after I changed the minor number for the mtd character devices to even number (0,2,4 and 6).

 
# ls -lLat /dev/mtd*
brw-rw-r--    1 root     root      31,   3 Apr 18  2007 /dev/mtdblock3
brw-rw-r--    1 root     root      31,   2 Apr 18  2007 /dev/mtdblock2
brw-rw-r--    1 root     root      31,   1 Apr 18  2007 /dev/mtdblock1
brw-rw-r--    1 root     root      31,   0 Apr 18  2007 /dev/mtdblock0
crw-rw-r--    1 root     root      90,   6 Apr 19  2007 /dev/mtd3
crw-rw-r--    1 root     root      90,   4 Apr 19  2007 /dev/mtd2
crw-rw-r--    1 root     root      90,   2 Apr 19  2007 /dev/mtd1
crw-rw-r--    1 root     root      90,   0 Apr 19  2007 /dev/mtd0 #
 
I was able to do flashcp fs_image.jffs2 /dev/mtd1.  However when I tried to mount the jffs2 filesystem, I got an error "No such device" as shown below:

# mkdir /mnt/jffs2_fs
# mount -t jffs2 /dev/mtdblock1 /mnt/jffs2_fs
mount: Mounting /dev/mtdblock1 on /mnt/jffs2_fs failed: No such device

It seems to think that the /dev/mtdblock1 device does not exist? Any idea why?

Thanks,
Ian





More information about the linux-mtd mailing list