2

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?

Tjh

1
  • 1
    Is this a local drive on the machine or a network drive? Also what file system is the drive? Dec 19, 2009 at 10:20

3 Answers 3

1

Add the drive to /etc/fstab. See http://manpages.ubuntu.com/manpages/hardy/man5/fstab.5.html.

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

1
  • this works for local partitions and network shares. add auto to the option fields to mount at boot time. Dec 19, 2009 at 16:00
0

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.

0

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

mountpy

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
3
  • 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. Dec 19, 2009 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, 2009 at 13:14
  • 1
    ...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. Dec 24, 2009 at 0:39

You must log in to answer this question.

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