5

I'm trying to mount an Android device on Debian using:

jmtpfs /media/mobile

But when I try to copy a file from my system to the device I get an input/output error saying that the file can't be closed.

Am I missing some parameter or something to enable the transfer?

slm
  • 363,520
  • 117
  • 767
  • 871
Julio Marins
  • 151
  • 1
  • 3
  • Can you plese post the error output here, verbatim? Also, are you using root permissions to mount the device? – HalosGhost Jun 28 '14 at 16:43
  • Please post the output of the above command with the `--verbose` switch included, `jmtpfs --verbose /media/mobile`. – slm Jun 28 '14 at 17:14
  • Strange its working now, i tried the debug mode once with "jmtpfs -d /media/mobile" and after that the normal "jmtpfs /media/mobile/" both working, dunno what it was, sry guys – Julio Marins Jun 28 '14 at 19:59
  • Strange, now trying again today i get can send files like .mp3 or .jpg but when i try to create a directory i get this in the debug: unique: 222, opcode: LOOKUP (1), nodeid: 2, insize: 44, pid: 24405 LOOKUP /Cartão SD/ooo getattr /Cartão SD/ooo unique: 222, error: -2 (No such file or directory), outsize: 16 unique: 223, opcode: MKDIR (9), nodeid: 2, insize: 52, pid: 24405 mkdir /Cartão SD/ooo 0755 umask=0022 unique: 223, error: -5 (Input/output error), outsize: 16 – Julio Marins Jun 29 '14 at 16:53
  • it shows this prob only when i try to create a folder in the '/media/mobile/Cartao SD' which is the root of the SD card – Julio Marins Jun 29 '14 at 16:59

2 Answers2

2

If your screen is locked, try unlocking the screen before attempting to connect. This did the trick for me.

source: https://wiki.debian.org/mtp

0

If your file manager shows the device, it is already mounted. Try unmounting the device through file manager and running jmtpfs /media/mobile again.

khion
  • 1