mounting jffs2 rw

Thomas Brinker thomas.brinker at gmx.de
Thu Feb 24 06:15:58 EST 2005


Am Dienstag, 22. Februar 2005 12:19 schrieb Thomas Brinker:
> Hi!
>
> I have problems in remounting a jffs2 as read/writeable.
>
> Currently it mounts successfully as root-fs but in ro, which is no wonder.
> But how can I change it to rw?
>
>
> Here is what I have tried so far:
> ---===---
> # cat /proc/version
> Linux version 2.6.9-uc0 (thomas at mobile) (gcc version 3.4.3) #141 Mon Feb 21
> 16:01:36 CET 2005 # cat /proc/mtd
> dev:    size   erasesize  name
> mtd0: 00400000 00010000 "phys_mapped_flash"
> # ls -l /dev/mtd*
> crw-r--r--    1 root     root      90,   0 Feb  7  2005 /dev/mtd0
> brw-r--r--    1 root     root      31,   0 Feb  7  2005 /dev/mtdblock0
> crw-r--r--    1 root     root      90,   1 Feb  7  2005 /dev/mtdr0
> # mount
> /dev/rom0 on / type jffs2 (ro,noatime)                [<--- rom0 is strange]
# ls -l rom0
brw-r--r--    1 root     root      31,   0 Feb 22  2005 rom0
# ls -l mtdblock0
brw-r--r--    1 root     root      31,   0 Feb 22  2005 mtdblock0

> /proc on /proc type proc (rw,nodiratime) 
> none on /dev/pts type devpts (rw)
> none on /sys type sysfs (rw)
> ram on /var type ramfs (rw)
> # mount -o remount,rw /dev/mtdblock0 /
> mount: Mounting /dev/mtdblock0 on / failed: No such file or directory
> # mount -o remount,rw /dev/rom0 /
> mount: Mounting /dev/rom0 on / failed: No such file or directory
> # mount -o remount,rw /

Adding 'rw' to the kernel command line solves the problem.

Regards
Thomas





More information about the linux-mtd mailing list