Linux mounting shared directory steps in windows and problem solutions (clear steps)


Scenes

  • Native windous 10 workstation version
  • CentOS-7 version of the virtual machine Linux

purpose

  • The virtual machine mounts a file of the windows native machine

1. Unban Guest

Insert picture description here

Two, set shared directory permissions

Insert picture description here

Three, set the local strategy

Insert picture description here
Insert picture description here
Insert picture description here

Fourth, open the windows smb server

Insert picture description here

Five, Linux mount end

1. Scan shared directories

Insert picture description here

2. Mount the shared directory

yum install -y cifs-utils    #yum 安装 cifs-utils
mkdir /data                  #新建/data 目录用于挂载

Insert picture description here

3. There may be a situation

Insert picture description here

Solution

Insert picture description here

4. Possible situation two

Error 112: System failure
Insert picture description here

solution:

Refer to step 4 to check whether smb is turned on
Insert picture description here

5. Possible situation three

Insert picture description here

solution

1. Check whether the network is smooth, use ping, and solve the link problem if it is not smooth

2. If it can be pinged, check the network card and whether ONBOOT is yes

3. Check whether the firewall has a blocking strategy and turn off the firewall

4. If it fails, refresh the network card or close the ipv6 and refresh the network card again

Guess you like

Origin blog.csdn.net/Lucien010230/article/details/113138035