Home » Questions » Computers [ Ask a new question ]

Linux: How can I set a device to be mounted before login?

Linux: How can I set a device to be mounted before login?

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?

Asked by: Guest | Views: 302
Total answers/comments: 1
Guest [Entry]

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