NFS Server : Connection from NFS Client2023/02/02 |
This is How to connect to NFS Server from NFS Client.
|
|
[1] |
Run PowerShell with Admin Privilege on the NFS Client that you set access permission to connect on NFS Server settings.
For the setting of the example of link above (Quick NFS Share),
it's possible to mount and read/write with any user from the Hosts you added in access permission on the NFS server.
For mount commands,
On PowerShell by default, [mount] command is set Alias to [New-PSDrive] command,
so if use [mount] command, specify full name of the filename [mount.exe].
it's possbile to mount NFS Share with the command [C:\Windows\system32\mount.exe] that is installed by NFS Client installation, or also possible to use PowerShell Cmdlet [New-PSDrive] command. |
Windows PowerShell Copyright (C) Microsoft Corporation. All rights reserved. # mount with [mount.exe] on Z drive # syntax is the same with [mount] command on Linux PS C:\Users\Serverworld> mount.exe 10.0.0.101:/nfsshare Z:\ Z: is now successfully connected to 10.0.0.101:/nfsshare The command completed successfully. PS C:\Users\Serverworld> Get-PSDrive Z Name Used (GB) Free (GB) Provider Root CurrentLocation ---- --------- --------- -------- ---- --------------- Z 16.05 103.32 FileSystem \\10.0.0.101\nfsshare # verify reading and writing PS C:\Users\Serverworld> echo "write test" > Z:\testfile.txt PS C:\Users\Serverworld> Get-Content Z:\testfile.txt write test # for unmount, run like follows PS C:\Users\Serverworld> umount.exe Z:\ Disconnecting Z: \\10.0.0.101\nfsshare The command completed successfully. # mount with [New-PSDrive] on Z drive PS C:\Users\Serverworld> New-PSDrive -Name Z -PSProvider FileSystem -Root "\\10.0.0.101\nfsshare" Name Used (GB) Free (GB) Provider Root CurrentLocation ---- --------- --------- -------- ---- --------------- Z FileSystem \\10.0.0.101\nfsshare # unmount, run like follows PS C:\Users\Serverworld> Remove-PSDrive Z |
Sponsored Link |
|