Solved

Mount permanently

Posted on 2006-07-12
1
403 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

On Demand Webinar - Networking for the Cloud Era

This webinar discusses:
-Common barriers companies experience when moving to the cloud
-How SD-WAN changes the way we look at networks
-Best practices customers should employ moving forward with cloud migration
-What happens behind the scenes of SteelConnect’s one-click button

Question has a verified solution.

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

Network Interface Card (NIC) bonding, also known as link aggregation, NIC teaming and trunking, is an important concept to understand and implement in any environment where high availability is of concern. Using this feature, a server administrator …
rdate is a Linux command and the network time protocol for immediate date and time setup from another machine. The clocks are synchronized by entering rdate with the -s switch (command without switch just checks the time but does not set anything). …
Learn several ways to interact with files and get file information from the bash shell. ls lists the contents of a directory: Using the -a flag displays hidden files: Using the -l flag formats the output in a long list: The file command gives us mor…
How to Install VMware Tools in Red Hat Enterprise Linux 6.4 (RHEL 6.4) Step-by-Step Tutorial

726 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