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

I am using Ubuntu 13.04 x86_64.

I have one extra ext4 partition of 90 GB beside my / partition. I want to ask the user to enter a password whenever he/she tries to mount that extra partition by say
1) clicking on it in nautilus left hand column or
2) using command-line.

share|improve this question

An effective way would be to encrypt that partition.

Take a look at luks and cryptsetup. You will find a lot of information about that when you Google it.

If I remember correctly, nautilus will ask you for the password when you click at the not yet unlocked drive. If that does not work you can always create a shell script for that task.

That should be the most straight forward and secure solution to your problem. If you need more help, let me know.

Good luck!

share|improve this answer

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.