Page 1 of 1

[SOLVED] Mount CIFS on minimal install

Posted: 2011/11/24 19:49:06
by MisterB
Hi

I'm probably being really dim here but I'm struggling to mount a cifs share using the minimal Centos 6 x86 installation.

Normally I would just make sure I've installed samba-client and be done with it.

If I do a smbclient -L servername I get results back of a list of the shares I need to mount.

The command I'm trying to use is:
mount -t cifs -o username=user //server/share /mountpoint

And I get:
mount: wrong fs type, bad option, bad superblock on //frnmgmt01/sp-build,
missing codepage or helper program, or other error
(for several filesystems (e.g. nfs, cifs) you might
need a /sbin/mount. helper program)
In some cases useful info is found in syslog - try
dmesg | tail or so

Some more info:

[root@client ~]# lsmod | grep cifs
cifs 242859 0
[root@client ~]# cat /proc/fs/cifs/DebugData
Display Internal CIFS Data Structures for Debugging
---------------------------------------------------
CIFS Version 1.63
Active VFS Requests: 0
Servers:


What am I doing wrong?

Thanks for reading,

Matt

Re: Mount CIFS on minimal install

Posted: 2011/11/25 00:45:46
by TrevorH
Is there any further information in /var/log/messages?

Re: Mount CIFS on minimal install

Posted: 2011/11/25 02:41:15
by scottro
Darn! I ran into something like this, and I don't remember how I solved it. I was missing something stupid--that is, something that was obvious.

Aha--cifs-utilities or utils, one of the two.

Re: Mount CIFS on minimal install

Posted: 2011/11/28 15:31:15
by Panblack
mount -t smbfs -o username=user //server/share ...

[SOLVED] Mount CIFS on minimal install

Posted: 2011/11/29 18:44:42
by pschaff
[quote]
scottro wrote:
...
Aha--cifs-utilities or utils, one of the two.[/quote]
[code]
# rpm -qf `which mount.cifs`
cifs-utils-4.8.1-2.el6_1.2.x86_64[/code]

SOLVED: Mount CIFS on minimal install

Posted: 2011/11/30 13:37:46
by MisterB
yum -y install cifs-utils

Did the trick for me, thank you, you lovely internet people :)

Re: SOLVED: Mount CIFS on minimal install

Posted: 2011/11/30 14:30:56
by pschaff
You are welcome. Thanks for reporting back. Marking this thread [SOLVED] for posterity.

Re: [SOLVED] Mount CIFS on minimal install

Posted: 2017/10/18 09:04:59
by DiViNe
Old threat, I know. But just in case someone found the threat with google (as I did):
With Centos 7 you might have to install:

Code: Select all

yum install nfs-utils