/proc/mtd file does not show partitions

Midhun Agnihotram agnimidhun at gmail.com
Mon Jun 25 05:35:58 EDT 2007


Hi,

>    The rootfs image created is of 1MB, even though the pad option has
> been enabled to create an image size of 4MB.
>
      I am able to create a 4MB filesystem now. I had changed the -p
option to --pad as follows:

# ./mkfs.jffs2  -l -o rootfs-jffs2.img -r rootfs  -e 0x20000 --pad=0x400000

    And lo..It worked fine. The errors which used come as soon as the
kernel loading ends are all gone. But there is still one problem. It
says the file system is read-only and does not allow me to create a
folder.

# mount
rootfs on / type rootfs (rw)
/dev/root on / type jffs2 (rw)
/proc on /proc type proc (rw)
# mkdir midhun
Write of 68 bytes at 0x000e482c failed. returned -30, retlen 3270162828
Write of 68 bytes at 0x000e4870 failed. returned -30, retlen 3270162828
mkdir: cannot create directory 'midhun': Read-only file system

   My boot arguments are :

mem=48M console=ttyS0,115200 console=tty0 root=/dev/mtdblock4 rw
rootfstype=jffs2 init=/sbin/init ip=on

   Why is it saying that the filesystem is read-only?? The mount
command says that every file system mounted is rw. But still I am not
able to write. What is the problem??

Thanks,
Midhun.



More information about the linux-mtd mailing list