go to  ForumEasy.com   
JavaPro
Home » Archive » Message


[Email To Friend][View in Live Context][prev topic « prev post | next post » next topic]
  mount -- How to mount remote Windows folder under Linux
 
Subject: mount -- How to mount remote Windows folder under Linux
Author: Linux
Posted on: 02/17/2016 02:23:50 AM


Step 1. Install CIFS package, if it is not in your Linux yet

# yum install cifs-utils
# sudo apt-get install cifs-utils



Step 2. Create mount point
# mkdir -p /mnt/win



Step 3. Mount remote target
# mount -t cifs //<IP>/<FOLDER> /mnt/win/ -o dom=<DOMAIN>,user=<USER>,pass=<PASS>
# mount -t cifs //<IP>/<DRIVE>$ /mnt/win/ -o dom=<DOMAIN>,user=<USER>,pass=<PASS>

e.g.

# mount -t cifs //10.11.12.13/share/docs /mnt/win/ -o user=administrator
# mount -t cifs //10.11.12.13/c$ /mnt/win/ -o user=administrator



Step 4. Verify mounted target
# ls /mnt/win
doc-01.txt doc-02.txt



Step 5. Unmounted target
# umount /mnt/win





References:

 


 
Powered by ForumEasy © 2002-2022, All Rights Reserved. | Privacy Policy | Terms of Use
 
Get your own forum today. It's easy and free.