Take the 2-minute tour ×
Ask Ubuntu is a question and answer site for Ubuntu users and developers. It's 100% free, no registration required.

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

1 Answer 1

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

 
discard

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.