インストールエラー(2):そのファイルまたはディレクトリはありません。 - CIFS - Rasperry Pi

インストールエラー(2):そのファイルまたはディレクトリはありません。 - CIFS - Rasperry Pi

NASで共有しようとしていますが、SMB共有をマウントできません。に基づいてUbuntu smbドキュメントSMB/CIFS をマウントするコマンドは、次のようにする必要があります。

sudo mount -t cifs -o username=test,password=pw1234 //<server>/home ~/test

エラーメッセージは次のとおりです。

mount error(2): No such file or directory
Refer to the mount.cifs(8) manual page (e.g. man mount.cifs)

私は以下を試しました:

  • ~/test を絶対パス /home/pi/test に置き換えます - 変更なし
  • /home/pi/test があることを確認してください。フォルダが存在します。
  • Windows 7(ユーザー+パスワード)を使用して共有マウントを試みました。働いた。
  • pingサーバー - サーバーにアクセス可能
  • smbclientの共有をチェックしてください。

    smbclient -U test -L //<server>
    WARNING: The "syslog" option is deprecated
    Enter test's password:
    Domain=[WORKGROUP] OS=[Windows 6.1] Server=[Samba 4.4.16]
    
    Sharename       Type      Comment
    ---------       ----      -------
    ...
    home            Disk      Home directory of test
    Domain=[WORKGROUP] OS=[Windows 6.1] Server=[Samba 4.4.16]
    
  • -o フラグに「vers=1.0」、「vers=2.0」、「vers=2.1」、「vers=3.0」を追加してみてください。

    sudo mount -t cifs -o username=test,password=pw1234,vers=1.0 //<server>/home /home/pi/test/
    mount error(2): No such file or directory
    Refer to the mount.cifs(8) manual page (e.g. man mount.cifs)
    
  • -oフラグに "sec = ntlm"を追加してみてください。

    sudo mount -t cifs -o username=test,password=pw1234,sec=ntlm //<server>/home /home/pi/test/
    mount error(22): Invalid argument
    Refer to the mount.cifs(8) manual page (e.g. man mount.cifs)
    
  • mountの-vフラグを試しました。

    sudo mount -v -t cifs -o username=test,password=pw1234 //<server>/home /home/pi/test/
    mount.cifs kernel mount options: ip=<correct_ip>,unc=\\<server>\home,user=test,pass=********
    mount error(2): No such file or directory
    Refer to the mount.cifs(8) manual page (e.g. man mount.cifs)
    
  • -oフラグにnodfsを追加してみてください。 この unix-stackexchange 投稿から

  • 読むmount.cifs は使用できません。マウントエラー(2):対応するファイルまたはディレクトリがありません。

piの仕様は次のとおりです。

  • uname -a :Linux 4.14.52-v7+ #1123 SMP 水曜日 6月 27日 17:35:49 BST 2018 armv7l GNU/Linux

ベストアンサー1

おすすめ記事