-
Notifications
You must be signed in to change notification settings - Fork 421
-
Notifications
You must be signed in to change notification settings - Fork 421
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Mount as user at startup using fstab #135
Comments
You can probably set the Still: let me urge you to not do this. Requests to GCS are not nearly as reliable as local disk, and you're likely to find yourself with a system that hangs on boot if anything goes wrong. |
Hi jacobsa, What I meant was placing in fstab the following (assuming I do not allow on boot): my-bucket /mount/point gcsfuse rw,uid=www-data,gid=www-data,allow_other,noauto When I do the mount /mount/point command, it fails with an exit code of 1. I can do the alternative gcsfuse -o allow_other --uid=n --gid=n my-bucket /mount/point with no problems, but I prefer placing it in fstab so that I can just call mount directly. |
I see, thanks.
and then just run the mount command as |
Ok, the original purpose was to let a user for example root mount the /mount/point with a specific user assigned to that directory. Anyways, that works for the meantime. Thanks! |
Sounds good. Keep in mind that you can do this as root using |
Sorry to re-open the discussion about this. But the above comments doesn't answer the question, i.e. mount the bucket when system boot up automatically. Absolutely we can create a init script which call |
Hi, Here I have the same issue, someone can help us? |
Yes, unless your system supports specifying which user owns the mount helper process in |
Finally I got it with one line in fstab,
But the performance is.. poor at least, is it normal? Thank you jacobsa |
Hi,
In the documentation, it is written (for fstab):
my-bucket /mount/point gcsfuse rw,noauto,user
I tried removing noauto to make it mount at start. This doesn't work. How can I edit fstab in such a way that it mounts the bucket with a specified user id?
The text was updated successfully, but these errors were encountered: