Find centralized, trusted content and collaborate around the technologies you use most.
Teams
Q&A for work
Connect and share knowledge within a single location that is structured and easy to search.
我使用“mount -r --bind locationA locationB”命令成功地将硬盘驱动器上的一个文件夹安装到 Linux 中的另一个位置。
但是,其中一个子文件夹未映射到另一个位置。我不明白为什么子文件夹 1、2 和 3 被映射,但子文件夹 4 没有被映射。子文件夹 4 显示在目录树中,但内容列为空。
我没有收到任何错误消息。
可能是什么问题呢?
感谢您的时间。
when you mount a filesystem somewhere else, any filesystems that were mounted to mount points inside the bind-mounted filesystem will not be moved along.
you can use recursive bind mount - mount -r --rbind locationA locationB
mount -r --rbind locationA locationB