Wednesday, May 8, 2024
 Popular · Latest · Hot · Upcoming
3
rated 0 times [  3] [ 0]  / answers: 1 / hits: 17182  / 2 Years ago, fri, september 16, 2022, 5:49:21

I'm trying to get MTP with the galaxy tab 2 7.0 working on my ubuntu installation. Such that I can access the files.



I tried to do what is described here:




http://www.omgubuntu.co.uk/2011/12/how-to-connect-your-android-ice-cream-sandwich-phone-to-ubuntu-for-file-access




I however fail at executing one of the following commands



mtp-detect | grep idVendor
mtp-detect | grep idProduct


This fails



[20:42|0] $ mtp-detect | grep idVender
Device 0 (VID=04e8 and PID=6860) is a Samsung GT-P7310/P7510/N7000/I9100/Galaxy Tab 7.7/10.1/S2/Nexus/Note.
PTP_ERROR_IO: failed to open session, trying again after resetting USB interface
LIBMTP libusb: Attempt to reset device
LIBMTP PANIC: failed to open session on second attempt
Unable to open raw device 0
[20:44|0] $ mtp-detect | grep idProduct
Device 0 (VID=04e8 and PID=6860) is a Samsung GT-P7310/P7510/N7000/I9100/Galaxy Tab 7.7/10.1/S2/Nexus/Note.
PTP_ERROR_IO: failed to open session, trying again after resetting USB interface
LIBMTP libusb: Attempt to reset device
LIBMTP PANIC: failed to open session on second attempt
Unable to open raw device 0


Now my guess was was that the idVender is the same as the VID (04e8) and the idProduct is the same as PID (6860) Now I continued to work with those values and completed the tutorial. When finished I tried



android-connect


This returned



fuse: bad mount point `/media/GalaxyTab': Transport endpoint is not connected


Does anybody have a clue what to do? Also I want to note that when I connect my GalaxyTab 2 7.0 that I still get a pop-up of ubuntu that a device was connected. I also can still see the mapstructure, the problem however is is that all the folders have 0 bytes and do not have any subfolders. I can only see the folders in the root.



ps. I also checked a similar question and tried what is described in this answer https://askubuntu.com/a/88630/27480



-- 2012-09-18 -- Edit --
Using go-mtpfs, described in the first answer, http://linuxundich.de/de/android/mit-go-mtpfs-unter-linux-auf-android-handys-via-mtp-zugreifen/, I got the following for my Samsung Galaxy SII



[23:21|0] $ go-mtpfs android
2012/09/18 23:21:58 compiled against libmtp 1.1.3
Device 0 (VID=04e8 and PID=6865) is UNKNOWN.
Please report this VID/PID and the device model to the libmtp development team
2012/09/18 23:21:58 device unknown: unknown (04e8:6865) @ bus 1, dev 7
:
ignoring usb_claim_interface = -6ignoring usb_claim_interface = -5PTP_ERROR_IO: failed to open session, trying again after resetting USB interface
LIBMTP libusb: Attempt to reset device
LIBMTP PANIC: failed to open session on second attempt
2012/09/18 23:22:18 rdev.open: open: open returned nil


For the Samsung Galaxy Tab 2 7.0 it didnt work either...



[23:31|0] $ go-mtpfs android
2012/09/18 23:31:03 compiled against libmtp 1.1.3
Device 0 (VID=04e8 and PID=6860) is a Samsung GT-P7310/P7510/N7000/I9100/Galaxy Tab 7.7/10.1/S2/Nexus/Note.
2012/09/18 23:31:03 device Samsung: GT-P7310/P7510/N7000/I9100/Galaxy Tab 7.7/10.1/S2/Nexus/Note (04e8:6860) @ bus 1, dev 11
:
PTP_ERROR_IO: failed to open session, trying again after resetting USB interface
LIBMTP libusb: Attempt to reset device
LIBMTP PANIC: failed to open session on second attempt
2012/09/18 23:33:04 rdev.open: open: open returned nil


jmtpfs didn't work either :-(



[23:42|0] $ jmtpfs ~/android/
Device 0 (VID=04e8 and PID=6860) is a Samsung GT-P7310/P7510/N7000/I9100/Galaxy Tab 7.7/10.1/S2/Nexus/Note.
PTP_ERROR_IO: failed to open session, trying again after resetting USB interface
LIBMTP libusb: Attempt to reset device
LIBMTP PANIC: failed to open session on second attempt
terminate called after throwing an instance of 'MtpErrorCantOpenDevice'
what(): Can't open device
Aborted (core dumped)

More From » usb

 Answers
1

Update: A GVFS MTP backend is now available. The author also provides a PPA.






I have already written about go-mptfs there.



The author recently wrote another article with another alternative jmptfs. He is writing in german but I think the commands he uses should be self explanatory, or machine translation would be sufficient.



You can of course just take a look the original project sites:





May be one of those work for you.


[#35613] Sunday, September 18, 2022, 2 Years  [reply] [flag answer]
Only authorized users can answer the question. Please sign in first, or register a free account.
nguai

Total Points: 216
Total Questions: 108
Total Answers: 116

Location: Hong Kong
Member since Thu, Dec 16, 2021
2 Years ago
;