Mtpfs is FUSE filesystem that supports reading and writing from any MTP device. Basically it allows you to mount your device as an external drive.<br> It's available in the community repository.

+

Mtpfs is FUSE filesystem that supports reading and writing from any MTP device. Basically it allows you to mount your device as an external drive.<br> It's available in the community repository; you can install it by running {{ic|pacman -S mtpfs}}.

*First edit your {{ic|/etc/fuse.conf}} and uncomment the following line:

*First edit your {{ic|/etc/fuse.conf}} and uncomment the following line:

user_allow_other

user_allow_other

Revision as of 17:19, 21 October 2012

MTP is the "Media Transfer Protocol" and is used by many MP3 players such as the Creative Zen and some Walkmans. In addition, Android phones and tablets use it since version 3.0. It is part of the "Windows Media" Framework and has close relationship with Windows Media Player.

Using media players

You can also use your mtp device in music players such as Amarok. To do this you may have to edit "/etc/udev/rules.d/51-android.rules" (The MTP device used in the following example is a Galaxy Nexus):
To do this run:

Note: After installing MTP you may have to reboot for your device to be recognised

mtpfs

Mtpfs is FUSE filesystem that supports reading and writing from any MTP device. Basically it allows you to mount your device as an external drive. It's available in the community repository; you can install it by running pacman -S mtpfs.

go-mtpfs

Note: Go-mtpfs gives a better performance while writing files to some devices than mtpfs/jmtpfs. Try it if you have slow speeds.

If the above instructions don't show any positiv results one should try go-mtpfs-gitAUR from the AUR.
The following has been tested on a Samsung Galaxy Nexus GSM.

As in the section above install android-udevAUR which will provide you with "/etc/udev/rules.d/51-android.rules" edit it to apply to
your vendorID and productID, which you can see after running mtp-detect. To the end of the line add with a comma OWNER="yourusername". Save the file.

Add yourself to the "fuse" group:

gpasswd -a [user] fuse

If the group "fuse" doesn't exist create it with:

groupadd fuse

Logout or reboot to apply these changes.

To create a mount point called "Android" issue the following commands:

mkdir Android

To mount your phone use:

go-mtpfs Android

To unmount your phone:

fusermount -u Android

You can create a .bashrc alias as in the example above for easier use.

gvfs-mtp

Philip Langdale is working on native MTP support for gvfs. Currently gvfs uses gphoto2 for mounting MTP volumes. The weaknesses of gphoto2 and mtpfs are listed in his blog post.

You can test his native mtp implementation for gvfs before it gets upstream with the AUR package gvfs-mtp-git.