在 Ubuntu BASH shell 中导航到 MTP 设备 - 无法 cd 到 SD 卡

在 Ubuntu BASH shell 中导航到 MTP 设备 - 无法 cd 到 SD 卡

已成功在 Ubuntu 桌面上安装了 MTP 设备,并且已经确定了安装点的位置。

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

我看到的是“SD 卡”

但这也是我在桌面上看到的。
我怎样才能在 SD 卡内部复制照片或视频?

在此处输入图片描述

答案1

我相信你寻求的答案已经在询问UbuntuStack Exchange 网站。

摘自该文章:

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 ~]$

相关内容