我正在尝试让 Galaxy Tab 2 7.0 在我的 ubuntu 安装上运行 MTP。这样我就可以访问这些文件。
我尝试执行此处描述的操作:
但是我无法执行以下命令之一
mtp-detect | grep idVendor
mtp-detect | grep idProduct
Run Code Online (Sandbox Code Playgroud)
这失败了
[20:42|0] $ mtp-detect | grep idVender
Device 0 (VID=04e8 and PID=6860) is a Samsung GT-P7310/P7510/N7000/I9100/Galaxy Tab 7.7/10.1/S2/Nexus/Note.
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
[20:44|0] $ mtp-detect | grep idProduct
Device 0 (VID=04e8 and PID=6860) is a Samsung GT-P7310/P7510/N7000/I9100/Galaxy Tab 7.7/10.1/S2/Nexus/Note.
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
Run Code Online (Sandbox Code Playgroud)
现在我的猜测是 idVender 与 VID (04e8) 相同,idProduct 与 PID (6860) 相同。现在我继续使用这些值并完成了教程。完成后我尝试了
android-connect
Run Code Online (Sandbox Code Playgroud)
这返回了
fuse: bad mount point `/media/GalaxyTab': Transport endpoint is not connected
Run Code Online (Sandbox Code Playgroud)
有人知道该怎么做吗?另外我想指出的是,当我连接 GalaxyTab 2 7.0 时,我仍然会弹出 ubuntu 窗口,表明设备已连接。我仍然可以看到映射结构,但问题是所有文件夹都有 0 字节并且没有任何子文件夹。我只能看到根目录中的文件夹。
附:我还检查了类似的问题并尝试了此答案中描述的内容https://askubuntu.com/a/88630/27480
-- 2012-09-18 -- 编辑 -- 使用 go-mtpfs,在第一个答案中描述,http://linuxundich.de/de/android/mit-go-mtpfs-unter-linux-auf-android-handys -via-mtp-zugreifen/,我的 Samsung Galaxy SII 得到以下信息
[23:21|0] $ go-mtpfs android
2012/09/18 23:21:58 compiled against libmtp 1.1.3
Device 0 (VID=04e8 and PID=6865) is UNKNOWN.
Please report this VID/PID and the device model to the libmtp development team
2012/09/18 23:21:58 device unknown: unknown (04e8:6865) @ bus 1, dev 7
:
ignoring usb_claim_interface = -6ignoring usb_claim_interface = -5PTP_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
2012/09/18 23:22:18 rdev.open: open: open returned nil
Run Code Online (Sandbox Code Playgroud)
对于三星 Galaxy Tab 2 7.0 也不起作用......
[23:31|0] $ go-mtpfs android
2012/09/18 23:31:03 compiled against libmtp 1.1.3
Device 0 (VID=04e8 and PID=6860) is a Samsung GT-P7310/P7510/N7000/I9100/Galaxy Tab 7.7/10.1/S2/Nexus/Note.
2012/09/18 23:31:03 device Samsung: GT-P7310/P7510/N7000/I9100/Galaxy Tab 7.7/10.1/S2/Nexus/Note (04e8:6860) @ bus 1, dev 11
:
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
2012/09/18 23:33:04 rdev.open: open: open returned nil
Run Code Online (Sandbox Code Playgroud)
jmtpfs 也不起作用:-(
[23:42|0] $ jmtpfs ~/android/
Device 0 (VID=04e8 and PID=6860) is a Samsung GT-P7310/P7510/N7000/I9100/Galaxy Tab 7.7/10.1/S2/Nexus/Note.
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 (core dumped)
Run Code Online (Sandbox Code Playgroud)
更新:GVFS MTP 后端现已可用。作者还提供了一个PPA。
我已经在那里写过有关 go-mptfs 的文章。
作者最近又写了一篇文章,介绍了另一种替代方案jmptfs。他用德语写作,但我认为他使用的命令应该是不言自明的,或者机器翻译就足够了。
您当然可以看一下原始项目站点:
可能是其中之一适合您。
| 归档时间: |
|
| 查看次数: |
17157 次 |
| 最近记录: |