我正试图通过MTP将三星Galaxy Tab2 7.0“连接到Debian Wheezy盒子。https://askubuntu.com/questions/186681/getting-mtp-to-work-with-a-galaxy-tab-2-7-0上的askubuntu页面正好解释了我的问题,但没有一个建议的补救措施有效。
重申一下,我安装了mtp-tools和mtpfs。 mtp-detect产生了这个:
libmtp version: 1.1.3
Listing raw device(s)
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.
Found 1 device(s):
Samsung: GT P7310/P7510/N7000/I9070/I9100/I9300 Galaxy Tab 7.7/10.1/S2/S3/Nexus/Note/Y (04e8:6860) @ bus 1, dev 3
Attempting to connect device(s)
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
OK.
我创建了一个/etc/udev/rules.d/51-android.rules文件,使用值04e8作为供应商ID,使用6860作为设备ID。我完成了前面提到的howto并做到了这一点:
mkdir foo
mtpfs -o allow_other foo
现在做“ls foo”摊位。检查foo上面的目录也会停止。如果不执行“killall -9 mtpfs”(类似于处理过时的sshfs挂载),我无法获取命令行。然后我看到了这个:
ls: cannot access foo: Transport endpoint is not connected
尝试了https://askubuntu.com/a/88630/27480并获得了相同的结果。
来自https://github.com/hanwen/go-mtpfs的go-mtpfs也失败了:mkdir foo
./go-mtpfs foo
2013/01/07 02:39:33 compiled against libmtp 1.1.3
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.
2013/01/07 02:39:33 found device Samsung: GT P7310/P7510/N7000/I9070/I9100/I9300 Galaxy Tab 7.7/10.1/S2/S3/Nexus/Note/Y (04e8:6860) @ bus 1, dev 3
:
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
2013/01/07 02:41:33 rdev.open failed: open: open returned nil
来自https://github.com/kiorky/jmtpfs.git的jmptfs也失败了:
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
LIBMTP PANIC: failed to open session on second attempt
terminate called after throwing an instance of 'MtpErrorCantOpenDevice'
what(): Can't open device
Aborted
答案 0 :(得分:0)
在终端试试这个:
killall gvfs-gphoto2-volume-monitor
killall gvfs-mtp-volume-monitor
之后,重新连接手机。并使用mtp-detect或其他基于libmtp的程序。它应该工作。
这是我在这个ubuntu bug中提出的解决方法: https://bugs.launchpad.net/ubuntu/+source/gvfs/+bug/1314556