I have a trial RHEL version for a proof of concept where I was asked to mount a windows filesystem into linux.

I tried

mount -t smbfs -o username=samba,password=samba //Desktop/Public /mnt/public

But it gives me:

mount: unknown filesystem type 'smbfs'

I get to know I need samba-client to do this.

Question. After executing

rpm -qa 'samba*'

This is what I get:


Does it mean I have samba-client already? If so, what do I need to to to mount the windows share?

Someone suggested me to try: yum -install samba-client but since this is a trial version, I'm not subscribed to RHN and can't get the update. How else can I install the client?

Final question, if I can't do this, am I able to still mount for instance other RHEL? ( how is that called? regular mount or somthing? )

Thanks in advance

  • 4
    Does mount -t cifs work? What programs do the samba packages provide (rpm -ql)? Commented Dec 22, 2010 at 0:31

1 Answer 1


You do not need samba-client for that. What you need is the smbfs or cifs kernel module. smbfs is deprecated and should not be used (unless you can't use cifs for some reason. e.g. your distribution is too old or perhaps you're trying to connect to a Win95 box or something.)


# lsmod | grep cifs
# modprobe cifs
# lsmod | grep cifs
cifs                  279398  0 
# grep cifs /proc/filesystems
nodev   cifs

Then try with mount -t cifs ... as mentioned by Gilles.

If that doesn't work, you can access the files using smbclient (e.g.) instead of mounting the filesystem. smbclient is in the samba-client and gives you an interface similar to a command line FTP client.

To "mount [...] other RHEL", there are various options. You could use NFS (in which case you would have to set up an NFS server on the machine you want to mount.) Another possibility is sshfs, in which case all you need on the server is an SSH server, but the client will need sshfs, which needs fuse. I don't know if RHEL 5.5 supports fuse. It would also be possible to set up Samba on the other RHEL box and then mount using mount -t cifs ... as if it were a Windows box.

  • Yeap -t cifs was the answer. I cound't accept Gilles comment as such, because, well it was a comment. :)
    – OscarRyz
    Commented Jan 26, 2011 at 15:54

You must log in to answer this question.

Not the answer you're looking for? Browse other questions tagged .