Server Fault is a question and answer site for system and network administrators. Join them; it only takes a minute:

Sign up
Here's how it works:
  1. Anybody can ask a question
  2. Anybody can answer
  3. The best answers are voted up and rise to the top

How can I mount windows share file system into RHEL?

I'm not a sysadmin, but I got this task assigned :(

I've tried this solution

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

But the output is:

mount: unknown filesystem type 'smbfs'

How can I mount a windows share into RHEL 5?

FWIW I've successfully created a link with the menu: Places>Connect to Server>Service Type:Windows Share

Which creates a link in the desktop, but I would need to programatically save files in that machine, hence I need it mounted as filesystem.

Thanks in advance

share|improve this question
up vote 1 down vote accepted

The samba client programs, including smbmount are not installed by default, so you will need to install them first.

yum install samba-client
share|improve this answer
+1 oops, I just noticed this trial version is not registered with RHN :P This is a test environment :( Is there a way to connect without those tools? For instance the way Places>Connect toServer>ServiceType:Windows Share does? – OscarRyz Dec 21 '10 at 18:33
Not in any meaningful way. Connecting to the share through the Gnome interface uses the gvfs, which is a different subsystem with its own libraries. – Scott Pack Dec 21 '10 at 19:16
:-/ :-( ....... – OscarRyz Dec 21 '10 at 20:33

Your Answer


By posting your answer, you agree to the privacy policy and terms of service.

Not the answer you're looking for? Browse other questions tagged or ask your own question.