[SOLVED] Mount CIFS on minimal install

General support questions
MisterB
Posts: 7
Joined: 2010/02/17 14:49:18

[SOLVED] Mount CIFS on minimal install

Postby MisterB » 2011/11/24 19:49:06

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

User avatar
TrevorH
Forum Moderator
Posts: 21184
Joined: 2009/09/24 10:40:56
Location: Brighton, UK

Re: Mount CIFS on minimal install

Postby TrevorH » 2011/11/25 00:45:46

Is there any further information in /var/log/messages?

scottro
Forum Moderator
Posts: 2336
Joined: 2007/09/03 21:18:09
Location: NYC
Contact:

Re: Mount CIFS on minimal install

Postby scottro » 2011/11/25 02:41:15

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.

Panblack
Posts: 7
Joined: 2011/04/24 07:28:37

Re: Mount CIFS on minimal install

Postby Panblack » 2011/11/28 15:31:15

mount -t smbfs -o username=user //server/share ...

pschaff
Retired Moderator
Posts: 18276
Joined: 2006/12/13 20:15:34
Location: Tidewater, Virginia, North America
Contact:

[SOLVED] Mount CIFS on minimal install

Postby pschaff » 2011/11/29 18:44:42

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

Code: Select all

# rpm -qf `which mount.cifs`
cifs-utils-4.8.1-2.el6_1.2.x86_64

MisterB
Posts: 7
Joined: 2010/02/17 14:49:18

SOLVED: Mount CIFS on minimal install

Postby MisterB » 2011/11/30 13:37:46

yum -y install cifs-utils

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

pschaff
Retired Moderator
Posts: 18276
Joined: 2006/12/13 20:15:34
Location: Tidewater, Virginia, North America
Contact:

Re: SOLVED: Mount CIFS on minimal install

Postby pschaff » 2011/11/30 14:30:56

You are welcome. Thanks for reporting back. Marking this thread [SOLVED] for posterity.

User avatar
DiViNe
Posts: 13
Joined: 2015/05/12 12:18:59

Re: [SOLVED] Mount CIFS on minimal install

Postby DiViNe » 2017/10/18 09:04:59

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