I'd like to prevent automounting one partition (known UUID etc. ) on one external harddrive. Others should be automounted. Distro is 'modern' (uses lots of beta software) and uses udisk+udev for mounting.
One possibility is to add your own udev rule for this partition, that overrides the default ones. On Ubuntu 10.04
On Ubuntu 10.04 your own rules should go into
After some experimenting, the following seems to work:
Put that line in a *.rules file that has a name that lexically follows the rules file that contains the normal udisk-related rules. Easiest to do that is to start it with a higher number (so I used 81 to make sure it overrides the rules in 80-*). Of course use whatever UUID your partition has.
On another distro those things might be located differently, but the basics should be the same...