LinuxのWindows 10コンピュータで複数の共有をマウントできない

LinuxのWindows 10コンピュータで複数の共有をマウントできない

2つの共有(XとY)をエクスポートするWindows 10 Proを実行しているコンピュータ(冬)があります。私のArch Linuxシステムに共有の1つをマウントできますが、同時に両方をマウントすることはできません。 /etc/fstab の構成は、共有名を除いて両方の共有と同じです。

//winten/x /mnt/winten/x cifs nofail,noserverino,vers=3.11,credentials=/etc/samba/private/winten-Net,uid=65534,gid=65534,file_mode=0444,iocharset=utf8,ro 0 0
//winten/y /mnt/winten/y cifs nofail,noserverino,vers=3.11,credentials=/etc/samba/private/winten-Net,uid=65534,gid=65534,file_mode=0444,iocharset=utf8,ro 0 0

資格情報ファイルには、Windowsコンピュータのローカルユーザー名とパスワードが含まれています。

以下は、共有マウントを試みる例です。

# mount /mnt/winten/x
# mount /mnt/winten/y
mount error(22): Invalid argument
Refer to the mount.cifs(8) manual page (e.g. man mount.cifs) and kernel log messages (dmesg)
# umount /mnt/winten/x
# mount /mnt/winten/y
# mount /mnt/winten/x
mount error(22): Invalid argument
Refer to the mount.cifs(8) manual page (e.g. man mount.cifs) and kernel log messages (dmesg)

ご覧のとおり、最初にインストールしたものはすべて機能しましたが、2番目は失敗しました。

dmesgの関連出力は次のとおりです。

[597888.074965] CIFS: Attempting to mount //winten/x
[597890.126132] CIFS: Attempting to mount //winten/y
[597890.129018] CIFS VFS: cifs_read_super: get root inode failed
[597899.512091] CIFS: Attempting to mount //winten/y
[597902.941119] CIFS: Attempting to mount //winten/x
[597902.942777] CIFS VFS: cifs_read_super: get root inode failed

両方の共有を同時にマウントするにはどうすればよいですか?

私が見つけたこの問題しかし、別の方向(Windowsシステム上のSamba共有マウント)に進み、問題は各共有に異なる資格情報を使用することでした(ただし、同じ資格情報を使用しました)。

ベストアンサー1

残念ながら解決策はありませんが、あなたの目的に合った解決策はあります。

vers=2.1これはSMB 3.0以降でのみ発生するように見えるため、代わりに複数の共有vers=3.11を同時にマウントできます。

おすすめ記事