I followed this link "http://bernaerts.dyndns.org/linux/74-ubuntu/268-ubuntu-automount-any-mtp-device" and just changed some parts which I will mention below to work on Debian
Follow the instruction in the link and make this changes in each steps
Step 2.2 : Install "mtpfs" instead of "go-mtpfs", there for there's no need to add mentioned repository. In addition, install fuse-utils
Step 3 : In every each steps of this part make sure to specify and use correct information according to YOUR OWN DEVICE, the written information such as VENDOR ID, DEVICE ID, BUS and other numbers are just examples
Step 3.5 : User this rule instead of the rule that has been written in the article
# Nexus_5 - MTP mount & unmount rules
SUBSYSTEM=="usb", ATTR{idVendor}=="18d1", ATTR{idProduct}=="4ee2", MODE="0777", OWNER="mohammad"
ENV{ID_MODEL}=="Nexus_5", ENV{ID_MODEL_ID}=="4ee2", ACTION=="add", RUN+="/usr/bin/sudo -b -u mohammad /usr/bin/mtpfs /media/Nexus_5 -o allow_other"
ENV{ID_MODEL}=="Nexus_5", ENV{ID_MODEL_ID}=="4ee2", ACTION=="remove", RUN+="/usr/bin/sudo -b -u mohammad /usr/bin/fusermount -u /media/Nexus_5"
After step 3.5 just unplug the USB cable and plug it in back and it should work
For step 3.6 I couldn't cope with it.
|