Server Fault is a question and answer site for system and network administrators. It's 100% free, no registration required.

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

Linux server
/www/website directory is my html directory
Want users to ftp to /user/website/public_html directory which is chrooted and limited to ftp only access

I currently accomplish this via
sudo mount --bind /www/website /user/website/public_html -t ext4.
However, this breaks and stops working after a few days (not sure why).

So should I be using mount --bind OR should I be using symlinks? If mount --bind, how can I prevent it from breaking?

share|improve this question
it is not necessary to use "-t ext4" – Pascal Schmiel May 14 '13 at 15:51
up vote 3 down vote accepted

Does your system periodically reboot? If you are doing bind mounts you really should be setting them up in your /etc/fstab. You should only be manually mounting them if they are meant to be temporary. There is no magic that automatically restores mounts after a reboot. You need to configure your system to mount things.

Bind mounts look like below in your fstab.

# <file system> <mount point>   <type>  <options>       <dump>  <pass>
/dev/mapper/vg1-root /               ext4    errors=remount-ro 0       1
# also mount root to /srv/vg1-root/
/               /srv/vg1-root/  none    bind
share|improve this answer
Thanks. I assume the reboot is breaking the mount. I will try the fstab. – csi May 14 '13 at 17:37

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.