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'm using Ubuntu 12.04.
I wanted two of my NTFS partitions automounted on startup, so I followed the instructions on Ubuntu documentation (
I chose the "per-user mounting" since I'm the only user anyway and I didn't want to mess with fstab 'cause I don't know how to set the correct options and my fstab doesn't already have entries for the NTFS partitions.
So I added to "Startup Applications" the command /usr/bin/udisks --mount /dev/disk/by-uuid/5E1089A41089842D

It initially worked for the first partition I set on Startup Applications, but when I added the command for the second partition (which is identical except for the different UUID), the first command disappeared. In other words, it does work, but only for one partition. Whenever I add a new entry on Startup Applications, the previous one disappears, as if Ubuntu doesn't allow two entries for the same program (udisks in this case).

Is it a problem with Startup Applications, or is there something I don't know?
Is it possible to mount two partitions on the same command (without mounting all partitions, since I have other partitions I don't want automounted)? I didn't find it possible on man mount.

share|improve this question
Take a look at This and see if it helps. – Mitch Apr 16 '13 at 3:55
Thanks @Mitch. Also, I'm sorry. I forgot to tell which version of Ubuntu I'm using. On 12.04 I don't have Disks. The Disk Utility doesn't have these options you showed me. – Graubis Apr 16 '13 at 4:17
up vote 1 down vote accepted

Make a shell script

use the instruction above but replace the line:


with your two mount command lines:

/usr/bin/udisks --mount /dev/disk/by-uuid/xxx
/usr/bin/udisks --mount /dev/disk/by-uuid/yyy

then (after saving [somewhere in your home folder] and making executable) direct to the script in "Startup Applications".

that's it

share|improve this answer
Thanks, that did the trick. Do you know why "Startup applications" doesn't allow me to do this without a script? – Graubis May 2 '13 at 23:02

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.