go to  ForumEasy.com   
JavaPro  
 
 
   Home  |  MyForum  |  FAQ  |  Archive    You are not logged in. [Login] or [Register]  
Forum Home » Java Deploying » mount -- How to mount remote Windows folder under Linux
Email To Friend  |   Set Alert To This Topic Rewarding Points Availabe: 0 (What's this) New Topic  |   Post Reply
Author Topic: mount -- How to mount remote Windows folder under Linux
Linux
member
offline   
 
posts: 120
joined: 01/24/2011
from: San Jose, CA
  posted on: 02/17/2016 02:23:50 AM    Edit  |   Quote  |   Report 
mount -- How to mount remote Windows folder under Linux

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


 Profile | Reply Points Earned: 0

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