{"id":3008,"date":"2020-02-04T04:02:05","date_gmt":"2020-02-04T04:02:05","guid":{"rendered":"https:\/\/davidpapkin.net\/?p=3008"},"modified":"2020-02-04T04:02:05","modified_gmt":"2020-02-04T04:02:05","slug":"mount-nfs-share-server-2016-david-papkinh","status":"publish","type":"post","link":"https:\/\/davidpapkin.com\/?p=3008","title":{"rendered":"HowTo Mount NFS share Server 2016"},"content":{"rendered":"<p>This David Papkin post on NFS sharing is derived from <a href=\"https:\/\/www.rootusers.com\/\">RootUsers<\/a> post <a href=\"https:\/\/www.rootusers.com\/how-to-mount-an-nfs-share-in-windows-server-2016\/\">https:\/\/www.rootusers.com\/how-to-mount-an-nfs-share-in-windows-server-2016\/<\/a><\/p>\n<p>Here we\u2019re going to show you how to mount an NFS file share in Windows Server 2016 both temporarily and persistently so that it will automatically mount after a reboot.<\/p>\n<p>There are a couple of different ways this can be done, including mapping a network drive or adding a network location, which we\u2019ll discuss here.<\/p>\n<p><strong>Our NFS Server:<\/strong>\u00a0In this example we already have an NFS server setup on a CentOS 7 Linux system which is available at 192.168.1.14 and we have exported the \/root\/nfs directory with NFS. See our\u00a0<a href=\"https:\/\/www.rootusers.com\/how-to-provide-nfs-network-shares-to-specific-clients\/\" target=\"_blank\" rel=\"noopener noreferrer\">guide on creating an NFS server in Linux here<\/a>\u00a0if you need information on how to do this.<\/p>\n<h2>Install NFS Client<\/h2>\n<p>Before we can mount any NFS shares on our Windows server, we must first install the NFS client feature. This can be done through the graphical user interface (GUI) using server manager, however that takes a lot longer so we\u2019ll use some PowerShell.<\/p>\n<p>First we\u2019ll use the Get-WindowsFeature cmdlet to search for available features that contain the string \u2018NFS*\u2019 in the Name field.<\/p>\n<pre>PS C:\\&gt; <strong>Get-WindowsFeature -Name NFS*<\/strong>\n<\/pre>\n<p><a href=\"https:\/\/www.rootusers.com\/wp-content\/uploads\/2016\/09\/Get-WindowsFeature.png\"><img loading=\"lazy\" decoding=\"async\" class=\"aligncenter size-full wp-image-3165\" src=\"https:\/\/www.rootusers.com\/wp-content\/uploads\/2016\/09\/Get-WindowsFeature.png\" sizes=\"auto, (max-width: 970px) 100vw, 970px\" srcset=\"https:\/\/www.rootusers.com\/wp-content\/uploads\/2016\/09\/Get-WindowsFeature.png 970w, https:\/\/www.rootusers.com\/wp-content\/uploads\/2016\/09\/Get-WindowsFeature-300x29.png 300w, https:\/\/www.rootusers.com\/wp-content\/uploads\/2016\/09\/Get-WindowsFeature-768x74.png 768w\" alt=\"Get-WindowsFeature Find NFS-Client Windows Server 2016\" width=\"970\" height=\"93\" \/><\/a><\/p>\n<p>As we can see NFS-Client is available for install but not currently installed.<\/p>\n<p>Next we use the Install-WindowsFeature cmdlet to install the NFS-Client feature, as shown below.<\/p>\n<pre>PS C:\\&gt; <strong> Install-WindowsFeature -Name NFS-Client<\/strong>\n<\/pre>\n<p><a href=\"https:\/\/www.rootusers.com\/wp-content\/uploads\/2016\/09\/Install-WindowsFeature.png\"><img loading=\"lazy\" decoding=\"async\" class=\"aligncenter size-full wp-image-3166\" src=\"https:\/\/www.rootusers.com\/wp-content\/uploads\/2016\/09\/Install-WindowsFeature.png\" sizes=\"auto, (max-width: 549px) 100vw, 549px\" srcset=\"https:\/\/www.rootusers.com\/wp-content\/uploads\/2016\/09\/Install-WindowsFeature.png 549w, https:\/\/www.rootusers.com\/wp-content\/uploads\/2016\/09\/Install-WindowsFeature-300x51.png 300w\" alt=\"Install-WindowsFeature NFS-Client Windows Server 2016\" width=\"549\" height=\"93\" \/><\/a><\/p>\n<p>Once complete we should see that the installation has completed successfully, no reboot is required for this feature, we can begin using it straight away.<\/p>\n<h2>Mount NFS Temporarily<\/h2>\n<p>We can use the mount command in command prompt to quickly mount our NFS share and confirm that it\u2019s working. Note that the mount command used here is in command prompt rather than PowerShell, using it in PowerShell will fail as it is a different command.<\/p>\n<pre>C:\\Users\\Administrators&gt; <strong>mount \\\\192.168.1.14\\root\\nfs X:<\/strong>\nX: is now successfully connected to \\\\192.168.1.14\\root\\nfs\n\nThe command completed successfully.\n<\/pre>\n<p><a href=\"https:\/\/www.rootusers.com\/wp-content\/uploads\/2016\/09\/command-prompt-mount-nfs.png\"><img loading=\"lazy\" decoding=\"async\" class=\"aligncenter size-full wp-image-3167\" src=\"https:\/\/www.rootusers.com\/wp-content\/uploads\/2016\/09\/command-prompt-mount-nfs.png\" sizes=\"auto, (max-width: 480px) 100vw, 480px\" srcset=\"https:\/\/www.rootusers.com\/wp-content\/uploads\/2016\/09\/command-prompt-mount-nfs.png 480w, https:\/\/www.rootusers.com\/wp-content\/uploads\/2016\/09\/command-prompt-mount-nfs-300x111.png 300w\" alt=\"Command Prompt Mount NFS Windows Server 2016\" width=\"480\" height=\"177\" \/><\/a><\/p>\n<p>At this point we can browse to \u201cThis PC\u201d and we should see the NFS share mounted under Network Locations.<\/p>\n<p>There is an issue with this however, this mount is not persistent meaning that if we perform a restart of the Windows server it will not be there afterwards. Luckily there are a few ways we can permanently map to the NFS file share.<\/p>\n<h2>Mount NFS Persistently<\/h2>\n<p>Most of the time we will want our NFS mount to survive a system reboot and mount automatically after boot so that we don\u2019t have to manually mount it every time.<\/p>\n<p>There are a couple of different ways that we can achieve this task:<\/p>\n<ul>\n<li><a href=\"https:\/\/www.rootusers.com\/how-to-mount-an-nfs-share-in-windows-server-2016\/#1\">Map Network Drive<\/a><\/li>\n<li><a href=\"https:\/\/www.rootusers.com\/how-to-mount-an-nfs-share-in-windows-server-2016\/#2\">Add A Network Location<\/a><\/li>\n<\/ul>\n<h3 id=\"1\">Map Network Drive<\/h3>\n<p>I personally prefer this method, as we can see the space remaining much more easily.<\/p>\n<ol>\n<li>First open up \u201cThis PC\u201d and select Computer from the menu at the top. From here click on Map network drive, as shown below.<a href=\"https:\/\/www.rootusers.com\/wp-content\/uploads\/2016\/09\/map-network-drive-1.png\"><img loading=\"lazy\" decoding=\"async\" class=\"aligncenter size-full wp-image-3178\" src=\"https:\/\/www.rootusers.com\/wp-content\/uploads\/2016\/09\/map-network-drive-1.png\" sizes=\"auto, (max-width: 416px) 100vw, 416px\" srcset=\"https:\/\/www.rootusers.com\/wp-content\/uploads\/2016\/09\/map-network-drive-1.png 416w, https:\/\/www.rootusers.com\/wp-content\/uploads\/2016\/09\/map-network-drive-1-300x182.png 300w\" alt=\"Map network drive\" width=\"416\" height=\"253\" \/><\/a><\/li>\n<li>The Map Network Drive window will open, select the drive letter that you want to assign to the NFS share, followed by the IP address or hostname of the NFS server as well as the path to the exported NFS directory. Click the Finish button when complete.<a href=\"https:\/\/www.rootusers.com\/wp-content\/uploads\/2016\/09\/map-network-drive-2.png\"><img loading=\"lazy\" decoding=\"async\" class=\"aligncenter size-full wp-image-3179\" src=\"https:\/\/www.rootusers.com\/wp-content\/uploads\/2016\/09\/map-network-drive-2.png\" sizes=\"auto, (max-width: 602px) 100vw, 602px\" srcset=\"https:\/\/www.rootusers.com\/wp-content\/uploads\/2016\/09\/map-network-drive-2.png 602w, https:\/\/www.rootusers.com\/wp-content\/uploads\/2016\/09\/map-network-drive-2-300x178.png 300w\" alt=\"Map network drive\" width=\"602\" height=\"358\" \/><\/a>You may see a pop up window showing that the connection is being attempted. Once complete the shared NFS folder will open up.<\/li>\n<li>When you view \u201cThis PC\u201d you will see the mapped network drive under Network location. This method is better than adding the network location as we\u2019ll discuss next as it clearly shows how much disk space on the NFS share is in use and how much is still available.<a href=\"https:\/\/www.rootusers.com\/wp-content\/uploads\/2016\/09\/map-network-drive-3.png\"><img loading=\"lazy\" decoding=\"async\" class=\"aligncenter size-full wp-image-3182\" src=\"https:\/\/www.rootusers.com\/wp-content\/uploads\/2016\/09\/map-network-drive-3.png\" sizes=\"auto, (max-width: 422px) 100vw, 422px\" srcset=\"https:\/\/www.rootusers.com\/wp-content\/uploads\/2016\/09\/map-network-drive-3.png 422w, https:\/\/www.rootusers.com\/wp-content\/uploads\/2016\/09\/map-network-drive-3-300x176.png 300w\" alt=\"Map network drive\" width=\"422\" height=\"247\" \/><\/a><\/li>\n<\/ol>\n<p>&nbsp;<\/p>\n<h3 id=\"2\">Add A Network Location<\/h3>\n<p>This will basically create a shortcut to the mounted NFS directory for you to access at any time, it will also be available after restart just like the map network drive method above.<\/p>\n<ol>\n<li>First open up \u201cThis PC\u201d and right click in the white space area and select \u201cAdd a network location\u201d.<a href=\"https:\/\/www.rootusers.com\/wp-content\/uploads\/2016\/09\/add-network-location-1.png\"><img loading=\"lazy\" decoding=\"async\" class=\"aligncenter size-full wp-image-3170\" src=\"https:\/\/www.rootusers.com\/wp-content\/uploads\/2016\/09\/add-network-location-1.png\" sizes=\"auto, (max-width: 443px) 100vw, 443px\" srcset=\"https:\/\/www.rootusers.com\/wp-content\/uploads\/2016\/09\/add-network-location-1.png 443w, https:\/\/www.rootusers.com\/wp-content\/uploads\/2016\/09\/add-network-location-1-300x277.png 300w\" alt=\"Add network location\" width=\"443\" height=\"409\" \/><\/a><\/li>\n<li>On the welcome screen click Next to proceed.<a href=\"https:\/\/www.rootusers.com\/wp-content\/uploads\/2016\/09\/add-network-location-2.png\"><img loading=\"lazy\" decoding=\"async\" class=\"aligncenter size-full wp-image-3171\" src=\"https:\/\/www.rootusers.com\/wp-content\/uploads\/2016\/09\/add-network-location-2.png\" sizes=\"auto, (max-width: 587px) 100vw, 587px\" srcset=\"https:\/\/www.rootusers.com\/wp-content\/uploads\/2016\/09\/add-network-location-2.png 587w, https:\/\/www.rootusers.com\/wp-content\/uploads\/2016\/09\/add-network-location-2-300x126.png 300w\" alt=\"Add network location\" width=\"587\" height=\"247\" \/><\/a><\/li>\n<li>Select that you want to choose a custom network location, followed by the Next button.<a href=\"https:\/\/www.rootusers.com\/wp-content\/uploads\/2016\/09\/add-network-location-3.png\"><img loading=\"lazy\" decoding=\"async\" class=\"aligncenter size-full wp-image-3172\" src=\"https:\/\/www.rootusers.com\/wp-content\/uploads\/2016\/09\/add-network-location-3.png\" sizes=\"auto, (max-width: 586px) 100vw, 586px\" srcset=\"https:\/\/www.rootusers.com\/wp-content\/uploads\/2016\/09\/add-network-location-3.png 586w, https:\/\/www.rootusers.com\/wp-content\/uploads\/2016\/09\/add-network-location-3-300x108.png 300w\" alt=\"Add network location\" width=\"586\" height=\"210\" \/><\/a><\/li>\n<li>Enter in two back slashes, followed by the IP address or hostname of your NFS server, followed by the path that is being exported by the NFS server. Click Next once you\u2019ve filled this in.<a href=\"https:\/\/www.rootusers.com\/wp-content\/uploads\/2016\/09\/add-network-location-4.png\"><img loading=\"lazy\" decoding=\"async\" class=\"aligncenter size-full wp-image-3173\" src=\"https:\/\/www.rootusers.com\/wp-content\/uploads\/2016\/09\/add-network-location-4.png\" sizes=\"auto, (max-width: 584px) 100vw, 584px\" srcset=\"https:\/\/www.rootusers.com\/wp-content\/uploads\/2016\/09\/add-network-location-4.png 584w, https:\/\/www.rootusers.com\/wp-content\/uploads\/2016\/09\/add-network-location-4-300x149.png 300w\" alt=\"Add network location\" width=\"584\" height=\"290\" \/><\/a><\/li>\n<li>You can now select a custom name for the network location, click Next once you\u2019ve set one.<a href=\"https:\/\/www.rootusers.com\/wp-content\/uploads\/2016\/09\/add-network-location-5.png\"><img loading=\"lazy\" decoding=\"async\" class=\"aligncenter size-full wp-image-3174\" src=\"https:\/\/www.rootusers.com\/wp-content\/uploads\/2016\/09\/add-network-location-5.png\" sizes=\"auto, (max-width: 585px) 100vw, 585px\" srcset=\"https:\/\/www.rootusers.com\/wp-content\/uploads\/2016\/09\/add-network-location-5.png 585w, https:\/\/www.rootusers.com\/wp-content\/uploads\/2016\/09\/add-network-location-5-300x148.png 300w\" alt=\"Add network location\" width=\"585\" height=\"289\" \/><\/a><\/li>\n<li>To complete the process, simply click the Finish button on the completion screen.<a href=\"https:\/\/www.rootusers.com\/wp-content\/uploads\/2016\/09\/add-network-location-6.png\"><img loading=\"lazy\" decoding=\"async\" class=\"aligncenter size-full wp-image-3175\" src=\"https:\/\/www.rootusers.com\/wp-content\/uploads\/2016\/09\/add-network-location-6.png\" sizes=\"auto, (max-width: 585px) 100vw, 585px\" srcset=\"https:\/\/www.rootusers.com\/wp-content\/uploads\/2016\/09\/add-network-location-6.png 585w, https:\/\/www.rootusers.com\/wp-content\/uploads\/2016\/09\/add-network-location-6-300x135.png 300w\" alt=\"Add network location\" width=\"585\" height=\"264\" \/><\/a><\/li>\n<li>We can optionally open the NFS mount now, or we can browse to \u201cThis PC\u201d and see the folder shortcut listed under the \u201cNetwork locations\u201d setting as shown below.<a href=\"https:\/\/www.rootusers.com\/wp-content\/uploads\/2016\/09\/add-network-location-7.png\"><img loading=\"lazy\" decoding=\"async\" class=\"aligncenter size-full wp-image-3176\" src=\"https:\/\/www.rootusers.com\/wp-content\/uploads\/2016\/09\/add-network-location-7.png\" sizes=\"auto, (max-width: 434px) 100vw, 434px\" srcset=\"https:\/\/www.rootusers.com\/wp-content\/uploads\/2016\/09\/add-network-location-7.png 434w, https:\/\/www.rootusers.com\/wp-content\/uploads\/2016\/09\/add-network-location-7-300x191.png 300w\" alt=\"Add network location\" width=\"434\" height=\"276\" \/><\/a>As mentioned note that this does not show the disk space in use like the network drive mapping option.<\/li>\n<\/ol>\n<h2>Summary<\/h2>\n<p>We have shown you how to install the NFS client feature in Windows Server 2016, and then mount an NFS share from a Linux server both temporarily through command prompt with the mount command, and persistently so that the NFS share is mounted automatically after the server has been restarted.<\/p>\n<p>By doing this we can easily access files from a Unix or Linux based operating system over NFS from Windows.<\/p>\n<p>End of This David Papkin post on NFS sharing<\/p>\n<p><a href=\"http:\/\/davidpapkin.org\/\">http:\/\/davidpapkin.org\/<\/a><\/p>\n<p><strong>David Papkin favorite movies<\/strong><\/p>\n<p><a href=\"https:\/\/en.wikipedia.org\/wiki\/Humphrey_Bogart\">Humphrey Bogart<\/a> in <a href=\"https:\/\/www.imdb.com\/title\/tt0034583\/\">Casablanca<\/a><\/p>\n<p><a href=\"https:\/\/en.wikipedia.org\/wiki\/Singapore_(1947_film)\">Ava Gardner in Singapore (Flim Noir)<\/a><\/p>\n<p><a href=\"https:\/\/en.wikipedia.org\/wiki\/China_Seas_(film)\">Clarke Gable in China Seas<\/a><\/p>\n","protected":false},"excerpt":{"rendered":"<p>This David Papkin post on NFS sharing is derived from RootUsers post https:\/\/www.rootusers.com\/how-to-mount-an-nfs-share-in-windows-server-2016\/ Here we\u2019re going to show you how to mount an NFS file share in Windows Server 2016 both temporarily and persistently so that it will automatically mount&hellip; <\/p>\n","protected":false},"author":1,"featured_media":0,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[9],"tags":[56,70,91],"class_list":["post-3008","post","type-post","status-publish","format-standard","hentry","category-movies","tag-clarkegable","tag-davidpapkin","tag-humphreybogart"],"_links":{"self":[{"href":"https:\/\/davidpapkin.com\/index.php?rest_route=\/wp\/v2\/posts\/3008","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/davidpapkin.com\/index.php?rest_route=\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/davidpapkin.com\/index.php?rest_route=\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/davidpapkin.com\/index.php?rest_route=\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/davidpapkin.com\/index.php?rest_route=%2Fwp%2Fv2%2Fcomments&post=3008"}],"version-history":[{"count":0,"href":"https:\/\/davidpapkin.com\/index.php?rest_route=\/wp\/v2\/posts\/3008\/revisions"}],"wp:attachment":[{"href":"https:\/\/davidpapkin.com\/index.php?rest_route=%2Fwp%2Fv2%2Fmedia&parent=3008"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/davidpapkin.com\/index.php?rest_route=%2Fwp%2Fv2%2Fcategories&post=3008"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/davidpapkin.com\/index.php?rest_route=%2Fwp%2Fv2%2Ftags&post=3008"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}