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.

Objectives:

  • 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.

network_drive_precise

 

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 Hostname\share_name

 

network_drive_precise_1

 

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

 

network_drive_precise_2

 

 

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

 

network_drive_precise_3

 

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 

 

network_drive_precise_4

 

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

 

smbfs_precise

 

Restart your computer and you should see the shares.

 

network_drive_precise_5

Leave a Reply

Your email address will not be published. Required fields are marked *