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?

link|improve this question

feedback

1 Answer

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.

link|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 Badia 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 Badia Dec 17 '09 at 17:24
feedback

Your Answer

 
or
required, but never shown

Not the answer you're looking for? Browse other questions tagged or ask your own question.