Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

How to access Google Drive Folder from Ubuntu App in Windows 10 [closed]

I am using ubuntu app inside of windows 10. I can access most of windows files using bash. The windows documents are inside of /mnt/c. Thats ok.

I can access "Google Drive" folder in Command Prompt (cmd.exe) with entering G: command in Windows 10. (Google Drive Commercial, drive file stream) It is also ok. My question is

Is there any way to access "Google Drive" folder using bash?

Attempt 1:

I made a shortcut of "Google Drive" folder in Windows' desktop. I open the bash, and write cd /mnt/c/Users/bulmust/Desktop. But it is not a directory.

Related questions:

how to read sh files on Ubuntu built in Windows 10 developer mode,

Windows Linux Subsystem - Accessing Files outside of Ubuntu

EDIT 1:

It is still open issue for wsl community (17/03/2020):

Mount Google Drive File System to WSL #2999

like image 484
bulmust Avatar asked Oct 22 '25 04:10

bulmust


2 Answers

I don't if you're experiencing the exact same issue, but I know my mount works properly for a while and then doesn't work anymore from the WSL only. An ls command revealed this beauty: Cannot add an embedded picture yet

Following this post I remounted the drive and everything seems to work now :) the command was:

sudo mount -t drvfs G: /mnt/g
like image 89
דן שלף Avatar answered Oct 24 '25 06:10

דן שלף


This works now:

On WSL 2, Windows 20H2 (set to German), Google Drive Version 47.0.19.0

windows@DESKTOP-I608RI4:/mnt/g/Meine Ablage/Data$ echo hello > hello-cr.txt
windows@DESKTOP-I608RI4:/mnt/g/Meine Ablage/Data$ ls
like image 39
masterxilo Avatar answered Oct 24 '25 08:10

masterxilo



Donate For Us

If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!