Beruflich Dokumente
Kultur Dokumente
This simple tutorial shows you how to map a network drive, Windows share as
example, onto Ubuntu 14.04 LTS with read and write permission permanently.
All things will be done in a terminal window. Not familiar with Linux command? Don’t
be afraid, just paste the command into terminal and hit enter to run one by one. There
will be a few pictures to make things more clear.
Preparation:
There are a few preliminary actions we need to do before we can start mounting using
cifs.
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.
2. Install cifs-utils, which provides support for cross-platform file sharing with
Microsoft Windows, OS X and other Unix systems.
1
3. Edit the /etc/nsswitch.conf:
change it into:
4. Run below command so that your Ubuntu can resolve Windows computer name on a
DHCP network.
Now edit the fstab file to mount network share on start up.
2
2. Create a credentials file via:
gedit ~/.smbcredentials
insert the username and password for accessing the remote share. Replace “Ji” &
“741852963″ with yours and save the file.
username=Ji
password=741852963
3. Run command to get your gid and uid. Replace handbook with your user name.
id handbook
Add below line (one line) to the end and save it. REPLACE WORDS IN RED!
3
Finally run sudo mount -a in terminal and you’ll get the network share mapped in
Unity Launcher and Nautilus file browser: