Setup NFS Server On Non-Server Windows 10, 7

Let's start with the basic. So, what is a NFS server ?
Network File System (NFS) is a protocol developed by Sun Microsystems, which enables a user to access files on a different system as if the file is locally available over the network. It lets user to modify/copy files resided on a remote system. So its basically a protocol for a network drive. The create NFS server then can be accessed via another Windows or a Linux system.

As you might have already known that NFS server feature is not available on non-server versions of Windows and that's the main reason you are here. But with the help of right tools we should be able to setup NFS server on non-server Windows.

We will be creating a NFS server on a Windows system using a free tool and accessing the server from a Linux system. I will be using Windows 10 Pro and a Arch Linux (Xfce) system in this article.

Read also: Fix Requested NFS version or transport protocol is not supported

So, without any further ado let's jump into it.

Setuping NFS Server On Non-Server Windows System

First of all head to the below link and download winNFSd, our free NFS server program.

winNFSd GithHub (Source code if you need)

winNFSd (Binary)

Extract the downloaded WinNFSd.exe on C:/nfs (or where ever you like).
Now we will create two files namely paths.txt and start_server.bat within the winnfsd executable folder.


Contents of paths.txt
Open paths.txt using any text editor and write down any path that you want to share one per line, including an alias.
For example, my paths.txt looks like this.
C:\Users > /c
D:\ > /d
In the first line C:\Users would be the path that i want to share and /c would be the alias for it, so i can access the path using alias from Linux system.

Contents of start_server.bat
This file is optional, but its really handy. We will run this bat file to run our winNFSd executable with all the needed parametersWe wont need to write that long arguments every time we run it. Below is what it looks like in my start_service.bat.
c:\nfs\WinNFSd.exe -addr 192.168.1.64 -pathFile "c:\nfs\paths.txt"
Where,
in place of 192.168.1.64, put your own local IP address. You can get your local IP address using cmd by entering ipconfig command.
And you know about the paths.txt file.

Now create a shortcut of start_service.bat (if you want) on your desktop. You are ready to run your NFS server on your non-server Windows system.

After running the start_server.bat, you should get a window like below.
Now we have a working NFS server running from a non server Windows. You can connect to this server via any NFS client that supports NFS v2 or v3.


winNFSd doesn't support NFS v4.

Mount NFS Drive on Linux Using Terminal (nfs-utils)

We have already setup NFS server on non server Windows now lets mount the remote drive and access the files from our Linux system. I am using Arch Linux with Xfce desktop environment but it should apply to any distribution out there.

First of all we will need the nfs-utils package, install it if not already.
To install the package on Arch Linux issue the following command as root, if any other Linux distro, search on respective sites.
sudo pacman -S nfs-utils
After that we will need to edit nfsmount.conf  file.
By default it will try to connect using nfs v4 protocol. We will set the default version to 3 because as i have already told you, WinNFSd does not support nfs v4.

Use your favourite text editor to edit the file, i am using nano here.
sudo nano /etc/nfsmount.conf
Find the line with #Defaultvers=4 and instead of 4 or anything else write 3 and also remove the # to uncomment the line and save the file. Control + S will save the file on nano.


Lets create a folder on our root directory where we will mount our network drive. I have create a folder named mountc on my root dir ie: /mountc. To create the dir,
cd /
sudo mkdir mountc
Now that we are all set, lets mount the nfs drive. Issue the following command,
sudo mount -t nfs 192.168.1.64:/c /mountc -v
Where,
Put the nfs server IP instead of 192.168.1.64 and instead of /c put your own alias that you have assigned on your paths.txt file. And /mountc  is the path where /c  will be mounted.

Now you can access the nfs drive by navigating to /mountc  from your file manager.

After you have issued the following command you will get something like below.

On NFS server terminal,


On NFS client terminal,


To unmount the mounted drive issue the following command,
sudo umount /mountc -lf
Where /mountc is the mount point. And i am using -f just to force the unmounting.

Note: I am not using any kind of firewall. You might need to disable or create rules on your firewall. Good luck.

And this is how you setup nfs server on non-server windows 10, 7 and mount it on a Linux system.

If you faced any issue or want to appreciate just comment below. I will try to be helpful.

14 تعليقات

  1. الردود
    1. I imagine you're referring to the Windows user folder? On the host you can set a quota using the filesystem: https://docs.microsoft.com/en-us/windows/win32/fileio/managing-disk-quotas -- can be set on volume, but not per-folder (only Windows Server 2012+)

      حذف
  2. Nfs server is type of Linux. in which we can open another OS and give complete information to user. Similarly, I am bringing a Interior Painting Services in Knoxville TN to enter happiness and calm in your life.

    ردحذف
  3. How to setup this all thing when windows PC restart and client ubuntu auto mount it

    ردحذف
  4. Also known as the decentralized web, Web 3.0 kya hai is the third version of the Internet, which is an improvement over the current Web 2.0 Internet. ... However, these data and contents are largely controlled by a small group of tech giants including, Amazon, Apple, Meta, Microsoft and Google in the current Web 2.0 stage.

    ردحذف
  5. The Metaverse kya hai- know what is metaverse. is a massively scaled and interoperable network of real-time rendered 3D virtual worlds which can be experienced synchronously and persistently by an effectively unlimited number of users with an individual sense of presence, and with continuity of data, such as identity, history, entitlements, objects

    ردحذف
  6. Device Home Delivery: The large majority of our orders are delivered by our courier partners within 3-5 working days. Jio Sim Home Delivery- see how to order jio sim from home. If the estimated delivery date falls on a Sunday, or a public/local holiday, your order will be delivered on the following working day.

    ردحذف
  7. I followed the instructions and the black box appeared and disappeared. I tried starting it as the admin, verified the ip address is correct and played with the path and still the same result. What else can I do?

    ردحذف
  8. Civil services are the highest level job in India. They are responsible for implementing laws and executing policies made by the government. In other words, they are responsible for policy formulation. They help in preparing and drafting legislation. The pay and civil service officer is about 80,000 to 85,000 per month. The respect and status with the services like IAS, IPS, IFS are unmatched with any other job. They form the steel frame of Indian management and have a greater voice in all the major conclusions taken by the government. It needs too much hard work and hustle to crack the exam. Civil services have too much competition nowadays. Majorly categorized preferred posts in it are:
    tn govt jobs

    ردحذف
  9. IDM Crack
    IDM Crack (Internet Download Manager) this software is a shareware download manager. It was granted by a company Tonec from America. This company is based in the city of America new York city. This software is only accessible for Microsoft windows. Meanwhile, This software was created on 2 June 2001 about 20 years ago. The size of the software is around 10 MB. This software is available in 15 languages.
    https://sanicrackpc.com/

    ردحذف
  10. AnyDesk Crack
    AnyDesk Crack License Key is an efficient tool for remote access to computers. Operation speedier pairing between devices that have the app that is connected through the identity registration. In an entirely translated interface in this application, it provides instructions on the basic commands. A clear and focused design, In addition, it has an easy-to-wear style. The screen is ideal for remotely accessed gaming. AnyDesk Crack offers a few options to configure data flow and access. It is also possible to disable visuals when connecting to desktops.
    https://latestcrakedpro.com/

    ردحذف
  11. أزال المؤلف هذا التعليق.

    ردحذف
  12. Reliable, trustworthy, and experienced. This company has consistently delivered top-notchplumbing services for both routine maintenance and emergency repairs. Highly satisfied customer!

    ردحذف
  13. When i try to establish a NFS from my Windows to UNIX system, I am facing a error.
    After I mount the nfs to a directry in my Unix, and try to cd into it, The following error is observed.

    In UNIX (client): Not a directory <.>


    In Windoes (server) : NFS GETATTR File handle is invalid STALE

    How can i tackle this issue?
    Where did it go wrong?

    ردحذف
أحدث أقدم