2022-01-16 18:20:39 +00:00
|
|
|
---
|
|
|
|
title: "android"
|
2022-01-26 22:35:07 +00:00
|
|
|
tags: [ "Documentation", "System" ]
|
2022-01-16 18:20:39 +00:00
|
|
|
---
|
2020-01-02 00:04:35 +00:00
|
|
|
# mtpfs
|
|
|
|
|
2021-07-25 21:51:19 +00:00
|
|
|
## Start
|
|
|
|
|
2020-01-02 00:04:35 +00:00
|
|
|
Install:
|
|
|
|
|
2023-06-17 19:28:20 +00:00
|
|
|
```bash
|
|
|
|
yay -S simple-mtpfs
|
|
|
|
```
|
2020-01-02 00:04:35 +00:00
|
|
|
|
|
|
|
List available phones:
|
|
|
|
|
2023-06-17 19:28:20 +00:00
|
|
|
```bash
|
|
|
|
simple-mtpfs -l
|
|
|
|
```
|
2020-01-02 00:04:35 +00:00
|
|
|
|
2021-07-25 21:51:19 +00:00
|
|
|
Make a mount point:
|
|
|
|
|
2023-06-17 19:28:20 +00:00
|
|
|
```bash
|
|
|
|
mkdir phone
|
|
|
|
```
|
2021-07-25 21:51:19 +00:00
|
|
|
|
|
|
|
Check your phone, and tell it to allow access to the USB.
|
|
|
|
|
2023-06-17 19:28:20 +00:00
|
|
|
```bash
|
|
|
|
simple-mtpfs --device 1 phone
|
|
|
|
```
|
2021-07-25 21:51:19 +00:00
|
|
|
|
|
|
|
## Stop
|
|
|
|
|
2023-06-17 19:28:20 +00:00
|
|
|
```bash
|
|
|
|
fusermount -u phone
|
2021-07-25 21:51:19 +00:00
|
|
|
rmdir phone
|
2023-06-17 19:28:20 +00:00
|
|
|
```
|
2021-05-18 22:21:06 +00:00
|
|
|
|
|
|
|
|