Re: [Hampshire] How to connect Android phone to Debian system
Tim said: > I found this a while ago > > https://tomsalmon.eu/2020/01/mounting-android-phone-over-usb-on-debian/ > > Not sure how relevant it is now a days Thanks Tim. That didn't work, but the CLI did provide a possibly more informative error message: error returned by libusb_claim_interface() = -6LIBMTP PANIC: Unable to initialize device terminate called after throwing an instance of 'MtpErrorCantOpenDevice' what(): Can't open device The phone itself has instructions for file transfer with Windows and Mac computers, but not Linux. As Android is based on Linux, that seems a little odd to me. I have found a way to contact the manufacturer, Motorola. Maybe they can solve the problem. Peter Alefounder. -- Please post to: Hampshire@mailman.lug.org.uk Web Interface: https://mailman.lug.org.uk/mailman/listinfo/hampshire LUG URL: http://www.hantslug.org.uk --
Re: [Hampshire] How to connect Android phone to Debian system
Hi Peter, Don't want to keep throwing links at you but I had two saved when I was playing with Debian on my other laptop. The other link I had was this one https://www.reddit.com/r/debian/comments/n2skx6/connecting_android_phone/ I never completed getting mine to work as I ended up replacing the hard drive and re-installed a different (debian based) distro Hope it helps Tim H On 29/04/2023 17:02, Peter Alefounder via Hampshire wrote: Tim said: I found this a while ago https://tomsalmon.eu/2020/01/mounting-android-phone-over-usb-on-debian/ Not sure how relevant it is now a days Thanks Tim. That didn't work, but the CLI did provide a possibly more informative error message: error returned by libusb_claim_interface() = -6LIBMTP PANIC: Unable to initialize device terminate called after throwing an instance of 'MtpErrorCantOpenDevice' what(): Can't open device The phone itself has instructions for file transfer with Windows and Mac computers, but not Linux. As Android is based on Linux, that seems a little odd to me. I have found a way to contact the manufacturer, Motorola. Maybe they can solve the problem. Peter Alefounder. -- Please post to: Hampshire@mailman.lug.org.uk Web Interface: https://mailman.lug.org.uk/mailman/listinfo/hampshire LUG URL: http://www.hantslug.org.uk --
Re: [Hampshire] How to connect Android phone to Debian system
On Sat, 29 Apr 2023 at 17:03, Peter Alefounder via Hampshire < hampshire@mailman.lug.org.uk> wrote: > Tim said: > > I found this a while ago > > > > https://tomsalmon.eu/2020/01/mounting-android-phone-over-usb-on-debian/ > > > > Not sure how relevant it is now a days > > Thanks Tim. That didn't work, but the CLI did provide a possibly more > informative error message: > > error returned by libusb_claim_interface() = -6LIBMTP PANIC: Unable to > initialize device > terminate called after throwing an instance of 'MtpErrorCantOpenDevice' > what(): Can't open device > > The phone itself has instructions for file transfer with Windows and Mac > computers, but not Linux. As Android is based on Linux, that seems a > little odd to me. > > I have found a way to contact the manufacturer, Motorola. Maybe they can > solve the problem. > > Peter Alefounder. > > Hi, I have a Samsung S7 Android phone and ubuntu. When I plug the phone into the usb port, the phone asks "Allow access to phone data". Deny / Allow If you tap "Allow", the phone will appear as an MTP device in the GUI manager. It looks like a USB disk has been plugged in. You can then use the filemanager to copy files about. The MTP does not appear as a mount if you type "mount". If I click on the "properties" in the file manager, I find that I can copy stuff about by using something like: rsync -avpP "/run/user/1000/gvfs/mtp:host=SAMSUNG_SAMSUNG_Android_3300f4501b3f7353/" mtp-mum With the hex chars at the end being taken from the properties in file manager. For me the hex chars happened to be the serial number of the phone. (note I randomly typed some hex chars here.So its not my actual phone.) Kind Regards James -- Please post to: Hampshire@mailman.lug.org.uk Web Interface: https://mailman.lug.org.uk/mailman/listinfo/hampshire LUG URL: http://www.hantslug.org.uk --