Error:
mount error(6): No such device or address
Refer to the mount.cifs(8) manual page (e.g. man mount.cifs)
Samba server Settings:
[root@test1 ~]#cat /etc/samba/smb.conf
Global Settings:
[global]
workgroup = test
server string = Samba Server Version %v
#log files split per-machine:
log file = /var/log/samba/log.%m
#maximum size of 50KB per log file, then rotate:
max log size = 50
security = user
passdb backend = tdbsam
load printers = no
cups options = raw
The home Settings
[homes]
comment = Home Directories
browseable = no
writable = yes
create mode = 0664
directory =0755
Projects
comment = smbuser's home
path = /share
browseable = yes
writable = yes
write list = @users
3 . font – family: tahoma; mso – bidi – font – family: tahoma;从/etc/samba/smb.Load smb configuration file conf
rlimit_max: increase rlimit_max(1024) to the minimum window limit (16384)
Process section “[homes]”
Processing section “[project]”
Loaded service file OK.
Server role:ROLE_STANDALONE
View service definition dumps by enter
# global parameters
(Global)
server string = Samba Server Version %v
workgroup = TEST
log file = /var/log/samba/log.%m
max log size = 50
load printers = No
security = USER
idmap config * : backend = tdb
cups options = raw
(home)
comment = Home Directories
path = 0755
browseable = No
create mask = 0664
read only = No
(project)
comment = smbuser's home
path = /share
read only = No
write list = @users
Client mount
[root@test2 ~]# mount -t cifs //2.2.1.2/user1/mnt-o username=user1,password=4321
Retrying with upper case share name
mount error(6): No such device or address
Refer to the mount.cifs(8) manual page (e.g. man mount.cifs)
Check found an error setting for the server:
Solution: Change directory = 0755 in the home directory to Directory Mode = 0755
[homes]
comment = Home Directories
browseable = no
writable = yes
create mode = 0664
directory **mode** = 0755
Testparm didn’t detect a problem, so it took a long time. The key is carefulness, carefulness!
Read More:
- How to Solve k8s Nodal issues: /sys/fs/cgroup/memory/docker: no space left on device\““: unknown.
- How to Solve “RIP Address Out Of Range” Error
- TensorFlow-gpu Error: failed call to cuInit: CUDA_ERROR_NO_DEVICE: no CUDA-capable device is detected
- [Go] Solve panic: runtime error: invalid memory address or nil pointer dereference in golang
- [Solved] Vue Error: Failed to mount component: template or render function not defined
- [Solved] Bringing up interface eth0: Error: No suitable device found: no device found for connection ‘System eth0’.
- How to Solve ModuleNotFoundError: No module named ‘_bz2‘
- How to Solve canal & MYSQL or “Kafka cannot consume data” Error
- How to Solve Error: Missing type map configuration or unsupported mapping
- Git: How to Solve Error: Please commit your changes or stash them before you merge.
- How to Solve STM32 no flash error
- How to Solve Kafka Error: no leader
- How to Solve pod Error: “Authentication token is invalid or unverified. Either verify it with the email that…”
- How to Solve Error: You need to use a Theme.AppCompat theme (or descendant) with this activity.
- How to Sove Error: listen EADDRINUSE: address already in use 127.0.0.1:8888
- Oracle Database Cannot Open mount Mode Error: ORA-01102
- [Solved] panic: runtime error: invalid memory address or nil pointer dereference
- [Solved] Docker Startup Error: panic: runtime error: invalid memory address or nil pointer dereference
- [Solved] – npm run dev Error: listen EADDRINUSE: address already in use :::8000(or 8080 etc.)
- How to Solve elasticsearch and logstash Install Error