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.
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.
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
You are using the commands in a wrong way
after !apt -qq install gcsfuse
run:
!mkdir folderOnColab
!gcsfuse gs://folderOnBucket folderOnColab
Then runt !ls
instead of just ls
gs://
prefix is not necessary - in fact, in gcsfuse v2.0.1, gcsfuse gs://mybucket /mount/point
raises the "bucket doesn't exist" error, while removing the prefix fixes the issue (no pun intended). See the documentation for details. –
Branchia © 2022 - 2025 — McMap. All rights reserved.
gs://
to your bucket name – Integrant