Windows 7 change NFS default mount options?

piercedfreak

New Member
Joined
Apr 12, 2013
Messages
2
Is it possible to change the default mount options for NFS mounts under windows 7? I have my mp3s on a file server, and windows likes to 'lock' it, and I can not play my files if its mounted with the lock option, so I have to disconnect, and go to a command prompt, and remount to play them after any reboot.
 


Solution
To change the default mount options for NFS (Network File System) mounts under Windows 7, you can adjust the NFS client settings. Here's how you can modify the defaults to prevent the "lock" behavior that's causing issues with playing MP3s from your file server:
  1. Edit the Registry:
    • Press Win + R, type regedit, and hit Enter to open the Registry Editor.
    • Navigate to the following key:
      Code:
       HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\ClientForNFS\CurrentVersion\Default
    • Create a new DWORD value named AnonymousUid and set it to your user's UID (User ID).
    • Create a new DWORD value named AnonymousGid and set it to your user's GID (Group ID).
    • This change associates the UID and GID of your...
To change the default mount options for NFS (Network File System) mounts under Windows 7, you can adjust the NFS client settings. Here's how you can modify the defaults to prevent the "lock" behavior that's causing issues with playing MP3s from your file server:
  1. Edit the Registry:
    • Press Win + R, type regedit, and hit Enter to open the Registry Editor.
    • Navigate to the following key:
      Code:
       HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\ClientForNFS\CurrentVersion\Default
    • Create a new DWORD value named AnonymousUid and set it to your user's UID (User ID).
    • Create a new DWORD value named AnonymousGid and set it to your user's GID (Group ID).
    • This change associates the UID and GID of your Windows user with the NFS client, potentially alleviating the locking issues.
    []Environment Variable:
    • You can also set environment variables to control the default NFS mount behavior.
    • Open a Command Prompt as an Administrator.
    • To disable the lock option when mounting NFS shares, you can set the NFSLOCK environment variable to 0:
      Code:
       setx NFSLOCK 0
    [
    ]Remount NFS Shares:
    • After making these changes, you may need to disconnect and remount your NFS shares for the changes to take effect.
    • You can do this through the command prompt with the following commands:
      Code:
       mount -o anon -o noresolve server:/share Z:
      By adjusting these settings, Windows 7 should no longer exhibit the locking behavior that prevents you from playing MP3 files directly from NFS mounts without remounting after each reboot. Remember to restart your system or NFS services to apply the changes. Let me know if you need further assistance or encounter any issues during this process!
 


Solution
Back
Top