How to mount a Windows SMB share from Linux command line (Ubuntu)

You share out a folder on Windows and need to access that share from a Linux command line.

First you need cifs-utils

sudo apt-get install cifs-utils

Then create your mount directory and …

mkdir ~/share
sudo mount -t cifs // ~/share -o username=jackie

If you get permission errors when trying to drop files into the share, you may have to login as root / use sudo before your cp commands.

A few days later I was getting this error when trying to mount the share:

mount error(121): Remote I/O error
Refer to the mount.cifs(8) manual page (e.g. man mount.cifs)

Try deleting a few files from the share, because it seems that it will only mount if there is a certain amount of free space available on it.