Pages

Thursday, April 18, 2013

How to mount windows sharing in linux


All files in a Linux system are arranged in one big tree file hierarchy at /. It include devices too. We use the mount command attach the file system or devices to the tree. We also able to mount windows share under Linux as follows :
  1. Make sure you have  : 
    • Windows username and password to access share
    • Sharename or IP address
    • root access on Linux
  2. Login to Linux as a root user
  3. Create mount point:
    # mkdir -p /mnt/winshare
    
  4. Use the mount command as follows :
    # mount -t cifs //ntserver/winshare -o username=admin,password=myAdminPassword /mnt/winshare
    
    while :
    • -t cifs : File system type to be mount
    • //ntserver/winshare : Sharename on windows (change it as yours)
    • -o username=admin,password=myAdminPassword : are options passed to mount command. First argument is username (admin) and second argument is password to connect windows share
    • /mnt/ntserver : Linux mount point to access Sharefiles
  5. Access Windows share using command:
    # cd /mnt/winshare; ls -l
    

No comments:

Post a Comment

Don't Forget To Join Our Community
×
Widget