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.
By Press ( ALT+F2 ) the new dialog will be opened just type in the box the below :
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.
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
1- cyberciti Here
Published by Osama Mustafa
Osama considered as one of the leaders in Cloud technology, DevOps and database in the Middle-East. I have more than ten years of experience within the industry. moreover, certfied 4x AWS , 4x Azure and 6x OCI, have also obtained database certifications for multiple providers.
In addition to having experience with Oracle database and Oracle products, such as middle-ware, OID, OAM and OIM, I have gained substantial knowledge with different databases.
Currently, I am architecting and implementing Cloud and DevOps. On top of that, I'm providing solutions for companies that allow them to implement the solutions and to follow the best practices.
View all posts by Osama Mustafa
3 thoughts on “Share Folder as File System From Windows to Linux”
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.
Did you try ping command ? servers should be ping on each other ,otherwise sharing will impossible for you.
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.