Mapping Drive ubuntu

1. Press Ctrl+Alt+T on keyboard to open the terminal. Paste the command below and run to create a mount point, you can replace ‘Ji-share’ to what you want. sudo mkdir /media/Ji-share 2. Install, which provides support for cross-platform file sharing with Microsoft Windows, OS X and other Unix systems.

Install it from Ubuntu Software Center, or via below command: sudo apt-get install cifs-utils

3. Edit the /etc/nsswitch.conf: sudo gedit /etc/nsswitch.conf Find the line looks like:

hosts: files mdns4_minimal [NOTFOUND=return] dns

change it into:

hosts: files mdns4_minimal [NOTFOUND=return] wins dns

4. Run below command so that your Ubuntu can resolve Windows computer name on a DHCP network. sudo apt-get install libnss-winbind winbind Reboot Ubuntu, or restart your network.

2. Create a credentials file via: gedit ~/.smbcredentials insert the username, password and domain for accessing the remote share. Replace “Ji” & “741852963” with yours and save the file.

username=Ji

password=741852963

Domain=

3. Run command to get your gid and uid. Replace handbook with your user name. id handbook

4. Now edit the fstab by running the command: sudo gedit /etc/fstab Add below line (one line) to the end and save it. REPLACE WORDS IN RED!

//192.168.1.5/share /media/Ji-share cifs credentials=/home/ handbook /.smbcredentials,iocharset=utf8,gid= 1000 ,uid= 1000 ,file_mode=0777,dir_mode=0777 0 0

Finally run sudo mount -a in terminal and you’ll get the network share mapped in Unity Launcher and Nautilus file browser