google-cloud-platformgoogle-cloud-storagegcsfusefstab

Slash added automaticaly before bucket name with fstab and gcsfuse


I use gcsfuse to mount bucket in google compute engine.

For this i use this syntax in my fstab :

my_bucket /my_bucket gcsfuse rw,uid=1001,gid=1002

But gcsfuse process is launch like this :

/usr/bin/gcsfuse --foreground -o rw --uid 1001 --gid 1002 /my_bucket /my_bucket

With "/" before "my_bucket", the mount do not work.

It's run in Ubuntu 16

Why fstab add this "/" automaticaly ?


Solution

  • It's simple. Must not have a bucket name like folder name in root path.

    For this, i have rename my folder.