Unable to mount Windows Server on CentOs7

Issues related to configuring your network
Post Reply
joanazpeitia
Posts: 10
Joined: 2019/01/22 12:57:37

Unable to mount Windows Server on CentOs7

Post by joanazpeitia » 2019/01/25 10:26:02

Hi,

I'm trying to mount a Windows Server 2012 R2 on my Linux CentOs 7.6.1810.
I'm doing it through the fstab file (etc/ftsab).
The line I'm adding on fstab to mount the Windows Server is the following one;
//winServerIP/winServerFolder /home/desiredFolder cifs vers=3.02,user,username=xxx,password=xxx,sec=ntlm,auto,r,uid=500,suid 0 0
I'm getting the following error,
mount error(22): Invalid argument
I went to the man page but could not find a solution.
I also did a research online and tried changing my vers (tried 2.0 and 2.1) value but did not work.
This method on fstab is working to mount other servers running on Linux but does not for this server running on Windows.
Any advice will be really appreciated.
Many thanks,

Joan

joanazpeitia
Posts: 10
Joined: 2019/01/22 12:57:37

Re: Unable to mount Windows Server on CentOs7

Post by joanazpeitia » 2019/02/07 13:01:02

Hi,

A couple of weeks ago, I managed to mount the two servers. I post the two lines on my fstab file (root/etc/fstab) that made it work. I posted what worked for me in case is helpful for someone else.

MOUNT LINUX SERVER
//serverip/serverfolder /localdirectory/localfolder cifs vers=2.0,user,username=admin,password=xxx,rw,auto,rw,uid=500,suid 0 0
MOUNT WINDOWS 2012 R2 SERVER
//192.168.1.11/ProgramData /home/_licenseServer cifs vers=3.02,user,username=Administrator,password=xxx,auto,rw,uid=500,suid 0 0

Cheers,

Joan

tyler2016
Posts: 13
Joined: 2019/02/07 16:06:54
Contact:

Re: Unable to mount Windows Server on CentOs7

Post by tyler2016 » 2019/02/07 16:27:57

Is the Windows host part of an AD domain? Maybe you need to set the domain option? Try adding domain=yourdomain to your fstab options. My guess is you are trying to authenticate locally instead of your domain. Also consider using a credentials file.

Post Reply