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。

  • 相关阅读:
    单链表反转
    C++面试题
    堆排序
    1链表:回文链表(leetcode 234)
    深信服社招linux岗面试记录
    腾讯后台开发社招记录(电话面试)
    小米社招ATE岗位记录
    诺基亚社招C++面试记录
    腾讯后台开发社招面试记录
    makefile笔记
  • 原文地址:https://www.cnblogs.com/SNS/p/9533396.html
Copyright © 2011-2022 走看看