SEARCH

Enter your search query in the box above ^, or use the forum search tool.

You are not logged in.

#1 2014-06-03 21:53:30

brontosaurusrex
#! Red Menace
Registered: 2012-06-15
Posts: 1,643

mount mtp device on Debian wheezy (htc desire 500 in my case)

mount

apt-get install jmtpfs
cd
mkdir here
jmtpfs here

and it should mount (connected with usb cable)

unmount

fusermount -u

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

scrot: http://shrani.si/f/3N/Fz/3yep5fFy/htc.png

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)

Offline

Help fund CrunchBang, donate to the project!

#2 2014-06-10 15:27:11

fratermus
#! CrunchBanger
From: 75081, USA
Registered: 2012-01-20
Posts: 149
Website

Re: mount mtp device on Debian wheezy (htc desire 500 in my case)

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).


brother mouse
new to crunchbang.
my first linux kernel build was on a 386-16sx with 6MB SIPP RAM ($50/MB!)

Offline

#3 2014-06-10 18:20:07

woodape
#! CrunchBanger
From: Cape Town, South Africa
Registered: 2014-03-27
Posts: 113

Re: mount mtp device on Debian wheezy (htc desire 500 in my case)

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?

Offline

#4 2014-06-10 18:56:41

damo
#! gimpbanger
From: N51.5 W002.8 (mostly)
Registered: 2011-11-24
Posts: 5,434

Re: mount mtp device on Debian wheezy (htc desire 500 in my case)

@woodape

Have you tried go-mtpfs? I don't know if this HowTo is still relevant, but see Method2: HowTo: Connect to an Android 4 phone


BunsenLabs Group on deviantArt
damo's gallery on deviantArt
Openbox themes
Forum Moderator smile

Offline

#5 2014-06-11 10:39:44

woodape
#! CrunchBanger
From: Cape Town, South Africa
Registered: 2014-03-27
Posts: 113

Re: mount mtp device on Debian wheezy (htc desire 500 in my case)

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 & 
[1] 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

Offline

#6 2014-06-11 11:07:24

damo
#! gimpbanger
From: N51.5 W002.8 (mostly)
Registered: 2011-11-24
Posts: 5,434

Re: mount mtp device on Debian wheezy (htc desire 500 in my case)

@woodape
go-mtpfs at github has this as a possible reason (Always a good idea to google error messages  tongue  )

Try resetting the  -usb-timeout flag (Don't ask me how!)This may help:

man go-mtpfs

BunsenLabs Group on deviantArt
damo's gallery on deviantArt
Openbox themes
Forum Moderator smile

Offline

Board footer

Powered by FluxBB

Copyright © 2012 CrunchBang Linux.
Proudly powered by Debian. Hosted by Linode.
Debian is a registered trademark of Software in the Public Interest, Inc.
Server: acrobat

Debian Logo