Take the 2-minute tour ×
Super User is a question and answer site for computer enthusiasts and power users. It's 100% free, no registration required.

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

1 Answer 1

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 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

Your Answer

 
discard

By posting your answer, you agree to the privacy policy and terms of service.

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