Re: remounting partition

Richard B. Johnson (root@analogic.com)
Mon, 20 Jan 1997 08:43:03 -0500 (EST)


On Sun, 19 Jan 1997, Andi Gutmans wrote:

> Hi,
>
> I have a question. Is it possible to change a filesystem's
> readonly/writeable flag without unmounting them?
> For example to mount / readonly but if a change has to be done to quickly
> mount it writeable and then readonly again.
> ie. somehow to sort of sync(), and then to change it.
>
> Thanks,
>
> Andi
>

# umount / # un-mounts root fs if it isn't busy.
# It is actually still mounted, but read-only
# no need to sync(). All buffers are flushed.
# mount -n -o remount / # re-mounts root fs r/w

Cheers,
Dick Johnson
-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-
Richard B. Johnson
Project Engineer
Analogic Corporation
Voice : (508) 977-3000 ext. 3754
Fax : (508) 532-6097
Modem : (508) 977-6870
Ftp : ftp@boneserver.analogic.com
Email : rjohnson@analogic.com, johnson@analogic.com
Penguin : Linux version 2.1.21 on an i586 machine (66.15 BogoMips).
Warning : It's hard to remain at the trailing edge of technology.
-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-