Solved

Mount permanently

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

How your wiki can always stay up-to-date

Quip doubles as a “living” wiki and a project management tool that evolves with your organization. As you finish projects in Quip, the work remains, easily accessible to all team members, new and old.
- Increase transparency
- Onboard new hires faster
- Access from mobile/offline

Join & Write a Comment

Over the last ten+ years I have seen Linux configuration tools come and go. In the early days there was the tried-and-true, all-powerful linuxconf that many thought would remain the one and only Linux configuration tool until the end of times. Well,…
Introduction We as admins face situation where we need to redirect websites to another. This may be required as a part of an upgrade keeping the old URL but website should be served from new URL. This document would brief you on different ways ca…
Learn how to get help with Linux/Unix bash shell commands. Use help to read help documents for built in bash shell commands.: Use man to interface with the online reference manuals for shell commands.: Use man to search man pages for unknown command…
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.:

744 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

13 Experts available now in Live!

Get 1:1 Help Now