[Linux相關] mount(2) system call failed: Operation not supported 解決方案

新裝了linux 18.04後, 掛載其他盤時,遇到了如下錯誤

$sudo mount -t cifs -o username=xxx //172.16.x.xxx/SW_Test/ /media/SW_TEST
mount: /media/SW_TEST: mount(2) system call failed: Operation not supported.

後發現缺少 cifs-utils 包, 導致有此錯誤

安裝 cifs-utils 包

$sudo apt-get install cifs-utils
Reading package lists... Done
Building dependency tree       
Reading state information... Done
Suggested packages:
  keyutils smbclient winbind
The following NEW packages will be installed:
  cifs-utils
0 upgraded, 1 newly installed, 0 to remove and 4 not upgraded.
Need to get 71.5 kB of archives.
After this operation, 231 kB of additional disk space will be used.
Get:1 http://cn.archive.ubuntu.com/ubuntu bionic/main amd64 cifs-utils amd64 2:6.8-1 [71.5 kB]
Fetched 71.5 kB in 17s (4,208 B/s)                     
Selecting previously unselected package cifs-utils.
(Reading database ... 234494 files and directories currently installed.)
Preparing to unpack .../cifs-utils_2%3a6.8-1_amd64.deb ...
Unpacking cifs-utils (2:6.8-1) ...
Setting up cifs-utils (2:6.8-1) ...
update-alternatives: using /usr/lib/x86_64-linux-gnu/cifs-utils/idmapwb.so to provide /etc/cifs-utils/idmap-plugin (idmap-plugin) in auto mode
Processing triggers for man-db (2.8.3-2ubuntu0.1) ...

再運行

$sudo mount -t cifs -o username=xxx //172.16.x.xxx/SW_Test/ /media/SW_TEST
Password for xxx@//172.16.x.xxx/SW_Test/:  *******
mount error(95): Operation not supported
Refer to the mount.cifs(8) manual page (e.g. man mount.cifs)

恩, 似乎剛剛那個錯誤解決了, 再來解決此錯誤。

網上說需要增加選項: vers=1.0
參考 https://blog.csdn.net/NICK1211/article/details/80495497
恩,成功了。

$sudo mount -t cifs -o username=xxxx,vers=1.0 //172.16.2.225/SW_Test/ /media/SW_TEST
[sudo] password for xxxx: 
Password for xxxx@//172.16.x.xxx/SW_Test/:  ************
發表評論
所有評論
還沒有人評論,想成為第一個評論的人麼? 請在上方評論欄輸入並且點擊發布.
相關文章