开发者

Amazon AWS s3fs mount problem on Fedora 14

开发者 https://www.devze.com 2023-02-21 14:51 出处:网络
I successfully compiled and installed s3fs (http://code.google.com/p/s3fs/) on my Fedora 14 machine. I included the password credentials in /et开发者_JAVA百科c/ as specified in the guide. When I run:

I successfully compiled and installed s3fs (http://code.google.com/p/s3fs/) on my Fedora 14 machine. I included the password credentials in /et开发者_JAVA百科c/ as specified in the guide. When I run:

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

it runs successfully. (note: the bucket name is the same as the folder name in /mnt/). When I run ls in /mnt/ I get the error "ls: cannot access bucket_name: Permission denied". When I run

sudo chmod 640 /mnt/bucket_name

I get "chmod: changing permissions of `bucket_name': Input/output error". When I reboot the machine I can access the folder /mnt/bucket_name normally but it is not mapped to the s3 bucket.

So, basically I have two questions. 1) How do I access the folder (/mnt/bucket_name) as usual after I mount it to the s3 bucket and 2) How can I keep it mounted even after machine restart.

Regards


Try adding allow_other to your command, this fixed it for me.

/usr/bin/s3fs -o allow_other mybucketname mymountpoint


in amazon s3, bucket names are 'global' to all s3 users, so, be sure that the bucket name that you're using is your bucket

furthermore, need to create the bucket first with another s3 tool

to keep it mounted after machine restart, stitch it into /etc/fstab as per http://code.google.com/p/s3fs/wiki/FuseOverAmazon (search for 'fstab' in the comments)

0

精彩评论

暂无评论...
验证码 换一张
取 消