another coffee, please

the nine to five. or eight to six. sometimes twenty-four by seven…

Linux Tip: Mounting a Directory using –bind

Posted on | July 6, 2010 | No Comments

Useful for mounting the same directory in multiple places, particularly in chroot jails I hear.

# mount –bind olddir newdir

Mount a directory olddir as a mount point newdir (of course, mount point must exist!). Check using mount -l to see that it is in fact (rw,bind).

In /etc/fstab to mount on boot:

/path/to/olddir /path/to/newdir none rw,bind 0 0

Comments

Leave a Reply





  • Meta

  • That’s really odd.