when I use the following command:
$mount-t cifs //192.168.1.2/ Samba/MNT/Samba-o Username =test,password=test
mount samba share file gets the following error:
mount error 20 = Not a directory
Refer to the mount.cifs(8) manual page (e.g.man mount.cifs)
a Google search revealed that the problem could be due to the cifs file system not being compatible with older samba Shared servers, so either upgrading the samba server program or restricting the cifs would be required to fix the problem. According to the online advice, you can use:
$echo 0 > /proc/fs/cifs/LinuxExtensionsEnabled
modifies the cifs option to disable cifs extensions, and then mount is no problem.
but it was a bit cumbersome to do this every time I restarted, so I changed my system startup script so that I could put these mounts into my fstab and let the system mount automatically every time it was started. The methods are as follows:
modify /etc/init.d/netfs to add a line like the + sign in start as follows:
Case “$1” in the start)
+/sbin/modprobe cifs & amp; & echo 0 > /proc/fs/cifs/LinuxExtensionsEnabled
…
first execute “/sbin/modprobecifs” to load the cifs module, otherwise the file we want to modify LinuxExtensionsEnabled may not exist yet, and the modification will fail. Since rc*.d/S**netfs at different boot levels are linked to /etc/init.d/netfs, this change takes effect for all boot levels. Of course, if your system is not such a link, it is the same to modify the corresponding file.
there will be no problem installing the samba Shared file system after the restart.
Read More:
- Samba mount directory file rename strange failure
- [Solved] Imx6qdl Android 5.0 kernel 3.10 can’t mount system file system
- NFS mount error: mount.nfs mount system call failed
- Mount error (22): invalid argument refer to the mount.cifs (8) manual page (
- twrp failed to mount system
- Debian using networking to restart the network can not start the solution of network card
- CentOS system startup error failed to mount / sysRoot solution
- Samba mount error (115): operation now in progress refer to the mount.cifs (8) manual page (e.g. ma
- SUSE mount NFS prompt mount.nfs no such device
- When installing ROS: bash / opt / ROS / kinetic/ setup.bash : there is no file or directory
- When installing pyaudio, an error is reported: failed error: portaudio. H: there is no such file or directory
- Docker creation container cannot find network card: error response from daemon: network XXXX not found
- Installing zookeeper under Linux system
- net start mysql System error 2 has occurred. The system cannot find the file specified.
- After installing the dual system , Code error
- Problem: error (24) file not found is prompted when importing the network table
- Installing R’s “mvtnorm” package in Windows system: solving the problem of the R package “mvtnorm” is not installed
- Win10 can not open the picture, file system error (- 214721996) repair method
- C / C + + cannot open the source file directory, the header file is not imported, the solution is as follows
- cifs mount error(13): Permission denied