[lkml]   [1997]   [Jan]   [19]   [last100]   RSS Feed
Views: [wrap][no wrap]   [headers]  [forward] 
Messages in this thread
SubjectRe: remounting partition
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
RTFM: mount(8).

I'm not sure what your tring to do ultimately, but if you do RTFM you see:

mount /mountpoint -o remount,rw
do stuff
mount /mountpoint -o remount,ro

most flags can can be changed ....

If you want to do it on a filesystem that contains /etc (ie /etc/mtab is,
or will be, on a readonly fs), then you need the -n switch too.

PGP key pass phrase forgotten, \ Overload -- core meltdown sequence
again :( and I don't care ;) | initiated.
/ This space is intentionally left
| blank, apart from this text ;-)

 \ /
  Last update: 2005-03-22 13:38    [W:0.023 / U:3.108 seconds]
©2003-2020 Jasper Spaans|hosted at Digital Ocean and TransIP|Read the blog|Advertise on this site