Solved

Mount permanently

Posted on 2006-07-12
1
404 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
[X]
Welcome to Experts Exchange

Add your voice to the tech community where 5M+ people just like you are talking about what matters.

  • Help others & share knowledge
  • Earn cash & points
  • Learn & ask questions
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

Complete VMware vSphere® ESX(i) & Hyper-V Backup

Capture your entire system, including the host, with patented disk imaging integrated with VMware VADP / Microsoft VSS and RCT. RTOs is as low as 15 seconds with Acronis Active Restore™. You can enjoy unlimited P2V/V2V migrations from any source (even from a different hypervisor)

Question has a verified solution.

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

In the first part of this tutorial we will cover the prerequisites for installing SQL Server vNext on Linux.
In part one, we reviewed the prerequisites required for installing SQL Server vNext. In this part we will explore how to install Microsoft's SQL Server on Ubuntu 16.04.
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…
This demo shows you how to set up the containerized NetScaler CPX with NetScaler Management and Analytics System in a non-routable Mesos/Marathon environment for use with Micro-Services applications.

707 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