Network Security Internet Technology Development Database Servers Mobile Phone Android Software Apple Software Computer Software News IT Information

In addition to Weibo, there is also WeChat

Please pay attention

WeChat public account

Shulou

Mount the windows shared directory to the linux

2025-02-24 Update From: SLTechnology News&Howtos shulou NAV: SLTechnology News&Howtos > Servers >

Share

Shulou(Shulou.com)06/02 Report--

Mount-t cifs-o username= "WEB", password= "1qaz2wsx" / / 192.168.10.209/svnbackup//mnt/svnbackup

Note: windows shares must be accessed by user name and password, and sharing users must have full permissions.

Username: user name

Password: password

-t the mount type selected when mounting the cifs:linux

/ / 192.168.10.209/svnbackup: Mount source

/ mnt/svnbackup: Mount point

/ etc/fstab is written:

/ / 192.168.10.209/svnbackup / mnt/svnbackup cifs username=WEB,password=1qaz2wsx 0 0

Question 1:

Appears when mounting: mount is not a valid block device

Cause of the problem: this is caused by no cifs tools installed on the system

Solution: yum install cifs-utils-y

Question 2:

Will appear when mounting: mount cannot allocate memory

Cause of the problem: this is due to the limitation of the windows system, when the files mounted into Linux are too large, it will cause insufficient memory allocation.

Solution:

After opening the registry with regedit, make the following changes

1. HKEY_LOCAL_MACHINE\ SYSTEM\ CurrentControlSet\ Control\ Session Manager\ Memory Management\ LargeSystemCache is set to "1".

two。 "HKEY_LOCAL_MACHINE\ SYSTEM\ CurrentControlSet\ Services\ LanmanServer\ Parameters\ Size" is set to "3".

3. After modifying the registry, you need to restart the server

Welcome to subscribe "Shulou Technology Information " to get latest news, interesting things and hot topics in the IT industry, and controls the hottest and latest Internet news, technology news and IT industry trends.

Views: 0

*The comments in the above article only represent the author's personal views and do not represent the views and positions of this website. If you have more insights, please feel free to contribute and share.

Share To

Servers

Wechat

© 2024 shulou.com SLNews company. All rights reserved.

12
Report