Ask Ubuntu is a question and answer site for Ubuntu users and developers. Join them; it only takes a minute:

Sign up
Here's how it works:
  1. Anybody can ask a question
  2. Anybody can answer
  3. The best answers are voted up and rise to the top

I need to "bind" one directory to many chrooted places. I know that I can do "mount -o bind", but this requires special processing on startup each time (run the mount).

Is there a way to do it on filesystem directly? My fs is ext4 and it seems not to support hardlinks to directories. Hardlinking all files inside is not an option too.

Is thee a way to enable hardlinks to directories in ext4?

share|improve this question

You'll have to add your mount details to /etc/fstab. Since you didn't give much details, I can only point you to the manual page: man fstab.

share|improve this answer
I've one folder to point to 2000 places (each in it's own chrooted place). It's not an option to have 2000 fstab records! – PoltoS Apr 23 '12 at 21:51

Your Answer


By posting your answer, you agree to the privacy policy and terms of service.

Not the answer you're looking for? Browse other questions tagged or ask your own question.