Linux Map a Network Drive

From ITwiki

Revision as of 18:59, 20 July 2010 by Plupinsk (Talk | contribs)
Jump to: navigation, search
This system is NOT supported by the Information Technology Department.

Information Technology staff are not responsible for providing support for this system and have not been trained on it in any way.
Any documentation published about this system is done so without any guarantee and presented as Use at your own risk.


Before you can mount Windows Shares you need to have samba.
You also need support built into the kernel. If you are using a binary distribution your kernel should be automatically configured for this.

Getting Samba on Ubuntu

Open a terminal and type:

sudo apt-get install smbfs

To install the required mount and unmount utilities.


You can map a network drive to Storage01 using the smbmount utility. You can run the following command as a regular user:

$ smbmount // /path/to/mount -o user=myusername,domain=campus
  • // is the mount location. Replacing 'sharename' with your domain username will map the network drive to your personal storage space. Please read the article on Storage01 for other possible locations.
  • /path/to/mount is the location you want to map/mount the network drive at. You can map it to a mountpoint in your current directory such as 'mnt' by not using any slashes (full pathname is also fine)
  • username=myusername - myusername should be replaced with your Stevens username.
  • workgroup=campus - this specifies the domain to check your username and password against, leave it like this
  • uid=mylocalusername - mylocalusername should be the name of your linux user (whoami will tell you this if you are unsure). This is the user who owns the directory/mountpoint you are mounting/mapping to.
  • - this specifies an "ip address" (a FQDN in this case) to locate Storage01 by. Leave as-is.

When you run this command, you should see a prompt similar to:


Type in your Campus Domain password and press enter. You will now be able to access the file stored on storage01 at the mountpoint you specified.

Personal tools