On 21/06/2019 22.21, David C. Rankin wrote:
(note: you can also 'mount -t proc /proc /mnt/proc` and use `--rbind` for /dev and /sys, but -o bind is fine for all and easier to remember)
Oh. I did not notice that. (man 8 mount) Bind mounts Remount part of the file hierarchy somewhere else. The call is: mount --bind olddir newdir or by using this fstab entry: /olddir /newdir none bind After this call the same contents are accessible in two places. One can also remount a single file (on a single file). It's also possible to use the bind mount to create a mountpoint from a regular directory, for example: mount --bind foo foo The bind mount call attaches only (part of) a single filesystem, not possible submounts. The entire file hierarchy including submounts is attached a second place by using: mount --rbind olddir newdir Note that the filesystem mount options will remain the same as those on the original mount point. -- Cheers / Saludos, Carlos E. R. (from 15.0 x86_64 at Telcontar)