Questions tagged [bind-mount]
The bind-mount tag has no summary.
150 questions
-1
votes
0
answers
73
views
Docker support for idmap in bind-mounted volumes
I have a Docker container that has access to a certain directory on the host using bind-mount (--volume /host/directory:/shared). On the host, this directory and its contents are owned by UID 1001. On ...
0
votes
0
answers
32
views
Cross-namespace mounts from A to B when all processes leave A
Suppose mount namespace A looks like
/
lower/
overlay/
upper/
work/
and we run
mount -o upperdir=/upper,lowerdir=/lower,workdir=/work -t overlay overlay /overlay
and we copy the mount at /...
4
votes
2
answers
156
views
Bind mount systemd unit file binding to device instead
I'd like to bind mount a directory /volume1/nix to /nix, so I made the following unit file nix.mount and placed it in my /etc/systemd/system.
[Mount]
What=/volume1/nix
Where=/nix
Type=none
Options=...
0
votes
1
answer
210
views
Why does OverlayFS allow unmounting the device that contains upperdir and workdir?
I have two hard drives, each with a single partition (/dev/sda1 and /dev/sdb1). The Linux root is on /dev/sda1. I run the following script.
mount /dev/sdb1 /mnt
mkdir /data /mnt/upper /mnt/work
mount ...
0
votes
1
answer
81
views
bindfs: Can remounting with new mapping cause side-effects?
I want to create a ansible role that creates some bindfs-mounts and map those to a bunch of users.
Now those users can change. And this is why I cannot check, whether the mount already exists and then ...
0
votes
0
answers
57
views
How do I bind multiple read-only directories to a mounted directory to make them writable?
I have a root file system (/) that is read-only on a partition in an eMMC (/dev/mmcblk0p3). There are a variety of directories that I want to be writable and persist. I have a partition available on ...
6
votes
2
answers
137
views
mv affected by bind mounts (feels like a bug)
Originally, mv(1) was a rename operation; it updated names in filesystems and did not copy files. More recently, a convenience feature was added, whereby if the source and target were on different ...
0
votes
0
answers
569
views
Accessing Docker Unix Socket from a Podman Container on a Remote Server (SSH)
I'm trying to access a Docker Unix socket on a remote server from within a Podman container (offen/docker-volume-backup).
I've (root-)mounted the entire root filesystem of the remote server using ...
0
votes
3
answers
382
views
nfs v4 export is adding additional options not specified in /etc/exports
This seems trivial but I've lost too much time searching and reading manuals.
RHEL 7.9 server.
I have a simple directory being exported on nfs v4, using /etc/exports, with specific options.
[ ~]# cat /...
1
vote
0
answers
47
views
Selective rw access on read-only mounted partition
I have read-only root file system, protected with dm-verity and clean read-write user data storage.
Nevertheless, I need to make a tiny set of files on rootfs which require persistent storage ...
1
vote
0
answers
173
views
Right way to recursively share a path (like a symlink) and proper way to unmount/remount without messing with other mount points
Bind mounts seem to be hard. I am looking for the right way to use a bind mount to mount a given directory to another one pretty much like a symlink (but I can't use a symlink because my application ...
0
votes
0
answers
60
views
shared vs private mountpoints in parent/child mount namespaces
As per explicit request, I opened this question to ask the following:
on Ubuntu linux systems initial (aka root or default) mount namespace has options for mounted filesystems that are different from ...
0
votes
1
answer
325
views
Are there any implications of using a symbolic link or bind mount vs having the real files there?
I have an indirect wildcard autofs mount on home but would like a few local folders to remain in there. Thus I moved those local folders elsewhere and created a bind mount. As a backup, incase ...
1
vote
1
answer
878
views
How to mount a local folder with autofs? bind doesnt seem to work
I want all the users to automount from a NFS server except for a few accounts that should use the local home folder. Thus each client computer (and the nfs server) has a few folders in /home, the ...
0
votes
0
answers
656
views
Docker Compose not synchronising file changes in volume
Reposting from here as I don't quite understand how the "solution" works.
Symptom:
As reported here:
I mount my local files into the container for development. My docker-compose.yml file is ...