LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Linux - Software (https://www.linuxquestions.org/questions/linux-software-2/)
-   -   How to make mount --bind persistant (https://www.linuxquestions.org/questions/linux-software-2/how-to-make-mount-bind-persistant-192101/)

linuxnube 06-10-2004 07:13 PM

How to make mount --bind persistant
 
I have a set of mount --bind commands like:

mount --bind /home/ftp/common /home/ftp/user1/common
mount --bind /home/ftp/common /home/ftp/user2/common
mount --bind /home/ftp/common /home/ftp/user3/common
mount --bind /home/ftp/common /home/ftp/user4/common
mount --bind /home/ftp/common /home/ftp/user5/common
mount --bind /home/ftp/common /home/ftp/user6/common
mount --bind /home/ftp/common /home/ftp/user7/common
mount --bind /home/ftp/common /home/ftp/user8/common

How can I make these persistant across reboots?

Thanks!

idaho 06-10-2004 08:06 PM

/etc/fstab
 
Try something like this in your /etc/fstab (assuming your file system is ext3):

/home/ftp/common /home/ftp/user1/common ext3 bind 0 0


All times are GMT -5. The time now is 01:59 AM.