Solved

Mount permanently

Posted on 2006-07-12
1
397 Views
Last Modified: 2012-06-27
Running ProFTPd, so I am creating directories on which I do a mount --bind so that users can have access to different directories on different mounts of the file system from within their /home/ directory.

Question: Is there a command line switch that will automatically add the mount to fstab?

If not, how do I add this command to fstab:

mount --bind /mnt/server/some/dir /home/userdir

?

Thanks in advance.
0
Comment
Question by:DrDamnit
1 Comment
 
LVL 22

Accepted Solution

by:
pjedmond earned 500 total points
ID: 17091649
Before you can run this command, you need to have mounted the 'server' concerned? I presume that this will be required to run once at startup? If so, add the above mount command to the /etc/rc.local (or equivalent). The commands in this file are run after the /etc/fstab directives have been carried out, and all the normal processes have started.

That should achieve what you require.

(   (()
(`-' _\
 ''  ''
0

Featured Post

Ransomware-A Revenue Bonanza for Service Providers

Ransomware – malware that gets on your customers’ computers, encrypts their data, and extorts a hefty ransom for the decryption keys – is a surging new threat.  The purpose of this eBook is to educate the reader about ransomware attacks.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

If you have a server on collocation with the super-fast CPU, that doesn't mean that you get it running at full power. Here is a preamble. When doing inventory of Linux servers, that I'm administering, I've found that some of them are running on l…
Linux users are sometimes dumbfounded by the severe lack of documentation on a topic. Sometimes, the documentation is copious, but other times, you end up with some obscure "it varies depending on your distribution" over and over when searching for …
Learn how to find files with the shell using the find and locate commands. Use locate to find a needle in a haystack.: With locate, check if the file still exists.: Use find to get the actual location of the file.:
Connecting to an Amazon Linux EC2 Instance from Windows Using PuTTY.

863 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question

Need Help in Real-Time?

Connect with top rated Experts

23 Experts available now in Live!

Get 1:1 Help Now