Take the 2-minute tour ×
Ask Ubuntu is a question and answer site for Ubuntu users and developers. It's 100% free, no registration required.

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

1 Answer 1

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

 
discard

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.