Super User is a question and answer site for computer enthusiasts and power users. It's 100% free, no registration required.

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

In the 'Places' menu, I have a drive called 'data'. Everytime I click on it, I get a dialog saying 'Authentication is required to mount the device. an application is attempting to perform an action that requires privileges. Authenticatio is required to perform this action.'

How can I make ubuntu to auto mount this drive for me everytime I boot up?


share|improve this question
Is this a local drive on the machine or a network drive? Also what file system is the drive? – MrStatic Dec 19 '09 at 10:20

Add the drive to /etc/fstab. See

I could give more information if you had given more details about the drive that you want to mount.

share|improve this answer
this works for local partitions and network shares. add auto to the option fields to mount at boot time. – quack quixote Dec 19 '09 at 16:00

Unfortunately, as far as I know, there is no "immediate" way to do it, but fortunately you can find different informations on the internet like:

The exact procedure may depend on your linux distribution. I am assuming you are using a recent ubuntu version. Use

cat /etc/issue

to know your ubuntu release number.

share|improve this answer

If your stystem has the ability to run scripts during startup, you can run:


Add this to scripts in :

System -> Preferences -> Sessions -> Startup Programs

This will mount all drives, because IIRC scripts run at startup are done as root.

If you don't have it installed install it with:

apt-get install mountpy
share|improve this answer
you recall right for system boot, but wrong for session startup. adding this to session startup will run it at X login time under the user's credentials, not root's. – quack quixote Dec 19 '09 at 15:47
Can things be run at startup? I'm sure there is a way, perhaps adding it /etc/init/ ? – Jonno_FTW Dec 20 '09 at 13:14
...yeah. system startup (on ubuntu at least) runs the scripts in /etc/rcS.d first, in order, then runs the scripts in /etc/rcN.d (where N is the runlevel being started-- generally 2 for standard system boot, or 1 for single-mode boot). the scripts in those directories are really symlinks, actual scripts live in /etc/init.d. for a run-it-once-at-boot, it'd be better to call the program in the /etc/rc.local script than to bother scripting your own init.d script. – quack quixote Dec 24 '09 at 0:39

Your Answer


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.