Linux - NewbieThis Linux forum is for members that are new to Linux.
Just starting out and have a question?
If it is not in the man pages or the how-to's this is the place!
Notices
Welcome to LinuxQuestions.org, a friendly and active Linux Community.
You are currently viewing LQ as a guest. By joining our community you will have the ability to post topics, receive our newsletter, use the advanced search, subscribe to threads and access many other special features. Registration is quick, simple and absolutely free. Join our community today!
Note that registered members see fewer ads, and ContentLink is completely disabled once you log in.
If you have any problems with the registration process or your account login, please contact us. If you need to reset your password, click here.
Having a problem logging in? Please visit this page to clear all LQ-related cookies.
Get a virtual cloud desktop with the Linux distro that you want in less than five minutes with Shells! With over 10 pre-installed distros to choose from, the worry-free installation life is here! Whether you are a digital nomad or just looking for flexibility, Shells can put your Linux machine on the device that you want to use.
Exclusive for LQ members, get up to 45% off per month. Click here for more info.
I am unable to get Linux to recognize my new Pixel phone. I am trying to transfer files from an Unbuntu 15.10 computer to a Pixel phone (Android 7.1).
The hardware connection seems to be OK, and the phone is recognized as a device on the computer (labeled in Linux as "Pixel") but Linux doesn't see any folders or files on the phone and an attempt to copy a file to the device in general gets an error message "Cannot write to this location".
Google support had me check to see that the USB configuration is MTP (it is) and had me turn on USB debugging (which is now on). They then gave up and told me to try Linux support.
Is there something more I need to do on the Linux side? A driver, perhaps?
I don't own a google pixel phone, but I have a android marshmellow phone. I use Android SDK and PCManFM to transfer files between the phone and computer. You need to enable USB debugging on the phone to use android SDK. Do a google search on doing this with your phone if it isn't enabled.
PCManFM is a file manager that supports MTP devices. When I connect my phone on my linux computer it is seen as a MTP device.
Android SDK uses the adb command to push and pull files from the phone using the command line. Android SDK also hs a GUI tool called ddms to push and pull files if you don't want to use the command line.
You can also try using web based managers like Airdroid. It uses the web browser as a file manager to connect with your device and do file transfers and more.
Last edited by LennyUsesManjaro; 10-25-2016 at 04:58 PM.
I've had similar problems trying to write a variety of USB devices (hard drives, USB sticks, etc.) and it sometimes depends on the file system or file permissions. Linux is usually especially good at interpreting a wide variety of file systems (certainly much better than Windows or OSX) but sometimes your user does not have permission to write the file system on the USB device.
I'd be curious what kind of file permissions you see for the files/folders on the phone? I.e., who is the owner and group for the phone's contents? IIRC, Ubuntu mounts USB devices at /media/username/device-name.
I am no longer pursuing this effort, since none of the responses helped and I ended up doing a workaround by using Dropbox as an intermediary. Thanks to all for the efforts.
I set my Samsung S7 edge to Apps>Settings>Developer (you need to enable developer mode yourself. Google that for your phone)>USB settings>MTP
Then plug in the phone is all that is needed. I think systemd handles the heavy lifting from there. But i cannot swear to that, being that that is cause it works for me
in Ubuntu based distros. Mine uses XFCE and Thunar.
Anyhows. That is how I loaded 22 gig of mp3's in my music folder via usb 3.0 on Android Marshmallow 6.0.1 on my Phone. Also all my old Iphone 5S photos I had saved
when I upgraded my phone.
The Google Pixel was not available till after I had updated my Phone to a Samsung S7 Edge.
As I said in my original message, the MTP and USB debugging issues are taken care of. The phone is being mounted (as shown by clicking on it in Files and seeing "Unmount" as an option). The problem is that, after recognizing it as MTP and mounting it, there is nothing there. No folders, no files.
Here is one way to do it which should work on Ubuntu (works on Fedora):
First you will need a file manager app installed on your phone. Probably any of them.
Attach your phone via USB to your computer.
Go to Settings on your phone, and at the bottom is "About phone". Tap on that several times (like 10 or so, it will tell you how many more you need while you tap). When it says you are now a developer, a new Settings option will appear called "Developer options". Open those settings, and scroll down to "Select USB Configuration". Select that and select PTP (Picture Transfer Mode). You should now be able to access your phone on your computer. Put files in the DCIM folder, and you will be able to access them from the file manager app on your phone. You probably want to change it back to MTP when you are done or you will forget and wonder why your phone doesn't work the way it's supposed to. I believe the phone has to be connected when you make the change.
And a WARNING: Do not change any developer options unless you know what you are getting into. They are not meant as general phone settings and will really screw things up if you start changing things. They are primarily for system development to prevent the phone from acting normally.
I am no longer pursuing this effort, since none of the responses helped and I ended up doing a workaround by using Dropbox as an intermediary. Thanks to all for the efforts.
NOW HOLD ON THERE MISTER! you can't just do that. Stop being a newbie and don't jump ship yet.
looking in your setting see if you can find something that will change your phone
Yes, but not all will find things the way that you do. (interpretation)
Some see the glass 1/2 full and others see it 1/2 empty.
We all have a different perspective on things.
-::-It is our differences that we must learn to respect.-::-
how does one get to know the other? by comminations if he has a problem with me then let him speak his mind to me about it and not you. you are not his brain, thank you for your concern.
this has nothing to do with respect. I did not disrespect him by what I did.
if I use your words against you then lets see here
It is our differences that we must learn to respect
you are not respecting my differences now
do you see the problems you are causing by sticking your nose on other peoples business trying to play GOD by telling everyone else how you want them to live their lives.
LinuxQuestions.org is looking for people interested in writing
Editorials, Articles, Reviews, and more. If you'd like to contribute
content, let us know.