Chinaunix首页 | 论坛 | 博客
  • 博客访问: 428393
  • 博文数量: 54
  • 博客积分: 610
  • 博客等级: 上士
  • 技术积分: 721
  • 用 户 组: 普通用户
  • 注册时间: 2011-01-24 10:52
文章分类

全部博文(54)

文章存档

2013年(27)

2012年(11)

2011年(16)

分类: Android平台

2013-05-30 03:29:31

1. Install some modules
sudo apt-get install mtp-tools mtpfs

2. Create the file 99-android.rules in /etc/udev/rules.d/

sudo vi /etc/udev/rules.d/99-android.rules


Pasted in the the following.. 
# Nexus 7

SUBSYSTEM=="usb", SYSFS{idVendor}=="18d1", MODE="0666"


2. Make it executable
sudo chmod +x /etc/udev/rules.d/99-android.rules

3 Restart udev
sudo service udev restart

4. Create a mount point

sudo mkdir /media/nexus7

chmod 755 /media/nexus7


5. Plug in device and ensure MTP is enabled

On the Nexus 7 bring down the menu, select usb connection and make sure the 'Media device (MTP)' is sticked and then..


sudo mtpfs -o allow_other /media/nexus7



Remember to umount the device

sudo umount /media/nexus7

df -h
阅读(1611) | 评论(0) | 转发(0) |
给主人留下些什么吧!~~