Gavriil Pascalau
Gavriil Pascalau

Reputation: 171

File manager detects Android device but gvfs folder is empty. How can I access the MTP device from terminal?

Directories /run/user/1000/gvfs and ~/.gvfs are emtpy and non-existing, respectively. My graphical file manager (Thunar) is able to detect and access the internal and external memory of the device.

Command gvfs-mount -l yields:

Volume(0): SAMSUNG Android
 Type: GProxyVolume (GProxyVolumeMonitorMTP)
 Mount(0): SAMSUNG Android -> mtp://[usb:002,003]/
   Type: GProxyShadowMount (GProxyVolumeMonitorMTP)

Where can I find the mount point of the device to access it from the command line? I'm using Ubuntu 16.04.

Upvotes: 3

Views: 3402

Answers (3)

EdemarSantos
EdemarSantos

Reputation: 21

In Redmi MIUI 14.0.5, in Settings, I enabled "USB Tethering" and it immediately disabled the option by itself and mtp: showed the Internal Storage Folder in the file manager. I had been struggling for a long time with different distros (in Windows there was no problem). It was some bug that started occurring in some smartphone update...

Upvotes: 0

Alexey B.
Alexey B.

Reputation: 1156

Just had the same issue with Android 11. Solved it by going into the phone's 'Settings - Connected devices - USB' and selecting 'File Transfer' which was apparently disabled by default.

Upvotes: 2

Dmitry Meyer
Dmitry Meyer

Reputation: 1535

You also need to install gvfs-fuse:

gvfsd-fuse maintains a fuse mount to make gvfs backends available to POSIX applications. The mount point for the fuse filesystem is provided by the [PATH] argument.

gvfsd-fuse is normally started by gvfsd(1). In this case, the mount point is $XDG_RUNTIME_DIR/gvfs or $HOME/.gvfs.

Here is a great explanation:

/run/user/$uid/gvfs or ~$user/.gvfs is the mount point for the FUSE interface to GVFS.

...

The GVFS-FUSE gateway makes GVFS filesystem drivers accessible to all applications, not just the ones using Gnome libraries.


Execute following commands

sudo apt install gvfs-fuse
pkill thunar
pkill gvfs

and run Thunar again.

Upvotes: 3

Related Questions