|
|
Log in / Subscribe / Register

Read-only bind mounts

Read-only bind mounts

Posted Mar 22, 2015 15:05 UTC (Sun) by dmjacobsen (guest, #101610)
Parent article: Read-only bind mounts

As other commenters posted, the given method for producing a read-only bind mount will actually remount all the underlying filesystems (e.g., bind mounting /home/test1/asdf to /mnt, then making /mnt read-only will remount /home to be read-only).

To do this and *only* remount the bind mount as read-only:

mount -o bind /home/test/asdf /mnt
mount -o bind,remount,ro /mnt


to post comments


Copyright © 2026, Eklektix, Inc.
Comments and public postings are copyrighted by their creators.
Linux is a registered trademark of Linus Torvalds