LinuxQuestions.org
Help answer threads with 0 replies.
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Other *NIX Forums > ChromeOS
User Name
Password
ChromeOS This forum is for the discussion of ChromeOS.

Notices


Reply
  Search this Thread
Old 12-23-2021, 07:26 AM   #1
Middle.Earth
LQ Newbie
 
Registered: Sep 2021
Location: Izmir, Turkey
Distribution: Debian 10 and LinuxMint 19.3
Posts: 6

Rep: Reputation: Disabled
Question Unable to mount Android Phone using mtp in Chrome OS crostini terminal for rsync backup


When I plug in our phones which are usb-c devices, the phone mounts in Chrome OS Files and I can copy and paste.

In Linux Mint I can easily do external USB backups of our GoogleDrive data, laptops, and Android phones and tablets using rsync, rclone, and mtp which works very well.

I can successfully do the same in Crostini using RClone and Rsync BUT NOT for our Android devices.

I have tried adb push which was complicated to install and was not any different then copy and paste to the mounted phone on Chrome OS Files.

I clicked the above link to "Find Similar Threads" but did not find a solution, most of them are very old posts.

I want to setup rsync so as to quickly and accurately copy/sync/mirror the phone directories to the backup.

In our Linux Mint laptop I do:
Code:
cd /run/user/1000/gvfs
THEN I plug in the phone and find the device info using ls which returns:
Code:
ls
mtp:host=%5Busb%3A002%2C010%5D
THIS I use for my rsync backup and it works great:
Code:
rsync -h --progress --stats -r -tgo -p -l -D --delete \ "/run/user/1000/gvfs/mtp:host=%5Busb%3A002%2C006%5D/Internal shared storage" \ /home/dell/Phone_BAKUPS
In order to get a gvfs directory under /1000 I installed gvfs-fuse and mtp-tools. I installed jmtpfs because Debian (crostini) said: "Unable to locate package mtpfs")
Code:
sudo apt-get gvfs-fuse mtp-tools jmtpfs
I am not a vi user so I installed nano to modify the fuse.conf file to uncomment user_allow_other.
Code:
sudo nano /etc/fuse.conf
Code:
# Allow non-root users to specify the allow_other or allow_root mount options.
user_allow_other
Next I did ls on gvfs which showed it is an empty directory:
Code:
cd /run/user/1000/gvfs
Code:
sudo jmtpfs -o allow_other /Phone (/Phone for mount directory)
Returns:
Code:
Device 0(VID=2e04 and PID=c026) is a Nokia 6.1.
STOPS HERE WITH BLINKING TERMINAL CURSOR
(I had to use Ctrl-s to return to terminal prompt)

Code:
lsusb
Bus 002 Device 010:ID 2e04:c026
lsusb and jmtpfs seem to "see" the phone but I am unable to get mtp to find: mtp:host=%5Busb%3A002%2C006%5D
without mtp:host=... I am unable to target rsync for a backup.

Chrome OS Files can see our phones fine and I can copy to and from them, however, this is unsuitable for proper backups such as rsync provides.

I have tried various mtp apps suggested in different forum posts, I have also tried adb, however they do not do what I want which is to simply plug in the Android device and run rsync to back it up.

How do I get mtp:host=... to show?

I have an adequate device to perform these activities:
ASUS Chromebook Flip C536EA-BI3T
11th Generation Intel® Core™ i3-1115G4
8 GB RAM,128 GB SSD + MicroSDCard

Your suggestions will be greatly appreciated.
 
  


Reply



Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
KDE Applications 18.12.0 has rewritten MTP device support. Does it solve any previous MTP problems? Nille_kungen Slackware 6 10-15-2018 11:04 AM
Project Crostini: Chrome OS prepares to support Linux apps jeremy Linux - News 0 03-01-2018 09:47 AM
LXer: Chromebooks and Crostini: Containers For Chrome OS By Google I/O? LXer Syndicated Linux News 0 02-25-2018 11:33 AM
[SOLVED] Unable to browse android phone using mtp milomak Debian 5 03-25-2017 07:11 AM
On slack-current: /usr/bin/mtp-getfile -> /tmp/package-libmtp/usr/bin/mtp-connect ? LuckyCyborg Slackware 3 05-03-2010 01:13 PM

LinuxQuestions.org > Forums > Other *NIX Forums > ChromeOS

All times are GMT -5. The time now is 12:26 PM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Open Source Consulting | Domain Registration