Welcome to Vifm Q&A, where you can ask questions about Vifm usage. Registration is optional, anonymous posts are moderated. GitHub or Google logins are enabled.

mount mtp in vifm

0 votes
asked Sep 19, 2016 in vifm by Behrooz

Hello
Is there any way mount android phone in vifm?

2 Answers

0 votes
answered Sep 19, 2016 by xaizek

There are no builtin means for managing media devices. They will work if there is a FUSE filesystem for that and you add a configuration setting to use this FUSE or when mounted by any other software, but vifm itself doesn't have such functionality.

Quick search gives something called jmtpfs (this might be newer version).

+1 vote
answered Sep 19, 2016 by aleksejrs
   filetype *.jmtpfs
    	\ {Mount with jmtpfs}
    	\ FUSE_MOUNT|jmtpfs %DESTINATION_DIR,

Make a file matching "*.jmtpfs" and open it in Vifm.

commented Sep 19, 2016 by aleksejrs

It may however be very slow (at least at file listing) and affected by the Android bug which makes the changes not appear on MTP immediately.

commented Oct 4, 2016 by aleksejrs
edited Feb 23 by aleksejrs

I have also tried using the PTP protocol with gphotofs (configured just like jmtpfs), which was not affected by the same issues, but was very limited (had to give the files an image-like extension for one of the directions) unless you switch the smartphone itself into MTP mode while using it through PTP.

When asking, English language is preferred, but Russian, Ukrainian and maybe German can be used as well (in the last case answers might be in bad German).

If you would like to make a bug report or feature request consider using GitHub, SourceForge or e-mail. Posting such things here won't be considered as a spam, but this is not a perfect place for it.
...