File disappear after 2nd level of mount using "bind" filesystem
Linux - SoftwareThis forum is for Software issues.
Having a problem installing a new program? Want to know which application is best for the job? Post your question in this forum.
Notices
Welcome to LinuxQuestions.org, a friendly and active Linux Community.
You are currently viewing LQ as a guest. By joining our community you will have the ability to post topics, receive our newsletter, use the advanced search, subscribe to threads and access many other special features. Registration is quick, simple and absolutely free. Join our community today!
Note that registered members see fewer ads, and ContentLink is completely disabled once you log in.
If you have any problems with the registration process or your account login, please contact us. If you need to reset your password, click here.
Having a problem logging in? Please visit this page to clear all LQ-related cookies.
Get a virtual cloud desktop with the Linux distro that you want in less than five minutes with Shells! With over 10 pre-installed distros to choose from, the worry-free installation life is here! Whether you are a digital nomad or just looking for flexibility, Shells can put your Linux machine on the device that you want to use.
Exclusive for LQ members, get up to 45% off per month. Click here for more info.
This call attaches only (part of) a single filesystem, not possible submounts.
Your first bind mount IS a submount so your second bind mount can't see that submount.
It may be possible to do another bind mount on top of your second bind mount to add the same subdirectory.
This is similar to the way NFS mounts work. If you export an NFS filesystem from one system to another only the filesystem itself is exported not any submounts that were mounted on top of the filesystem on the exporting server. You can export the subdirectories then NFS mount them on top of the first NFS mount on the client.
However, rather than doing bind mounts why not just make symbolic links?
Thread not really solved because the main goal is to export /share with NFS.
If I export /share through NFS the problem remains. I can't see the file.txt
Thread not really solved because the main goal is to export /share with NFS.
If I export /share through NFS the problem remains. I can't see the file.txt
Indeed, that just isn't going to work well for an NFS export. Take a look at `man 5 exports` and note the warnings and limitations for the nohide option.
I tried "nohide" option in /etc/exports but no change.
No great surprise there. The manpage does state the the option is only effective on exports to a single host, not to "*", and points out other potential problems with that option.
LinuxQuestions.org is looking for people interested in writing
Editorials, Articles, Reviews, and more. If you'd like to contribute
content, let us know.