Mount Samba FS on Linux

| Comments

Have you ever wanted to map to a remote drive or mount a samba share on Linux? The commands a really easy, and they’re chronicled here.

First, grab Samba:

1
sudo apt-get install smbfs

Then use smbmount

1
sudo smbmount //remote/path/ /local/mount/path/ -o username=[user]

Behind -o, you can specify a number of comma-separated options. To connect to the remote FS that I desired, I just needed the username specified. Once you execute the smbmount, you may get a “Password:” prompt. Make sure that you’re not hopelessly entering your sudo password, as this is probably the password for the FS.

A good resource for this whole process is on this wiki, or you can do a

1
/sbin/mount.cifs --help

Comments