Search code examples
linuxamazon-s3amazon-ec2fedoras3fs

Amazon AWS s3fs mount problem on Fedora 14


I successfully compiled and installed s3fs (http://code.google.com/p/s3fs/) on my Fedora 14 machine. I included the password credentials in /etc/ 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


Solution

  • 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)