The final answer, according to Dr. Blinn, and implied by the other responses
suggesting things that didn't work, is no, it is impossible to mount a
filesystem mounted rw, ro without unmounting it.
-Lucas Carey
----Original question-----------------
> >In linux it is possible to remount a directory from rw to ro.
> >mount -o remount ro [dir]
> >Is this possible in Tru64 v5.1a, Advfs? I would like to have slave
> >/usr/local/ servers that normally have ro mounts, but they need to remount
> >the directories rw in order to sync them up to the master. I tried mount
> > -u -o ro [dir] and got: Operation not supported.
> >
--------and clarification-----------
I linux it is possible, in multi-user mode, to take a filesystem that is
mounted read-write and remount it read-only. This can be done to an active
filesystem. here is an example
#mount | grep sda7
/dev/sda7 on /mnt/sda7 type reiserfs (rw)
#pwd
/mnt/sda7/ExonIntron
#umount /mnt/sda7
umount: /mnt/sda7: device is busy
#mount -o ro,remount /mnt/sda7
#mount | grep sda7
/dev/sda7 on /mnt/sda7 type reiserfs (ro)
#pwd
/mnt/sda7/ExonIntron
#mount -o rw,remount /mnt/sda7
#mount |grep sda7
/dev/sda7 on /mnt/sda7 type reiserfs (rw)
I have taken a filesystem that I cannot unmount because I am in it, and
remounted it read-only. This is done while the system is up and running, and
while processes are running that have the target filesystem as thier working
directory. umount [filesystem] ; mount -o ro [filsystem] and related commands
will not work.
Received on Sat Oct 27 2001 - 17:02:46 NZDT