Tuesday, August 28, 2007

Exporting Windows folder to Linux

Because I work on Windows more than Linux, and I use vmware instead of dedicated Linux machine, exporting Windows folder to Linux is much more convenient than vice versa.

Setting is so easy. You need to follow less than 5 steps.

Setting Windows.
1. Open a property dialog for the working folder and share it to local admin account.
The account should have every permission to read/write via Linux.

Setting Linux.
1. Install samba and smbfs (if not exist yet).
e.g. apt-get install samba smbfs (I'm Ubuntu user.)
2. Make a directory to mount.
e.g. make /home/wegra/workspace
3. Mount
e.g. # sudo mount -t smbfs -o rw,username=<Windows_Account>,passed=<Windows _Account_Password>,uid=<Linux_Account_to_Map>,gid=<Linux_Group_Account> //<Windows_IP_Address>/<Windows_Shared_Folder> <Linux_Dir_to_Mount>
e.g. # sudo mount -t smbfs -o rw,username=wegra,passed=itsme,uid=wegra,gid=wegra //101.122.30.21/workspace /home/wegra/workspace

It's all what we need.
We can see the files and folders in Windows file system from the Linux. Following command will display them. Check it out.
e.g. # ls /home/wegra/workspace

No comments: