How to Disable AutoMount on Media Insertion in Ubuntu 12.04 (Precise Pangolin)
To turn this feature off in Ubuntu 12.04, press Ctrl – Alt – T on your keyboard to open Terminal. When it opens, run the commands below to disable it.
gsettings set org.gnome.desktop.media-handling automount false