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:
SMB

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 (e.g.man mount.cifs)Please help me in getting away from the same.

    Like

  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.

    Like

Leave a Reply to Osama Mustafa Cancel reply

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

WordPress.com Logo

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

Google photo

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

Twitter picture

You are commenting using your Twitter 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.