How to Mount Remote Windows Share on Linux

Channel: Linux
Abstract: You must be aware about share folders and use it time to time. This is useful for accessing remote directories from any system connected over same net

You must be aware about share folders and use it time to time. This is useful for accessing remote directories from any system connected over same network. You can also mount these remote share on your Linux systems and use them as local file system. This tutorial will help you do mount remote windows share directories on Linux system using command line.

Mount Remote Windows Share on Linux

Use the following steps to mount remote windows shared directory on Linux file system hierarchy. For this command you must have following things 1) Remote system IP or FQDN, 2) Remote share name, 3) Username and Password for authentication.

  • Create Mount Point – You can use any existing directory to mount remote share or create separate directory for mounting remote shared directory.
    $ mkdir /mnt/win1
    
  • Mount Remote Share – Now use the following command to mount remote share directory on local file system.
    $ mount -t cifs //10.10.1.100/share -o username=myUser,password=myPassword /mnt/win1
    
    Command Explanation:-
    • -t cifs :- File system type to be mount. Earlier versions of operating systems uses smbfs
    • -o :- is used to pass command line options to mount command, For example in above command we passed username and password in command which is required to connect remote share
    • //10.10.1.100/share :- IP Address and share name of remote Windows 2000/NT system
    • /mnt/win1 :- Linux mount point where we can access remote files

Ref From: tecadmin
Channels: sharemountcifs

Related articles