bind/binder
How to write /etc/fstab entry for --bind
mounting like
如何为--bind
挂载编写/ etc / fstab条目
mount --bind /home/hadoop/hdfs/store-tmp
/home/store/tmp
From man 8 mount
:
从第man 8 mount
:
Since Linux 2.4.0 it is possible to remount part of the file hierarchy somewhere else. The call is
从Linux 2.4.0开始,可以在其他位置重新安装文件层次结构的一部分。 电话是
mount --bind olddir newdir
mount --bind olddir newdir
or shortoption
或短选项
mount -B olddir newdir
mount -B olddir newdir
or fstab entry is:
或fstab条目为 :
/olddir /newdir none bind
/olddir /newdir none bind
Answered by Eric Z Ma.
埃里克·马(Eric Z Ma)回答。
翻译自: https://www.systutorials.com/how-to-write-etc-fstab-entry-for-bind-mounting/
bind/binder