Questions tagged [mtp]

The Media Transfer Protocol (MTP) is a protocol that allows media files to be transferred atomically to and from portable devices.

Filter by
Sorted by
Tagged with
0 votes
1 answer
52 views

When copying files from Android to Linux via mtp datetime unadvertently changes by diffrence of mobile's and Linux time zones

Edit 2: Issue: Modification time of file as shown by stat in Linux for files copied from Android via usb is effected by changing of time zone setting on Android after file was created. Reperformance: ...
Alex Martian's user avatar
0 votes
0 answers
25 views

Can fstab interfere with MTP mounting?

At some point a few months ago I added a line to the fstab to make the tmp go into ram instead of onto the disk: tmpfs /tmp tmpfs defaults,noatime,nosuid,nodev,mode=1777,size=10240M 0 0 That came ...
cardamom's user avatar
  • 528
1 vote
0 answers
33 views

Can't list folder on USB connected drive but it's there!

When I run ls /run/user/1000/gvfs/mtp:host=OPPO_SM6375-QRD__SN%3AD5F9F680_d5f9f680/ The following is returned 'Internal shared storage' 'SD card' When I run ls /run/user/1000/gvfs/mtp:host=...
Praful's user avatar
  • 11
0 votes
0 answers
87 views

MTP copy from android phone to Linux desktop running XFCE fails with 'integer out of range'

Frequently, but not always, when I try to copy a file from my android phone to my Linux desktop I get the error message 'integer out of range'. This problem occurs both with copies via rysnc invoked ...
danc's user avatar
  • 1
1 vote
1 answer
627 views

Mount MTP devices using systemd

Linux: build based on the Thinstation 6.2 project (on systemd) Task: automatic mounting of MTP devices (namely Android phones) when connected to a thin client Problem: error loading the distribution ...
alexanderzhirov's user avatar
0 votes
0 answers
109 views

MTP Device, video playback / "Open in Terminal" no longer possible?

I have a video camera which I can mount and browse files on using Nautilus and Media Transfer Protocol (MTP). Until recently, I could play back video files directly from the device without having to ...
Tom Brossman's user avatar
2 votes
0 answers
626 views

Where is my Android device mounted inside my Linux?

I am trying to run a bash script on certain folder inside an Android phone, mounted in my Fedora Linux box. I can see that the phone is there with adb devices (no, I do not want to use ADB for this!), ...
Luis A. Florit's user avatar
1 vote
2 answers
7k views

How do I resolve "The name was not provided by any .service files" when connecting Galaxy Tab A via USB?

I am running Debian Linux 11 with LXDE and I am trying to connect a Galaxy Tab A tablet. When I do, I get the Removable Medium Is Inserted dialog with the type of medium being "removable disk&...
Null Pointers etc.'s user avatar
0 votes
1 answer
174 views

How to emulate usb-mtp device with virt-manager?

I am trying to emulate an mtp device with virt-manager. I see at https://qemu-project.gitlab.io/qemu/system/devices/usb.html that usb-mtp,rootdir=dir as in -device usb-mtp,rootdir=dir could be used to ...
Yetoo's user avatar
  • 1
1 vote
0 answers
174 views

Cannot connect my phone: `mtpfs` command and `modprobe fuse` command fail

I am trying to connect my phone in Gentoo. I have mtpfs installed and FUSE enabled in my kernel, user_allow_other set in /etc/fuse.conf. I ran modprobe fuse with and without -fv flags and it produces ...
Suzuna Minami's user avatar
2 votes
0 answers
275 views

Difficulty mounting broken android phone

My wife has/had a Sony Xperia which the screen smashed. It had a few months worth of photos of the kids on it, which I would very much like to recover, but I can't spend several hundred dollars ...
1toneboy's user avatar
  • 103
1 vote
1 answer
664 views

File visible on Android device while copying via MTP, then disappears as soon as transfer completes...why?

Linux Mint 19.3 laptop copying a 400 MB file via MTP (in Caja) to an Android 7.0 tablet. While it's copying, the file is visible in the stock Files app on the tablet, and I can keep hitting the ...
Kev's user avatar
  • 1,729
1 vote
1 answer
471 views

Got 'Error getting file: -7: I/O problem' on one file (I guess) while transferring photos via usb cable from Android to Debian 10

I was getting a libmtp copy error until I switched usb transfer mode on Android 10 from file to photo. Then everything seemed to start copying fine, but during the process I got that error and just ...
Daniel's user avatar
  • 31
1 vote
0 answers
625 views

Why I cannot create a folder that does not exist (simple-mtpfs mounted filesystem)?

I am mounting my USB-connected phone using simple-mtpfs, and it is shown as fuse.simple-mtpfs when I do df. I then switch to a folder on the external SDCARD of the phone, and try to create a folder ....
Luis A. Florit's user avatar
3 votes
2 answers
549 views

Disk usage on mounted MTP file system

I mounted my Android phone via jmtpfs (I'm on Centos 7) as a FUSE file system at an arbitrary mountpoint (/phone). Is it possible to see the disk usage of all the content, the same way I would ...
Michele Piccolini's user avatar
2 votes
1 answer
1k views

Giving read/write access to user for mounted android device (MTP)

When I mount my android device (using jmtpfs) in /media/android, I don't have access with regular user. I need to switch to root user (using su), and only then can I access /media/android/ folder. How ...
Fedja Mladenovic's user avatar
8 votes
2 answers
4k views

Why is rsync so slow when working with MTP devices?

In order to perform regular backup of my phone (Samsung A5 2016, or SM-A510F) using rsync, I used the following command: rsync --verbose --progress --omit-dir-times --no-perms --recursive --inplace --...
Paradox's user avatar
  • 1,389
0 votes
2 answers
12k views

How to mount USB device using jmtpfs on Linux (Debian 9)?

Device Information Settings -> System -> About device SAMSUNG-SM-G900R4, Android version 6.0.1 Computer System Information (Terminal command: uname -a) Linux debian 4.9.0-8-amd64 #1 SMP ...
Vassil's user avatar
  • 41
12 votes
3 answers
11k views

Accessing MTP mounted device in terminal

cd: /run/user/$UID/gvfs/mtp://%5Busb%3A001,010%5D/ gives the error : cd: no such file or directory: /run/user/1000/gvfs/mtp://%5Busb%3A001,010%5D/ Even though the device is mounted in the file ...
DevX136's user avatar
  • 121
1 vote
0 answers
88 views

How to organize mount points of connecting devices?

When I am connecting my external HDD to my Ubuntu box, it mounts several partitions under /media/<username>/<uuid> When I am connecting my mobile phone, it mounts under /var/run/user/&...
Dims's user avatar
  • 3,195
1 vote
1 answer
1k views

Fedora 28 USB phone mount troubles

Since I upgraded Fedora to version 28 I have problems seeing from the terminal at which point my phone is mounted.. I can see it through the GUI only, and when I take a look its path from the file ...
Rino Remix's user avatar
2 votes
1 answer
4k views

How to mount Android phone with jmtpfs on CentOS 6?

I'm trying to mount and access files in my Asus Zenfone 2 Android phone connected via USB cable to a CentOS 6 (32 bit architecture) machine. As per [these] instructions, I created a mount point in /...
WobblyWindows's user avatar
1 vote
1 answer
1k views

Kali Linux 2018 crash when connecting an USB device

After upgrading to kali 2018(kernel 4.14), Something went wrong. Whenever I connect my android device to any of the USB port, it logs out and system returns to logging on screen, shutting down all the ...
bareMetal's user avatar
  • 151
1 vote
1 answer
4k views

How to access an Android 7.0 phone via MTP from terminal?

I can't figure out, how to access an Android 7.0 phone's storage via MTP from terminal? Phone: Honor 8 System: Linux Mint 18.3 Cinnamon 64-bit I can access it via Nemo file manager as: mtp://[usb:...
Vlastimil Burián's user avatar
2 votes
0 answers
499 views

Why is Nemo displaying each of my MTP devices twice?

There isn't much to add outside of the image posted. I have a Walkman and an Android device plugged into my computer, and each of them show in the Devices list on the sidebar twice. One of each of the ...
username1399's user avatar
5 votes
1 answer
3k views

How to make Android MTP in CentOS7 available for all users?

I'm using Moto G4 play with Marshmallow; and CentOS 7. I'm able to mount the device and see the content as root, by using jmtpfs. First time I used sudo then I switched as root and then mounted, works ...
Shiva's user avatar
  • 103
9 votes
1 answer
10k views

How to get the Samsung Galaxy S5 to work with MTP on Debian 9?

So I'm trying to share files between the Samsung Galaxy S5 with Android and my Debian9/KDE machine using MTP instead of KDE Connect. The problem is that I keep getting: The process for the mtp ...
mYnDstrEAm's user avatar
  • 4,068
1 vote
1 answer
110 views

Path name in shell script contains extra characters when script is run [closed]

I am working on a script that partially automates backing up contents of an MTP device. Before continuing, I am trying to verify that the relevant folders can be accessed, by adding a line that opens ...
user avatar
0 votes
2 answers
3k views

How to disable mtp connection from android devices

I tried all possibilities of blocking USB storage and it also worked for pen drives, external HDD but not the storage of mobile. Can I block all of the mobile storage access? OS is Linux mint.
user244820's user avatar
0 votes
0 answers
438 views

How to mount mtp devices to the same location?

Android phone mounts to different locations each time it is plugged in. It is annoying to have to change the location each time I want to sync docs between computer and phone. Is it possible to ...
player87's user avatar
  • 131
0 votes
1 answer
4k views

Android Studio: Running application in emulator not working

Yesterday I downloaded Android Studio for my Debian Testing system. I wanted to run a HelloWorld application (just a blank activity) but weren't able to run it. With adb I can install it without ...
tavkomann's user avatar
  • 103
2 votes
1 answer
2k views

mount moto g on debian

Apparently Motorola's phones have MTP disabled (?) and can't find a way to transfer the files to my computer. Have read a bunch of links and none of them work. Have created the file /etc/udev/51-...
M.O.'s user avatar
  • 505
0 votes
1 answer
652 views

make error on compiling simple-mtpfs

Attempting install of simple-mtpfs on a ubuntu machine. I believe I've installed all necessary dependencies as listed at the end of this post. However I am getting while running sudo make as make:...
Bachalo's user avatar
  • 1,081
0 votes
1 answer
1k views

Unmount MTP device via command line

My MTP device auto mounts on the desktop every time I boot or re connect the camera via usb. The problem is my code to copy files does not work unless the MTP device is first unmounted from the ...
Bachalo's user avatar
  • 1,081
2 votes
1 answer
2k views

Connect to Samsung Gear 360 as MTP device via command line?

Using the following solution Copying file from MTP device using libmtp (over USB) to access the videos on my Samsung gear 360 from a Linux(Ubuntu) desktop. I'm using the following MTP packages and ...
Bachalo's user avatar
  • 1,081
1 vote
1 answer
604 views

linux mtp permit only read file

In Fedora 24 with KDE and Dolphin i see my old phone Samsung U700 but I can not add new file Unable to create directory /SGH-U700/Card/filesystem/New_Folder.
Max's user avatar
  • 11
2 votes
2 answers
6k views

MTP File Transfer not working on Linux Cinnamon 18

Have two Android phones Motorola and HTC both not working on Cinnamon 18. They were both working on Cinnamon 17.2. I have installed MTP tools. The commands mtp-detect and lsusb both return Vids and ...
rudi's user avatar
  • 41
2 votes
1 answer
17k views

Copying file from MTP device using libmtp (over USB)

Have a current project where I'm trying to figure out a way to copy files(a video) from a MTP device over USB. From the wiki I discover there is an open-source implementation called libmtp. Has ...
Bachalo's user avatar
  • 1,081
4 votes
1 answer
8k views

Mount Samsung Galaxy S7 using simple-mtpfs

I would like to mount my Samsung Galaxy S7 to an folder using simple-mtpfs and I cannot do it as I used to (on previous Fedora and older Galaxy S4). If I simply plug S7 to my computer, I can browse ...
Adam Przedniczek's user avatar
3 votes
2 answers
5k views

How to get mtp tools to mount my phone?

I've got Debian 8.5 running on top of Chrome OS, I plug in my Galaxy On5 and ChromeOS recognizes it instantly, Debian doesn't. I have mtp tools installed, and when I run mtp-detect I get the following ...
user1553838's user avatar
2 votes
1 answer
130 views

Is the mount point of my phone same every time I plug it in on a Linux system?

I wrote a python script to synchronize two folders given as input. I use it to synchronize folders between my phone and a laptop, but, thanks to buggy os.path.abspath, it works correctly only when I ...
saga's user avatar
  • 1,381
8 votes
1 answer
3k views

What's the difference between mtpfs and jmtpfs packages in Debian?

I recently wanted to connect some LG Android smartphone to my Debian, but the device wasn't detected. I installed the jmtpfs package, and that solved the problem. But in Debian, you have two packages ...
Mikhail Morfikov's user avatar
4 votes
0 answers
198 views

go-mptfs and mounting smartphone devices under /dev/sdx

I have a Samsung Galaxy J5 which has micro-usb (as most modern Samsung smartphones go) which gets mounted under /run/user/1000/gvfs/mtp:host=someaddress . While I'm able to use it like that but it ...
shirish's user avatar
  • 12k
2 votes
0 answers
895 views

Access MTP (SD Card & Internal Card) device from command line in Fedora 23

I need to access a MTP device (Samsung Phone connected trough USB) from the command line. I have listed the connected devices using lsusb and this is the output: # lsusb Bus 002 Device 003: ID 413c:...
ReynierPM's user avatar
  • 843
2 votes
1 answer
590 views

How can I delete a former MTP directory, which now gives me input/output error whenever I try?

I have ~/srv/mtp, which I do not remember how I created. It was back when I was trying to set up a MTP mountpoint using various tools for that. Currently I can't do anything to the directory. ○ file ...
pchr8's user avatar
  • 25
2 votes
1 answer
2k views

How to clone an MTPFS partition of a mounted Android phone?

Using mtpfs I've mounted a Samsung Galaxy S5 and I need to make an image of its root partition. I want to use dd or the like, but nothing seems to be able to detect/reference an MTP and/or FUSE ...
digitalextremist's user avatar
3 votes
0 answers
3k views

usbfs: process 25093 (pool) did not claim interface 0 before use

I recently got a new phone, a Moto G 2nd Gen. I am running Debian Jessie on kernel 3.16.0-4-amd64 with libmtp 1.1.8-1, libusb-1.0-0 2:0.1.12-1, gvfs 1.22.2-1. When I plug it in, it appears to be ...
Rika-chan's user avatar
2 votes
1 answer
527 views

What does mtp://[usb:002,003]/Storage/ mean? [duplicate]

Recently that I connect my Windows phone mobile to my Xubuntu laptop I see mtp://[usb:002,003]/Storage/ alongside the other drives.It shows my phone media files! That actually I can not find it in ...
Mazdak's user avatar
  • 933
17 votes
7 answers
24k views

Unable to perform file operations on a MTP device mounted via GVFS: "Operation not supported"

I am running Linux Mint 17.1 64-bit (based on Ubuntu 14.04). Ever since upgrading from Linux Mint 14/Ubuntu 12.10, the Python script I use to sync music to my Walkman has stopped working. Previously, ...
David Pitchford's user avatar
13 votes
2 answers
77k views

Mount MTP Android Device in Linux Mint 17.1

I to mount my ASUS Android device in Linux Mint 17.1 (MTP). My pc didn't see my device, so I tried following the answer in this page: http://forum.xda-developers.com/showthread.php?t=1077377 But when ...
sentientmachine's user avatar