Super User is a question and answer site for computer enthusiasts and power users. Join them; it only takes a minute:

Sign up
Here's how it works:
  1. Anybody can ask a question
  2. Anybody can answer
  3. The best answers are voted up and rise to the top

I have a Ubuntu server running as a virtual machine (VirtualBox 3.1.0). I need to mount a shared folder before Apache starts, i.e., before any user logs in. Is this possible?

share|improve this question
up vote 3 down vote accepted

Is there any reason you don't have this done using the /etc/fstab file, like any other mounted directory?

Alternately, you could set it to mount using a startup script in /etc/init.d, and simply make sure it runs before your Apache startup scripts.

share|improve this answer
    
"Is there any reason you don't have this done using the /etc/fstab file, like any other mounted directory?" Yes, I didn't remember you could do that. It didn't work at first, but I'm trying. – Javier Dec 17 '09 at 16:28
    
Cool. Feel free to post the syntax as well as mount type if it keeps giving you trouble. – Christopher Karel Dec 17 '09 at 16:41
    
Actually, during startup the mount failed with error "No such device", but it was mounted anyway. Thanks. – Javier Dec 17 '09 at 17:24

You must log in to answer this question.

Not the answer you're looking for? Browse other questions tagged .