Filesystem in Userspace

From Gentoo Wiki
Jump to:navigation Jump to:search
This page is a translated version of the page Filesystem in Userspace and the translation is 100% complete.
Other languages:
Resources

Filesystem in Userspace(FUSE)は、 特別な権限を必要とせずにユーザがファイルシステムをマウントする方法です(Linuxでは、マウントをする際基本的に特権を持ったユーザしか出来ません).

インストール

カーネル

カーネル FUSEファイルシステムのサポートを有効化
File systems  --->
   <*> FUSE (Filesystem in Userspace) support

USE フラグ

USE flags for sys-fs/fuse An interface for filesystems implemented in userspace

examples Install examples, usually source code
static-libs Build static versions of dynamic libraries as well
suid Enable setuid root program(s)
test Enable dependencies and/or preparations necessary to run tests (usually controlled by FEATURES=test but can be toggled independently)

Emerge

ほとんどのファイルシステムと同じように、ファイルシステムのサポートをカーネルにビルドしたあと、確実にユーザスペースツールをインストールしてください:

root #emerge --ask sys-fs/fuse

設定

ファイル

FUSEでは、以下の設定ファイルを利用できます:

  • /etc/fuse.conf

fuse.confファイルでは、2つの設定変数を利用可能です:

  • mount_max - 非ルートユーザに認めるFUSEのマウントの最大数を設定します(未設定ならば1000)。
  • user_allow_other - 非ルートユーザにallow_otherallow_rootマウントオプションを許可します。これはセキュリティの理由から無効になっています。

使い方

呼び出し

user $fusermount3 -h
fusermount3: [options] mountpoint
Options:
 -h                 print help
 -V                 print version
 -o opt[,opt...]   mount options
 -u                 unmount
 -q                 quiet
 -z                 lazy unmount

ファイルシステムのマウント

fusermount3 コマンドを使用してください:

user $fusermount3 /path/to/mountpoint

ファイルシステムのアンマウント

ファイルシステムは、umount コマンドまたは fusermounte コマンドのどちらかを利用してアンマウントすることが出来ます:

user $fusermount3 -u /path/to/mountpoint

削除

root #emerge --ask --depclean --verbose sys-fs/fuse

トラブルシューティング

AppImage

AppImage を実行するときに、以下のようなエラーメッセージを見ることがあるかもしれません。

user $./app.appimage
AppImages require FUSE to run.
You might still be able to extract the contents of this AppImage
if you run it with the --appimage-extract option.
See https://github.com/AppImage/AppImageKit/wiki/FUSE
for more information

sys-fs/fusefusermount3 を提供しますが、古い AppImage は sys-fs/fuse:0 を必要とする場合があります。

root #emerge --ask sys-fs/fuse:0

関連項目

  • Filesystem — プログラムの終了後も保持されるデータを整理するための手段です。

外部資料