Centos 5.1 includes configuration files for enabling the read-only root
filesystem.
Actually, all filesystems can be mounted read-only with particular files and
directories mounted on a read-write tmpfs (in RAM).
You can have your Centos system running read-only root in two
easy steps:
1. Edit /etc/sysconfig/readonly-root and change READONLY=no to
READONLY=yes
2. Reboot
When your computer comes back up, the root and any other system partitions will
be mounted read-only. All the files and directories listed in /etc/rwtab will
be mounted read-write on a tmpfs filesystem.
You can add additional files and directories to rwtab to make them writable
after reboot.
Note that this system is stateless. When you reboot again, everything written
to the tmpfs filesystem vanishes and the system will be exactly as it was the
last time it was booted. You could add a writable filesystem on disk or NFS for
writing files you want to retain after
rebooting.
Take a look at /etc/rc.d/rc.sysinit to see how the magic is done.
From cricket scores to your friends. Try the Yahoo! India Homepage!
http://in.yahoo.com/trynew
[Non-text portions of this message have been removed]