Mount S4 locally with Bitifs
Bitifs BETA is the official S4 mounting tool from Bitiful. It maps a bucket to a local folder on Windows, macOS, and Linux.
Prerequisites
- You have created a bucket;
- You have created a sub-user and AccessKey and granted it read, write, and list permissions on the bucket.
Install and mount
The command format is bitifs bucket-name mount-point. Replace my-bucket below with your bucket name. To mount only one directory, write my-bucket:directory-name; do the same when the sub-user has permissions on a directory only.
Install FUSE
sudo apt install fuse3 # Debian、Ubuntu
sudo dnf install fuse3 # Rocky、CentOS Stream、FedoraA one-click Linux script made by a community member: https://gitee.com/cncsrf/bitiful-oss
Unmount
umount ~/bitiful-mount # macOS
fusermount3 -u ~/bitiful-mount # LinuxOn Windows, just end the bitifs.exe process. Before unmounting, make sure no program is writing.
Usage tips
- Suited to browsing, backup, and sequential reads and writes. Hard links and file locks are not supported, so do not run databases on it;
- File permissions, owners, and modification times are not saved;
- Every read, write, and directory listing generates requests, so scanning many small files (for example by antivirus software or indexing services) increases request costs;
- For bulk migration, use Rclone or s5cmd, which are faster.
FAQ
Mounting fails with a permission error or 403
Check the keys and the sub-user grants. If only a directory is granted, mount with my-bucket:directory-name.
fuse is not found
WinFsp, macFUSE, or fuse3 is not installed. On macOS, after installing you also need to allow the system extension in System Settings and restart.
Keeping keys in environment variables is inconvenient
You can put them in ~/.aws/credentials and select them with --profile name.