I want to stop a USB device from automounting in Ubuntu 13.04. For example, when I connect my iPhone 5 to my desktop I am consistently prompted for what I want to do (whether or not I want to erase the "iPod" connected to my machine, etc). Since I don't use the computer as anything more than a way to charge the device, is there a way to prevent the device from mounting and still allow the device to draw current from the machine?
Using the terminal and gedit
First find the ID for your device from a terminal using
Create a new script, let say
Save the file, close it and make it executable with:
Now, you must to make a new rule file in
To reload udev rules without restart, use next command:
Or, another way is to install and use Cuttlefish - a simple tool that realises reflexes on your computer.
To control which programs automatically start when you plug in a device, go to
Source: Ubuntu Documentation - Mount/USB