-1

I am relatively new to Linux, and I am trying to mount a CIFS filesystem from an openfiler instance I have on my network in Red Hat. The openfiler instance is authenticating using AD.

I am able to connect using samba:

smbclient '\\10.25.214.26\cluster_storage.cluster.Cluster' -U [DOMAIN]+[USERNAME]
Enter DOMAIN+USERNAME's password:
Domain=[DOMAIN] OS=[Unix] Server=[Samba 3.5.6]
smb: \>

When I attempt to mount on boot via fstab, I am told that the line is bad during startup.

mount -t cifs -o username=[DOMAIN]+[USERNAME], password=[my password], 
domain=[domain.edu] '\\10.25.214.26\cluster_storage.cluster.Cluster' /mnt/scratch

Any help would be greatly appreciated.

Plurarian
  • 3
  • 4

1 Answers1

0

May not be this... but try forward slashes "/" instead of back slashes "\" in your specification of the share location.

So //10.25.214.26/cluster_storage.cluster.Cluster

Update: As per the comments the below, the possible low hanging fruit of slashes was not it, but perhaps we are still dealing with a syntax issue. Take a look at the format provided here for various cases (including fstab syntax): https://access.redhat.com/solutions/448263

beepBeep
  • 16
  • 1
  • Unfortunately that did not appear to fix the problem :( – Plurarian Aug 22 '14 at 19:51
  • Can you post the actual error you are getting? – beepBeep Aug 22 '14 at 19:55
  • Oh wait, is the mount line you posted what you entered into fstab? Or is that simply your manual mounting that is or is not working? fstab has a different syntax. – beepBeep Aug 22 '14 at 19:58
  • This is the mount line I pasted into fstab. I figured that this was likely a syntax error -_. Would you mind informing me of the proper syntax? – Plurarian Aug 22 '14 at 20:08
  • Per your reference, I formatted my fstab entry in the following manner: \\10.25.214.26\cluster_storage.cluster.Cluster /mnt/scratch cifs _netdev, username=[DOMAIN]+[USERNAME], password=[password], dir_mode=0755,file_mode=0755,uid=500,gid=500 0 0 Unfortunately I am still presented with an error at start up that the first line in fstab (this entry) is incorrect. – Plurarian Aug 22 '14 at 20:20
  • I just successfully tested on a VM and mounted a Win folder. Try this syntax: //10.25.214.26/cluster_storage.cluster.Cluster /mnt/scratch cifs _netdev,username=[USERNAME],password=[PASSWORD],dir_mode=0755,file_mode=0755,uid=500,gid=500 0 0 :if this does not work verify your path for both the mount point and target location. – beepBeep Aug 22 '14 at 20:45
  • Oh and note that I used just username, I did not specify the domain. – beepBeep Aug 22 '14 at 20:46
  • Using that syntax resulted in drive discovery. I am now getting the mount(13) error, but I'm sure I can sort that out. Thanks so much for your help! – Plurarian Aug 22 '14 at 23:34