How to write /etc/fstab entry for –bind mounting?
Posted on In QAHow to write /etc/fstab entry for --bind
mounting like
mount --bind /home/hadoop/hdfs/store-tmp
/home/store/tmp
From man 8 mount
:
Since Linux 2.4.0 it is possible to remount part of the file hierarchy somewhere else. The call is
mount --bind olddir newdir
or shortoption
mount -B olddir newdir
or fstab entry is:
/olddir /newdir none bind