3

我在我的 Fedora 14 机器上成功编译并安装了 s3fs (http://code.google.com/p/s3fs/)。我在指南中指定的 /etc/ 中包含了密码凭据。当我运行时:

sudo /usr/bin/s3fs bucket_name /mnt/bucket_name/

它运行成功。(注意:bucket 名称与 /mnt/ 中的文件夹名称相同)。当我在 /mnt/ 中运行 ls 时,我收到错误“ls:无法访问 bucket_name:权限被拒绝”。当我跑

sudo chmod 640 /mnt/bucket_name

我得到“chmod:更改 `bucket_name' 的权限:输入/输出错误”。当我重新启动机器时,我可以正常访问文件夹 /mnt/bucket_name 但它没有映射到 s3 存储桶。

所以,基本上我有两个问题。1) 在将文件夹 (/mnt/bucket_name) 挂载到 s3 存储桶后,如何照常访问文件夹 (/mnt/bucket_name),以及 2) 即使在机器重启后如何保持挂载。

问候

4

2 回答 2

6

尝试添加allow_other到您的命令中,这为我修复了它。

/usr/bin/s3fs -o allow_other mybucketname mymountpoint
于 2012-11-05T22:33:43.567 回答
5

在 amazon s3 中,存储桶名称对所有 s3 用户都是“全局”的,因此,请确保您使用的存储桶名称是您的存储桶

此外,需要先使用另一个 s3 工具创建存储桶

要在机器重新启动后保持安装状态,请按照http://code.google.com/p/s3fs/wiki/FuseOverAmazon将其拼接到 /etc/fstab 中(在评论中搜索“fstab”)

于 2011-04-03T18:40:44.350 回答