0
0

Delete article

Deleted articles cannot be recovered.

Draft of this article would be also deleted.

Are you sure you want to delete this article?

【macOS対応】macFUSEとs3fsでS3バケットをマウントする方法+lsできない問題の対処法

Last updated at Posted at 2025-04-24

✅ やりたいこと

macでs3fsを使って、S3バケット(今回はWasabi)をローカルにマウントしたい。

🧩 前提

  • macOS (例: Sequoia)
  • Homebrewが入ってる
  • WasabiなどのS3互換サービスを使用
  • macFUSEs3fs を使用

🔧 1. 必要なものをインストール

brew install --cask macfuse
brew install s3fs

🔓 2. macFUSEにかかったセキュリティブロックを解除

こちらの公式の記事を参考に解除してください

🔐 3. 認証ファイルの作成

# ACCESS_KEYとSECRET_KEYは適宜書き換えてください
echo ACCESS_KEY:SECRET_KEY > ~/.passwd-s3fs
chmod 600 ~/.passwd-s3fs

🗂 4. マウントポイントを作る

mkdir -p $HOME/.local/dev/s3fs

🚀 5. 実際にマウントする

# mybucket: 実際のバケット名に変更してください
# /share: マウントしたいバケットのパスを指定できます(指定しなくても大丈夫)
s3fs mybucket:/share \
    $HOME/s3fs \
    -o passwd_file=$HOME/.passwd-s3fs \
    -o url="https://s3.ap-northeast-1.wasabisys.com" \
    -o use_path_request_style,allow_other,enable_noobj_cache,enable_content_md5,umask=0022

⚠️ 6. lsできない!? → 対処法

私の場合はこのようなエラーが出てしまいました。

ls $HOME/s3fs
# → "." Operation not permitted (os error 1)

✅ 解決方法:Terminalに「フルディスクアクセス」を許可

1.	システム設定 > プライバシーとセキュリティ > フルディスクアクセス
2.	Terminal.app を追加してオン
3.	ターミナルを再起動!

これで ls できるようになります。

0
0
0

Register as a new user and use Qiita more conveniently

  1. You get articles that match your needs
  2. You can efficiently read back useful information
  3. You can use dark theme
What you can do with signing up
0
0

Delete article

Deleted articles cannot be recovered.

Draft of this article would be also deleted.

Are you sure you want to delete this article?