Smart Systems for Home

Plain how-to guides for smart home, security and home Wi-Fi

How to Transfer Files Between Android Phones and Tablets with Mtp on Ubuntu

· 6 min read · Home Tech

In this article
  1. What You'll Need
  2. Step-by-Step
  3. Common Mistakes
  4. Tips
  5. Troubleshooting
  6. Frequently Asked Questions

To transfer files between Android phones and tablets on Ubuntu using MTP (Media Transfer Protocol), connect the device via USB, enable file transfer mode on the Android side, and use the GNOME Files (Nautilus) file manager to drag and drop files. You do not need extra software—Ubuntu’s default file manager handles MTP out of the box. If it does not work, install the mtp-tools and jmtpfs packages for command-line access.

What You'll Need

  • An Android phone or tablet with a USB cable (the one that came with it, ideally).
  • Ubuntu desktop (20.04 or newer works well; older versions may need extra steps).
  • Your Android device unlocked and with USB debugging not required—MTP works without it.
  • If your device is not detected, you may need to install mtp-tools and jmtpfs from the Ubuntu repository.

Step-by-Step

  1. Unlock your Android device and keep it on the home screen. Some devices will not show up in Ubuntu if the screen is locked.
  2. Connect the Android device to your Ubuntu computer using a USB cable. Use a port on the computer, not a hub, if possible.
  3. On the Android device, pull down the notification shade and look for a notification that says "USB charging this device" or "USB connection" (the wording varies by manufacturer). Tap it.
  4. Select "File Transfer" (or "MTP") from the list of options. On some devices, this is under "USB preferences" or "Use USB for". If you see "Transfer files" or "Media device (MTP)", choose that. Do not pick "PTP" unless you only want photos.
  5. On Ubuntu, open the Files application (also called Nautilus). You can find it in the dock or by pressing the Super (Windows) key and typing "Files".
  6. Look for your device in the left sidebar of the Files window. It may appear with the device name (e.g., "Pixel 6" or "SM-G991B") or as a generic "Android" entry. Click on it.
  7. If the device appears, you will see its internal storage and possibly an SD card. Click on the storage you want to access. You can now browse folders like DCIM, Pictures, Downloads, etc.
  8. To copy files from Android to Ubuntu: navigate to the folder on your Android device, select the files (hold Ctrl and click for multiple), then drag them to a folder on your Ubuntu desktop, or right-click and choose "Copy", then paste into the Ubuntu folder.
  9. To copy files from Ubuntu to Android: drag files from your Ubuntu folder into the Android folder window. You may need to create a folder first (right-click > New Folder) if you want to keep things organized.
  10. When done, safely eject the device: in the Files sidebar, click the eject icon next to your device name. On Android, you can also swipe down and tap "Eject" or "Disconnect" if shown.
  11. Unplug the USB cable after the device is ejected.

If your device does not appear in Files, try the following alternative method using the command line:

  1. Install MTP tools by opening a terminal (Ctrl+Alt+T) and running: sudo apt update && sudo apt install mtp-tools jmtpfs
  2. Check if Ubuntu sees your device by running mtp-detect in the terminal. If it lists your device, MTP is working.
  3. Create a mount point (e.g., mkdir ~/mnt/android) and then mount the device with: jmtpfs ~/mnt/android
  4. Access your files by opening the folder ~/mnt/android in Files or using terminal commands. Copy files as needed.
  5. Unmount when done with fusermount -u ~/mnt/android.

Common Mistakes

  • Leaving the device locked—Ubuntu cannot access the file system if the screen is off or locked.
  • Choosing the wrong USB mode—selecting "Charging only" or "PTP" will not give you full file access. Always pick "File Transfer" or "MTP".
  • Using a faulty or charge-only cable—some cables only carry power and not data. Try a different cable if the device does not appear.
  • Plugging into a USB hub—hubs can cause detection issues. Plug directly into the computer's USB port.
  • Not ejecting before unplugging—this can corrupt the file system on the Android device. Always eject first.

Tips

  • Use a folder on your Ubuntu desktop as a staging area for transfers—it is easier to manage than dragging straight from the device.
  • If you transfer many small files, it may be faster to zip them first on the Android device (using a file manager app) and then copy the single zip file.
  • For large video files, MTP can be slow. Consider using a cloud service or a USB OTG drive if you do this often.
  • Keep your Ubuntu system updated—newer kernels and MTP libraries improve compatibility.
  • If you use a tablet, the same steps apply. Just make sure the tablet is unlocked and set to file transfer mode.

Troubleshooting

Device not showing in Files

  • Replug the cable and try a different USB port.
  • On Android, go to Settings > Connected devices > USB (or similar) and toggle "File Transfer" off and on.
  • Restart both devices.
  • Check if the device appears in mtp-detect. If not, the cable or port may be the issue.

Files show but copying fails with an error

  • Disconnect and reconnect, then try again.
  • Clear the MTP cache on Android: go to Settings > Apps > Show system > Media Storage > Storage > Clear cache (this does not delete your files).
  • If you are copying to a specific folder on Android, make sure it exists and is writable. Some system folders are read-only.

MTP connection drops mid-transfer

  • Use a shorter, high-quality USB cable.
  • Try a USB 2.0 port instead of USB 3.0 if you have issues.
  • Disable USB power saving on Ubuntu: in terminal run sudo apt install usbguard (not needed usually) or check BIOS settings—but first try a different port.
  • Transfer smaller batches of files at a time.

jmtpfs says "device not found"

  • Run mtp-detect to confirm the device is visible. If not, check the cable and mode.
  • Unplug and replug the device, then run jmtpfs again.
  • Make sure the mount point directory exists and is empty.

Frequently Asked Questions

Do I need to enable USB debugging to use MTP?

No. USB debugging is for developer options and is not required for MTP file transfer. Keep it off unless you need it for other tasks.

Why does my Android device show up as a camera (PTP) instead of MTP?

Some devices default to PTP when you select "File Transfer" but the system misinterprets it. Try switching to "MTP" explicitly if your device has that option, or unplug and replug after changing the mode.

Can I transfer files wirelessly instead of using MTP?

Yes, you can use apps like KDE Connect or a cloud service, but those are not MTP. MTP is specifically for USB connections.

Why can't I see my SD card in Ubuntu when using MTP?

Some Android devices expose only internal storage via MTP. If your device has an SD card, try selecting it in the notification shade's USB preferences, or use a card reader instead.

My device is detected but the folder is empty—what's wrong?

This usually happens when the device is still in "charging" mode. Re-select "File Transfer" on the Android device and wait a few seconds for the file list to refresh.

Is MTP safe to use? Can it damage my files?

MTP is a standard protocol and safe when used correctly. Always eject before unplugging to avoid corruption. It does not modify your files unless you copy or delete them.