apt-get install jmtpfs cd mkdir here jmtpfs here
and it should mount (connected with usb cable)
p.s. also tested on mint17
a switch script "htc" could look like (directory ~/here is supposed to exist)
#!/bin/bash if mount -l | grep here; then echo "is mounted here, unmounting now"; fusermount -u ~/here else echo "not mounted here, mounting now"; jmtpfs ~/here # thunar ~/here fi
Note: your mileage may vary, it does work perfectly on one machine for me and kinda slowish/buggy on another.
Last edited by brontosaurusrex (2014-08-05 22:00:19)
I've been using gmtp GUI like a file manager for MTP devices. They refer to it as a client for MP3 devices but it's handled every MTP device I've thrown at it so far.
gMTP is a simple and light-weight interface to the features provided by libmtp, which allows users to manage the files stored on any MTP music player supported by the libraries, including those with multiple storage devices (e.g. mobile phones).
new to crunchbang.
my first linux kernel build was on a 386-16sx with 6MB SIPP RAM ($50/MB!)
I've been having lots of trouble with MTP and linux. I have an S4 mini and when trying to mount it using jmptfs or just now trying gMPT I have no luck. When I run gMPT from the terminal I get the following:
Device 0 (VID=04e8 and PID=6860) is a Samsung GT P7310/P7510/N7000/I9070/I9100/I9300 Galaxy Tab 7.7/10.1/S2/S3/Nexus/Note/Y. PTP_ERROR_IO: failed to open session, trying again after resetting USB interface LIBMTP libusb: Attempt to reset device Error 2: PTP Layer error 02ff: get_handles_recursively(): could not get object handles. Error 2: (Look this up in ptp.h for an explanation.) Error 7: Found a bad handle, trying to ignore it. Error 7: Found a bad handle, trying to ignore it. Error 7: Found a bad handle, trying to ignore it. Error 7: Found a bad handle, trying to ignore it. Rescan: How did I get called? Segmentation fault
Then an error message pops up in the gui saying
Failed to get storage parameters from the device - need to disconnect.
and then it just bugs out. Any ideas?
Hey damo, thanks for the help. The method two got me the farthest so far. I was able to see the folders on my phone in the ~/andriod-device folder, however I wasn't able to open any of the files, nor open most of the folders.
This is what I did and what happened:
$ go-mtpfs ~/android-device &  13760 bam@crunch:~$ 2014/06/11 12:23:11 OpenSession failed: LIBUSB_ERROR_TIMEOUT; attempting reset 2014/06/11 12:23:13 FUSE mounted 2014/06/11 12:23:48 fetched "music2_hprof_data", 59756518 bytes in 2080 ms. 28.7 MB/s 2014/06/11 12:24:26 fatal error LIBUSB_ERROR_TIMEOUT; closing connection. 2014/06/11 12:24:31 GetObjectHandles failed: LIBUSB_ERROR_TIMEOUT 2014/06/11 12:24:35 GetStorageInfo 20002: mtp: cannot run operation GetStorageInfo, device is not open
any clues? Thanks
go-mtpfs at github has this as a possible reason (Always a good idea to google error messages )
Try resetting the -usb-timeout flag (Don't ask me how!)This may help: