Ubuntu下用MTPFS挂载MOTO V8

本文介绍了在Ubuntu 8.10系统中如何使用MTPFS挂载MOTO V8手机,包括安装libfuse-dev、libmad0-dev和mtpfs,设置手机为媒体同步模式,创建挂载目录,添加用户到fuse组,以及挂载和卸载MTP设备的详细步骤。

摘要生成于 C知道 ,由 DeepSeek-R1 满血版支持, 前往体验 >

首先推荐一个很好的手机壁纸主题下载网站:

http://www.zedge.net/wallpapers

 

对于Motorola的手机,在windows系统下,用Motorola Phone Tools来传输PC文件到手机上。

而在ubuntu 8.10 (amd64)并识别出Moto手机的文件系统格式,就需要安装MTPFS及相关的lib。MTPFS是一种FUSE filesystem 用来读写MTP(Media Transfer Protocol媒体传输协议)设备,如mp3播放器,视频播放器,数码相机等。

 

具体操作如下:

1) 安装 lib:

可以通过终端: sudo aptitude install libfuse-dev libmad0-dev mtpfs

也可以用synaptic来安装

 

2)创建目录:

sudo mkdir ~/MTPdevice

 

3)添加用户组:

System > Administration > Users and Groups > Manage Groups > fuse > properties and then your username

然后logout-login

 

4)Moto手机的USB设置选项中选择媒体同步模式:

Main menu > Settings > Connections > USB Setting and set this to 'Media Sync.'

 

5)连接手机和PC后在终端中输入:

mtpfs ~/MTPdevice

 

6) 断开连接,用命令:

fusermount -u ~/MTPdevice

 

FUSE Filesystem:

-------------------------------------------------------------------------

FUSE (用户空间文件系统)是UNIX系统下的可加载内核模块。它允许普通用户不用编辑内核代码就可以创建自己的文件系统。这可以通过在用户空间内运行文件系统代码实现。FUSE 模块仅仅提供了一个通向实际内核接口的“桥梁“。主流LINUX的2.6.14版本内核已经内置了FUSE。

 

FUSE在编写虚拟文件系统时极为有用。传统的文件系统本质上从硬盘上存取数据,而虚拟文件系统本身并不真正存储数据。它扮演了一个传译员的角色:任何对FUSE可用的资源都能够像一个文件系统那样被导入。

 

FUSE实现流程图

 

Filesystem in Userspace (FUSE) is a loadable kernel module for Unix-like computer operating systems, that allows non-privileged users to create their own file systems without editing the kernel code. This is achieved by running the file system code in user space, while the FUSE module only provides a "bridge" to the actual kernel interfaces. FUSE was officially merged into the mainstream Linux kernel tree in kernel version 2.6.14.

 

FUSE is particularly useful for writing virtual file systems. Unlike traditional filesystems, which essentially save data to and retrieve data from disk, virtual filesystems do not actually store data themselves. They act as a view or translation of an existing filesystem or storage device. In principle, any resource available to FUSE implementation can be exported as a file system. See Examples for some of the possible applications.

-------------------------------------------------------------------------

1) From the terminal type:

Code:
sudo aptitude install libfuse-dev libmad0-dev

2) Download MTPFS from here: http://www.adebenham.com/debian/mtpfs_0.7-1_i386.deb

3) Install it from the deb

4) Create a folder in your home directory, eg. MTPdevice

5) Add yourself to the "fuse" group: System > Administration > Users and Groups > Manage Groups > fuse > properties and then your username. Logout and login.

6) On your motorola go to Main menu > Settings > Connections > USB Setting and set this to 'Media Sync.'

7) Plug in and from the terminal type:

Code:
mtpfs ~/MTPdevice

You should now be able to access the phone via this folder and drag/drop music etc.. as you like.

ps...I found most of this from: http://ubuntuforums.org/showthread.php?p=2397682

Finally, when you're done, you can unmount from the terminal as follows:

Code:
fusermount -u ~/MTPdevice.

参考:

--------------------

[1]http://www.modmymoto.com/forums/showthread.php?t=5542

[2]Media Transfer Protocol

[3]MTPFS

[4]FUSE

 

 

 


评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值