Ubuntu's Gnome desktop uses GVFS to mount those shares.
You should be able to use the following command to mount your shares. If you have a persistent home directory, you can add this or similar to some startup files.
gvfs-mount smb://server-name/share-name
The mount should be available under your home directory, in /home/username/.gvfs
. For example, on my system I did the following:
$ gvfs-mount smb://my-home-server/my-share
$ ls -F ~/.gvfs
my-share on my-home-server/
So that share is directly accessible (on commandline and in the desktop environment) via the mountpoint /home/username/.gvfs/my-share on my-home-server
.
According to several sources, if you are using this over SSH or another situation where you aren't running the full Gnome setup, you may need to use dbus-launch to mount the share:
dbus-launch gvfs-mount smb://server-name/share-name
(source1, source2)
if you want it mounted somewhere else, i believe this is possible, but you may have to modify a config file somewhere. alternately you can create a symlink to ~/.gvfs for easy access. – quack quixote – 2010-03-17T08:08:24.087
I want to confirm that you need dbus-launch over ssh. Also the complete syntax for the Windows share should look like this:
smb://DOMAIN\;username@server-name/share-name
– bjoernz – 2011-02-26T15:39:08.010