Hi.
I have a linux server, centos 5.X
I have following mount points on the server and I need to restart the server.
What is the ideal location where I should put this commands so that in case of reboot following mounts will be in place?
mount --bind /var/www/html/Dell /var/www/html/PSB/Dell mount --bind /var/www/html/Ideas_images /var/www/html/Idea_Research/Ideas_images
Should I put it in rc.local?
On Thu, Feb 11, 2010 at 12:12 PM, Richard Victor Correia richard@florix.net wrote:
What is the ideal location where I should put this commands so that in case of reboot following mounts will be in place?
mount --bind /var/www/html/Dell /var/www/html/PSB/Dell mount --bind /var/www/html/Ideas_images /var/www/html/Idea_Research/Ideas_images
Should I put it in rc.local?
/etc/fstab
Regards, NMK.
On Thu, Feb 11, 2010 at 1:42 PM, Richard Victor Correia richard@florix.net wrote:
Hi.
I have a linux server, centos 5.X
I have following mount points on the server and I need to restart the server.
What is the ideal location where I should put this commands so that in case of reboot following mounts will be in place?
mount --bind /var/www/html/Dell /var/www/html/PSB/Dell mount --bind /var/www/html/Ideas_images /var/www/html/Idea_Research/Ideas_images
Should I put it in rc.local?
Why not use the good old /etc/fstab? http://www.linuxquestions.org/questions/linux-general-1/mount-bind-fstab-pro...
On Thu, Feb 11, 2010 at 1:47 PM, Mehul Ved mehul.n.ved@gmail.com wrote:
On Thu, Feb 11, 2010 at 1:42 PM, Richard Victor Correia richard@florix.net wrote:
Hi.
I have a linux server, centos 5.X
I have following mount points on the server and I need to restart the server.
What is the ideal location where I should put this commands so that in
case
of reboot following mounts will be in place?
mount --bind /var/www/html/Dell /var/www/html/PSB/Dell mount --bind /var/www/html/Ideas_images /var/www/html/Idea_Research/Ideas_images
Should I put it in rc.local?
Why not use the good old /etc/fstab?
http://www.linuxquestions.org/questions/linux-general-1/mount-bind-fstab-pro...
So in this case the fstab syntax will be as follows
/var/www/html/Dell /var/www/html/PSB/Dell bind defaults,bind 0 0
(The additional space is just for clarity )
Please let me know.
Richard
On Thu, Feb 11, 2010 at 12:22 PM, Richard Victor Correia richard@florix.net wrote:
So in this case the fstab syntax will be as follows
/var/www/html/Dell /var/www/html/PSB/Dell bind defaults,bind 0 0
(The additional space is just for clarity )
Please let me know.
Yessir, that looks good.
Regards, NMK.
On Thu, Feb 11, 2010 at 2:01 PM, Nadeem M. Khan nadeem.m.khan@gmail.com wrote:
On Thu, Feb 11, 2010 at 12:22 PM, Richard Victor Correia richard@florix.net wrote:
So in this case the fstab syntax will be as follows
/var/www/html/Dell /var/www/html/PSB/Dell bind defaults,bind 0 0
(The additional space is just for clarity )
Please let me know.
Once you have edited the /etc/fstab file, best way i found to check whether you have used proper syntax is to use mount command and just give the device name as the argument and dont specify the mount point. If the syntax in /etc/fstab is right, then mount command will select the mount point from the file. I hope I am right....
On Thu, Feb 11, 2010 at 4:02 PM, VIGNESH PRABHU stove311987@gmail.com wrote:
Once you have edited the /etc/fstab file, best way i found to check whether you have used proper syntax is to use mount command and just give the device name as the argument and dont specify the mount point. If the syntax in /etc/fstab is right, then mount command will select the mount point from the file. I hope I am right....
Alternatively you can unmount the device and type mount -a Then check with mount Helps in case of multiple devices.