Skip to main content

mount-andorid-mtp

ยท One min read
sudo dnf install gvfs-mtp
# enable file transfer from smartphone
lsusb
# Bus 003 Device 012: ID 20a1:2bb3 Google Inc. Nexus/Pixel Device (MTP)
# now open a file manager

Mount a dir

sudo dnf install jmtpfs

# if needed
# gio mount -l
# gio mount -u mtp://Google_Pixel_9a_blablabla

jmtpfs ~/AndroidMTP

# umount

Use git on Android

warning

Cannot use git init --bare because MTP !== POSIX

sources