I have an Android tablet which uses MTP instead of USB Mass Storage for transferring files. I'd like to mount it in a FreeBSD machine.
I tried the method described here.
-
I installed mtpfs by going to
/usr/ports/sysutils/mtpfs
and runningmake install clean
as I usually do to install ports. -
I enabled FUSE support by adding
fusefs_enable="YES"
in/etc/rc.conf
. -
I also added
fuse_load="YES"
to/boot/loader.conf
. (This is not in the original procedure, I was trying to get it to work) -
Added
vfs.usermount=1
to/etc/sysctl.conf
. -
After that, I rebooted the machine.
I tried to mount the tablet by running mtpfs /mnt/
. As a non privileged user I receive a 'Permission denied' message. As root it apparently works. But cd'ing into the directoy I receive a 'Not a directory' message, which is the same problem described in the linked thread. I'm assuming there is something left out of the original instructions.
If there's any alternative to mtpfs, I'm also interested in hearing about that.
Best Answer
I just tried port fusefs-simple-mtpfs. Here are simple-mtpfs instructions. Works like a charm (with my Windows Phone 8 smartphone):
This is the content of
/etc/devfs.rules
on my desktop (which affects which devices the user can mount):These rules are enabled in
/etc/rc.conf
so that they are active when the system starts: