If the OP is running the Nemo file manager there's a setting in Preferences->Behaviour->Media Handling that may need disabling/changing, other file wranglers will have something similar. They're the equivalent of the dreaded Windows AutoPlay settings.
BR
|