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?
I would imagine that mount -o bind,ro /some/directory /where/you/want/it/to/be/readonly should do the trick.
mount -o bind,ro /some/directory /where/you/want/it/to/be/readonly
mount --bind -o ro
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
6 years ago