外付けハードドライブをマウントできません

外付けハードドライブをマウントできません

私はDebianとWindows(長い間)を使用しています。

Windowsに外部ディスクをマウントしましたが、Linuxで再マウントしようとすると同じエラーが発生し続けます。

Error mounting: mount exited with exit code 1: helper failed with:
Unprivileged user can not mount NTFS block devices using the external FUSE
library. Either mount the volume as root, or rebuild NTFS-3G with integrated
FUSE support and make it setuid root. Please see more information at
http://tuxera.com/community/ntfs-3g-faq/#unprivileged

コマンドラインを使用してインストールしようとしましたが、別のエラーが発生しました。

:~$ sudo mount -t ntfs /dev/sda1 /media
Mount is denied because the NTFS volume is already exclusively opened.
The volume may be already mounted, or another software may use it which
could be identified for example by the help of the 'fuser' command.

ベストアンサー1

これは私がさまざまなソースからもたらしたものです(例:http://tuxera.com/community/ntfs-3g-faq/#unprivileged) - かなり長いですが、少なくともwheezyとjessieには効果があります。

  1. 端末を開く
  2. ダウンロードソース:

    $ apt-get source ntfs-3g
    
  3. パッケージソースディレクトリを入力してください(名前は異なる場合があります)。

    $ cd ntfs-3g-2014.2.15AR.2
    
  4. 内部を使用するようにパッケージ構成を変更しますfuse

    $ sed -i -e "s/--with-fuse=external/--with-fuse=internal/" debian/rules
    
  5. パッケージビルド

    $ sudo apt-get build-dep ntfs-3g
    $ fakeroot debian/rules binary
    

    時々ビルドが失敗するので、クリーンアップしてやり直してください。今動作します。

    $ fakeroot debian/rules clean
    $ fakeroot debian/rules binary
    
  6. 生成されたパッケージをインストールします(名前は異なる場合があります)。

    $ sudo dpkg -i ../ntfs-3g_2014.2.15AR.2-1+deb8u2_amd64.deb
    
  7. これでsetuidで設定する必要がありますntfs-3g(これは危険なので、何をしているのかを知る必要があります)。

     $ sudo dpkg-reconfigure ntfs-3g
    

    setuidに応答しyesたり機能しない場合は、手動で実行してください。

     $ chmod 4755 $(which ntfs-3g)
    
  8. Debian をアップグレードするたびにこれらすべての操作を繰り返さないようにするには、次の設定を行いntfs-3gます。

     $ echo "ntfs-3g hold" | sudo dpkg --set-selections
    

おすすめ記事