Skip to content
Console

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

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 WinFsp

Download and install it from the WinFsp releases page.

Set your keys

CMD:

set AWS_ACCESS_KEY_ID=YourAccessKey
set AWS_SECRET_ACCESS_KEY=YourSecretKey

PowerShell:

$env:AWS_ACCESS_KEY_ID="YourAccessKey"
$env:AWS_SECRET_ACCESS_KEY="YourSecretKey"

Mount to drive B

.\bitifs.exe my-bucket B:

Install macFUSE

Download and install it from the macFUSE releases page.

Download Bitifs

Apple silicon:

curl -fL -o bitifs https://tools.bitiful.com/bitifs/bitifs_macos_arm64 && chmod +x bitifs

Intel chips:

curl -fL -o bitifs https://tools.bitiful.com/bitifs/bitifs_macos_amd64 && chmod +x bitifs

Set your keys

export AWS_ACCESS_KEY_ID="YourAccessKey"
export AWS_SECRET_ACCESS_KEY="YourSecretKey"

Mount

mkdir -p ~/bitiful-mount && ./bitifs my-bucket ~/bitiful-mount

Install FUSE

sudo apt install fuse3   # Debian、Ubuntu
sudo dnf install fuse3   # Rocky、CentOS Stream、Fedora

Download Bitifs

AMD64:

curl -fL -o bitifs https://tools.bitiful.com/bitifs/bitifs_linux_amd64 && chmod +x bitifs

ARM64:

curl -fL -o bitifs https://tools.bitiful.com/bitifs/bitifs_linux_arm64 && chmod +x bitifs

Set your keys

export AWS_ACCESS_KEY_ID="YourAccessKey"
export AWS_SECRET_ACCESS_KEY="YourSecretKey"

Mount

mkdir -p ~/bitiful-mount && ./bitifs my-bucket ~/bitiful-mount
One-click mount for Bitiful S4

A one-click Linux script made by a community member: https://gitee.com/cncsrf/bitiful-oss

Unmount

umount ~/bitiful-mount          # macOS
fusermount3 -u ~/bitiful-mount  # Linux

On 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.