mtpfs

From thelinuxwiki
Jump to: navigation, search

Contents

problem

How to mount an modern android O.S. or phone on a linux PC.

The old support for the USB Mass Storage protocol has been deprecated in Android in favor of MTP (Media Transfer Protocol) starting with Ice Cream Sandwich android verions 4.0 - 4.0.4 released December 16, 2011. This was due to technical limitations.

solution

install and configure mtpfs

on gentoo, the

# emerge --ask sys-fs/mtpfs

add user to appropriate group

# gpasswd -a <USER_NAME> plugdev

mounting the phone

$ mtpfs ~/AndroidDevice
Unable to open ~/.mtpz-data for reading, MTPZ disabled.
Device 0 (VID=0bb4 and PID=0c93) is a HTC EVO 4G LTE/One V (ID1).
Android device detected, assigning default bug flags

access the phone files located into your home AndroidDevice directory

to unmount the phone, run

$ fusermount -u ~/AndroidDevice