Skip to main content
12 events
when toggle format what by license comment
Sep 28, 2018 at 18:11 comment added alper union mount seems complex if there is sub-folders, I couldn't find any proper tutorial. Could I follow your answer (unix.stackexchange.com/a/294771/198423)? Would it be recommended to copy all files into folder and do required operations instead of doing union mount? @Gilles
Sep 28, 2018 at 14:27 comment added Gilles 'SO- stop being evil' @alper No. You'd need to create a view that's a union mount of the original tree and a local tree.
Sep 28, 2018 at 14:17 comment added alper After bind/mount is created, is it possible to create files/folder into binded directory but not into linked folder? So I have read access to all files in subfolder, but when I create a new files, they also shows up on the linked file which I do not want @Gilles
S May 17, 2017 at 10:55 history suggested Sean Leather CC BY-SA 3.0
Update the bindfs link
May 17, 2017 at 10:38 review Suggested edits
S May 17, 2017 at 10:55
Oct 18, 2012 at 9:55 comment added Gilles 'SO- stop being evil' @poige However, you can make a read-only bind mount on Ubuntu 12.04, but you have to do it in two steps: mount --bind /etc /tmp/ro && mount -o remount,ro /tmp/ro. This is a bit problematic because it can't be done from /etc/fstab, and it's not atomic (a program could open a file for writing under /tmp/ro between the two calls to mount). See bind mounting read-only using fstab on Ubuntu?
Oct 18, 2012 at 9:32 comment added Gilles 'SO- stop being evil' @poige I just checked on Ubuntu 12.04, mount --bind -r from a read-write filesystem produces a read-write access point. Mount warns me mount: warning: /tmp/ro seems to be mounted read-write., and that is indeed the case. So don't rely on it unless you know your (distribution's) kernel has the patch.
Oct 17, 2012 at 21:02 comment added Gilles 'SO- stop being evil' @poige Working on Debian squeeze too. But I'm not sure if it's because our distributions have applied the patch. Bindfs also has the advantage of showing up as a separate filesystem, so you can exclude it from backups and the like. The downside is slightly reduced performance.
Oct 17, 2012 at 20:54 comment added poige dunno exactly. See: mkdir /tmp/ro && mount -r --bind /etc /tmp/ro && touch /tmp/ro/TOUCH; umount /tmp/ro; uname -r → touch: cannot touch '/tmp/ro/TOUCH': Read-only file system 2.6.32-042stab057.1` (It's RHEL's version + OpenVZ patches)
Oct 17, 2012 at 20:34 comment added Gilles 'SO- stop being evil' @poige There's been a patch for that for a very long time, but last I looked it hadn't been accepted in the mainstream kernel. Has it now? Since when?
Oct 17, 2012 at 20:31 comment added poige actually just mount --bind can switch bounded content to RO, IIRC.
Oct 3, 2012 at 23:13 history answered Gilles 'SO- stop being evil' CC BY-SA 3.0