mount.cifs は使用できません。マウントエラー(2):対応するファイルやディレクトリがなく、パスワードがありません。

mount.cifs は使用できません。マウントエラー(2):対応するファイルやディレクトリがなく、パスワードがありません。

これに関連するいくつかのトピックがあることを知っていますが、それらのどれも私の問題を解決しません。上記のさまざまなオプションを試しました。ここ

smbを介して接続されたディスクを公開するルーターがあります\\192.168.1.1\diskname。ユーザー名は必要ありません。ディスクは/mnt/disknameディレクトリが存在し、権限がある場所にマウントされます777

だからこのコマンドを実行します。

sudo mount -t cifs //192.168.1.1/diskname /mnt/diskname -o file_mode=0777,dir_mode=0777,rw,sec=none --verbose

これにより

mount.cifs kernel mount options: ip=192.168.1.1,unc=\\192.168.1.1\diskname,file_mode=0777,dir_mode=0777,sec=none,user=root,pass=********
mount error(2): No such file or directory
Refer to the mount.cifs(8) manual page (e.g. man mount.cifs)
$ sudo lsmod | grep fuse       
fuse                  131072  5
$ sudo lsmod | grep cifs
cifs                 1077248  0
dns_resolver           16384  1 cifs
fscache               397312  1 cifs
$ mount.cifs --version
mount.cifs version: 6.8

それともsec=none私も試してみましたが、user=,password=,結果は変わりませんでした。

ベストアンサー1

実際に唯一欠けている部分は、追加vers=1.0オプションとして使用されたときに動作するmoutです。どうやらそれが何をしているのかによるとman mount.cifs

vers=arg
   SMB protocol version. Allowed values are:
   • 1.0 - The classic CIFS/SMBv1 protocol.
   • 2.0 - The SMBv2.002 protocol. This was initially introduced in Windows Vista Service Pack 1, and Windows Server 2008. Note that the initial release version of Windows Vista spoke a slightly different dialect (2.000) that is not supported.
   • 2.1 - The SMBv2.1 protocol that was introduced in Microsoft Windows 7 and Windows Server 2008R2.

おすすめ記事