If you are running on Ubuntu or another Debian distribution, you can install the required software by simply running the following command from a terminal prompt:
sudo apt-get smbclient smbfs
Testing the Connection
Now that you have the right tools installed, it’s time to test the connection to the Windows or Samba box with the shared folder. For this we can use the smbclient command like so:
smbclient â€“L geekmini â€“U geek
Create the Mount Point
Any time you want to map a drive in Linux, you should create the folder first. In this case, I want to access that shared folder from /media/Video, so I’ll first need to create the folder.
sudo mkdir /media/Video
Note that I’m using sudo because I’m creating the folder in a system-wide location owned by root.
Actually Mounting the Shared Folder
You can run the following command to mount the shared folder to a local path:
mount â€“t smbfs â€“o username=geek,password=thepass //geekmini/root /media/Video