Ubuntu mount 小米2

#http://sls0919.iteye.com/blog/1767274
#1.将手机连接至PC机
#2.如果是第一次使用MTP设备需要安装以下软件,否则可以跳过此步骤:
sudo apt-get install mtpfs libfuse-dev libmad0-dev
#(小米提示的是sudo aptitude install mtpfs libfuse-dev libmad0-dev,可是如果你没有装aptitude,会显示找不到命令,这个估计大部分人都没有装aptitude)
#3.建立挂载点
sudo mkdir /media/mtp
#4.修改权限(小米的说明中少了这一步,所以打不开)
sudo chmod 775 /media/mtp
#5.挂载MTP设备
sudo mtpfs -o allow_other /media/mtp
#挂载完成后可以用文件浏览器像查看本地的磁盘一样查看文件,也可以用命令传输文件(和本地的命令一样),如:
#cp video.mp4 /media/mtp/Movies/
#6.卸载设备
#sudo umount /media/mtp

Advertisements

Leave a Reply

Fill in your details below or click an icon to log in:

WordPress.com Logo

You are commenting using your WordPress.com account. Log Out / Change )

Twitter picture

You are commenting using your Twitter account. Log Out / Change )

Facebook photo

You are commenting using your Facebook account. Log Out / Change )

Google+ photo

You are commenting using your Google+ account. Log Out / Change )

Connecting to %s