Transfer Files Between Android and Arch Linux Over USB

Connect Android To Arch Linux Via USB

Use Media Transfer Protocol (MTP) when you want to copy files between an Android phone and an Arch Linux desktop over USB. Unlock the phone, choose File transfer from its USB notification, then use your desktop file manager or an MTP client to browse it.

Choose the MTP route that matches your desktop

MTP exposes the phone through a file-transfer service. It does not present Android storage as a normal block device, so mounting it with the usual USB-drive workflow is the wrong model. Mounting USB drives in Linux explains that separate workflow.

GNOME Files and other GVFS-based file managers use gvfs-mtp. KDE users normally get MTP support through the desktop integration. If you want a dedicated graphical browser, Arch currently ships android-file-transfer in the Extra repository.

Connect the phone before installing anything

  1. Use a data-capable USB cable and unlock the phone.
  2. Open the USB notification on Android and choose File transfer or MTP. Charging-only mode does not expose files.
  3. Open your file manager and look for the phone in the sidebar. Copy a small file first, then check that it appears in the destination directory.
No Phone Detected By File Manager
No Phone Detected By File Manager

This retained screenshot shows the initial failure state: a connected phone is absent from the file manager. The next steps change the phone USB mode and install the desktop component that can speak MTP.

Install the desktop component

For a GVFS-based file manager, install gvfs-mtp from the official repositories. The command below is the Arch package-manager form. Pacman package manager on Arch Linux covers package searches and updates if pacman is unfamiliar.

sudo pacman -Syu gvfs-mtp

Close and reopen the file manager after the install, then reconnect the unlocked phone in File transfer mode. This package is for desktop integration, not a command that turns Android storage into a permanent local mount.

Use Android File Transfer when you want a separate window

The official Arch package repository lists android-file-transfer as an Android MTP client with a minimal graphical interface. Install it when the file manager route does not fit your desktop or you prefer a dedicated browser.

sudo pacman -Syu android-file-transfer

Start it from the application launcher after connecting and unlocking the phone. Use either this client or your desktop MTP integration for a session. Competing MTP clients can contend for the same device connection.

Accessing Device Files From Our File Manager
Accessing Device Files From Our File Manager

This retained screenshot shows the dedicated file-transfer interface after the phone becomes available. Treat it as a file browser: open the destination on the phone, then copy files in a small batch before moving larger folders.

Copy files without corrupting the transfer

Keep the phone unlocked while the copy runs and wait for the progress operation to finish before disconnecting the cable. MTP sessions can fail when Android locks the screen or another application has already claimed the device. A cable that only charges cannot expose files.

  • Copy a small file before a photo archive or video folder.
  • Use one MTP client at a time.
  • Eject or close the device in the file manager before unplugging the cable.

Fix an Android phone that does not appear

Start with the phone, not the package manager. Reconnect the cable, unlock Android, and choose File transfer again. A charge-only cable or a locked screen prevents a file browser from seeing MTP storage.

  1. Check that the USB notification says File transfer or MTP.
  2. Try a known data cable and another USB port.
  3. Close Android File Transfer, music players, and file-manager windows that may hold the MTP session.
  4. Reconnect the phone and reopen the file manager.

If Android is visible but a camera folder stalls, copy a smaller directory first. The ArchWiki documents device-specific MTP failures, including access issues around DCIM and camera folders, so the exact folder can matter.

When USB is not the best transfer method

Use USB MTP for a direct local copy. If you need routine wireless file and clipboard sharing between an Android device and a desktop, KDE Connect on Arch Linux covers that workflow.

The official repositories are enough for this setup, so you do not need an Arch User Repository (AUR) helper. Paru on Arch Linux explains when that separate tool becomes useful.

Verify the connection

Your setup is ready when the unlocked phone appears in the selected MTP client, you can open a folder, and a copied test file appears at the destination. Copy to a directory in your home folder when you want the simplest local destination. The Linux file system hierarchy explains where that directory sits.

If the copied test file is absent, return to the USB mode and cable checks before changing packages.