Linux Know-How provides a collection of introductory texts on often needed Linux skills.

Mounting a Remote MS Windows File System

A remote MS Windows file system can be mounted onto a Linux file system through the Samba protocol (Samba must be installed, go here if it isn't). Type a command like this (as root):

smbmount //mars/windows /mnt/mars_windows -c marie

This mounts the MS Windows resource called windows from the MS Windows machine called mars. The mountpoint on the client computer is /mnt/mars_windows/ . The option "-c" specifies that the samba server is a machine called marie (this should not be necessary, but it is on my system).

For the above to work, the permission must be given on the MS Windows machine for sharing the directory or drive as a resource. To do this, on the MS Windows machine, enable the filesharing using the "control panel-network", then launch the "Windows Explorer", click the right mouse button on the drive or directory to share, click on properties, switch to the page "sharing", give yourself the permission and give the resource a name.

To unmount an MS Windows directory use:

smbumount /mnt/mars_windows

If you have problems, see:

man smbmount

Last Update: 2010-12-16