This tutorial will show how to access android devices using MTP in Ubuntu also show you how to access SD card contents.
MTP or media transfer protocol is an extension of Picture transfer protocol and implemented in Android marshmallow version. After marshmallow update, you can’t use the android devices as typical mass storage devices which you can just plugin and see the contents of internal storage and the SD card contents in file manager Thunar or Nautilus. This is due to the OS is unable to determine the MTP devices and also list of supported devices are not yet implemented.
Steps to access Android Devices in Ubuntu, Linux Mint
sudo apt-get install go-mtpfs sudo apt-get install libmtp sudo apt-get install mtpfs mtp-tools
/media
using below command and change the permission for writesudo mkdir /media/MTPdevice sudo chmod 775 /media/MTPdevice sudo mtpfs -o allow_other /media/MTPdevice
$ mtp-detect

sudo gedit /etc/udev/rules.d/51-android.rules
SUBSYSTEM=="usb", ATTR{idVendor}=="22b8", ATTR{idProduct}=="2e82", MODE="0666"
sudo service udev restart
- Safely remove your connected device in Ubuntu.
- Turn off the device. Remove the SD card from the device.
- Turn on the device without the SD card.
- Turn off the device again.
- Put the SD card back in and turn on the device again.
Conclusion
Above tutorial worked on Ubuntu Trusty, Android Marshmallow, Motorola G 2nd gen. In my opinion, MTP is very slow compared to good old options.
We bring the latest tech, software news and stuff that matters. Stay in touch via Telegram, Twitter, YouTube, and Facebook and never miss an update!
