LinuxQuestions.org
Visit Jeremy's Blog.
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - General
User Name
Password
Linux - General This Linux forum is for general Linux questions and discussion.
If it is Linux Related and doesn't seem to fit in any other forum then this is the place.

Notices


Reply
  Search this Thread
Old 04-27-2015, 04:27 AM   #1
borgy95
Member
 
Registered: Mar 2012
Location: England
Distribution: Debian, Kali, CentOS 7
Posts: 64

Rep: Reputation: Disabled
(yet more) Mounting troubles! Centos7 can't mount a share, that previously was.


Hi, I'm using Centos 7 minimal,

I've had a share mounted in the past, but the credentials it used have expired and I am trying to remount it.

I have arrived this morning to see the shares have disappeared from the output of
Code:
df -h
and the old mount points were still locked. i ran a umount on one of the mount point that had been in use: /mnt/logon. The other is /mnt/dhcp.

I need to mount with credentials so i have run: getting the following error

Code:
# sudo mount -t cifs -o username=myname,password=myp4ssw0rd  \\gb-fs001.a_domain.com:\collector$ /mnt/logon
mount.cifs: bad UNC (\gb-fs001.a_domain.com:collector$)
# dmesg | tail
[4658649.509334] Status code returned 0xc0000072 NT_STATUS_ACCOUNT_DISABLED
[4658649.509338] CIFS VFS: Send error in SessSetup = -127
I'm not sure why im getting this message any ideas?
I can mount this share in windows no problem, so i know the path is ok.
And there are no special characters in the username/password.
If I don't use the
Code:
-t cifs
and use other filesystem types i get the
Code:
mount: wrong fs type, bad option, bad superblock on \gb-fs001.a_domain.com:collector$
SO i'm pretty sure cifs is the one i want but i can't figure out why the bad UNC path error... have i made a typo?
 
Old 04-27-2015, 05:19 AM   #2
michaelk
Moderator
 
Registered: Aug 2002
Posts: 25,680

Rep: Reputation: 5894Reputation: 5894Reputation: 5894Reputation: 5894Reputation: 5894Reputation: 5894Reputation: 5894Reputation: 5894Reputation: 5894Reputation: 5894Reputation: 5894
Code:
sudo mount -t cifs -o username=myname,password=myp4ssw0rd  \\gb-fs001.a_domain.com:\collector$ /mnt/logon
Assuming the path is correct the correct syntax is:

sudo mount -t cifs -o username=myname,password=myp4ssw0rd //gb-fs001.a_domain.com:/collector$ /mnt/logon
 
Old 04-27-2015, 05:55 AM   #3
borgy95
Member
 
Registered: Mar 2012
Location: England
Distribution: Debian, Kali, CentOS 7
Posts: 64

Original Poster
Rep: Reputation: Disabled
Thanks, while waiting for the reply I kept trying some variations of my syntax and the following is what eventually worked...

Code:
# sudo mount -t cifs //gb-fs001/collector$ /mnt/logon -o user=myname,password=myp4ssw0rd
The clue that led me to switch from using \ to / in the share path was a forum post showing someones fstab output...
Essentially it showed a nfs share using a path described with
Code:
 \\hostname:\path\to\share /mnt/path
and then a cifs share using
Code:
//hostname/path/to/share /mnt/path

Last edited by borgy95; 04-27-2015 at 07:18 AM.
 
  


Reply



Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
troubles mounting network share from redhat server on ubuntu 14.04 Selenis Linux - Server 0 08-15-2014 02:45 PM
Mounting CIFS share causes the mount point to be destroyed kenneho Linux - Server 13 06-19-2009 01:39 AM
Mount.cifs Mounting a subdirectory of a windows share MonctonJohn Linux - Networking 4 09-28-2007 05:15 AM
Troubles with mounting hard-drive. Cannot even mount or access in root. eBopBob Linux - Hardware 4 08-19-2004 06:09 AM
mounting an smbfs share using mount vs /etc/fstab sichen Linux - Networking 4 08-13-2004 06:40 PM

LinuxQuestions.org > Forums > Linux Forums > Linux - General

All times are GMT -5. The time now is 03:44 PM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Open Source Consulting | Domain Registration