Other fuse.s3fs doesn't mount from fstab

I have tried to install s3fs both with pkg and through ports. Both methods succeeded. I managed to successfully mount my S3 bucket to a folder. Now problems start when I try to automate the mounting on boot through fstab. It fails with:
Bash:
fstab: /etc/fstab:3: Inappropriate file type or format

These are the example strings I tried to put in the fstab file:
Bash:
my-bucket /home/ftpuser/ftp fuse _netdev,allow_other,mountprog=/usr/local/bin/s3fs,late 0 0
s3fs#mybucket /home/ftpuser/ftp fuse _netdev,allow_other 0 0
s3fs mybucket /home/ftpuser/ftp
-oallow_other ftp-test-farid /home/ftpuser/ftp fuse.s3fs _netdev 0 0
And hundred other variations in between.

I have added fuse_load=YES to /boot/loader.conf

I'm getting desperate, in Debian it just works. But I really want to make it work in FreeBSD.
 
I managed to successfully mount my S3 bucket to a folder.
How does the command you used look like?
my-bucket /home/ftpuser/ftp fuse _netdev,allow_other,mountprog=/usr/local/bin/s3fs,late 0 0
s3fs#mybucket /home/ftpuser/ftp fuse _netdev,allow_other 0 0
s3fs mybucket /home/ftpuser/ftp -oallow_other ftp-test-farid /home/ftpuser/ftp fuse.s3fs _netdev 0 0
The _netdev option doesn’t exist in FreeBSD’s mount(8) and mount_fuse(8), or in s3fs(1), I haven't found a reference to ftp-test-farid.

Try something similar to this:
Code:
my-bucket /home/ftpuser/ftp s3fs allow_other,mountprog=/usr/local/bin/s3fs,late 0 0
It would be easier to make suggestions if you post the command you where able to mount the bucket.
 
It finally worked! I read fstab(5) man more thoroughly this time, and noticed that:
The fourth field, (fs_mntops), describes the mount options associated
with the file system. It is formatted as a comma separated list of op-
tions. It contains at least the type of mount (see fs_type below)...

Thus I appended rw, so the final string that worked was:

Bash:
my-bucket /home/ftpuser/ftp fuse rw,_netdev,allow_other,mountprog=/usr/local/bin/s3fs,late 0 0

How does the command you used look like?

s3fs my-bucket /home/ftpuser/ftp
 
...and a more complicated example with many parameters (for mounting a minio bucket), for those that - like me - have been glad that this thread existed:

Command line:

Code:
s3fs mybucket /mnt/mymountpoint -o passwd_file=/etc/passwordfile,url=https://10.10.10.10:9000 -o use_path_request_style -o use_cache=/tmp/s3fs -o enable_noobj_cache -o no_check_certificate -o use_xattr -o complement_stat

/etc/fstab-entry:
Code:
s3fs-default        /mnt/mymountpoint    fuse    rw,_netdev,allow_other,mountprog=/usr/local/bin/s3fs,late,passwd_file=/etc/passwordfile,url=https://10.10.10.10:9000,use_path_request_style,use_cache=/tmp/s3fs,enable_noobj_cache,no_check_certificate,use_xattr,complement_stat    0    0
 
This finally worked for me on 13-2...

/etc/fstab:
my-awsbucket-xyz /mnt/s3-mount fuse failok,rw,allow_other,mountprog=/usr/local/bin/s3fs 0 0

/boot/loader.conf:
fusefs_load="YES"

/etc/rc.conf:
kld_list="fusefs"
fusefs_enable="YES"
 
Back
Top