Hi,
Does anyone have any examples on how to configure the /etc/fstab/ to enable cuno to auto mount the s3 bucket to a mount point? This would be helpful to reconnect the bucket mount point after a server reboot.
Thank you,
Glen
Hi Glen, sorry for the slow response.
To mount a cunoFS Mount on boot, you must do the following steps:
- Make a directory for the mount point:
sudo mkdir /mnt/bucketname
- Ensure that the root user has had cunoFS credentials imported:
sudo /opt/cuno/bin/cuno creds import credentials.txt
Note that if you have a user-local installation of cunoFS you will need to modify the path to the binary accordingly.
You should check that the root user can access the bucket, as follows:
sudo /opt/cuno/bin/cuno run ls s3://bucketname
- Add an entry to
/etc/fstab
:
/opt/cuno/libexec/cuno-mount#--root=s3://bucketname /mnt/bucketname fuse _netdev,allow_other 0 0
You can then test edits to the fstab entry without rebooting with the commands:
sudo systemctl daemon-reload
sudo mount -a
We hope this helps, we will be adding detail to the relevant parts of documentation also.