I just copied the pre-compiled binary, nothing special!
are u using chroot or linux beta?
No, plain standard ChromeOS in developer mode. I just open a shell via crosh and work from there.
excuse my ignorance, but if you do not have linux beta enabled or crouton installed, how can u install and use rclone?
With developer mode enabled, enter crosh (control-alt-t) and then from there type shell
. That gives you a pretty standard Unix bash
shell, and you can su
to root. From there you can copy files into /usr/local/bin
(for example) and run them as normal. There's even an scp
command if you need to remotely copy files in.
Hi,
Thanks for the explanation.
I tried your method and was able to mount to a folder inside Downloads. However I still can not copy files into the mount.
I can make/delete folders and rename files/folders, just copying is not working (same as my original problem)
I can cp using the command line (crosh).
which chrome os and rclone versions are u using?
chronos@localhost / $ sudo rclone --config /home/chronos/u-d0e45278e0e8037eb74e458fe51fb688edada87e/.config/rclone/rclone.conf mount --allow-other od01cr: /home/chronos/u-d0e45278e0e8037eb74e458fe51fb688edada87e/MyFiles/Downloads/onedrive -vv
2020/03/15 22:05:26 DEBUG : rclone: Version "v1.51.0" starting with parameters ["rclone" "--config" "/home/chronos/u-d0e45278e0e8037eb74e458fe51fb688edada87e/.config/rclone/rclone.conf" "mount" "--allow-other" "od01cr:" "/home/chronos/u-d0e45278e0e8037eb74e458fe51fb688edada87e/MyFiles/Downloads/onedrive" "-vv"]
2020/03/15 22:05:26 DEBUG : Using config file from "/home/chronos/u-d0e45278e0e8037eb74e458fe51fb688edada87e/.config/rclone/rclone.conf"
2020/03/15 22:05:28 DEBUG : Encrypted drive 'od01cr:': Mounting on "/home/chronos/u-d0e45278e0e8037eb74e458fe51fb688edada87e/MyFiles/Downloads/onedrive"
2020/03/15 22:05:28 INFO : Encrypted drive 'od01cr:': poll-interval is not supported by this remote
2020/03/15 22:05:28 DEBUG : Adding path "vfs/forget" to remote control registry
2020/03/15 22:05:28 DEBUG : Adding path "vfs/refresh" to remote control registry
2020/03/15 22:05:28 DEBUG : Adding path "vfs/poll-interval" to remote control registry
2020/03/15 22:05:28 DEBUG : : Root:
2020/03/15 22:05:28 DEBUG : : >Root: node=/, err=<nil>
2020/03/15 22:05:36 DEBUG : /: Attr:
2020/03/15 22:05:36 DEBUG : /: >Attr: attr=valid=1s ino=0 size=0 mode=drwxr-xr-x, err=<nil>
2020/03/15 22:05:36 DEBUG : /: ReadDirAll:
2020/03/15 22:05:37 DEBUG : /: >ReadDirAll: item=2, err=<nil>
2020/03/15 22:05:37 DEBUG : /: Lookup: name="test"
2020/03/15 22:05:37 DEBUG : /: >Lookup: node=test/, err=<nil>
2020/03/15 22:05:37 DEBUG : test/: Attr:
2020/03/15 22:05:37 DEBUG : test/: >Attr: attr=valid=1s ino=0 size=0 mode=drwxr-xr-x, err=<nil>
2020/03/15 22:05:37 DEBUG : /: Lookup: name="test.docx"
2020/03/15 22:05:37 DEBUG : /: >Lookup: node=test.docx, err=<nil>
2020/03/15 22:05:37 DEBUG : test.docx: Attr:
2020/03/15 22:05:37 DEBUG : test.docx: >Attr: a=valid=1s ino=0 size=34051 mode=-rw-r--r--, err=<nil>
2020/03/15 22:05:41 DEBUG : /: Lookup: name="test.pdf"
2020/03/15 22:05:41 DEBUG : /: >Lookup: node=<nil>, err=no such file or directory
2020/03/15 22:05:41 DEBUG : /: Lookup: name="test.pdf"
2020/03/15 22:05:41 DEBUG : /: >Lookup: node=<nil>, err=no such file or directory
2020/03/15 22:05:41 DEBUG : : Statfs:
2020/03/15 22:05:42 DEBUG : : >Statfs: stat={Blocks:276299776 Bfree:276260640 Bavail:276260639 Files:1000000000 Ffree:1000000000 Bsize:4096 Namelen:255 Frsize:4096}, err=<nil>
2020/03/15 22:05:42 DEBUG : /: Attr:
2020/03/15 22:05:42 DEBUG : /: >Attr: attr=valid=1s ino=0 size=0 mode=drwxr-xr-x, err=<nil>
2020/03/15 22:05:42 DEBUG : /: Lookup: name="test.pdf"
2020/03/15 22:05:42 DEBUG : /: >Lookup: node=<nil>, err=no such file or directory
2020/03/15 22:05:42 DEBUG : /: Create: name="test.pdf"
2020/03/15 22:05:42 DEBUG : test.pdf: Open: flags=O_RDONLY|O_CREATE|O_EXCL
2020/03/15 22:05:42 DEBUG : test.pdf: >Open: fd=<nil *ReadFileHandle>, err=can't open file - writer failed
2020/03/15 22:05:42 DEBUG : /: >Create: node=<nil>, handle=<nil>, err=can't open file - writer failed
^C2020/03/15 22:06:10 DEBUG : rclone: Version "v1.51.0" finishing with parameters ["rclone" "--config" "/home/chronos/u-d0e45278e0e8037eb74e458fe51fb688edada87e/.config/rclone/rclone.conf" "mount" "--allow-other" "od01cr:" "/home/chronos/u-d0e45278e0e8037eb74e458fe51fb688edada87e/MyFiles/Downloads/onedrive" "-vv"]
It's an up-to-date ChromeOS install on the main production channel. (I don't have the machine in front of me so I can't check the version). It's an old version of rclone (1.42) since I've not had the need to update it.
Mostly I use this from the command line
eg, using my script "onedrive" that mounts the filesystem and then drops me into a shell at the Downloads
location I can easily do:
% onedrive
% mv newfile onedrive/tmp
% exit
That way I move a newly download file onto Onedrive and then unmount afterwards. Similarly if I want to transfer stuff from the cloud
% onedrive
% mv onedrive/tmp/foobar.zip .
% exit
I have a vague memory that trying to access the filesystem from another window didn't work too well; it's possible this is a Linux namespace restriction. But for me needs of a temporary mount to get files on/off the Chromebook it works.
the command line is working fine for me as well, i am facing the problem with the native files app.
I will try to use the older version u referred to.
have u ever used the files app for transfers?
No. Since I was at the command line, anyway, to mount the remote drive I just kept working from the command line
hmmm I see.
I tried your rclone version and still the files app does not copy, this is really dazzling.
anyway thanks for the help and as I said, linux beta and crosh CLI are working properly, it is just that I wanted to solve this problem, apparently it is way beyond my level.
Cheers.
This topic was automatically closed 60 days after the last reply. New replies are no longer allowed.