View previous topic :: View next topic |
Author |
Message |
charles17 Advocate
Joined: 02 Mar 2008 Posts: 3664
|
Posted: Tue Oct 14, 2014 3:18 pm Post subject: [SOLVED] mtpfs, MTPZ disabled |
|
|
I am trying to access an HTC ONE (m7) using mtpfs. So I've followed this wiki article https://wiki.gentoo.org/wiki/MTP#MTPfs and failed.
Quote: | $ mtpfs -o allow_other ~/HTC_One/
Unable to open ~/.mtpz-data for reading, MTPZ disabled. | Obviously some important information is missing in the wiki.
Any idea?
Last edited by charles17 on Wed Oct 15, 2014 12:03 pm; edited 1 time in total |
|
Back to top |
|
|
Fitzcarraldo Advocate
Joined: 30 Aug 2008 Posts: 2034 Location: United Kingdom
|
Posted: Tue Oct 14, 2014 3:58 pm Post subject: |
|
|
Strange; that directory does not exist in my installation yet I can mount my Samsung Galaxy Note II and access it using MTPfs (Version 1.1):
Code: | fitzcarraldo@meshedgedx ~ $ cat ~/.mtpz-data
cat: /home/fitzcarraldo/.mtpz-data: No such file or directory
fitzcarraldo@meshedgedx ~ $ eix -I mtpfs
[I] sys-fs/mtpfs
Available versions: 1.0 (~)1.1 {debug mad}
Installed versions: 1.1(16:39:23 20/01/14)(mad -debug)
Homepage: http://www.adebenham.com/mtpfs/
Description: A FUSE filesystem providing access to MTP devices
fitzcarraldo@meshedgedx ~ $ ls ~/AndroidDevice/
fitzcarraldo@meshedgedx ~ $ mtpfs -o allow_other ~/AndroidDevice
Listing raw device(s)
Device 0 (VID=04e8 and PID=6860) is a Samsung Galaxy models (MTP).
Found 1 device(s):
Samsung: Galaxy models (MTP) (04e8:6860) @ bus 2, dev 10
Attempting to connect device
Listing File Information on Device with name: GT-N7100
fitzcarraldo@meshedgedx ~ $ ls ~/AndroidDevice/
Card Phone Playlists
fitzcarraldo@meshedgedx ~ $ ls ~/AndroidDevice/Phone/
airdroid Android baidu Bluetooth Books data DCIM Download Music Notifications pers Pictures Playlists Ringtones Samsung sdrm_ebook S Note Sounds Video wdh_update
fitzcarraldo@meshedgedx ~ $ cat ~/.mtpz-data
cat: /home/fitzcarraldo/.mtpz-data: No such file or directory
fitzcarraldo@meshedgedx ~ $ fusermount -u ~/AndroidDevice
fitzcarraldo@meshedgedx ~ $ |
_________________ Clevo W230SS: amd64, VIDEO_CARDS="intel modesetting nvidia".
Compal NBLB2: ~amd64, xf86-video-ati. Dual boot Win 7 Pro 64-bit.
OpenRC udev elogind & KDE on both.
Fitzcarraldo's blog |
|
Back to top |
|
|
charles17 Advocate
Joined: 02 Mar 2008 Posts: 3664
|
Posted: Tue Oct 14, 2014 5:11 pm Post subject: |
|
|
Fitzcarraldo wrote: | Strange; that directory does not exist in my installation yet I can mount my Samsung Galaxy Note II and access it using MTPfs (Version 1.1): | Even using unstable version 1.1 doesn't change very much Quote: | $ mtpfs -o allow_other ~/AndroidDevice/
Unable to open ~/.mtpz-data for reading, MTPZ disabled.Listing raw device(s)
No raw devices found. | Are ther any precautions needed for fuse? |
|
Back to top |
|
|
Ant P. Watchman
Joined: 18 Apr 2009 Posts: 6920
|
Posted: Tue Oct 14, 2014 8:08 pm Post subject: |
|
|
I've never been able to get any MTP software to access my phone successfully either... I ended up just setting up sshd on the device and using sshfs. A bit crazy, but it actually works. |
|
Back to top |
|
|
Fitzcarraldo Advocate
Joined: 30 Aug 2008 Posts: 2034 Location: United Kingdom
|
Posted: Tue Oct 14, 2014 9:43 pm Post subject: |
|
|
charles17 wrote: | Fitzcarraldo wrote: | Strange; that directory does not exist in my installation yet I can mount my Samsung Galaxy Note II and access it using MTPfs (Version 1.1): | Even using unstable version 1.1 doesn't change very much Quote: | $ mtpfs -o allow_other ~/AndroidDevice/
Unable to open ~/.mtpz-data for reading, MTPZ disabled.Listing raw device(s)
No raw devices found. | Are ther any precautions needed for fuse? |
What version of libmtp do you have installed on your machine? I have 1.1.8 installed (merged yesterday during world update):
Code: | fitzcarraldo@meshedgedx ~ $ eix -I libmtp
[I] media-libs/libmtp
Available versions: 1.1.6-r1 (~)1.1.8(0/9) **9999(0/9) {+crypt doc examples static-libs}
Installed versions: 1.1.8(01:31:10 13/10/14)(-crypt -doc -examples -static-libs)
Homepage: http://libmtp.sourceforge.net/
Description: An implementation of Microsoft's Media Transfer Protocol (MTP) |
I've just done some googling and it appears that the error message you're seeing is due to a bug in libmtp (I assume the version prior to 1.1.8, as I don't experience it). If you have Stable installed, try 1.1.8 to see if that gets rid of the problem.
libmtp #968 Unable to open ~/.mtpz-data for reading, MTPZ disabled. _________________ Clevo W230SS: amd64, VIDEO_CARDS="intel modesetting nvidia".
Compal NBLB2: ~amd64, xf86-video-ati. Dual boot Win 7 Pro 64-bit.
OpenRC udev elogind & KDE on both.
Fitzcarraldo's blog |
|
Back to top |
|
|
charles17 Advocate
Joined: 02 Mar 2008 Posts: 3664
|
Posted: Wed Oct 15, 2014 12:03 pm Post subject: |
|
|
Fitzcarraldo wrote: | I've just done some googling and it appears that the error message you're seeing is due to a bug in libmtp (I assume the version prior to 1.1.8, as I don't experience it). If you have Stable installed, try 1.1.8 to see if that gets rid of the problem.
libmtp #968 Unable to open ~/.mtpz-data for reading, MTPZ disabled. | Thanks much for your help. With libmtp-1.1.8 and with CONFIG_FUSE_FS=y in the kernel it finally works. Quote: | $ mtpfs -o allow_other ~/AndroidDevice/
Unable to open ~/.mtpz-data for reading, MTPZ disabled.
Device 0 (VID=0bb4 and PID=0f87) is a HTC HTC One (MTP+ADB+?).
Android device detected, assigning default bug flags |
Quote: | $ ls ~/AndroidDevice/
0 Alarms Android DCIM Download Movies Music Notifications Pictures Playlists Podcasts Ringtones clockworkmod cmupdater navbr obb | https://wiki.gentoo.org/wiki/MTP#MTPfs adjusted. |
|
Back to top |
|
|
Fitzcarraldo Advocate
Joined: 30 Aug 2008 Posts: 2034 Location: United Kingdom
|
Posted: Wed Oct 15, 2014 3:19 pm Post subject: |
|
|
Good to know it's now working for you too.
Regarding your edit of the Wiki, presumably the kernel configuration applies to MTPfs, Go-mtpfs, gphotofs, simple-mtpfs, kio-mtp and gMTP, as they all depend on FUSE, so shouldn't you have inserted it in the Wiki article before the MTPfs section (https://wiki.gentoo.org/wiki/MTP#MTPfs) rather than inside the MTPfs section? (I would fix it myself, but I don't have a Wiki account.) _________________ Clevo W230SS: amd64, VIDEO_CARDS="intel modesetting nvidia".
Compal NBLB2: ~amd64, xf86-video-ati. Dual boot Win 7 Pro 64-bit.
OpenRC udev elogind & KDE on both.
Fitzcarraldo's blog |
|
Back to top |
|
|
reub2000 Guru
Joined: 31 Jan 2004 Posts: 364
|
Posted: Tue Dec 16, 2014 6:02 am Post subject: |
|
|
I upgraded libmtp to 1.1.8, and it still doesn't work.
Code: | mtpfs -o allow_other ~/cellphone/
Unable to open ~/.mtpz-data for reading, MTPZ disabled.
Listing raw device(s)
Device 0 (VID=04e8 and PID=6860) is a Samsung Galaxy models (MTP).
Found 1 device(s):
Samsung: Galaxy models (MTP) (04e8:6860) @ bus 1, dev 4
Attempting to connect device
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 |
|
|
Back to top |
|
|
|