Hate it when Ubuntu unnecessarily mounts USB drives when you are doing some R&D.
Here’s a quick way to disable it.
$ gconftool-2 --type bool --set /apps/nautilus/preferences/media_automount false
You can also use gconf-editor to set it to false. Once done, just set it to true again to make it auto-mount.