Problem on mounting Windows share on CentOs7

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



Hello 

I are trying to mount a windows share in a Linux box (CentOS Linux release 7.8.2003 (Core)) for image sharing
Before using fstab I am trying to mount it manually, but with no success 
I am quite a linux newbie so there could be something trivial I am missing

The linux box can ping the windows machine 

The folder we want to map is
//customerGroup.local/GroupFolders/Customer/Site1/Others/prod_images/sketch/regular 

And the mounting point is 
/mnt/sketch 

The mounting point exists and is accessible



Trying to connect to the remote machine via smbclient is working

[plm@vm-308-plm01 /]$ smbclient -L customerGroup.local -U sa-user_plm
Enter SAMBA\sa-user_plm's password:

        Sharename       Type      Comment
        ---------       ----      -------
        ADMIN$          Disk      Remote Admin
        Applications$   Disk
        C$              Disk      Default share
        GroupFolders    Disk
        IPC$            IPC       Remote IPC
        it$             Disk
        MTATempStore$   Disk
        NETLOGON        Disk      Logon server share
        RemoteFS        Disk
        SYSVOL          Disk      Logon server share

The folder we are interested is not a first level share, but is a subfolder of the share 
//customerGroup.local/GroupFolders/Customer/Site1/Others/prod_images/sketch/regular

Can it be a problem?


Here the list of the try (and error) done… 



Attempt 0
sudo mount -t cifs -o username=sa-user_plm  //customerGroup.local/GroupFolders/Customer/Site1/Others/prod_images/sketch/regular /mnt/sketch

Result (sudo cat /var/log/messages ) 

Apr 12 10:18:23 vm-308-plm01 dockerd: time="2022-04-12T10:18:23.517868010+02:00" level=info msg="NetworkDB stats vm-308-plm01.providercenter.services(45e8e1c36c42) - netID:0x5gnr8y3ifwf4z leaving:false netPeers:5 entries:28 Queue qLen:0 netMsg/s:0"
Apr 12 10:18:23 vm-308-plm01 dockerd: time="2022-04-12T10:18:23.517963103+02:00" level=info msg="NetworkDB stats vm-308-plm01.providercenter.services(45e8e1c36c42) - netID:wg0w3e3nfg3defwo leaving:false netPeers:5 entries:29 Queue qLen:0 netMsg/s:0"
Apr 12 10:20:01 vm-308-plm01 systemd: Started Session 117381 of user root.
Apr 12 10:21:39 vm-308-plm01 snmpd[5625]: truncating integer value > 32 bits
Apr 12 10:21:58 vm-308-plm01 kernel: No dialect specified on mount. Default has changed to a more secure dialect, SMB2.1 or later (e.g. SMB3), from CIFS (SMB1). To use the less secure SMB1 dialect to access old servers which do not support SMB3 (or SMB2.1) specify vers=1.0 on mount.
Apr 12 10:21:58 vm-308-plm01 kernel: CIFS VFS: DFS capability contradicts DFS flag
Apr 12 10:21:58 vm-308-plm01 key.dns_resolver: DUBDC1.CUSTOMERGROUP.LOCAL: No address associated with name
Apr 12 10:21:58 vm-308-plm01 kernel: CIFS VFS: cifs_mount failed w/return code = -22


Attempt 1

cat /proc/fs/cifs/cifsFYI   → 0


echo 1 | sudo tee /proc/fs/cifs/cifsFYI

sudo mount -t cifs -o username=sa-user_plm  //customerGroup.local/GroupFolders/Customer/Site1/Others/prod_images/sketch/regular /mnt/sketch

[59182440.769656] No dialect specified on mount. Default has changed to a more secure dialect, SMB2.1 or later (e.g. SMB3), from CIFS (SMB1). To use the less secure SMB1 dialect to access old servers which do not support SMB3 (or SMB2.1) specify vers=1.0 on mount.
[59182440.799474] CIFS VFS: DFS capability contradicts DFS flag
[59182440.852211] CIFS VFS: cifs_mount failed w/return code = -22


Attempt 2 (nounix,sec=ntlmssp )

sudo mount -t cifs -o username=sa-user_plm,nounix,sec=ntlmssp  //customerGroup.local/GroupFolders/Customer/Site1/Others/prod_images/sketch/regular /mnt/sketch


Apr 12 11:14:06 vm-308-plm01 kernel: No dialect specified on mount. Default has changed to a more secure dialect, SMB2.1 or later (e.g. SMB3), from CIFS (SMB1). To use the less secure SMB1 dialect to access old servers which do not support SMB3 (or SMB2.1) specify vers=1.0 on mount.
Apr 12 11:14:06 vm-308-plm01 kernel: CIFS VFS: DFS capability contradicts DFS flag
Apr 12 11:14:06 vm-308-plm01 key.dns_resolver: CASDC1: No address associated with name
Apr 12 11:14:06 vm-308-plm01 kernel: CIFS VFS: cifs_mount failed w/return code = -22


Attempt 3 smb vers 1

sudo mount -t cifs -o vers=1.0,username=sa-user_plm,nounix,sec=ntlmssp  //customerGroup.local/GroupFolders/Customer/Site1/Others/prod_images/sketch/regular /mnt/sketch

Apr 12 11:15:08 vm-308-plm01 key.dns_resolver: XXYYADC2.CUSTOMERGROUP.LOCAL: No address associated with name
Apr 12 11:15:08 vm-308-plm01 kernel: CIFS VFS: cifs_mount failed w/return code = -22


Attempt 4  (IP)
Working with IP seems slightly better… the operation went on for a while, but failed

sudo mount -t cifs -o vers=1.0,username=sa-user_plm,nounix,sec=ntlmssp  //xx.yy.1.235/GroupFolders/Customer/Site1/Others/prod_images/sketch/regular /mnt/sketch

mount error(115): Operation now in progress

Apr 12 11:16:54 vm-308-plm01 kernel: CIFS VFS: Error connecting to socket. Aborting operation.
Apr 12 11:16:54 vm-308-plm01 kernel: CIFS VFS: cifs_mount failed w/return code = -115


Attempt 5 (IP smb v2)

sudo mount -t cifs -o vers=2.0,username=sa-user_plm,nounix,sec=ntlmssp  //xx.yy.1.235/GroupFolders/Customer/Site1/Others/prod_images/sketch/regular /mnt/sketch

Apr 12 11:35:41 vm-308-plm01 kernel: CIFS VFS: Error connecting to socket. Aborting operation.
Apr 12 11:35:41 vm-308-plm01 kernel: CIFS VFS: cifs_mount failed w/return code = -115


Attempt 6 (IP smb v2  sec=ntlm)
sudo mount -t cifs -o vers=2.0,username=sa-user_plm,nounix,sec=ntlm  //xx.yy.1.235/GroupFolders/Customer/Site1/Others/prod_images/sketch/regular /mnt/sketch

Apr 12 11:52:20 vm-308-plm01 kernel: CIFS VFS: Error connecting to socket. Aborting operation.
Apr 12 11:52:20 vm-308-plm01 kernel: CIFS VFS: cifs_mount failed w/return code = -115


Thank for any help on shedding some light on it

Alessandro




[Linux USB Devel]     [Video for Linux]     [Linux Audio Users]     [Yosemite News]     [Linux Kernel]     [Linux SCSI]

  Powered by Linux