When you mount Samba to share files, you receive the following error:
Mount error = not directory A
Refer to the Mount.cifs (8) manual page (E.g.man mount.cifs)
Google, and found that this problem may be due to the fact that the CIFS file system is incompatible with older versions of the Samba shared server, so to solve this problem, either upgrade the Samba server program or have some restrictions on CIFS. According to the online recommendations, you can use:
$echo 0 >/proc/fs/cifs/linuxextensionsenabled
Modify the CIFS option to prevent CIFS extensions, and then there is nothing wrong with the mount.
But it's a bit of a hassle to do this once every reboot, so I changed the system's startup script so that I could put the mount in the Fstab and let the system mount automatically every time it started. The method is as follows:
To modify the/etc/init.d/netfs, add the line shown in start with the + number in the following way:
Case "$" in start)
+/sbin/modprobe CIFS && echo 0 >/proc/fs/cifs/linuxextensionsenabled
...
The first execution of "/sbin/modprobecifs" is to load the CIFS module, otherwise the file linuxextensionsenabled that we are modifying may not exist and the modification will fail. Since the rc*.d/s**netfs of the different boot level are linked to/ETC/INIT.D/NETFS, this modification will take effect for all start level. Of course, if your system is not such a link, modify the corresponding file is the same.
Rebooting and then installing the Samba shared file system will be fine.
The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion;
products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the
content of the page makes you feel confusing, please write us an email, we will handle the problem
within 5 days after receiving your email.
If you find any instances of plagiarism from the community, please send an email to:
info-contact@alibabacloud.com
and provide relevant evidence. A staff member will contact you within 5 working days.