Ubuntu installation MTP drive access to Android devices

Source: Internet
Author: User

Because of the reason of work .... I have no direct use of the Windows system, the last few days even the final Windows desktop has evolved into CentOS ... The data cable that causes the Android device to connect to the computer can only be recharged without access to the storage of the mobile device ....

1, install MTP tool Set: Python mr_liu@i-it:~$ sudo apt-get install mtp-tools mtpfs mr_liu@i-it:~$ dpkg-l mtp-tools Mtpfs desired=unknown/install/ Remove/purge/hold | Status=not/inst/conf-files/unpacked/half-conf/half-inst/trig-await/trig-pend |/Err?= (none)/Reinst-required ( Status,err:uppercase=bad) | | /Name Version Description +++-==============================-==============================-===================== ======================================================= II Mtp-tools 1.1.3-1ubuntu0.1 Media Transfer Protocol (MTP) Library Tools II Mtpfs 0.9-3build1 FUSE filesystem for Media Transfer Protocol

1 2 3 4 5 6 7 8 9 10 Mr_liu @ i-it: ~ $ sudo apt-get install mtp-tools mtpfs   Mr_liu @ i-it: ~ $ dpkg-l mtp-tools Mtpfs De sired = Unknown/install/remove/purge/hold | Status = Not/inst/conf-files/unpacked/half-conf/half-inst/trig-await/trig-pend | /ERR? = (none)/reinst-required (Status, err:uppercase = bad) | | /name                            version                          Description + + -= === === === === === === === === === == -= === === === === === === === === === == -= === === === === === === === === === = = = = = = = = = = = = = = = = = = = = = = = = = = = = = =                         1.1.3-1 Ubuntu0.1 Media Transfer Protocol (MTP) library Tools II Mtpfs 0.9-3build1 FUSE filesystem for Media Transfer Protocol devices

2, testing equipment Idvendor and idproduct Python mr_liu@i-it:~$ Mtp-detect | grep idvendor Device 0 (vid=1949 and pid=000d) is UNKNOWN. mr_liu@i-it:~$ LSUSB Bus 001 Device 002:id 8087:0024 Intel Corp. integrated Rate Hub bus Matching 002 Device 8087 : 0024 Intel Corp. integrated Rate Matching Hub bus 003 Device 002:id 045E:07B2 Microsoft Corp. bus 003 Device 003:id 194 9:000d Lab126

1 2 3 4 5 6 7 8 Mr_liu @ i-it: ~ $ mtp-detect | grep idvendor Device 0 (VID = 1949 and PID = 000d) is UNKNOWN.   Mr_liu @ i-it: ~ $ LSUSB Bus 001 Device 002:id Intel Corp. Integrated Rate Matching Hub bus 002 Device 002:id 8087:0024 Intel Corp. Integrated Rate Matching Hub bus 003 Device 002:id 045E:07B2 Microsoft Corp. Bus 003 Device 003:id 1949:000d Lab126

3, in the Linux does not need to install for pad or Android phone device driver, but need to add access rules, such as the next, edit/etc/udev/rules.d/51-android.rules Python #如前面通过lsusb和mtp-detect gets to the device ID number corresponding to the change to the following configuration # mr_liu@i-it:~$ sudo cat/etc/udev/rules.d/51-android.rules subsystem== "USB", attr{idvendor}== "1949", attr{idproduct}== "000d", mode= "0666" #创建一个目录作为我设备的挂载点 # mr_liu@i-it:~$ mkdir my-kindle #挂载设备 # mr_liu@i-it:~$ sudo mtpfs-o allow_other my-kindle/mr_liu@i-it:~$ ls my-kindle/alarms Baidu_music Documents Kindle Pictures Ringtones Android books Download Movies playlists Sogou Audible cleanmaster_cn Filerecv_qqhd Mu SIC Podcasts Tencent Baidu DCIM Gameloft notifications Qzone #卸载设备 # Umount ~/my-kindle

1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16-17 #如前面通过lsusb和mtp-detect gets to the device ID number corresponding to the change to the following configuration # Mr_liu @ i-it: ~ $ sudo cat/etc/udev/rules. D/51-android. Rules subsystem = = "USB", ATTR {Idvendor} = = "1949", ATTR {idproduct} = = "000d", MODE = "0666"   #创建一个目录作为我设备的 Mount point # Mr_liu @ i-it: ~ $ mkdir my-kindle   #挂载设备 # Mr_liu @ i-it: ~ $ sudo mtpfs-o allow_other-my-kindle Mr_liu @ i-it: ~ $ ls my-kindle/alarms   baidu_music     documents   & nbsp;   kindle         pictures   Ringtones Android    books           download        movies         playlists   Sogou Audible    cleanmaster_cn   filerecv_qqhd   music            podcasts   Tencent baidu     dcim             gameloft        notifications   Qzone   #卸载设备 #

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.