Are you having trouble with Pixel (or other Android) phones not being able to mount files via USB?
This bash script mounts the Android filesystem by using the KDE Connect utility and some CLI tools.
Tested on Arch Linux.
Before using this script, ensure you have the following installed:
β
KDE Connect with kdeconnect-cli and qdbus interface
β
SSHFS for mounting remote file systems
./kdeconnect-mount.sh (-d <device_id> | -n <device_name>) <mount_path>Example:
./kdeconnect-mount.sh -n "Pixel 8" /mnt/androidTo unmount, use:
fusermount -u <mount_path>Expand OS Support β Improve compatibility with more Linux distributions and Windows.
| Version | Date | Changes |
|---|---|---|
| 1.1.0 | October 2025 | Automatic detection of host and port |
| 1.0.0 | April 2025 | Initial release |
This project is licensed under the MIT License. Feel free to use, modify, and share!
Got ideas or want to contribute? Open an issue or submit a pull request!
Happy mounting! π