From b847872622f49c8911642efabb3bec1ef977a736 Mon Sep 17 00:00:00 2001 From: Jirapong Nanta Date: Tue, 19 Jan 2016 11:22:55 +0700 Subject: [PATCH 1/2] update README.md for fstab --- README.md | 10 +++++++++- 1 file changed, 9 insertions(+), 1 deletion(-) diff --git a/README.md b/README.md index da95372..05e09ba 100644 --- a/README.md +++ b/README.md @@ -79,6 +79,14 @@ You can also mount on boot by entering the following line to `/etc/fstab`: s3fs#mybucket /path/to/mountpoint fuse _netdev,allow_other 0 0 ``` +Note: You may also want to create the global credential file first + +``` +echo MYIDENTITY:MYCREDENTIAL > /etc/passwd-s3fs +chmod 600 /path/to/passwd +``` + + Limitations ----------- @@ -103,7 +111,7 @@ References Frequently Asked Questions -------------------------- -* [FAQ wiki page](https://github.com/s3fs-fuse/s3fs-fuse/wiki/FAQ) +* [FAQ wiki page](https://github.com/s3fs-fuse/s3fs-fuse/wiki/FAQ) License ------- From 061533859275830123700f2dada761bac59dc9e6 Mon Sep 17 00:00:00 2001 From: Jirapong Nanta Date: Tue, 19 Jan 2016 12:06:10 +0700 Subject: [PATCH 2/2] update about netfs on boot --- README.md | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/README.md b/README.md index 05e09ba..bbfb658 100644 --- a/README.md +++ b/README.md @@ -76,7 +76,7 @@ s3fs mybucket /path/to/mountpoint -o passwd_file=/path/to/passwd -d -d -f -o f2 You can also mount on boot by entering the following line to `/etc/fstab`: ``` -s3fs#mybucket /path/to/mountpoint fuse _netdev,allow_other 0 0 +s3fs#mybucket /path/to/mountpoint fuse _netdev,retries=3,allow_other 0 0 ``` Note: You may also want to create the global credential file first @@ -86,6 +86,8 @@ echo MYIDENTITY:MYCREDENTIAL > /etc/passwd-s3fs chmod 600 /path/to/passwd ``` +Note2: You may also need to make sure `netfs` service is start on boot + Limitations -----------