On Sun Mar 19 2000 at 16:45, Chris Abbey wrote:

> At 19:06 3/19/00 +0300, Michael Ju. Tokarev wrote:
> >One small(?) relatted question: is it possible to mount / readonly?
> >At least with mount command itself, it seemed to be impossible, as
> >mount tries to modify /etc/mtab, and initscripts directs it to do so;

The solution is to make /etc/mtab a symbolic link to /proc/mounts

But there are some downsides to doing this... you loose information
that's kept in /etc/mtab that isn't in /proc/mounts (like the extended
options... uid, gid, mode and so on).

Do "cat /proc/mounts /etc/mtab" to see the difference.

> there are a few chunks of the file space you need to have writable,
> from memory the list is:
> 
> /etc
> /var
> /tmp (can always be a symlink to /var/tmp)

(/var/tmp as /tmp generally works, but I've found that it can have
some unexpected side effectes).

> /home (unless you don't have any users... i.e. kiosk machines)
> 
> beyond that everything *should* be able to be ro, iirc.
> 
> personally I'd like to get /etc out of that list, mtab is just one place
> I ran into when I tried this a long time ago.

Are there any other files besides mtab in /etc that are "always"
absolutely needed to be written to in order to have a functioning
system?  Anything that does this should be changed (as was the case,
eg, for dhcpd.leases).

Cheers
Tony
 -=*#*=-=*#*=-=*#*=-=*#*=-=*#*=-=*#*=-=*#*=-=*#*=-=*#*=-=*#*=-=*#*=-
  Tony Nugent <[EMAIL PROTECTED]>    Systems Administrator, RHCE
  GrowZone OnLine       (a project of) GrowZone Development Network
  POBox 475 Toowoomba Oueensland Australia 4350    Ph: 07 4637 8322
 -=*#*=-=*#*=-=*#*=-=*#*=-=*#*=-=*#*=-=*#*=-=*#*=-=*#*=-=*#*=-=*#*=-

-- 
To unsubscribe:
mail -s unsubscribe [EMAIL PROTECTED] < /dev/null

Reply via email to