Ask Dave Taylor
  • Facebook
  • Instagram
  • Linkedin
  • Pinterest
  • Twitter
  • YouTube
  • Home
  • YouTube Videos
  • Top Categories
  • Subscribe via Email
  • Ask A Question
  • Meet Dave
  • Home
  • Linux Help
  • How do I Access my Android Phone File System from Ubuntu Linux?

How do I Access my Android Phone File System from Ubuntu Linux?

August 7, 2021 / Dave Taylor / Linux Help / 4 Comments

I’m been learning Linux and really enjoying the open source world, but still bump into some things that are easy on Windows but seemingly impossible in Ubuntu. The latest: Accessing the Android file system on my phone when I plug it into my Linux system. I just get “Folder is Empty”. HELP!

If you look at it from the perspective of getting the job done, rather than running a specific program, there’s not a lot you can do on a Windows PC nowadays that you can’t also accomplish on a major Linux distribution. Ubuntu is a great choice in this regard because its package management system and slick graphical user interface make it super user friendly. Including playing well with Android devices like a smartphone or tablet, actually. But… you do need to set things properly on the Android device too and that’s not obvious.

By default, Android devices are shut down so that unknown power sources can’t access the file system or touch any files, photos, videos, documents, music or similar. That wasn’t always the case and it wasn’t that long ago smart hackers were leaving power adapters in public places that surreptitiously sucked data off of phones being charged. Yikes. By defaulting to no data access at all, unknown chargers and docks are relegating to providing power and nothing else. Problem solved.

Since you do want to access your phone’s file system, however, you will need to re-enable USB file access. But let’s go through the steps…

FIX ANDROID FILE SYSTEM NOT VISIBLE TO LINUX

Here’s what I would guess you’re seeing when you plug your Android phone into your Ubuntu Linux system:

android file system on ubuntu linux - folder is empty

Definitely disheartening!

To fix it you’ll need to pick up your Android phone, go into the Settings app, and search for “usb”:

android settings - search for usb

What you want is “USB Preferences” (at least, that’s what it’s called on Android 11. Earlier versions might have a slightly different name for this group of settings). Tap on “USB Preferences” on your Android device and you’ll be taken to this screen:

android settings usb debug - file access

You can leave the top part as set, but it’s the “Use USB For” area that needs to be tweaked. As you can see, the default setting is “No data transfer”, so it’s no wonder that the Linux system has “Folder is Empty” when checking the device!

But what are all these options? Good question. “File transfer / Android Auto” is the most open, where the remote device can access everything (as is required for Android Auto). This includes contacts, call history, and much more. A small step down is “USB Tethering” which allows the connected system or device to use the Android unit as a network connection. Think “hotspot”. “MIDI” is a musical interface and can let musical devices like external keyboards interact in a limited way with your Android device. Finally, “PTP” is Picture Transfer Protocol and allows the connected device to only access photos and videos take on the phone, no contacts, text messages, phone logs, nothing else.

If we switch it from “No data transfer” to “PTP”, check out what happens!

ACCESS ONLY PHOTOS AND VIDEOS FROM ANDROID DEVICE

In the Linux file system, the error “Folder is Empty” is replaced by a somewhat cryptic icon:

android file system on ubuntu linux - internal shared storage ptp

The photos and related are within the “Internal shared storage”. Double click and it’ll open up just like a regular file system folder.

Here’s what’s inside:

android file system on ubuntu linux - ptp photos videos

You might think that the photos you’ve taken with your Android phone would be found in “Pictures“, but that’s not so. “Pictures” are screenshots and other system images, while “DCIM” (which rather awkwardly stands for Digital Camera IMage) is actually where all your photos are stored.

Let’s get the full file system accessible from your Linux system, not just pictures and photos!

ACCESS FULL ANDROID FILE SYSTEM FROM LINUX

On the Android phone, in the USB Settings, choose “File transfer / Android Auto” and the limited picture-only view will be replaced by something far more interesting:

android file system on ubuntu linux - full file system access

Much more interesting, you now have access to everything, from ringtones to documents, notifications to the Android OS itself. Cool!

While we’re here, let’s now jump into the DCIM folder so you can see how photos are organized and shown:

android file system on ubuntu linux - dcim folder

No previews, but a double click and you can indeed see that the photos on the Android device are fully viewable and accessible on your Ubuntu Linux system too:

android file system on ubuntu linux - display photo picture image - dcim folder

That’s it. Now you can copy photos, music files, movies, etc. to your computer as desired, or add new content to your Android device since it’s a two-way connection. Just avoid deleting anything in the “Android” folder to ensure you don’t break your OS and you’ll be fine. Good luck!

Pro Tip: I’ve been writing about Linux since the dawn of the operating system, and Unix before that. Please check out my extensive Linux help area for lots of additional tutorial content while you’re visiting. Thanks!

Let’s Stay In Touch!

Never miss a single article, review or tutorial here on AskDaveTaylor, sign up for my fun weekly newsletter!
Name: 
Your email address:*
Please enter all required fields
Correct invalid entries
No spam, ever. Promise. Powered by FeedBlitz
Please choose a color:
Starbucks coffee cup I do have a lot to say, and questions of my own for that matter, but first I'd like to say thank you, Dave, for all your helpful information by buying you a cup of coffee!
access android files, access android on linux, access android photos, android file system, android linux, android on ubuntu linux, remote android access

4 comments on “How do I Access my Android Phone File System from Ubuntu Linux?”

  1. Richard Hartman says:
    January 13, 2022 at 12:06 pm

    All well and good, but this only allows access to the fiiles through the GUI filesystem browser. I do not see the phone filesystems from the command line, using “mount” or anything else. If I want to use command line tools, say to mass copy using rsync, how do I do this?

    Reply
    • Dave Taylor says:
      January 14, 2022 at 1:54 pm

      It should show up. Try using “df -h” on the command line to see if it’s a /volume or a /mnt device.

      Reply
  2. Barry Ford says:
    January 3, 2022 at 10:10 pm

    On my Galaxy S10, there is no setting for USB preferences. In order to permit my phone to transfer files to my PC, I had to enable Developer Mode and then enable USB Debugging. Once there, I could finally change the Default USB Settings. I imagine access to this useful feature was removed for “security” reasons, i.e. Samsung wanted to make it harder to ‘root’ the phone and install a competing operating system. Just a thought.

    Reply
    • Russ Kepler says:
      January 21, 2022 at 11:37 am

      Thanks for your post. I’ve been frustrated with file access on my S8 and now my S10 (what can I say – I don’t care for the bleeding edge) for some time. I usually ended up mailing myself the images and files I wanted elsewhere but after applying the info you gave I’m able to access the phone’s filesystem normally.

      Reply

Leave a Reply Cancel reply

Your email address will not be published. Required fields are marked *

Search

Recent Posts

  • How Can I Make My Mouse Pointer and Text Cursor More Legible in Windows 11?
  • How to Enable “Hey Siri” on my iMac or MacBook?
  • How to Customize your Google Search Settings and Use Advanced Search
  • How to Create a Wordle Puzzle Help Shell Script in Linux or MacOS?
  • How Do I Enable and Manage my iPhone Personal Hotspot?

On Our YouTube Channel

Szanto Desert Sands Chronograph Watch (4553) -- REVIEW

Hagibis Nintendo Switch TV Dock -- DEMO & REVIEW

Categories

  • AdSense, AdWords, and PPC Help (106)
  • Amazon, eBay, and Online Shopping Help, (161)
  • Android Help (200)
  • Apple iPad Help (145)
  • Apple Watch Help (52)
  • Articles, Tutorials, and Reviews (344)
  • Auto Tech Help (11)
  • Business Advice (199)
  • Chrome OS Help (24)
  • Computer & Internet Basics (763)
  • d) None of the Above (165)
  • Facebook Help (383)
  • Google, Chrome & Gmail Help (179)
  • HTML & Web Page Design (245)
  • Instagram Help (47)
  • iPhone & iOS Help (607)
  • iPod & MP3 Player Help (173)
  • Kindle & Nook Help (93)
  • LinkedIn Help (85)
  • Linux Help (165)
  • Linux Shell Script Programming (87)
  • Mac & MacOS Help (892)
  • Most Popular (16)
  • Outlook & Office 365 Help (26)
  • PayPal Help (69)
  • Pinterest Help (53)
  • Reddit Help (18)
  • SEO & Marketing (81)
  • Spam, Scams & Security (92)
  • Trade Show News & Updates (23)
  • Twitter Help (217)
  • Video Game Tips (66)
  • Web Site Traffic Tips (62)
  • Windows PC Help (919)
  • Wordpress Help (204)
  • Writing and Publishing (72)
  • YouTube Help (46)
  • YouTube Video Reviews (159)
  • Zoom, Skype & Video Chat Help (57)

Archives

Social Connections:

Ask Dave Taylor


Follow Me on Pinterest
Follow me on Twitter
Follow me on LinkedIn
Follow me on Instagram


AskDaveTaylor on Facebook



microsoft insider mvp


This web site is for the purpose of disseminating information for educational purposes, free of charge, for the benefit of all visitors. We take great care to provide quality information. However, we do not guarantee, and accept no legal liability whatsoever arising from or connected to, the accuracy, reliability, currency or completeness of any material contained on this site or on any linked site. Further, please note that by submitting a question or comment you're agreeing to our terms of service, which are: you relinquish any subsequent rights of ownership to your material by submitting it on this site. Our lawyer says "Thanks for your cooperation."
© 2022 by Dave Taylor. "Ask Dave Taylor®" is a registered trademark of Intuitive Systems, LLC.
Privacy Policy - Terms and Conditions - Accessibility Policy