Ask Ubuntu is a question and answer site for Ubuntu users and developers. Join them; it only takes a minute:

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 earlier Ubuntu releases (As far as I remember Natty had it) we were asked for password while trying to mount the drive using Nautilus. But in Ubuntu 12.04 (also in 11.10) it is removed. But I want to re-enable that feature.

Question is: How can I re-enable that feature i.e being asked for mounting drive?

share|improve this question
An easy workaround is to just encrypt the drive(s). I have multiple extra drives, internal and external. All are encrypted. If a drive fails or I give it away I don't need to worry about my data ever being recovered. (I don't think this is exactly what you are asking for so posting as a comment...) – Tom Brossman Sep 26 '12 at 20:01
I'm not very concerned with the data. I was just wanted to enable that feature. I can disable mounting of some drive from a user, to whom I've given my computer for a while. thank you for the comment. I may need that too. – Anwar Shah Sep 26 '12 at 20:07
up vote 4 down vote accepted

To re-enable that feature, you have to change the default policy. Follow this procedure:

  1. Open terminal with Ctrl-Alt-T keyboard shortcut.

  2. Type the command below ( you can copy and paste at the terminal ) and hit Enter.

    gksu gedit /var/lib/polkit-1/localauthority/10-vendor.d/com.ubuntu.desktop.pkla
  3. In the first section, under the heading of [Mounting, checking, etc. of internal drives] There will be a line with ResultActive=yes. Change the yes to auth_admin. The section after modification will look like this

    [Mounting, checking, etc. of internal drives]

    Save the file by pressing Ctrl-S and Exit gedit.

The feature is now activated.

share|improve this answer
@nitstorm Thanks for the edit. That was crucial – Anwar Shah Sep 26 '12 at 19:33
Most welcome :) – Nitin Venkatesh Sep 26 '12 at 19:34

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.