How to Mount a Google Drive Locally with Rclone
Not a subscriber? Start your free week: cbt.gg/2I5NxY1
Read the full blog post at CBT Nuggets: cbt.gg/30hRFh5
Google Drive is nice, but no one wants to use their web interface as bulk storage. Thankfully, Rclone makes direct access to Google Drive seamless. It's free, open source, and multi-platform.
In this video, CBT Nuggets trainer Shawn Powers shows you how to quickly set up Rclone and mount it on the local filesystem to use Google Drive locally.
#Rclone #tutorial #GoogleDrive
Пікірлер: 106
Hey, Shawn. Thanks so much for this video. Incredibly helpful. And thanks for the continued content you post on KZread.
Many thanks for the quick tutorial; I love your enthusiastic and concise style.
@bradydyson65
Жыл бұрын
I second this!
Thank you so much u have no idea how long I've looking for this
Oh my god, thank you! Short, sweet and to the point.
Thank you, this is exactly what I was looking for, I can now sync up files between desktop and laptop. On another note, let's say I have an .odt file, my workaround for the read-only nature of the folder is to copy the file into a local folder, make changes and then replace the old file in the mounted folder with the new one: is this the only way or can I make it so I can open the .odt file straight from the mounted folder and make changes that sync up immediately?
Thank you so much for this video man, you saved a Linux newbie today
thank you so much, it helped me a lot!
Thank you Shawn, very helpfull video, it worked like a charm.
Thank you, this is really cool and helpful. One thing to note, with mounting a google drive remote, gdocs dont seems to work correctly, according to the website it's a known issue. Sync/move/copy works fine. And with images (I'm a photographer) it's still super helpful. I wish I learned rclone sooner. Thanks for the super easy guide!
Thanks!!! This is perfect!
I noticed you're using Daemon would you recommend using that as a storage server? I understand you use it to mount Images such as HDD and games, as I use to play around with Daemon Tool for mounting game images when I was younger, Since then I had forgotten about using it.
@shawnp0wers
3 жыл бұрын
I totally remember using Daemon Tools too! (Specifically to play Starcraft...) But no, this is just a coincidence. “Daemon” is a generic term for server processes, and the command just reloads systemd’s configuration files. Now I wanna play Starcraft! :D
Do you have any experience with creating encrypted remotes to perform local encrypted backups? I've tried everything and I can't get the thing to work.
i am constantly on the road, with sometimes not internet connection available to me, is it possible for this to download the files in local cache when i dont have internet, so i can work on them and later when i get connectivity update the files on the cloud drive?
After restarting my computer I don't see anything listed in the gdrive. Is there a sync or autosync that I should do?
Hey sir, love your charismatic voices XD
Tried to do the same in video, done everything but google drive doesn't show when df-h google drive doesnt show online my own hardrives
How to create a Google Drive mount on Synology itself in File Station?
What is the filesystem that it mounts?
Wow thats very handy tutorials. I got ignored rclone all times instead trying not very good solutions like proprietary software etc. Thank you.
SO you had to install macFUSE correct? I have tones of issues with he mout command because it gets macFUSE errors I am running macOS 12.
great content!
Hi, very helpful vid. Just want to know what is "daemon" for? thanks!
@1eskip
Жыл бұрын
run on the background
Does it sync real-time?
Hey sorry if this question sounds a bit silly. Is it really just syncing (similar to shortcut) with the gdrive or is it downloading all those files and put it in your local machine?
@cbtnuggets
2 жыл бұрын
Thank you for your question! The files will be synced to the mount or the system, but they are merely cached and when needed, it will re-download the file to the location on the system. We hope this is helpful. Thank you for learning with us!
@cmaxz817
2 жыл бұрын
@@cbtnuggets does it have something like "auto delete cache every ....." system or do I have to do it manually? If so how can I?
@cbtnuggets
2 жыл бұрын
@@cmaxz817There might be a mix between time and memory allocated. The system will hold the files within the system for the give duration, or until the cache has been depleted, then it will purge the oldest content. The cache can be increased within the config files. Typically, when you have the sync setup it will pull down the relevant information to the system for access, but the file itself may still be stored in the cloud as needed.
Thanks a lot. ขอบคุณด้วยใจจริงครับ
Does Rclone have the same function as google drive file stream ?, I mean you can view you files directly through file explorer without downloading it first ?.
@kl3mta3
3 жыл бұрын
yes, you can also copy and paste to and from the mount and it'll paste to the drive, same with renaming a file, it renames the file on the google drive.
crclone mount --daemon gdrive:.... I have "Fatal error: mount not ready". pls help me fix
Hi, thank you for the video. I am looking for like how can I transfer my .txt file saved in raspberry pi desktop (acceleration data saved every minutes) to Google drive every minute so that all data are transferred to Google drive automatically.
@kcarmical
Жыл бұрын
I think I’d write a small script that, while running, is a loop of “copy the file, sleep 60 secs, copy the file, etc.”
Thank you so much for this. I'm going to set this up later. Using the Gnome Accounts files integration is SO SLOW.
How can I mount the drive automatically at every startup of my Raspberry?
@DeyvsonMoutinhoCaliman
3 жыл бұрын
Exactly what I wanted to know.
@KeshovSharma
3 жыл бұрын
Untested suggestion: create a cronjob with @reboot to run the rclone line that mounts what you need. At the Pi's reboot, it should run that rclone command and mount your drive like you did so from the command line yourself.
@kl3mta3
3 жыл бұрын
i saw it was answered but i just thought id leave this here incase its needed by someone. for anyone curious about automatically running it on windows use a program called NSSM to create a windows service. it'll start when the pc boots up
I cant register rclone within Google drive, it seems not possible since end of May 23
wait, does this mean that i don't need to buy storage from GDrive anymore?
Hi, thanks for sharing this. But what about when i want to acces the files from my Plex server running in Docker ? I cannot see the Gdrive files.
@demonnet
3 жыл бұрын
I don't run my Plex instance via Docker, but I'm sure there must be a way to locally mount the volume from within the container and use that as your Plex media source?
@isaaclee-mort
3 жыл бұрын
Either in your docker compose file for the bit: volumes: - /path/to/library:/config - /path/to/tvseries:/tv - /path/to/movies:/movies You'd just do: /gdrive/tv:tv /gdrive/movies:/movies etc. Or if using cli to start the instance, it would be -v /gdrive/tv:tv -v /gdrive/movies:movies etc.
@kl3mta3
3 жыл бұрын
I run an Rclone mount on one PC, thats whole job is to run programs to download and add files to the drive. i have a separate server that mounts the same drive and hosts it through plex. depending on how its set up, the mount will only see the files uploaded to the drive via Rclone. all the files added by hand on google.com are more or less not there to the mount.
You could cover some settings as for example --network-mode or cache. Example zou provided just won't work well.
@kl3mta3
3 жыл бұрын
Be careful with network-mode also its not really needed, just mount the drive on any system you want to have access. i currently have 3 pcs all connected to the same Gdrive, but all with separate mounts. its much less buggy than network-mode. also cache is outdated, but i still use it currently. if you have questions id be happy to answer them
@kl3mta3
3 жыл бұрын
well copy the config files over then mount
how do you get this to auto mount at boot ?
Good job Shawn!
@shawnp0wers
3 жыл бұрын
Thanks! :D
The token expires in an hour what do you do in that case?
can you help me, when I mount the cloud I get this error 02023/05/26 01:50:49 mount helper error: fusermount3: if you are se, use the 'nonempty' mount option 2023/05/26 01:50:49 Fatal error: failed to mount FUSE fs: fusermos 1
you said have 40Tb of data, and up to 10 users, im assuming you host a media server such as plex. Ive been using Rclone for a very long time for just that. However, i noticed you didnt use a cache, you straight mounted the remote. Have you ran into any API bans from Google when running library searches?
@cbtnuggets
3 жыл бұрын
Hi Kenneth, Google has since changed its policies, so some of these benefits with Rclone and G Suite (now Google Workspace) are not as enticing as described. Please refer to Google's pricing and terms for more information. Thank you for learning with us!
@kl3mta3
3 жыл бұрын
@@cbtnuggets ive had a google business account for years now and currently have well over 100tb google drive hosted with Rclone. im very familiar with that. You just deflected away from my question. My question was had you ran into any api bans not using a cache rather than a straight mount. I get the opinion you don't really know what I'm even talking about. or what the benefits of a cache are. Clearly, you haven't hit any API bans because you don't seem to know what they are. Which is fine. But just say that. Or have me explain it.
@franciscooteiza
2 жыл бұрын
@@kl3mta3 Because @CBT Nuggets is a LIAR!
hi,, how to enable 2 ways sync with rclone? i read its only rclone sync $source to $destination, that correct?
@cbtnuggets
2 жыл бұрын
rclone sync -i SOURCE remote:DESTINATION More info here: rclone.org/commands/rclone_sync/
@bradydyson65
Жыл бұрын
There's also a separate tool called Rsync that you might want to check out.
thank a lot :D
Unlimited storage is fine but the road block is Google restricts to 750 GB per day limit for uploading , so how can we bypass this?
It's too difficult... I couldn't self-terminate when rclone mount on my terminal, so I had to forcibly terminate it. As a result, the Gdrive I just mounted disappeared. When I went to mount it again, the error was as follows: 2022/10/01 15:06:12 Fatal error: Can not open: /mnt/hgfs/GoogleDrive/Kali/: open /mnt/hgfs/GoogleDrive/Kali/: transport endpoint is not connected
@ylx6387
Жыл бұрын
I am a user from mainland China, I don't know if my explanation is clear, because my English is not very good...tank for your answers very much !!
I'm a newish linux user, and for the life of me cannot figure out how to run the daemon command on startup... I'm using the latest Manjaro Gnome. It was easy in Ubuntu via settings and startup applications, but that's not in Manjaro :/ Help!
@Peter-tq5oc
3 жыл бұрын
I did it with systemd. Create for example a gdrive.service in /etc/systemd/system This .service file includes the following: [Unit] Description=googledrivemount AssertPathIsDirectory=/home/[User]/GoogleDrive/ After=network-online.target [Service] Type=simple User=[User] Group=[User] ExecStart=/usr/bin/rclone --vfs-cache-mode writes mount googledrive: /home/[User]/GoogleDrive/ --config /home/[User]/.config/rclone/rclone.conf ExecStop=/bin/fusermount -u /home/[User]/GoogleDrive/ Restart=always RestartSec=10 [Install] WantedBy=default.target Replace the [User] with your username Run in Terminal: systemctl enable gdrive.service
@franciscooteiza
2 жыл бұрын
@@Peter-tq5ocTotally wrong!
@dataislife5742
2 жыл бұрын
@@franciscooteiza How is your response helpful? Why is it wrong and what do you think is the correct way?
A handy tip but a better option is to auto mount on boot through fstab
Failed to create file system for "gdrive:": couldn't find root directory ID: googleapi: Error 403: Rate Limit Exceeded, rateLimitExceeded getting this error Pls help
@kl3mta3
3 жыл бұрын
you're maxing out the API calls to the google server
thanks
rclone daomon doesnt work for me, ı dont know why?
how about centos 7 server minimal withut browser
how to unmount the drive?
You did not show it locallly in Nautilus.
Done. BUT after rebooting, the drive is not mounted
@bradydyson65
Жыл бұрын
Same here.
@bradydyson65
Жыл бұрын
I just wrote the mount command in at the end of my .bashrc and that's working for me.
Hey, good tutorial! But could you not jiggle the mouse, please?
Whoa! How do you get that much space on your Google Drive? :O Google wants me to pay like $14CAD/mo for 5TB of storage
Hello. Please to me, how do you Uninstall RClone on Windows ?
@franciscooteiza
2 жыл бұрын
NO!
rclone is broken. mounting does not work. empty folder locally....
@IamShGulati
3 жыл бұрын
Which OS did you try on? I tried on macOS 11.1 and mount does not seem to work here either.
@GiorgiAptsiauriX
3 жыл бұрын
@@IamShGulati I used WSL on Windows. Everything worked except mount. Can't stand buggy software.
@alphapoetsclub2180
3 жыл бұрын
@@GiorgiAptsiauriX mate try this method, works like charm in windows 10 kzread.info/dash/bejne/l4eBu9WTeMqddaw.html&ab_channel=DropCorp
@franciscooteiza
2 жыл бұрын
unlimited storage is now gone in Google drive
Whats about sync a folder instead of mounting?
You sound just like dream lmaoooooo XD
unlimited storage is now gone in Google drive
@xer2964
2 жыл бұрын
how many now?
Anyone no how to bypass google drive daily limits
The contribution is good, but why does everyone always speak so quickly, not all of them have English as their mother tongue
What you’re doing is abusing the system in a way it wasn’t intended & while it seems great it’s use cases like yours that will result in services like google drive changing their pricing structure again.
@HowDidIGet3700Subs
3 жыл бұрын
Ps it’s no longer $12 a month it’s $50 now because of use cases like this… you can do it with backblaze for $6 a month but I doubt that’ll last long either.
Please, don't lie!
No longer unlimited.
The title is misleading. Please include "Ubuntu" in the title. Shame.
Did they start charging more for unlimited storage? I'm paying 20 bucks a month for a bizzness workspace accnt for that unlimited storage 🤤🤤🤤🤤