I am having an issue getting my s3 to automatically mount properly after restart. I am running an AWS ECS c5d using ubuntu 16.04. I able able to use s3fs to connect to my S3 drive manually using:
$s3fs -o uid=1000,umask=077,gid=1000 s3drive ~/localdata
Afterwards when I go into the folder I can see and change my S3 files. But when I try to set it up for automatically connecting I can't get it to work. I have tried adding the following to etc/fstab:
s3drive /home/ubuntu/localdata fuse.s3fs _netdev,passwd_file=/home/ubuntu/.passwd-s3fs, uid=1000,umask=077,gid=1000 0 0
It processes but when I go to the location and $ls -lah I see an odd entry for permissions (and I am denied permission to cd into it):
d????????? ? ? ? ? ? localdata
I get the same result when I start fresh and try adding to /etc/fstab:
s3fs#s3drive /home/ubuntu/localdata fuse _netdev,passwd_file=/home/ubuntu/.passwd-s3fs,uid=1000,umask=077,gid=1000 0 0
Lastly I tried added to /etc/re.local just above the exit 0 row either:
s3fs -o uid=1000,umask=077,gid=1000 s3drive ~/localdata
or
s3fs -o _netdev,uid=1000,umask=077,gid=1000 s3drive ~/localdata
When I reboot nothing seems to happen (i.e. no connection). But if I run it manually using:
$ sudo /etc/rc.local start
I get the same weird entry for my drive
d????????? ? ? ? ? ? localdata
Any ideas how to do this right? or what the ? ? ? permissions mean? I really hope this isn't a duplicate but i searched the existing answers and tried stuff for the whole afternoon.