23 Jul 2011 gdvieira   » (Journeyer)

Read-only Bind Mount

If you need to bind mount some directory in read-only mode (to securely access a backup dir, for example) it is necessary to first bind mount and then remount in read-only mode.

At least on Fedora, you can perform these two steps automatically using /etc/fstab. Just create a pair of entries like these:

/source/dir            /destination/dir    none  bind            0 0
/source/dir            /destination/dir    none  remount,bind,ro 0 0

I've tested this in a Fedora 14 box. YMMV.

Syndicated 2011-07-23 01:58:09 from Gustavo M. D. Vieira

Latest blog entries     Older blog entries

New Advogato Features

New HTML Parser: The long-awaited libxml2 based HTML parser code is live. It needs further work but already handles most markup better than the original parser.

Keep up with the latest Advogato features by reading the Advogato status blog.

If you're a C programmer with some spare time, take a look at the mod_virgule project page and help us with one of the tasks on the ToDo list!