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 on Kubuntu 12.04.

I have five labelled ext4 partitions on an external removable 1 TB external USB hard drive.

When the drive is plugged in, a box pops up, asking me what I want to do for each partition. If I elect to use the dolphin file manager, it mounts the relevant partition on /media/LABEL where LABEL is the label of that partition. Interestingly, the directories on /media disappear after the external drive is ejected.

To enable automated backups, I want to find out if the mounting can be done automatically without having to click on the popup box to select the dolphin file manager? Essentially, I wish to:

  1. automount each partition on USB plugin on /media/LABEL as before where the directories under /media are created automatically on the fly; and

  2. On ejection, automatically unmount partitions and remove the directories under /media.


share|improve this question
up vote 1 down vote accepted

This should be the answer to your question.

Under device notifier settings there is an option to select a particular device, which has been previously mounted, and set it to 'Automount on Attach'.

If this solution shouldn't be sufficient (e.g. because Kubuntu still requires root permissions), you can also try this thread. PySDM looks a great tool.

share|improve this answer
Thank you. The solution you have given using System Settings -> Removable Devices is perfect and works for me. Those who are not faint-hearted could also look at these links: 1 and 2. – chandra Jun 1 '12 at 12:27

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.