題 導航到Ubuntu BASH shell中的MTP設備 - 無法cd到SD卡


已經在Ubuntu中成功地在桌面上安裝了MTP設備,並找出了掛載點的位置。

如果我cd到/ run / user / 999 / gvfs / mtp:host =%5Busb%3A001%2C006%5D $

我看到'SD卡'

但這也是我在桌面上看到的。
如何在插入SD卡以復制照片或視頻?

enter image description here


3
2017-12-07 21:45


起源




答案:


我相信你所尋找的答案已經在了 AskUbuntu 堆棧交換站點。

從那篇文章:

the mountpoints are in /run/user/$USER/gvfs/ and are named after the
protocol, connection type and address they use. Which makes things 
more difficult, because the connection address may change every time 
you replug the device, even if it is the same port. If you have the 
same device twice it gets even worse.

如果這還不夠,我建議你看一下 jmtpfs。我自己沒有用它,但聽起來如果你安裝它,它會做你想要的

來自 yum info 細節 jmtpfs

[user@host ~]$ yum info jmtpfs
...
Available Packages
Name        : jmtpfs
Arch        : x86_64
Version     : 0.4
Release     : 2.el7
Size        : 59 k
Repo        : epel/x86_64
Summary     : FUSE and libmtp based filesystem for accessing MTP devices
URL         : http://research.jacquette.com/jmtpfs-exchanging-files-between-android-devices-and-linux/
License     : GPLv3
Description : jmtpfs is a FUSE and libmtp based filesystem for accessing MTP (Media
            : Transfer Protocol) devices. It was specifically designed for exchanging
            : files between Linux systems and newer Android devices that support MTP
            : but not USB Mass Storage.
            : 
            : The goal is to create a well behaved filesystem, allowing tools like
            : find and rsync to work as expected. MTP file types are set automatically
            : based on file type detection using libmagic. Setting the file appears to
            : be necessary for some Android apps, like Gallery, to be able to find and
            : use the files.
            : 
            : Since it is meant as an Android file transfer utility, the playlists and
            : other non-file based data are not supported.

[user@host ~]$


3
2017-12-07 23:13



看到我編輯的問題...進展但仍未解決:( - Bachalo
更新了我的回答 - StandardEyre