zoukankan      html  css  js  c++  java
  • Mounting Windows to NFS servers

    Enable NFS services:

    Microsoft Windows includes a service for NFS but you will need to enable it before you can use NFS. The following TechNet article provides more information on enabling the NFS service.

    http://technet.microsoft.com/en-us/library/cc753302(v=ws.10).aspx

    A registry addition is required to have rewrite access to NFS shared from a Windows system.  The reason is that he anonymous UID and GID for Client for NFS to access a NFS your share is set to -2. This needs to be set to 0.


    From the command line run: regedit

    Locate HKEY_LOCAL_MACHINESOFTWAREMicrosoftClientForNFSCurrentVersionDefault


    Add two DWORD 32bit values: AnonymousUid and AnonymousGid


    Set theses values to: 0


    Restart your Client for NFS service or restart your Windows Virtual Machine

    You can mount the share from the command line with:

    mount <NFS_Server_IP>:<Share_Path> <Mount_Point>

    Example:

    mount 192.168.31.254:/vol/joyfb7fff88_ae36_4c25_9d4b_df6e3c64efc2 z:

    or you can use Expolrer to 'Map a Drive' using <NFS_Server_IP>:<Share_Path> as the share

    To have your mounts be persistent on a reboot you need to set up a script that mounts shares on boot. More information can be found here:


    http://social.technet.microsoft.com/Forums/is/winserverfiles/thread/44445dc3-0185-407f-b8ad-711f22cd4ec6

    打不开文件问题

    HKEY_LOCAL_MACHINE>SOFTWARE>Microsoft>ClientForNFS>CurrentVersion>User>Default>Mount,新增 Locking 值设为 0。

  • 相关阅读:
    查询反模式
    查询反模式
    查询反模式
    查询反模式
    linux vi(vim)常用命令汇总(转)
    面试笔试题之二叉树经典25题
    查找至少一个重复元素
    海盗分金问题
    Output of C++ Program | Set 18
    Output of C++ Program | Set 17
  • 原文地址:https://www.cnblogs.com/SNS/p/9533396.html
Copyright © 2011-2022 走看看