5

How do I create a loopback mount which exposes a given directory as a read-only filesystem? As contrasted with a loopback mount which exposes a file as a filesystem?

Avdi
  • 353
  • 1
  • 3
  • 7

1 Answers1

14

I would imagine that mount -o bind,ro /some/directory /where/you/want/it/to/be/readonly should do the trick.

womble
  • 96,255
  • 29
  • 175
  • 230