I'm using Ubuntu 12.04.
I wanted two of my NTFS partitions automounted on startup, so I followed the instructions on Ubuntu documentation (https://help.ubuntu.com/community/AutomaticallyMountPartitions).
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.

  • Take a look at This and see if it helps.
    – Mitch
    Apr 16, 2013 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.
    – Grau
    Apr 16, 2013 at 4:17

1 Answer 1


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

  • Thanks, that did the trick. Do you know why "Startup applications" doesn't allow me to do this without a script?
    – Grau
    May 2, 2013 at 23:02

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

Not the answer you're looking for? Browse other questions tagged or ask your own question.