Windows 7 vs. Ubuntu 12.04: How to Map Network Shares

This brief tutorial is going to show you how to mount or map network shares in both Windows 7 and Ubuntu 12.04 (Precise Pangolin). Ubuntu 12.04 and Windows 7 may be different in many ways, but are almost similar in many functions. Whatever tasks you perform in Windows 7 can also be done in Ubuntu, maybe in a different manner. So, today’s task is how to map network shares or drives in both Ubuntu 12.04 and Windows 7. If you’re coming from Windows 7 to Ubuntu 12.04, this guide will come in handy and help you understand Ubuntu better.



  • Map / Mount Network Shares in both Windows 7 and Ubuntu 12.04
  • Enjoy!

How to Map Network Shares in Windows 7

To map network shares in Windows 7, go to ‘Start – > Computer –> and select‘Map network drive’ from the top menu shown below.



Next, choose a Drive letter and type in the folder path to the shared resource. The format to connect to network resources in Windows is shown below:

\IP_Address or Hostnameshare_name




Finally, click Finish and you should see the resource mapped.





How to Map Network Shares in Ubuntu 12.04 (Precise Pangolin)

To map network shares in Ubuntu 12.04, press Ctrl –Alt – T on your keyboard to open Terminal. When it opens, run the commands below to edit fstab file.

sudo gedit /etc/fstab




Next, add the line shown below at the end of the file and save it. Replace<username> with your username, and <password> with your password.

//IP_Address or Hotname/Share_Name /home/<username>/Windows cifs username=<windows_username>,password=<windows_password>,uid=<Ubuntu_username>,defaults 0 0




After that, run the commands below to create a Windows mount point in your home directory.

mkdir ~/Windows


Next, run the commands below to install smbfs packages.

sudo apt-get install smbfs




Restart your computer and you should see the shares.





About Qiusheng Wu

Assistant Professor of Geography at Binghamton University, State University of New York

Posted on February 21, 2014, in Linux, Sci/Tech, Software, Tutorials and tagged , . Bookmark the permalink. Leave a comment.

Leave a Reply

Fill in your details below or click an icon to log in: Logo

You are commenting using your account. Log Out /  Change )

Google+ photo

You are commenting using your Google+ account. Log Out /  Change )

Twitter picture

You are commenting using your Twitter account. Log Out /  Change )

Facebook photo

You are commenting using your Facebook account. Log Out /  Change )

Connecting to %s

Alex Tereshenkov

Programming and managing GIS

REDD+ for the Guiana Shield

Technical Cooperation Project

Dr. Qiusheng Wu @ SUNY Binghamton

Writing Science

How to write papers that get cited and proposals that get funded

GIS In Ecology

Providing Training, Advice And Consultation On The Use Of GIS In Ecology


On cities, land, ...


Open GIS: No Bounds

Scientia Plus Conscientia

Thoughts on Science and Nature


Learning hydrology with R

Karl Hennermann

GIS at the University of Manchester

GIS and Science

Applications of geospatial technology for scientific research and understanding.

Whitebox Geospatial Analysis Tools

Open-source GIS development and spatial analysis with Whitebox GAT


MATLAB-based software for topographic analysis

Anything Geospatial

Dr. Qiusheng Wu @ SUNY Binghamton

Dr. Qiusheng Wu @ SUNY Binghamton

%d bloggers like this: