Hi everybody,
I am experimenting with the root file system, and I want to assign it to a
JFFS2 partition.
The 'Compiled-in Kernel Boot Parameter' in the config is set to
'root=/dev/mtdblock1 ro rootfstype=jffs2'. Linux finds the partition and
everything seems to work perfectly.

Except for a minor thing; despite the 'ro' flag in the parameter list, linux
mounts the file system as 'rw'.

/> mount
/dev/rom1 on / type jffs2 (rw)
....
/>

I would like to have the root partition as read-only.

One thing I tried was to in the mtd map set the 'mask_flags' member

struct mtd_partition .... {
   ...
   {
      .name  =
      .offset  =
      .size    =
      .mask_flags = MTD_WRITEABLE
   }
   ...
};

This kind of works, but the file system mount is still 'rw'. If trying to
write to the partition, you'd get a flood of error messages from the flash
driver.

How can I make the root file system read-only? So the write attempts are
caught before communicating with the driver.
I'd like to see the mount being reported as 'ro', like this

# mount
 /dev/rom1 on / type jffs2 (ro)

BTW, I am using 2.6.22 kernel on top of the 20070130 distro on a M5272.

Thanks in advance,
Harry
_______________________________________________
uClinux-dev mailing list
[email protected]
http://mailman.uclinux.org/mailman/listinfo/uclinux-dev
This message was resent by [email protected]
To unsubscribe see:
http://mailman.uclinux.org/mailman/options/uclinux-dev

Reply via email to