en · de

Using smbmount to mount a Windows share in Linux

by Thomas,
assono GmbH, Standort Kiel,


With smbmount you can mount a Windows share directly into a Linux file system. Particularly when you have a virtual machine (VM) with a small, self-expanding hard disc storage file, you don't need to copy big files, like the Domino server installation archive, into the VM.


Under (K|X)Ubuntu you have to install the smbfs package first.

sudo apt-get install smbfs

To mount a file system, you need an empty folder, you can create with:

sudo mkdir /media/transfer

Then you can call smbmount:

sudo smbmount //192.168.59.1/Transfer /media/transfer/ -o user=assono/tbahn

If you didn't call sudo before, you have to enter the password for the Linux user, before you are prompted for the password for the user, which is used to authorize at the share's server.

In this example 192.168.59.1 is the IP address of the server. You might use the server's hostname instead.

Transfer is the name of the share.

/media/transfer is the name of the directory to mount the share into.

assono/tbahn is the (domain) user, which is used to authorize at the share's server.

The biggest benefit of this method is that you can access the files on the share exaclty like local files. Thus you don't need to copy big files into the local file system, which is great when you are working with a VM with a small, self-expanding hard disc storage file. This file is kept small, and therefore is easier to backup or pack into an archive.

Technical article Linux Administration

You have questions about this article? Contact us: blog@assono.de

Sie wollen eine individuelle Beratung oder einen Workshop? Read more

More interesting entries

Any questions? Contact us.

If you want to know more about our offers, you can contact us at any time. There are several ways to contact us for a non-binding first consultation.

assono GmbH

Location Kiel (headquarters)
assono GmbH
Lise-Meitner-Straße 1–7
24223 Schwentinental

Location Hamburg
assono GmbH
Bornkampsweg 58
22761 Hamburg

Phone numbers:
Human resources department: +49 4307 900 407
Marketing department: +49 4307 900 411

E-Mail adresses:
contact@assono.de
bewerbung@assono.de