Sunday, November 1, 2009

Mount SMB shares

I have 2 ubuntu machines. One of the machine acts as the file server. I want to mount the shared folder to the other machine.

Firstly, install Samba File System and Samba client:
sudo apt-get install smbfs smbclient

Secondly,use smbmount command to mount the share.
Ex: The shared folder is located in 192.168.1.2 machine, and the folder name is java.
I wanted to mount it to /home/adi/java
smbmount //192.168.1.2/java /home/adi/java -o username=adi,pass=mysecretpassword

Done.

Source: http://ubuntuforums.org/showthread.php?t=280473

No comments: