Share Folder as File System From Windows to Linux

in this post i will show you how to share folder from windows to Linux , you can use smb but in this post i will use it in command line.

Option #1:

By Press ( ALT+F2 ) the new dialog will be opened just type in the box the below :

smb://windows-server-ip/shared folder 

Option #2: 
Using command line.
  • mkdir /windows-backup
  • as root user
  • mount -t cifs //windowsip/sharefolder -o username=administrator,password=administratorpassword /windows-backup.
  • run df -h to make sure the folder has been mounted.
Note :
If you are using RHEL 4 the above command will not work, check the below

mount -t smbfs -o username=administrator,password=administratorpassword //windowsip/backup /windwos-backup

Thank you
Osama mustafa

Reference :
1- cyberciti Here

3 thoughts on “Share Folder as File System From Windows to Linux

  1. Hi Mustafa,Tried the below command a root, but its be flashing with an err “mount error 110 = Connection timed out”I wanna share a folder which is there in windows to RHEL 5mount -t cifs -o username=xxxx,password=xxxx //windowsIP/share /linuxdirmount error 110 = Connection timed outRefer to the mount.cifs(8) manual page ( mount.cifs)Please help me in getting away from the same.


  2. Yes was able to ping between the servers. But still same err is getting. For username and passwd I'm giving my windows system login credentials which has the admin rights on that. In the linux the samba is not configured, Is it a must to have the samba configured on the RHEL 5 for the above command to work.


Leave a Reply

Fill in your details below or click an icon to log in: Logo

You are commenting using your account. Log Out /  Change )

Facebook photo

You are commenting using your Facebook account. Log Out /  Change )

Connecting to %s

This site uses Akismet to reduce spam. Learn how your comment data is processed.