[Date Prev][Date Next] [Thread Prev][Thread Next] [Date Index] [Thread Index]

Re: How can I make root filesystem read-only?



Oliver Elphick wrote:
> For example, /etc must be in the root filesystem and mount writes to
> /etc/mtab

That particular case is easy to workaround, just link /etc/mtab to
/proc/mounts. Don't do this if you use lookback mounted filesystems a
lot though, as it screws that up.

I have a system with the entire disk mounted read-only (/tmp, /var/lock,
/var/log, /var/mail, /var/run, /var/tmp, /var/spool/exim, and a few
other dirs are copied onto a ramdisk during boot), and it boots and
works ok. The boot is a trifle unclean as a few things try to access the
disk and whine that they cannot.

-- 
see shy jo

Attachment: pgpw3Pb7T2PZx.pgp
Description: PGP signature


Reply to: