Search code examples
google-cloud-platformgoogle-colaboratorygcsfuse

How to mount GCP Bucket in Google Colab


I want to access the files in my GCP bucket from Colab. I followed these instructions

As you can see from the screen shots, there is nothing in the folder after mounting. What am I missing? The Data folder in my bucket is full of data.

enter image description here

enter image description here

enter image description here


Solution

  • Turns out you can't mount the bucket name + a path within the bucket. Removing the /Data/ after the name of the bucket led to a successful mount. So since my bucket name is hellonearth, the command is just:

    !gcsfuse --implicit-dirs hellonearth myfolder