Stuart Henderson wrote:
On 2007/05/16 11:33, Jean-Yves Boisiaud wrote:
I want to limit write accesses on the compact flash, so I mounted / read only, with the noatime option. /var is mounted in RAM.

Do you know that you need more than fstab(5) changes to mount / RO?

Yes, I could create a mfs partition for /dev, but I think it is too dangerous.

Works fine, you can use the -P flag to populate from another
directory. Copy MAKEDEV into that directory and run it to setup;
do the same at upgrade time. Also keep the existing /dev.

I copied the /dev tree in /var/run/dev, which is detared from /var.tgz during boot. Then I run :

mount_mfs -i 256 -s 592 -P /var/run/dev swap /dev

And it is ok.

df -hi /dev gives :

Filesystem     Size    Used   Avail Capacity iused   ifree %iused
mfs:4304      23.0K    4.0K   18.0K    18%     232    1686   12%  /dev

good...

Thanks.

Reply via email to