Questions tagged [bind-mount]

The tag has no usage guidance.

25 questions with no upvoted or accepted answers
Filter by
Sorted by
Tagged with
4
votes
0answers
227 views

openvpn route-up script no mount permissions

I'm trying to mount a couple of nfs shares after my openvpn tunnel is up. Previously this worked on ubuntu 12.04 and ubuntu 14.04. I made a clean install with ubuntu 16.04 and can't get it to work. ...
4
votes
1answer
2k views

CentOS 7 unable to cleanly umount a bind mount using rbind and rslave

The following sequence of commands will fail on CentOS 7 (kernel version: 3.10.0-327.10.1.el7.x86_64): [hidden]$ mkdir -p A B/a C/b [hidden]$ sudo mount --bind A B/a [hidden]$ sudo mount --rbind B C/...
3
votes
1answer
65 views

Why can I not bind a mount namespace to a file

I observe the following: As unprivileged user in shell No 1: user@box:~$ sysctl kernel.unprivileged_userns_clone kernel.unprivileged_userns_clone = 1 user@box:~$ unshare --mount --user nobody@box:~$ ...
3
votes
0answers
49 views

Is linux mount propagation asynchronous to the mount call?

I have two processes in different mount namespaces. They have a shared directory bind mounted to /mnt/share. The "master" uses MS_SHARED propagation for the mount, while the "slave" uses MS_SLAVE. ...
3
votes
0answers
228 views

Workaround for mount -bind behavior change between wheezy and jessie?

I recently upgraded a system from wheezy to jessie that makes use of bind mounts. But with the update the behavior of the bind mount has changed, and now acts as bind one filesystem will recursively ...
3
votes
2answers
819 views

Directly mount btrfs subvolume or bind mount if already visible

If /dev/sda1 is a btrfs filesystem with subvol's root and persistent And I've set the default subvol to root Also, I've mounted /dev/sda1 (again root is default) to / And I've mounted /dev/sda1 ...
2
votes
0answers
1k views

CentOS 7 - Can't mount /var/tmp as bind

I'm working on a freshly installed CentOS7 with LVM. I want to bind mount /var/tmp to /tmp and added the following to /etc/fstab. /tmp /var/tmp none rw,nodev,noexec,nosuid,bind 0 0 ...
2
votes
0answers
443 views

How to 'snapshot' a chroot?

I want to perform something similar to a 'clone' on vmware fusion/virtualbox/a VM manager. Host and chroot are both ubuntu. One complicating factor may be that this chroot may have one or more child ...
2
votes
1answer
982 views

How to bind arduino as a fix block-device — /dev/ttyACM0?

I want to bind my Arduino Mega as /dev/ttyACM0. Sometimes, it turns out to be /dev/ttyACM0 and sometimes as /dev/ttyACM1. I have taken help from this question and this tutorial Someone please help ...
1
vote
0answers
44 views

Bind mounts within bind mounts

I am trying to bind mount one file over another file, then remove the file that is now hidden from access. I'm trying to go about this as follows: folder1# echo a > a folder1# echo b > b ...
1
vote
0answers
61 views

What exactly happens behind a bind mount? (Linux 4.x)

From the answer to What is a bind mount?, It is possible to unmount /some/where, in which case /else/where remains mounted. I checked the output of mount after performing a bind mount. The ...
1
vote
1answer
35 views

How to See Bound Folders and Release Them

This morning I noticed someone had stuck a USB Drive in the back of the server. (I'll have to end that practice later). For some reason CentOS 7 mounted that disk /dev/sdc1 under /run/media//. I also ...
1
vote
0answers
46 views

Multiple network shares to single mount point?

How would I mount multiple network shares to single mount point? Example //10.50.154.6/data 42T 22T 21T 51% /mnt/data6 //10.50.154.7/data 8.1T 6.2T 1.9T 77% /mnt/data7 //10.50.154.8/...
1
vote
0answers
68 views

Making root being bind mounted

I have XUbuntu and Arch on a laptop, I'm sharing /boot partition between these distros mounting it on /mnt/boot and bind-mounting /mnt/boot/xubuntu or /mnt/boot/arch onto /boot; it works fine even ...
1
vote
0answers
299 views

Debian install, mounting /var /tmp /home in the same partition

I'm making a new Debian install. I have a SSD and an HDD. My idea was to put /home, /var and /tmp on the same partition in the HDD, and the rest (/) in a tiny partition in the SSD. I followed this ...
1
vote
0answers
197 views

Is NFS file locking destroyed by the nfs server bind-mounting the directory being nfs shared?

I have a directory /persistent/pacmanPkgCache which is both: nfs-shared to other machines bind-mounted to /var/cache/pacman/pkg Does having this directory nfs-shared and bind-mounted at the same ...
1
vote
0answers
324 views

Linux shared mount point inconsistent between child and parent processes

Let me try to explain the background: In main bash: We use mount --bind /tmp/source /tmp/target mount --make-shared /tmp/target to create this shared mount point target And then we use unshare -...
1
vote
1answer
279 views

Recursively unmount Bind mount in both User and Mount namespace

I am trying to use recursive bind mount in a new user namespace and mount namespace. This is what I do. Assume /foo/bar/ and /foo are both mount points. Firstly I do mount --rbind /foo/bar/ /baz, and ...
0
votes
0answers
19 views

Creating bind mounts at Linux installation time

Generally, when we install a Linux distro (I'll use Ubuntu-like distro as an example, but can be any distro), we define partitions and mount points that will be applied to a disk, after we click on "...
0
votes
0answers
21 views

Data partition and IntelliJ IDEA external file sync speed

I recently reconfigured the filesystem on my laptop so I can share my data with a second Linux. The Linux used in this matter is Fedora 28, 64-bit. My disks are now laid out like so: /dev/sda: /dev/...
0
votes
1answer
100 views

Lazy unmount root jail drives

I have created a root jail containing rpm and yum (centos 7.5) to install some software on the original system. Workflow Mount sys, proc, dev to the root jail Mount root of the original system "/" ...
0
votes
0answers
156 views

How do I mount a file on top of a broken symbolic link?

In preparation of a chroot I'm doing an mount --bind /etc/resolv.conf ${MOUNTPOINT}/etc/resolv.conf. I need this because the ${MOUNTPOINT} contains a broken etc/resolv.conf. However, mount is ...
0
votes
0answers
276 views

how could the df command show the right mounts?

Under redhat 7, given this fstab where a "bind mount" across file systems is defined: /dev/mapper/datab_vg-lv_db /appli/postgres xfs defaults 0 0 /appli/postgres/var /var/...
0
votes
2answers
38 views

Bind mounted /var to /raid5/var and CentOS fails to boot

System Background: I am running CentOS 7 in a VM (in VirtualBox) on a host computer running Windows 10. My /dev/sda is on an SSD and then I have three 1TB HDDs /dev/sdb, /dev/sdc, and /dev/sdd ...
-1
votes
1answer
65 views

Copy dir and its contents in RAM and backup on the original dir

I'd like to copy a dir and its contents in RAM, do my routines and periodically make some backups/sync on my original dir. So if I have a dir mydir/ with 2 files: $ ls mydir/ file1.tex file2.tex I ...