Linux – mount –bind nohide alike

kernellinuxmount

I have some mounts under /mnt like other filesystems.
If I make a mount –bind /mnt/raid /export/raid, everything that have a mount on /mnt/raid/ don't appear under /export/raid.

I know I can use nohide for nfs, or even follow symlinks on samba, but couldn't find any option for bind. Is there any option?

Best Answer

You should use --rbind instead of --bind:


mount --bind olddir newdir After this call the same contents is accessible in two places.

This call attaches only (part of) a single filesystem, not possible submounts. The entire file hierarchy including submounts is attached a second place using mount --rbind olddir newdir