LinuxQuestions.org
Share your knowledge at the LQ Wiki.
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 09-23-2021, 03:46 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 Chromebook Linux freezes when using rsync


I have been using Linux Mint for several years and Debian before that.
I feel comfortable with the command line.

I bought a Lenovo 300e Chromebook over a year ago and have learned to like it a lot including that Linux on Chrome OS is a bit different.

I searched this forum for my topic but did not find what I was looking for.

My Chromebook Linux terminal freezes when I try to use rsync, I have waited as long as 30 minutes for an action. On my other Linux Mint machines I use rsync to backup both my local laptop drives as well as the Google drives of my wife and myself. Therefore, rsync is very useful and important.

This is my rsync syntax:
Code:
rsync -av ~/Documents/File.png /mnt/chromeos/removable/SDCard/Document
sending incremental file list
File.png
After this is just stops...

I have not yet tried a powerwash, as it is a pain to get things back to where I want them.

When the terminal stops, I can do Ctrl-C to terminate the process. Unfortunately, once I terminate the rsync process using Ctrl-C, various other commands such as cd, ls, etc. also stop functioning. When that happens they do NOT respond to Ctrl-C and I have to force close the terminal window.

If I Ctrl-C after rsync and restart the Linux container with sudo reboot OR shutdown the terminal window opens for a brief moment but then quits with this error message:
Quote:
WARNING vsh: [bus.cc(638)] Bus::SendWithReplyAndBlock took 26835ms to process message: type=method_call, path=/org/chromium/VmCicerone, interface=org.chromium.VmCicerone, member=LaunchVshd
If I shutdown and restart my chromebook I can then again do ALL of the following without error:
Code:
cd Documents/

cp ~/Documents/File.png ~/Desktop

cp ~/Documents/File.png /mnt/chromeos/MyFiles/Downloads

cp ~/Documents/File.png /mnt/chromeos/removable/SDCard/

cp ~/Documents/File.png /mnt/chromeos/removable/USBHDD/
However, again, when I try to use rsync to move the same file as the cp command above, the command just never completes:

I tried to find something in the following log areas but I did not find anything which made sense to me:
file:///var/log/
chrome://system/#logs
I am uncertain where else I may find any log information and if I do what to do with it.

If anyone knows of a fix for this problem or a comment if I am doing something incorrect, I would be grateful for your suggestions. Thank you

*************************************************************
MY SYSTEM:
Lenovo 300e Chromebook (2nd gen) MTK (11.6)
PROCESSOR:
MediaTek 8173C (2.10 GHz) Quad-core
Graphics:
MediaTek™ integrated PowerVR Imagination GX6250
Display:
11.6"HD (1366 x 768) IPS 10-point MULTI-TOUCH
Memory:
4GB DDR3L 1866 MHz (Soldered Onboard)
Storage: 32 GB eMMc
CHROME VERSION:
94.0.4606.50 beta (32-bit)
Board:Google_Hana.8438.206.0
HANA I4A-D7X-A6I-A2A-J3F-A8Y
14150.32.0 (Official Build) beta-channel hana
Platform:
13310.93.0
Model Name:
81QC
CURRENT LINUX VERSION:
Debian 10 (Buster) environment.
cat /etc/os-release
PRETTY_NAME="Debian GNU/Linux 10 (buster)"
NAME="Debian GNU/Linux"
VERSION_ID="10"
VERSION="10 (buster)"
VERSION_CODENAME=buster
ID=debian
 
Old 09-29-2021, 08:42 AM   #2
jamison20000e
Senior Member
 
Registered: Nov 2005
Location: ...uncanny valley... infinity\1975; (randomly born:) Milwaukee, WI, US( + travel,) Earth&Mars (I wish,) END BORDER$!◣◢┌∩┐ Fe26-E,e...
Distribution: any GPL that work on freest-HW; has been KDE, CLI, Novena-SBC but open.. http://goo.gl/NqgqJx &c ;-)
Posts: 4,888
Blog Entries: 2

Rep: Reputation: 1567Reputation: 1567Reputation: 1567Reputation: 1567Reputation: 1567Reputation: 1567Reputation: 1567Reputation: 1567Reputation: 1567Reputation: 1567Reputation: 1567
Hi.

I'd try searching the web for: rsync freezes

...I haven't had this issue nor dove too deep in it's man page?

 
Old 09-29-2021, 10:07 AM   #3
uteck
Senior Member
 
Registered: Oct 2003
Location: Elgin,IL,USA
Distribution: Ubuntu based stuff for the most part
Posts: 1,174

Rep: Reputation: 501Reputation: 501Reputation: 501Reputation: 501Reputation: 501Reputation: 501
It might be a memory issue, try adding the -z option for compression to your list; -avz
 
Old 10-03-2021, 04:46 AM   #4
Middle.Earth
LQ Newbie
 
Registered: Sep 2021
Location: Izmir, Turkey
Distribution: Debian 10 and LinuxMint 19.3
Posts: 6

Original Poster
Rep: Reputation: Disabled
Quote:
Originally Posted by uteck View Post
It might be a memory issue, try adding the -z option for compression to your list; -avz
Tried that, same result but thanks.
 
Old 10-03-2021, 04:59 AM   #5
Middle.Earth
LQ Newbie
 
Registered: Sep 2021
Location: Izmir, Turkey
Distribution: Debian 10 and LinuxMint 19.3
Posts: 6

Original Poster
Rep: Reputation: Disabled
Quote:
Originally Posted by jamison20000e View Post
Hi.

I'd try searching the web for: rsync freezes

...I haven't had this issue nor dove too deep in it's man page?

I have been all over the web prior to this post searching for a wide variety of possible results. When I do a simple "rsync freezes" search the results are always relevant "normal" Linux, not to Chromebook/Chrome OS.

In a Reddit forum one reply stated "Note that SD cards are mounted noexec" so I looked around a bit and found the thread below, which said noexec was removed.

https://www.reddit.com/r/Crostini/comments/l6sjpz/current_dev_890438915_removes_noexec_from_shares/

When I do:
Code:
mount | grep 9p
I get the below indicating noexec is removed:

Code:
9p on /mnt/chromeos type 9p (rw,nosuid,nodev,relatime,sync,dirsync,access=any,trans=fd,rfd=26,wfd=26)
What I do not understand is why I can do cp or rm commands and they work just fine with all Linux shared volumes on my CBook but not rsync.
 
Old 11-05-2021, 04:57 AM   #6
Middle.Earth
LQ Newbie
 
Registered: Sep 2021
Location: Izmir, Turkey
Distribution: Debian 10 and LinuxMint 19.3
Posts: 6

Original Poster
Rep: Reputation: Disabled
I finally solved my problem.
I use rclone to backup my Google Drive to my external USB or SD Card

I use rsync to backup all internal files to external USB

PROBLEM WITH RSYNC ON INTERNAL OR EXTERNAL LOCAL DRIVE BACKUP:
rsync hangs when using -a
For example:
rsync -avh /mnt/chromeos/MyFiles/Downloads/AASTUFF /mnt/chromeos/removable/MyUSBHDD/Backups

PROBLEM WITH RSYNC SOLVED:
rsync works when using -rvh WITHOUT -a
rsync -rvh /mnt/chromeos/MyFiles/Downloads/AASTUFF /mnt/chromeos/removable/MyUSBHDD/Backups


PROBLEM WITH RSYNC & GOOGLE DRIVE BACKUP:
When I attempted to rsync from Google Drive I got the following errors:
rsync: send_files failed to open "/mnt/chromeos/GoogleDrive/MyDrive/AASTUFF/mygdocfile.gdoc": Operation not supported (95)
"/mnt/chromeos/GoogleDrive/MyDrive/AASTUFF/mygsheetfile.gsheet": Operation not supported (95)"

I found that all other files and directories copied OK. The "Operation not supported (95)" seems to be a lack of permission to those files.

This site says in part:
https://webapps.stackexchange.com/qu...n-google-drive
"This does copy Google docs, sheets, etc in their original format, although it may go through a conversion from gdoc > docx/xlsx/etc"

I noticed in my Linux Mint laptop the rclone GDrive backup converted all gdocs and gsheets to docx & xlsx as the comment above says.

PROBLEM WITH RSYNC SOLVED USING RCLONE:
I used the procedure detailed here:
(https://www.howtogeek.com/451262/how...rive-on-linux/)

to install rclone:
sudo apt-get install curl
NEXT:
curl https://rclone.org/install.sh | sudo bash
THEN:
rclone config
------------------------
RCLONE
https://github.com/rclone/rclone
https://rclone.org/docs/
DRIVE DOCUMENTATION:
https://rclone.org/drive/
DOWNLOADS:
https://rclone.org/downloads/
-----------------------------
I used a command similar to this to successfully backup my Google Drive to my SD Card. It works with USB also.
rclone copy --update --verbose --transfers 30 --checkers 8 --contimeout 60s --timeout 300s --retries 3 --low-level-retries 10 --stats 1s --create-empty-src-dirs "MYGdrive:AASTUFF" "/mnt/chromeos/removable/SDCard/Downloads/AASTUFF"

I hope this helps someone. It was driving my crazy, I almost installed crouton before I stumbled upon using this.
 
  


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
LXer: HP Chromebook X2 Looks to Be First Detachable Chromebook to Support Linux Apps LXer Syndicated Linux News 0 06-14-2018 07:57 PM
LXer: Acer Chromebook 13 and Chromebook Spin 13 Will Support Linux Apps on Day One LXer Syndicated Linux News 0 06-13-2018 02:26 AM
LXer: Here a Chromebook, there a Chromebook, everywhere a Chromebook LXer Syndicated Linux News 0 12-14-2015 04:42 PM
LXer: New Acer Chromebook Arrives; Faulty HP Chromebook Recalled LXer Syndicated Linux News 0 11-18-2013 08:20 PM

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

All times are GMT -5. The time now is 02: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