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


  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 5

    mount -t cifs -o username=xxxx,password=xxxx //windowsIP/share /linuxdir
    mount error 110 = Connection timed out
    Refer to the mount.cifs(8) manual page ( mount.cifs)

    Please help me in getting away from the same.

    1. Did you try ping command ? servers should be ping on each other ,otherwise sharing will impossible for you.

  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.


Post a Comment

Popular posts from this blog

Connection refused; No available router to destination On Weblogic Node Manager Log

How to change SGA in Oracle Rac