I have a small, self-built linux 'distro' for an embedded box I am working with.
Because the power is extremely unreliable, I am mounting / read only, and creating /tmp and /var on ramdisks.
All this works just fine, the board boots and runs.
I am a bit confused, though, about the boot process itself.
I tried using 'ro root=/dev/hda1' on the kernel parameter line, thinking that this would ensure that the drive would be mounted read only. No - it was mounted rw.
So... I added
mount -o remount,ro /
to my startup script and it is mounted ro.
So why didn't the kernel mount it ro in the first place? Why did it mount it rw even though I said 'ro' on the kernel parameter line?
My startup script is the only thing that runs on startup, and nowhere do I mount / rw....
Could someone please explain this behavior?
Thanks,
--Yan