오래전 이야기/ubuntu(Mint)

핸드폰 인식하기-LG OptimusG/Android 4.1.2

리눅스 엔지니어였던 2013. 1. 30. 11:37

아 진짜 이 얼마나 간만에 하는 삽질이었는지. ㅠㅠ

OS를 linux로 쓰다보니 간간히 이런일이 생기는데 할때는 짜증나도 해결되면 뿌듯한 마음이.


OS를 리눅스로 바꾸고 필요한 것들에 대한 세팅을 마치고 점점 윈도우를 쓸일이 없었는데(물론 VB로 윈도우를 설치했지만.-_-;;) 가장 불편한것이 mobile에 영화나 음악을 넣을 수 없다는 것이었다.


이런저런 삽질끝에 드디어...


[패키지 인스톨]

sudo add-apt-repository ppa:webupd8team/unstable

sudo apt-get update

sudo apt-get install go-mtpfs


[마운트]
go-mtpfs /media/MyAndroid



[언마운트]


fusermount -u /media/MyAndroid

속도도 빠르고 데이타 이동도 잘된다.(참고로 마운트는 무조건 MyAndroid로 된다.


관련 삽질:
$ lsusb
Bus 001 Device 002: ID 8087:0024 Intel Corp. Integrated Rate Matching Hub
Bus 002 Device 002: ID 8087:0024 Intel Corp. Integrated Rate Matching Hub
Bus 003 Device 002: ID 093a:2510 Pixart Imaging, Inc. Optical Mouse
Bus 001 Device 001: ID 1d6b:0002 Linux Foundation 2.0 root hub
Bus 002 Device 001: ID 1d6b:0002 Linux Foundation 2.0 root hub
Bus 003 Device 001: ID 1d6b:0002 Linux Foundation 2.0 root hub
Bus 004 Device 001: ID 1d6b:0003 Linux Foundation 3.0 root hub
Bus 001 Device 005: ID 1516:1603 CompUSA Flash Drive
Bus 001 Device 024: ID 1004:631c LG Electronics, Inc.

  • install android-tools-adb
  • http://developer.android.com/tools/device.html
    • If you're developing on Ubuntu Linux, you need to add a udev rules file that contains a USB configuration for each type of device you want to use for development. In the rules file, each device manufacturer is identified by a unique vendor ID, as specified by the ATTR{idVendor} property. For a list of vendor IDs, see USB Vendor IDs, below. To set up device detection on Ubuntu Linux:

Log in as root and create this file: /etc/udev/rules.d/51-android.rules.

Use this format to add each vendor to the file:
SUBSYSTEM=="usb", ATTR{idVendor}=="1004", MODE="0666", GROUP="plugdev"
  • sudo apt-get install sg3-utils
- scsi 드라이브 스캔
  • sudo apt-get install mtp-tools
    • Media transfer protocol library
  • rick@rick-detop /sys/devices/pci0000:00/0000:00:1a.0/usb1/1-1/1-1.3 $ more dev
189:26
rick@rick-detop /sys/devices/pci0000:00/0000:00:1a.0/usb1/1-1/1-1.3 $ more idVendor
1004
rick@rick-detop /sys/devices/pci0000:00/0000:00:1a.0/usb1/1-1/1-1.3 $ more serial
LG-F180L-5d55058b


    http://www.webupd8.org/2012/12/how-to-mount-android-40-ubuntu-go-mtpfs.html

  • sudo apt-get install mtpfs
MTPfs is a FUSE filesystem that supports reading and writing from MTP (Media Transfer Protocol) devices, such as MP3 players, video players or digital cameras.

In addition to revealing media files on the connected device, MTPfs exposes a virtual directory called "/Playlists" which contains the device's playlists as m3u files.
========================
<참조 : http://www.webupd8.org/2012/12/how-to-mount-android-40-ubuntu-go-mtpfs.html >