我正在尝试通过 MTP 将三星 Galaxy Tab2 7.0" 连接到 Debian Wheezy 盒子。https://askubuntu.com/questions/186681/getting-mtp-to-work-with-a-galaxy 上的 askubuntu页面-tab-2-7-0详细说明了我的问题,但建议的补救措施都不起作用。
重申一下,我安装了 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.
我使用供应商 ID 的值 04e8 和设备 ID 的值 6860 创建了一个 /etc/udev/rules.d/51-android.rules 文件。我完成了上述操作并做到了这一点:
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