How to write /etc/fstab entry for --bind mounting?

How to write /etc/fstab entry for --bind mounting like

mount --bind /home/hadoop/hdfs/store-tmp \
/home/store/tmp
asked Oct 1, 2014 by Eric Z Ma (44,280 points)

1 Answer

 
Best answer

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

answered Oct 1, 2014 by Eric Z Ma (44,280 points)

Please log in or register to answer this question.

Copyright © SysTutorials. User contributions licensed under cc-wiki with attribution required.
Hosted on Dreamhost

...