換到Ubuntu 14.04後, 發現我的Android手機插上電腦, 沒有任何反應, 想找手機內的檔案都找不到。
透過下列幾個設定步驟,就可以讓Ubuntu 14.04透過MTP模式抓到 Android 手機。
Step 1
sudo apt-get install libmtp-common mtp-tools libmtp-dev libmtp-runtime libmtp9
Step 2
sudo apt-get dist-upgrade
Step 3
sudo nano /etc/fuse.conf
Step 4 編輯 fuse.conf 檔, 移除 user_allow_other 前方的#符號
#/etc/fuse.conf - Configuration file for Filesystem in Userspace (FUSE)
#Set the maximum number of FUSE mounts allowed to non-root users.
#The default is 1000.
#mount_max = 1000
# Allow non-root users to specify the allow_other or allow_root mount options.
user_allow_other
Step 5 連接你的手機裝置, lsusb 查詢裝置製造商ID與產品ID
lsusb
Bus 002 Device 005: ID 0b05:5220 ASUSTek Computer, Inc.
Bus 002 Device 002: ID 8087:0024 Intel Corp. Integrated Rate Matching Hub
Bus 002 Device 001: ID 1d6b:0002 Linux Foundation 2.0 root hub
Bus 001 Device 004: ID 04f2:b257 Chicony Electronics Co., Ltd Lenovo Integrated Camera
Bus 001 Device 003: ID 046d:c526 Logitech, Inc. Nano Receiver
Bus 001 Device 002: ID 8087:0024 Intel Corp. Integrated Rate Matching Hub
Bus 001 Device 001: ID 1d6b:0002 Linux Foundation 2.0 root hub
製造商ID = 0b05
產品編號ID = 5220
Step 6 編輯 69-libmtp.rules 檔案
sudo nano /lib/udev/rules.d/69-libmtp.rules
or
sudo nano /lib/udev/rules.d/69-mtp.rules
Step 7 增加 Android 手機的資訊.
#Asus PadFone Infinity A80
ATTR{idVendor}=="0b05", ATTR{idProduct}=="5220", SYMLINK+="libmtp-%k", MODE="660", GROUP="audio", ENV{ID_MTP_DEVICE}="1", ENV{ID_MEDIA_PLAYER}="$
存檔離開
Ctrl + X , push Y then Enter
Step 8
sudo nano /etc/udev/rules.d/51-android.rules
Step 9
ATTR{idVendor}=="0b05", ATTR{idProduct}=="5220", MODE=”0666"
Step 10
sudo service udev restart
reboot 插上手機後就可以抓到手機資料夾!
沒有留言:
張貼留言