s3fs on Linux
s3fs (s3fs-fuse) mounts a Zata bucket as a folder on Linux. You can then use it with normal commands such as ls, cp and mkdir. The examples use Indore (https://idr01.zata.ai); for a bucket in Mumbai, use https://bom01.zata.ai.
/etc/fstab).Before you start
- A bucket — see Create a bucket.
- An access key from the same region as the bucket — see Access keys.
- A Linux machine where you can use
sudo.
Connection settings
Set up s3fs
Test it
mountpoint prints /mnt/zata is a mountpoint. The file test.txt also appears in your bucket in the Zata console under Buckets.
Mount at boot
Add this line to /etc/fstab (sudo nano /etc/fstab), with your bucket name and endpoint:
Test the line without rebooting. Unmount first if the bucket is still mounted:
Unmount
If it says target is busy, close any terminal or app that is using the folder, then try again.
Limits
s3fs makes a bucket look like a folder, but it is not a full disk:
- Editing a file in place re-uploads the whole file, so changes to large files are slow.
- Renaming or moving a large folder is slow: each file is copied and then deleted.
- With a sub-user key, mount the bucket by its name as above. The sub-user needs a permission that can list the bucket — Upload Only cannot mount it, because s3fs lists the bucket when it starts.
For many files or large transfers, use rclone. For fast reads and writes of whole files, see goofys.
Troubleshooting
For other errors, see Access denied and Endpoint and region.