← 返回命令列表

Linux command

jmtpfs 命令

安全

权限或系统影响较大,执行前请核对目标。

常用示例

Mount the first available MTP device

jmtpfs [mountpoint]

List attached MTP devices

jmtpfs -l

Mount a specific device

jmtpfs -device=[bus],[dev] [mountpoint]

Mount with allow-other and a specific UID

jmtpfs -o allow_other,uid=[1000] [mountpoint]

Run in the foreground with debug output

jmtpfs -f -d [mountpoint]

Unmount the device

fusermount -u [mountpoint]

说明

jmtpfs is a FUSE filesystem that exposes MTP (Media Transfer Protocol) devices — Android phones, tablets, cameras, and portable media players — as regular directories. It is built on top of libmtp and libusb and provides read/write access to device storage without requiring root. Only one process may talk to an MTP device at a time, so unlock the phone and dismiss any "USB mode" dialog before mounting. Multiple storages (internal, SD card) appear as separate top-level directories inside the mount point.

参数

-l
List available MTP devices and exit.
-device=_bus_,_dev_
Mount the device at the given USB bus and device number.
-o _options_
Pass FUSE mount options (e.g. `allow_other`, `uid=1000`, `gid=1000`, `fsname=phone`).
-f
Run in the foreground (do not daemonize).
-d
Enable FUSE debug output (implies `-f`).
-s
Disable multi-threaded operation.
-h, --help
Display help information.
-V, --version
Display version information.

FAQ

What is the jmtpfs command used for?

jmtpfs is a FUSE filesystem that exposes MTP (Media Transfer Protocol) devices — Android phones, tablets, cameras, and portable media players — as regular directories. It is built on top of libmtp and libusb and provides read/write access to device storage without requiring root. Only one process may talk to an MTP device at a time, so unlock the phone and dismiss any "USB mode" dialog before mounting. Multiple storages (internal, SD card) appear as separate top-level directories inside the mount point.

How do I run a basic jmtpfs example?

Run `jmtpfs [mountpoint]` in a terminal, then adjust file names, paths, flags, or remote targets for your system.

What does -l do in jmtpfs?

List available MTP devices and exit.