我无法在google存储桶中挂载特定的文件夹
在OS X上,此程序允许您使用mount命令来挂载存储桶。(在Linux上,只有root用户可以执行此操作。)
mount -t gcsfuse -o rw,user my-bucket /path/to/mount/point在OS X和Linux上,您还可以将条目添加到/etc/fstab文件中,如下所示:
my-bucket /mount/point gcsfuse rw,noauto,user有人能帮帮我吗?
my-bucket:foldername /mount/point gcsfuse rw,noauto,user这对我不起作用
发布于 2016-01-13 18:01:08
在存储桶中挂载特定目录不支持与mount和fstab一起使用,但是如果直接运行gcsfuse命令,则可以使用标志--only-dir执行此操作
gcsfuse --only-dir foldername/ my-bucket /mount/point发布于 2018-10-24 04:13:09
如果您已经安装了gcsfuse,那么您可以使用/etc/fstab行中的only_dir (例如only_dir=/foldername/)参数挂载google cloud bucket的特定目录。
my-bucket /mount/point gcsfuse rw,noauto,user,key_file=/home/ubuntu/key-gcp-storage.json,only_dir=/foldername/这对我在Ubuntu 18中是有效的。
https://stackoverflow.com/questions/34390730
复制相似问题