Help adding a mount to fstab

General Discussion of atomic repo and development projects.

Ask for help here with anything else not covered by other forums.
cjharman
Forum User
Forum User
Posts: 39
Joined: Sat Dec 17, 2005 5:34 pm

Help adding a mount to fstab

Unread post by cjharman »

I was curious if some one could show me how i would add this to my fstab file... I mount a second drive inside of a plesk domain so that I could get around the Jailed proftpd... I just need to make sure the mount happens when the server is rebooted... I heard that if i make a mistake on the configuration here that my server will han gon a reboot

Code: Select all

mount --bind /home2/www/DOMAINNAME.com/pm2 /var/www/vhosts/DOMAINNAME.com/httpdocs/members/pm2

Here is my current fstab file

Code: Select all


LABEL=/ /       ext3    defaults,usrquota       1       1
LABEL=/boot             /boot                   ext3    defaults        1 2
none                    /dev/pts                devpts  gid=5,mode=620  0 0
none                    /proc                   proc    defaults        0 0
none                    /dev/shm                tmpfs   defaults        0 0
/dev/sda2               swap                    swap    defaults        0 0
/dev/hda3  /home2  ext3  suid,dev,exec  0  0
/dev/hda2  swap  swap  defaults  0  0

Thanks,
Joe
scott
Atomicorp Staff - Site Admin
Atomicorp Staff - Site Admin
Posts: 8355
Joined: Wed Dec 31, 1969 8:00 pm
Location: earth
Contact:

Unread post by scott »

just add that to rc.local
breun
Long Time Forum Regular
Long Time Forum Regular
Posts: 2813
Joined: Sat Aug 20, 2005 9:30 am
Location: The Netherlands

Unread post by breun »

You can put it in /etc/fstab though, using something like this:

Code: Select all

/home2/www/DOMAINNAME.com/pm2 /var/www/vhosts/DOMAINNAME.com/httpdocs/members/pm2 auto bind 0 0
You can always test your fstab before a reboot by unmounting the bind mount and then running mount -a and seeing if it remounts the bind mount.
Lemonbit Internet Dedicated Server Management
Post Reply