{"id":13894,"date":"2025-04-03T08:26:37","date_gmt":"2025-04-03T08:26:37","guid":{"rendered":"https:\/\/greenwebpage.com\/community\/?p=13894"},"modified":"2025-04-03T08:26:39","modified_gmt":"2025-04-03T08:26:39","slug":"how-to-install-nfs-server-and-client-on-ubuntu-24-04","status":"publish","type":"post","link":"https:\/\/greenwebpage.com\/community\/how-to-install-nfs-server-and-client-on-ubuntu-24-04\/","title":{"rendered":"How to Install NFS Server and Client on Ubuntu 24.04"},"content":{"rendered":"\n<p>NFS (<strong>N<\/strong>etwork<strong> F<\/strong>ile<strong> S<\/strong>ystem) is a file system that allows file sharing over the local file system. It is commonly used in Linux environments, especially in <strong>Ubuntu 24.04<\/strong>. NFS makes file sharing easy between different machines and users. It eliminates the burden faced by individual file servers and allows users to access shared files from a centralized server. The use of NFS has increased dramatically in data centers, media rooms, and dev teams.<\/p>\n\n\n\n<p>This detailed tutorial will contain step-by-step instructions on how you can install and set up NFS on Ubuntu 24.04.<\/p>\n\n\n\n<h2 class=\"wp-block-heading\"><a id=\"post-13894-_vq0j1wrb9nd9\"><\/a>How to Install NFS on Ubuntu 24.04<\/h2>\n\n\n\n<p>In simpler words, NFS is centralized storage for information such as text documents, images and videos. It saves these so that multiple systems can easily access them.<\/p>\n\n\n\n<p><strong>Prerequisites<\/strong><\/p>\n\n\n\n<p>You will need the following to install NFS:<\/p>\n\n\n\n<ul class=\"wp-block-list\">\n<li><strong>Two Ubuntu 24.04 Systems<\/strong>: One can be used as the server the other as a client.<\/li>\n\n\n\n<li><strong>Root or Sudo Access<\/strong>: You must have the correct permission to log in as root or user sudo to make changes to the setup or settings of NFS.<\/li>\n\n\n\n<li><strong>Network Connectivity<\/strong>: Ensure same network information for both machines so that they can communicate with one another.<\/li>\n<\/ul>\n\n\n\n<h3 class=\"wp-block-heading\"><a id=\"post-13894-_allo6s8p40s8\"><\/a>Step 1: Install NFS Server on Ubuntu 24.04<\/h3>\n\n\n\n<p>The first step is to install an NFS server package on the system, which will act as the server. To do so:<\/p>\n\n\n\n<p><strong>Update the Package List:<\/strong><\/p>\n\n\n\n<p>Execute the following command to update your package list:<\/p>\n\n\n\n<pre>sudo apt update<\/pre>\n\n\n\n<figure class=\"wp-block-image\"><img fetchpriority=\"high\" decoding=\"async\" width=\"1242\" height=\"581\" src=\"http:\/\/greenwebpage.com\/community\/wp-content\/uploads\/2025\/04\/word-image-13894-1.png\" alt=\"sudo apt update\" class=\"wp-image-13895\" srcset=\"https:\/\/greenwebpage.com\/community\/wp-content\/uploads\/2025\/04\/word-image-13894-1.png 1242w, https:\/\/greenwebpage.com\/community\/wp-content\/uploads\/2025\/04\/word-image-13894-1-300x140.png 300w, https:\/\/greenwebpage.com\/community\/wp-content\/uploads\/2025\/04\/word-image-13894-1-1024x479.png 1024w, https:\/\/greenwebpage.com\/community\/wp-content\/uploads\/2025\/04\/word-image-13894-1-768x359.png 768w\" sizes=\"(max-width: 1242px) 100vw, 1242px\" \/><\/figure>\n\n\n\n<p><\/p>\n\n\n\n<p><strong>Install the NFS Kernel Server:<\/strong><\/p>\n\n\n\n<p>To install the NFS server package, execute the command shown below:<\/p>\n\n\n\n<pre>sudo apt install nfs-kernel-server<\/pre>\n\n\n\n<figure class=\"wp-block-image\"><img decoding=\"async\" width=\"1243\" height=\"715\" src=\"http:\/\/greenwebpage.com\/community\/wp-content\/uploads\/2025\/04\/word-image-13894-2.png\" alt=\"sudo apt install nfs-kernel-server\" class=\"wp-image-13896\" srcset=\"https:\/\/greenwebpage.com\/community\/wp-content\/uploads\/2025\/04\/word-image-13894-2.png 1243w, https:\/\/greenwebpage.com\/community\/wp-content\/uploads\/2025\/04\/word-image-13894-2-300x173.png 300w, https:\/\/greenwebpage.com\/community\/wp-content\/uploads\/2025\/04\/word-image-13894-2-1024x589.png 1024w, https:\/\/greenwebpage.com\/community\/wp-content\/uploads\/2025\/04\/word-image-13894-2-768x442.png 768w\" sizes=\"(max-width: 1243px) 100vw, 1243px\" \/><\/figure>\n\n\n\n<p><\/p>\n\n\n\n<p><strong>Confirm the Installation:<\/strong><\/p>\n\n\n\n<p>To confirm that NFS service is active, run the command. Now, you receive a status response with an active running state for NFS:<\/p>\n\n\n\n<pre>sudo systemctl status nfs-kernel-server<\/pre>\n\n\n\n<figure class=\"wp-block-image\"><img decoding=\"async\" width=\"1241\" height=\"433\" src=\"http:\/\/greenwebpage.com\/community\/wp-content\/uploads\/2025\/04\/word-image-13894-3.png\" alt=\"sudo systemctl status nfs-kernel-server\" class=\"wp-image-13897\" srcset=\"https:\/\/greenwebpage.com\/community\/wp-content\/uploads\/2025\/04\/word-image-13894-3.png 1241w, https:\/\/greenwebpage.com\/community\/wp-content\/uploads\/2025\/04\/word-image-13894-3-300x105.png 300w, https:\/\/greenwebpage.com\/community\/wp-content\/uploads\/2025\/04\/word-image-13894-3-1024x357.png 1024w, https:\/\/greenwebpage.com\/community\/wp-content\/uploads\/2025\/04\/word-image-13894-3-768x268.png 768w\" sizes=\"(max-width: 1241px) 100vw, 1241px\" \/><\/figure>\n\n\n\n<p><\/p>\n\n\n\n<h3 class=\"wp-block-heading\"><a id=\"post-13894-_7j6mqenj8d1x\"><\/a>Step 2: Configure the NFS Server<\/h3>\n\n\n\n<p>After installing the NFS server, users need to configure it to share directories:<\/p>\n\n\n\n<p><strong>Create a Shared Directory:<\/strong><\/p>\n\n\n\n<p>In case you need to share any directories, create a shared one in the root home and name it for ease:<\/p>\n\n\n\n<pre>sudo mkdir -p \/mnt\/nfs_share<\/pre>\n\n\n\n<figure class=\"wp-block-image\"><img loading=\"lazy\" decoding=\"async\" width=\"1232\" height=\"134\" src=\"http:\/\/greenwebpage.com\/community\/wp-content\/uploads\/2025\/04\/word-image-13894-4.png\" alt=\"sudo mkdir -p \/mnt\/nfs_share\" class=\"wp-image-13898\" srcset=\"https:\/\/greenwebpage.com\/community\/wp-content\/uploads\/2025\/04\/word-image-13894-4.png 1232w, https:\/\/greenwebpage.com\/community\/wp-content\/uploads\/2025\/04\/word-image-13894-4-300x33.png 300w, https:\/\/greenwebpage.com\/community\/wp-content\/uploads\/2025\/04\/word-image-13894-4-1024x111.png 1024w, https:\/\/greenwebpage.com\/community\/wp-content\/uploads\/2025\/04\/word-image-13894-4-768x84.png 768w\" sizes=\"(max-width: 1232px) 100vw, 1232px\" \/><\/figure>\n\n\n\n<p><\/p>\n\n\n\n<p><strong>Set Directory Permissions:<\/strong><\/p>\n\n\n\n<p>Adjust the permissions of the shared directory to ensure clients can access it:<\/p>\n\n\n\n<pre>sudo chown nobody:nogroup \/mnt\/nfs_share<\/pre>\n\n\n\n<figure class=\"wp-block-image\"><img loading=\"lazy\" decoding=\"async\" width=\"1243\" height=\"125\" src=\"http:\/\/greenwebpage.com\/community\/wp-content\/uploads\/2025\/04\/word-image-13894-5.png\" alt=\"sudo chown nobody:nogroup \/mnt\/nfs_share\" class=\"wp-image-13899\" srcset=\"https:\/\/greenwebpage.com\/community\/wp-content\/uploads\/2025\/04\/word-image-13894-5.png 1243w, https:\/\/greenwebpage.com\/community\/wp-content\/uploads\/2025\/04\/word-image-13894-5-300x30.png 300w, https:\/\/greenwebpage.com\/community\/wp-content\/uploads\/2025\/04\/word-image-13894-5-1024x103.png 1024w, https:\/\/greenwebpage.com\/community\/wp-content\/uploads\/2025\/04\/word-image-13894-5-768x77.png 768w\" sizes=\"(max-width: 1243px) 100vw, 1243px\" \/><\/figure>\n\n\n\n<p><\/p>\n\n\n\n<p>Grant the restricted level access permissions to ensure clients can access it.<\/p>\n\n\n\n<pre>sudo chmod 777 \/mnt\/nfs_share<\/pre>\n\n\n\n<figure class=\"wp-block-image\"><img loading=\"lazy\" decoding=\"async\" width=\"1236\" height=\"125\" src=\"http:\/\/greenwebpage.com\/community\/wp-content\/uploads\/2025\/04\/word-image-13894-6.png\" alt=\"sudo chmod 777 \/mnt\/nfs_share\" class=\"wp-image-13900\" srcset=\"https:\/\/greenwebpage.com\/community\/wp-content\/uploads\/2025\/04\/word-image-13894-6.png 1236w, https:\/\/greenwebpage.com\/community\/wp-content\/uploads\/2025\/04\/word-image-13894-6-300x30.png 300w, https:\/\/greenwebpage.com\/community\/wp-content\/uploads\/2025\/04\/word-image-13894-6-1024x104.png 1024w, https:\/\/greenwebpage.com\/community\/wp-content\/uploads\/2025\/04\/word-image-13894-6-768x78.png 768w\" sizes=\"(max-width: 1236px) 100vw, 1236px\" \/><\/figure>\n\n\n\n<p><\/p>\n\n\n\n<p><strong>Edit the Exports File:<\/strong><\/p>\n\n\n\n<p>After that, open the <strong>\/etc\/exports <\/strong>file, which contains the shared and client access configurations:<\/p>\n\n\n\n<pre>sudo nano \/etc\/exports<\/pre>\n\n\n\n<figure class=\"wp-block-image\"><img loading=\"lazy\" decoding=\"async\" width=\"1238\" height=\"816\" src=\"http:\/\/greenwebpage.com\/community\/wp-content\/uploads\/2025\/04\/word-image-13894-7.png\" alt=\"sudo nano \/etc\/exports\" class=\"wp-image-13901\" srcset=\"https:\/\/greenwebpage.com\/community\/wp-content\/uploads\/2025\/04\/word-image-13894-7.png 1238w, https:\/\/greenwebpage.com\/community\/wp-content\/uploads\/2025\/04\/word-image-13894-7-300x198.png 300w, https:\/\/greenwebpage.com\/community\/wp-content\/uploads\/2025\/04\/word-image-13894-7-1024x675.png 1024w, https:\/\/greenwebpage.com\/community\/wp-content\/uploads\/2025\/04\/word-image-13894-7-768x506.png 768w\" sizes=\"(max-width: 1238px) 100vw, 1238px\" \/><\/figure>\n\n\n\n<p><\/p>\n\n\n\n<p>You can replace <strong>client_ip<\/strong> with the specific address of the system with which you would like to share it:<\/p>\n\n\n\n<pre>\/mnt\/nfs_share client_ip(rw,sync,no_subtree_check)<\/pre>\n\n\n\n<figure class=\"wp-block-image\"><img loading=\"lazy\" decoding=\"async\" width=\"1231\" height=\"815\" src=\"http:\/\/greenwebpage.com\/community\/wp-content\/uploads\/2025\/04\/word-image-13894-8.png\" alt=\"\/mnt\/nfs_share client_ip(rw,sync,no_subtree_check)\" class=\"wp-image-13902\" srcset=\"https:\/\/greenwebpage.com\/community\/wp-content\/uploads\/2025\/04\/word-image-13894-8.png 1231w, https:\/\/greenwebpage.com\/community\/wp-content\/uploads\/2025\/04\/word-image-13894-8-300x199.png 300w, https:\/\/greenwebpage.com\/community\/wp-content\/uploads\/2025\/04\/word-image-13894-8-1024x678.png 1024w, https:\/\/greenwebpage.com\/community\/wp-content\/uploads\/2025\/04\/word-image-13894-8-768x508.png 768w\" sizes=\"(max-width: 1231px) 100vw, 1231px\" \/><\/figure>\n\n\n\n<p><\/p>\n\n\n\n<p>These are the conditions that will be active on sharing domains:<\/p>\n\n\n\n<p><strong>rw<\/strong>: read-write permission, granting the ability to write and edit the directory.<\/p>\n\n\n\n<p><strong>sync<\/strong>: Requests acknowledgment will only be given after the changes have been successfully written to the disk.<\/p>\n\n\n\n<p><strong>no_subtree_check<\/strong>: Here, performance is improved by turning off subtree check.<\/p>\n\n\n\n<p>To allow sharing the directory for all clients in a subnet, do the following:<\/p>\n\n\n\n<pre>\/mnt\/nfs_share 192.168.1.0\/24(rw,sync,no_subtree_check)<\/pre>\n\n\n\n<figure class=\"wp-block-image\"><img loading=\"lazy\" decoding=\"async\" width=\"1236\" height=\"817\" src=\"http:\/\/greenwebpage.com\/community\/wp-content\/uploads\/2025\/04\/word-image-13894-9.png\" alt=\"\/mnt\/nfs_share 192.168.1.0\/24(rw,sync,no_subtree_check)\" class=\"wp-image-13903\" srcset=\"https:\/\/greenwebpage.com\/community\/wp-content\/uploads\/2025\/04\/word-image-13894-9.png 1236w, https:\/\/greenwebpage.com\/community\/wp-content\/uploads\/2025\/04\/word-image-13894-9-300x198.png 300w, https:\/\/greenwebpage.com\/community\/wp-content\/uploads\/2025\/04\/word-image-13894-9-1024x677.png 1024w, https:\/\/greenwebpage.com\/community\/wp-content\/uploads\/2025\/04\/word-image-13894-9-768x508.png 768w\" sizes=\"(max-width: 1236px) 100vw, 1236px\" \/><\/figure>\n\n\n\n<p><\/p>\n\n\n\n<p><strong>Export the Shared Directory:<\/strong><\/p>\n\n\n\n<p>After the changes have been made, the next step to take is to export the shared directory:<\/p>\n\n\n\n<pre>sudo exportfs -a<\/pre>\n\n\n\n<figure class=\"wp-block-image\"><img loading=\"lazy\" decoding=\"async\" width=\"1236\" height=\"136\" src=\"http:\/\/greenwebpage.com\/community\/wp-content\/uploads\/2025\/04\/word-image-13894-10.png\" alt=\"sudo exportfs -a\" class=\"wp-image-13904\" srcset=\"https:\/\/greenwebpage.com\/community\/wp-content\/uploads\/2025\/04\/word-image-13894-10.png 1236w, https:\/\/greenwebpage.com\/community\/wp-content\/uploads\/2025\/04\/word-image-13894-10-300x33.png 300w, https:\/\/greenwebpage.com\/community\/wp-content\/uploads\/2025\/04\/word-image-13894-10-1024x113.png 1024w, https:\/\/greenwebpage.com\/community\/wp-content\/uploads\/2025\/04\/word-image-13894-10-768x85.png 768w\" sizes=\"(max-width: 1236px) 100vw, 1236px\" \/><\/figure>\n\n\n\n<p><\/p>\n\n\n\n<p><strong>Restart the NFS Server:<\/strong><\/p>\n\n\n\n<p>The next step is to restart the NFS service so that the system can make use of the new configuration:<\/p>\n\n\n\n<pre>sudo systemctl restart nfs-kernel-server<\/pre>\n\n\n\n<figure class=\"wp-block-image\"><img loading=\"lazy\" decoding=\"async\" width=\"1238\" height=\"143\" src=\"http:\/\/greenwebpage.com\/community\/wp-content\/uploads\/2025\/04\/word-image-13894-11.png\" alt=\"sudo systemctl restart nfs-kernel-server\" class=\"wp-image-13905\" srcset=\"https:\/\/greenwebpage.com\/community\/wp-content\/uploads\/2025\/04\/word-image-13894-11.png 1238w, https:\/\/greenwebpage.com\/community\/wp-content\/uploads\/2025\/04\/word-image-13894-11-300x35.png 300w, https:\/\/greenwebpage.com\/community\/wp-content\/uploads\/2025\/04\/word-image-13894-11-1024x118.png 1024w, https:\/\/greenwebpage.com\/community\/wp-content\/uploads\/2025\/04\/word-image-13894-11-768x89.png 768w\" sizes=\"(max-width: 1238px) 100vw, 1238px\" \/><\/figure>\n\n\n\n<p><\/p>\n\n\n\n<h3 class=\"wp-block-heading\"><a id=\"post-13894-_m70zzhbvwa1m\"><\/a>Step 3: Allow Clients Through Firewall<\/h3>\n\n\n\n<p>For those making use of UFW, you have to allow clients through the firewalls:<\/p>\n\n\n\n<pre>sudo ufw allow from [clientIP or clientSubnetIP] to any port nfs<\/pre>\n\n\n\n<figure class=\"wp-block-image\"><img loading=\"lazy\" decoding=\"async\" width=\"1240\" height=\"146\" src=\"http:\/\/greenwebpage.com\/community\/wp-content\/uploads\/2025\/04\/word-image-13894-12.png\" alt=\"sudo ufw allow from [clientIP or clientSubnetIP] to any port nfs\" class=\"wp-image-13906\" srcset=\"https:\/\/greenwebpage.com\/community\/wp-content\/uploads\/2025\/04\/word-image-13894-12.png 1240w, https:\/\/greenwebpage.com\/community\/wp-content\/uploads\/2025\/04\/word-image-13894-12-300x35.png 300w, https:\/\/greenwebpage.com\/community\/wp-content\/uploads\/2025\/04\/word-image-13894-12-1024x121.png 1024w, https:\/\/greenwebpage.com\/community\/wp-content\/uploads\/2025\/04\/word-image-13894-12-768x90.png 768w\" sizes=\"(max-width: 1240px) 100vw, 1240px\" \/><\/figure>\n\n\n\n<p><\/p>\n\n\n\n<p>To confirm that this operation has been completed, type the following:<\/p>\n\n\n\n<pre>sudo ufw status<\/pre>\n\n\n\n<figure class=\"wp-block-image\"><img loading=\"lazy\" decoding=\"async\" width=\"1234\" height=\"383\" src=\"http:\/\/greenwebpage.com\/community\/wp-content\/uploads\/2025\/04\/word-image-13894-13.png\" alt=\"sudo ufw status\" class=\"wp-image-13907\" srcset=\"https:\/\/greenwebpage.com\/community\/wp-content\/uploads\/2025\/04\/word-image-13894-13.png 1234w, https:\/\/greenwebpage.com\/community\/wp-content\/uploads\/2025\/04\/word-image-13894-13-300x93.png 300w, https:\/\/greenwebpage.com\/community\/wp-content\/uploads\/2025\/04\/word-image-13894-13-1024x318.png 1024w, https:\/\/greenwebpage.com\/community\/wp-content\/uploads\/2025\/04\/word-image-13894-13-768x238.png 768w\" sizes=\"(max-width: 1234px) 100vw, 1234px\" \/><\/figure>\n\n\n\n<p><\/p>\n\n\n\n<h3 class=\"wp-block-heading\"><a id=\"post-13894-_ydufs0oljxot\"><\/a>Step 4: Install NFS Client on Ubuntu 24.04<\/h3>\n\n\n\n<p>Install the NFS client package in the client machine to enable access to the shared directory. To do so:<\/p>\n\n\n\n<p><strong>Update the Package List:<\/strong><\/p>\n\n\n\n<p>Do the following to update the package list:<\/p>\n\n\n\n<pre>sudo apt update<\/pre>\n\n\n\n<figure class=\"wp-block-image\"><img loading=\"lazy\" decoding=\"async\" width=\"1239\" height=\"480\" src=\"http:\/\/greenwebpage.com\/community\/wp-content\/uploads\/2025\/04\/word-image-13894-14.png\" alt=\"sudo apt update\" class=\"wp-image-13908\" srcset=\"https:\/\/greenwebpage.com\/community\/wp-content\/uploads\/2025\/04\/word-image-13894-14.png 1239w, https:\/\/greenwebpage.com\/community\/wp-content\/uploads\/2025\/04\/word-image-13894-14-300x116.png 300w, https:\/\/greenwebpage.com\/community\/wp-content\/uploads\/2025\/04\/word-image-13894-14-1024x397.png 1024w, https:\/\/greenwebpage.com\/community\/wp-content\/uploads\/2025\/04\/word-image-13894-14-768x298.png 768w\" sizes=\"(max-width: 1239px) 100vw, 1239px\" \/><\/figure>\n\n\n\n<p><\/p>\n\n\n\n<p><strong>Install the NFS Client:<\/strong><\/p>\n\n\n\n<p>Install the NFS client package:<\/p>\n\n\n\n<pre>sudo apt install nfs-common<\/pre>\n\n\n\n<figure class=\"wp-block-image\"><img loading=\"lazy\" decoding=\"async\" width=\"1251\" height=\"647\" src=\"http:\/\/greenwebpage.com\/community\/wp-content\/uploads\/2025\/04\/word-image-13894-15.png\" alt=\"sudo apt install nfs-common\" class=\"wp-image-13909\" srcset=\"https:\/\/greenwebpage.com\/community\/wp-content\/uploads\/2025\/04\/word-image-13894-15.png 1251w, https:\/\/greenwebpage.com\/community\/wp-content\/uploads\/2025\/04\/word-image-13894-15-300x155.png 300w, https:\/\/greenwebpage.com\/community\/wp-content\/uploads\/2025\/04\/word-image-13894-15-1024x530.png 1024w, https:\/\/greenwebpage.com\/community\/wp-content\/uploads\/2025\/04\/word-image-13894-15-768x397.png 768w\" sizes=\"(max-width: 1251px) 100vw, 1251px\" \/><\/figure>\n\n\n\n<p><\/p>\n\n\n\n<h3 class=\"wp-block-heading\"><a id=\"post-13894-_8ezz02e48804\"><\/a>Step 5: Mount the NFS Share on the Client<\/h3>\n\n\n\n<p>After you install the NFS client, you will be able to mount the directory shared on the server:<\/p>\n\n\n\n<p><strong>Create a Mount Point:<\/strong><\/p>\n\n\n\n<p>Make a directory that will hold the shared files that are accessible:<\/p>\n\n\n\n<pre>sudo mkdir -p \/mnt\/nfs_client_share<\/pre>\n\n\n\n<figure class=\"wp-block-image\"><img loading=\"lazy\" decoding=\"async\" width=\"1238\" height=\"124\" src=\"http:\/\/greenwebpage.com\/community\/wp-content\/uploads\/2025\/04\/word-image-13894-16.png\" alt=\"sudo mkdir -p \/mnt\/nfs_client_share\" class=\"wp-image-13910\" srcset=\"https:\/\/greenwebpage.com\/community\/wp-content\/uploads\/2025\/04\/word-image-13894-16.png 1238w, https:\/\/greenwebpage.com\/community\/wp-content\/uploads\/2025\/04\/word-image-13894-16-300x30.png 300w, https:\/\/greenwebpage.com\/community\/wp-content\/uploads\/2025\/04\/word-image-13894-16-1024x103.png 1024w, https:\/\/greenwebpage.com\/community\/wp-content\/uploads\/2025\/04\/word-image-13894-16-768x77.png 768w\" sizes=\"(max-width: 1238px) 100vw, 1238px\" \/><\/figure>\n\n\n\n<p><\/p>\n\n\n\n<p><strong>Mount the NFS Share:<\/strong><\/p>\n\n\n\n<p>Use this command to mount the shared directory (make sure to put <strong>server_ip <\/strong>where the address of the NFS server is):<\/p>\n\n\n\n<pre>sudo mount server_ip:\/mnt\/nfs_share \/mnt\/nfs_client_share<\/pre>\n\n\n\n<figure class=\"wp-block-image\"><img loading=\"lazy\" decoding=\"async\" width=\"1255\" height=\"200\" src=\"http:\/\/greenwebpage.com\/community\/wp-content\/uploads\/2025\/04\/word-image-13894-17.png\" alt=\"sudo mount server_ip:\/mnt\/nfs_share \/mnt\/nfs_client_share\" class=\"wp-image-13911\" srcset=\"https:\/\/greenwebpage.com\/community\/wp-content\/uploads\/2025\/04\/word-image-13894-17.png 1255w, https:\/\/greenwebpage.com\/community\/wp-content\/uploads\/2025\/04\/word-image-13894-17-300x48.png 300w, https:\/\/greenwebpage.com\/community\/wp-content\/uploads\/2025\/04\/word-image-13894-17-1024x163.png 1024w, https:\/\/greenwebpage.com\/community\/wp-content\/uploads\/2025\/04\/word-image-13894-17-768x122.png 768w\" sizes=\"(max-width: 1255px) 100vw, 1255px\" \/><\/figure>\n\n\n\n<p><\/p>\n\n\n\n<p><strong>Verify the Mount:<\/strong><\/p>\n\n\n\n<p>To check whether the NFS share has been mounted:<\/p>\n\n\n\n<pre>df -h<\/pre>\n\n\n\n<figure class=\"wp-block-image\"><img loading=\"lazy\" decoding=\"async\" width=\"1263\" height=\"418\" src=\"http:\/\/greenwebpage.com\/community\/wp-content\/uploads\/2025\/04\/word-image-13894-18.png\" alt=\"df -h\" class=\"wp-image-13912\" srcset=\"https:\/\/greenwebpage.com\/community\/wp-content\/uploads\/2025\/04\/word-image-13894-18.png 1263w, https:\/\/greenwebpage.com\/community\/wp-content\/uploads\/2025\/04\/word-image-13894-18-300x99.png 300w, https:\/\/greenwebpage.com\/community\/wp-content\/uploads\/2025\/04\/word-image-13894-18-1024x339.png 1024w, https:\/\/greenwebpage.com\/community\/wp-content\/uploads\/2025\/04\/word-image-13894-18-768x254.png 768w\" sizes=\"(max-width: 1263px) 100vw, 1263px\" \/><\/figure>\n\n\n\n<p><\/p>\n\n\n\n<p>After executing the command, the shared directory should be present among other items.<\/p>\n\n\n\n<h3 class=\"wp-block-heading\"><a id=\"post-13894-_pchw2e1878rr\"><\/a>Step 6: Automount the NFS Share (Optional)<\/h3>\n\n\n\n<p>If you want to mount the NFS share automatically at boot, add an entry in <strong>\/etc\/fstab<\/strong>.<\/p>\n\n\n\n<p><strong>Edit the fstab File:<\/strong><\/p>\n\n\n\n<p>Open the file using a text editor of your choice:<\/p>\n\n\n\n<pre>sudo nano \/etc\/fstab<\/pre>\n\n\n\n<figure class=\"wp-block-image\"><img loading=\"lazy\" decoding=\"async\" width=\"1231\" height=\"685\" src=\"http:\/\/greenwebpage.com\/community\/wp-content\/uploads\/2025\/04\/word-image-13894-19.png\" alt=\"sudo nano \/etc\/fstab\" class=\"wp-image-13913\" srcset=\"https:\/\/greenwebpage.com\/community\/wp-content\/uploads\/2025\/04\/word-image-13894-19.png 1231w, https:\/\/greenwebpage.com\/community\/wp-content\/uploads\/2025\/04\/word-image-13894-19-300x167.png 300w, https:\/\/greenwebpage.com\/community\/wp-content\/uploads\/2025\/04\/word-image-13894-19-1024x570.png 1024w, https:\/\/greenwebpage.com\/community\/wp-content\/uploads\/2025\/04\/word-image-13894-19-768x427.png 768w\" sizes=\"(max-width: 1231px) 100vw, 1231px\" \/><\/figure>\n\n\n\n<p><\/p>\n\n\n\n<p><strong>Add the NFS Share:<\/strong><\/p>\n\n\n\n<p>Add this line to the file (make sure you put the NFS server&#8217;s IP address instead of <strong>server_ip<\/strong>):<\/p>\n\n\n\n<pre>server_ip:\/mnt\/nfs_share \/mnt\/nfs_client_share nfs defaults 0 0<\/pre>\n\n\n\n<figure class=\"wp-block-image\"><img loading=\"lazy\" decoding=\"async\" width=\"1246\" height=\"818\" src=\"http:\/\/greenwebpage.com\/community\/wp-content\/uploads\/2025\/04\/word-image-13894-20.png\" alt=\"server_ip:\/mnt\/nfs_share \/mnt\/nfs_client_share nfs defaults 0 0\" class=\"wp-image-13914\" srcset=\"https:\/\/greenwebpage.com\/community\/wp-content\/uploads\/2025\/04\/word-image-13894-20.png 1246w, https:\/\/greenwebpage.com\/community\/wp-content\/uploads\/2025\/04\/word-image-13894-20-300x197.png 300w, https:\/\/greenwebpage.com\/community\/wp-content\/uploads\/2025\/04\/word-image-13894-20-1024x672.png 1024w, https:\/\/greenwebpage.com\/community\/wp-content\/uploads\/2025\/04\/word-image-13894-20-768x504.png 768w\" sizes=\"(max-width: 1246px) 100vw, 1246px\" \/><\/figure>\n\n\n\n<p><\/p>\n\n\n\n<p><strong>Test the Configuration:<\/strong><\/p>\n\n\n\n<p>Test the configuration by unmounting and remounting all filesystems:<\/p>\n\n\n\n<pre>sudo umount \/mnt\/nfs_client_share<\/pre>\n\n\n\n<figure class=\"wp-block-image\"><img loading=\"lazy\" decoding=\"async\" width=\"1260\" height=\"135\" src=\"http:\/\/greenwebpage.com\/community\/wp-content\/uploads\/2025\/04\/word-image-13894-21.png\" alt=\"sudo umount \/mnt\/nfs_client_share\" class=\"wp-image-13915\" srcset=\"https:\/\/greenwebpage.com\/community\/wp-content\/uploads\/2025\/04\/word-image-13894-21.png 1260w, https:\/\/greenwebpage.com\/community\/wp-content\/uploads\/2025\/04\/word-image-13894-21-300x32.png 300w, https:\/\/greenwebpage.com\/community\/wp-content\/uploads\/2025\/04\/word-image-13894-21-1024x110.png 1024w, https:\/\/greenwebpage.com\/community\/wp-content\/uploads\/2025\/04\/word-image-13894-21-768x82.png 768w\" sizes=\"(max-width: 1260px) 100vw, 1260px\" \/><\/figure>\n\n\n\n<p><\/p>\n\n\n\n<p>Now, mount all filesystems listed in the <strong>\/etc\/fstab <\/strong>file, typically used during system startup or to apply changes made to the file:<\/p>\n\n\n\n<pre>sudo mount -a<\/pre>\n\n\n\n<figure class=\"wp-block-image\"><img loading=\"lazy\" decoding=\"async\" width=\"1245\" height=\"130\" src=\"http:\/\/greenwebpage.com\/community\/wp-content\/uploads\/2025\/04\/word-image-13894-22.png\" alt=\"sudo mount -a\" class=\"wp-image-13916\" srcset=\"https:\/\/greenwebpage.com\/community\/wp-content\/uploads\/2025\/04\/word-image-13894-22.png 1245w, https:\/\/greenwebpage.com\/community\/wp-content\/uploads\/2025\/04\/word-image-13894-22-300x31.png 300w, https:\/\/greenwebpage.com\/community\/wp-content\/uploads\/2025\/04\/word-image-13894-22-1024x107.png 1024w, https:\/\/greenwebpage.com\/community\/wp-content\/uploads\/2025\/04\/word-image-13894-22-768x80.png 768w\" sizes=\"(max-width: 1245px) 100vw, 1245px\" \/><\/figure>\n\n\n\n<p><\/p>\n\n\n\n<h3 class=\"wp-block-heading\"><a id=\"post-13894-_lqin012deto\"><\/a>Step 7: Test the NFS Setup<\/h3>\n\n\n\n<p>Finally, check that the NFS setup works by performing the following steps:<\/p>\n\n\n\n<p><strong>Create a Test File on the Server:<\/strong><\/p>\n\n\n\n<p>On the server, navigate to the shared location and create the file:<\/p>\n\n\n\n<pre>sudo touch \/mnt\/nfs_share\/testfile.txt<\/pre>\n\n\n\n<figure class=\"wp-block-image\"><img loading=\"lazy\" decoding=\"async\" width=\"1238\" height=\"190\" src=\"http:\/\/greenwebpage.com\/community\/wp-content\/uploads\/2025\/04\/word-image-13894-23.png\" alt=\"sudo touch \/mnt\/nfs_share\/testfile.txt\" class=\"wp-image-13917\" srcset=\"https:\/\/greenwebpage.com\/community\/wp-content\/uploads\/2025\/04\/word-image-13894-23.png 1238w, https:\/\/greenwebpage.com\/community\/wp-content\/uploads\/2025\/04\/word-image-13894-23-300x46.png 300w, https:\/\/greenwebpage.com\/community\/wp-content\/uploads\/2025\/04\/word-image-13894-23-1024x157.png 1024w, https:\/\/greenwebpage.com\/community\/wp-content\/uploads\/2025\/04\/word-image-13894-23-768x118.png 768w\" sizes=\"(max-width: 1238px) 100vw, 1238px\" \/><\/figure>\n\n\n\n<p><\/p>\n\n\n\n<p><strong>Verify on the Client:<\/strong><\/p>\n\n\n\n<p>On the client side, confirm the accessibility of the created file:<\/p>\n\n\n\n<pre>ls \/mnt\/nfs_client_share<\/pre>\n\n\n\n<figure class=\"wp-block-image\"><img loading=\"lazy\" decoding=\"async\" width=\"1255\" height=\"189\" src=\"http:\/\/greenwebpage.com\/community\/wp-content\/uploads\/2025\/04\/word-image-13894-24.png\" alt=\"ls \/mnt\/nfs_client_share\" class=\"wp-image-13918\" srcset=\"https:\/\/greenwebpage.com\/community\/wp-content\/uploads\/2025\/04\/word-image-13894-24.png 1255w, https:\/\/greenwebpage.com\/community\/wp-content\/uploads\/2025\/04\/word-image-13894-24-300x45.png 300w, https:\/\/greenwebpage.com\/community\/wp-content\/uploads\/2025\/04\/word-image-13894-24-1024x154.png 1024w, https:\/\/greenwebpage.com\/community\/wp-content\/uploads\/2025\/04\/word-image-13894-24-768x116.png 768w\" sizes=\"(max-width: 1255px) 100vw, 1255px\" \/><\/figure>\n\n\n\n<p><\/p>\n\n\n\n<p>The output shows the <strong>testfile.txt <\/strong>in the client side.<\/p>\n\n\n\n<p><strong>Some Issues and Their Solutions<\/strong><\/p>\n\n\n\n<ul class=\"wp-block-list\">\n<li><strong>Permission Denied<\/strong>: Check that the shared directory\u2019s permissions are correctly set and that the client IP is accepted in the \/etc\/exports file.<\/li>\n\n\n\n<li><strong>Mount Failure<\/strong>: Check that the NFS service on the server is active and that the client can connect to the server through the network.<\/li>\n\n\n\n<li><strong>Firewall Blocking<\/strong>: Check that the server firewall is set to permit the NFS service (ports 2049, 111, and others).<\/li>\n<\/ul>\n\n\n\n<h2 class=\"wp-block-heading\"><a id=\"post-13894-_uwjb85ul69t5\"><\/a>Conclusion<\/h2>\n\n\n\n<p>Installing NFS on Ubuntu 24.04 is simple. It allows for more efficient file sharing and retrieval between systems. This guide ensures that NFS is installed and configured adequately on the server and client sides. NFS is beneficial for data center management, developing teams, or media production settings because it simplifies file sharing and collaboration.<\/p>\n\n\n\t\t\t\t\t\t\t<h3 style=\"margin-bottom:20px;display:block;width:100%;margin-top:10px\">Frequently Asked Questions <\/h3>\r\n\t\t\t\t\t\t<style>\r\n\t\t\t\t<style>\r\n#wpsm_accordion_13946 .wpsm_panel-heading{\r\n\tpadding:0px !important;\r\n}\r\n#wpsm_accordion_13946 .wpsm_panel-title {\r\n\tmargin:0px !important; \r\n\ttext-transform:none !important;\r\n\tline-height: 1 !important;\r\n}\r\n#wpsm_accordion_13946 .wpsm_panel-title a{\r\n\ttext-decoration:none;\r\n\toverflow:hidden;\r\n\tdisplay:block;\r\n\tpadding:0px;\r\n\tfont-size: 18px !important;\r\n\tfont-family: Open Sans !important;\r\n\tcolor:#000000 !important;\r\n\tborder-bottom:0px !important;\r\n}\r\n\r\n#wpsm_accordion_13946 .wpsm_panel-title a:focus {\r\noutline: 0px !important;\r\n}\r\n\r\n#wpsm_accordion_13946 .wpsm_panel-title a:hover, #wpsm_accordion_13946 .wpsm_panel-title a:focus {\r\n\tcolor:#000000 !important;\r\n}\r\n#wpsm_accordion_13946 .acc-a{\r\n\tcolor: #000000 !important;\r\n\tbackground-color:#e8e8e8 !important;\r\n\tborder-color: #ddd;\r\n}\r\n#wpsm_accordion_13946 .wpsm_panel-default > .wpsm_panel-heading{\r\n\tcolor: #000000 !important;\r\n\tbackground-color: #e8e8e8 !important;\r\n\tborder-color: #e8e8e8 !important;\r\n\tborder-top-left-radius: 0px;\r\n\tborder-top-right-radius: 0px;\r\n}\r\n#wpsm_accordion_13946 .wpsm_panel-default {\r\n\t\tborder:1px solid transparent !important;\r\n\t}\r\n#wpsm_accordion_13946 {\r\n\tmargin-bottom: 20px;\r\n\toverflow: hidden;\r\n\tfloat: none;\r\n\twidth: 100%;\r\n\tdisplay: block;\r\n}\r\n#wpsm_accordion_13946 .ac_title_class{\r\n\tdisplay: block;\r\n\tpadding-top: 12px;\r\n\tpadding-bottom: 12px;\r\n\tpadding-left: 15px;\r\n\tpadding-right: 15px;\r\n}\r\n#wpsm_accordion_13946  .wpsm_panel {\r\n\toverflow:hidden;\r\n\t-webkit-box-shadow: 0 0px 0px rgba(0, 0, 0, .05);\r\n\tbox-shadow: 0 0px 0px rgba(0, 0, 0, .05);\r\n\t\tborder-radius: 4px;\r\n\t}\r\n#wpsm_accordion_13946  .wpsm_panel + .wpsm_panel {\r\n\t\tmargin-top: 5px;\r\n\t}\r\n#wpsm_accordion_13946  .wpsm_panel-body{\r\n\tbackground-color:#ffffff !important;\r\n\tcolor:#000000 !important;\r\n\tborder-top-color: #e8e8e8 !important;\r\n\tfont-size:16px !important;\r\n\tfont-family: Open Sans !important;\r\n\toverflow: hidden;\r\n\t\tborder: 2px solid #e8e8e8 !important;\r\n\t}\r\n\r\n#wpsm_accordion_13946 .ac_open_cl_icon{\r\n\tbackground-color:#e8e8e8 !important;\r\n\tcolor: #000000 !important;\r\n\tfloat:right !important;\r\n\tpadding-top: 12px !important;\r\n\tpadding-bottom: 12px !important;\r\n\tline-height: 1.0 !important;\r\n\tpadding-left: 15px !important;\r\n\tpadding-right: 15px !important;\r\n\tdisplay: inline-block !important;\r\n}\r\n\r\n\t\t\t\r\n\t\t\t<\/style>\t\r\n\t\t\t<\/style>\r\n\t\t\t<div class=\"wpsm_panel-group\" id=\"wpsm_accordion_13946\" >\r\n\t\t\t\t\t\t\t\t\r\n\t\t\t\t\t<!-- Inner panel Start -->\r\n\t\t\t\t\t<div class=\"wpsm_panel wpsm_panel-default\">\r\n\t\t\t\t\t\t<div class=\"wpsm_panel-heading\" role=\"tab\" >\r\n\t\t\t\t\t\t  <h4 class=\"wpsm_panel-title\">\r\n\t\t\t\t\t\t\t<a  class=\"\"  data-toggle=\"collapse\" data-parent=\"#wpsm_accordion_13946 \" href=\"javascript:void(0)\" data-target=\"#ac_13946_collapse1\" onclick=\"do_resize()\">\r\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t<span class=\"ac_open_cl_icon fa fa-plus\"><\/span>\r\n\t\t\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\t \r\n\t\t\t\t\t\t\t\t<span class=\"ac_title_class\">\r\n\t\t\t\t\t\t\t\t\tWhat is NFS?\t\t\t\t\t\t\t\t<\/span>\r\n\t\t\t\t\t\t\t<\/a>\r\n\t\t\t\t\t\t  <\/h4>\r\n\t\t\t\t\t\t<\/div>\r\n\t\t\t\t\t\t<div id=\"ac_13946_collapse1\" class=\"wpsm_panel-collapse collapse \"  >\r\n\t\t\t\t\t\t  <div class=\"wpsm_panel-body\">\r\n\t\t\t\t\t\t\tNFS (Network File System) allows sharing files and directories over a network, enabling remote access to files as if they were on a local machine.\t\t\t\t\t\t  <\/div>\r\n\t\t\t\t\t\t<\/div>\r\n\t\t\t\t\t<\/div>\r\n\t\t\t\t\t<!-- Inner panel End -->\r\n\t\t\t\t\t\r\n\t\t\t\t\t\t\t\t\r\n\t\t\t\t\t<!-- Inner panel Start -->\r\n\t\t\t\t\t<div class=\"wpsm_panel wpsm_panel-default\">\r\n\t\t\t\t\t\t<div class=\"wpsm_panel-heading\" role=\"tab\" >\r\n\t\t\t\t\t\t  <h4 class=\"wpsm_panel-title\">\r\n\t\t\t\t\t\t\t<a  class=\"collapsed\"  data-toggle=\"collapse\" data-parent=\"#wpsm_accordion_13946 \" href=\"javascript:void(0)\" data-target=\"#ac_13946_collapse2\" onclick=\"do_resize()\">\r\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t<span class=\"ac_open_cl_icon fa fa-plus\"><\/span>\r\n\t\t\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\t \r\n\t\t\t\t\t\t\t\t<span class=\"ac_title_class\">\r\n\t\t\t\t\t\t\t\t\tHow do I install the NFS server on Ubuntu 24.04?\t\t\t\t\t\t\t\t<\/span>\r\n\t\t\t\t\t\t\t<\/a>\r\n\t\t\t\t\t\t  <\/h4>\r\n\t\t\t\t\t\t<\/div>\r\n\t\t\t\t\t\t<div id=\"ac_13946_collapse2\" class=\"wpsm_panel-collapse collapse \"  >\r\n\t\t\t\t\t\t  <div class=\"wpsm_panel-body\">\r\n\t\t\t\t\t\t\tInstall NFS server using:<code>sudo apt update &amp;&amp;<\/code> <code>sudo apt install nfs-kernel-server<\/code>\r\n\r\n\t\t\t\t\t\t  <\/div>\r\n\t\t\t\t\t\t<\/div>\r\n\t\t\t\t\t<\/div>\r\n\t\t\t\t\t<!-- Inner panel End -->\r\n\t\t\t\t\t\r\n\t\t\t\t\t\t\t\t\r\n\t\t\t\t\t<!-- Inner panel Start -->\r\n\t\t\t\t\t<div class=\"wpsm_panel wpsm_panel-default\">\r\n\t\t\t\t\t\t<div class=\"wpsm_panel-heading\" role=\"tab\" >\r\n\t\t\t\t\t\t  <h4 class=\"wpsm_panel-title\">\r\n\t\t\t\t\t\t\t<a  class=\"collapsed\"  data-toggle=\"collapse\" data-parent=\"#wpsm_accordion_13946 \" href=\"javascript:void(0)\" data-target=\"#ac_13946_collapse3\" onclick=\"do_resize()\">\r\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t<span class=\"ac_open_cl_icon fa fa-plus\"><\/span>\r\n\t\t\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\t \r\n\t\t\t\t\t\t\t\t<span class=\"ac_title_class\">\r\n\t\t\t\t\t\t\t\t\tHow can I check if the NFS server is running?\t\t\t\t\t\t\t\t<\/span>\r\n\t\t\t\t\t\t\t<\/a>\r\n\t\t\t\t\t\t  <\/h4>\r\n\t\t\t\t\t\t<\/div>\r\n\t\t\t\t\t\t<div id=\"ac_13946_collapse3\" class=\"wpsm_panel-collapse collapse \"  >\r\n\t\t\t\t\t\t  <div class=\"wpsm_panel-body\">\r\n\t\t\t\t\t\t\tCheck the server status with:<code>sudo systemctl status nfs-kernel-server<\/code>\r\n\r\n\t\t\t\t\t\t  <\/div>\r\n\t\t\t\t\t\t<\/div>\r\n\t\t\t\t\t<\/div>\r\n\t\t\t\t\t<!-- Inner panel End -->\r\n\t\t\t\t\t\r\n\t\t\t\t\t\t\t\t\r\n\t\t\t\t\t<!-- Inner panel Start -->\r\n\t\t\t\t\t<div class=\"wpsm_panel wpsm_panel-default\">\r\n\t\t\t\t\t\t<div class=\"wpsm_panel-heading\" role=\"tab\" >\r\n\t\t\t\t\t\t  <h4 class=\"wpsm_panel-title\">\r\n\t\t\t\t\t\t\t<a  class=\"collapsed\"  data-toggle=\"collapse\" data-parent=\"#wpsm_accordion_13946 \" href=\"javascript:void(0)\" data-target=\"#ac_13946_collapse4\" onclick=\"do_resize()\">\r\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t<span class=\"ac_open_cl_icon fa fa-plus\"><\/span>\r\n\t\t\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\t \r\n\t\t\t\t\t\t\t\t<span class=\"ac_title_class\">\r\n\t\t\t\t\t\t\t\t\tHow do I configure NFS client machines to access the shared directory?\t\t\t\t\t\t\t\t<\/span>\r\n\t\t\t\t\t\t\t<\/a>\r\n\t\t\t\t\t\t  <\/h4>\r\n\t\t\t\t\t\t<\/div>\r\n\t\t\t\t\t\t<div id=\"ac_13946_collapse4\" class=\"wpsm_panel-collapse collapse \"  >\r\n\t\t\t\t\t\t  <div class=\"wpsm_panel-body\">\r\n\t\t\t\t\t\t\tInstall <code>nfs-common<\/code>, then mount the NFS share: <code>sudo mount :\/mnt\/nfs_share \/mnt\/nfs_mount<\/code>\r\n\r\n\t\t\t\t\t\t  <\/div>\r\n\t\t\t\t\t\t<\/div>\r\n\t\t\t\t\t<\/div>\r\n\t\t\t\t\t<!-- Inner panel End -->\r\n\t\t\t\t\t\r\n\t\t\t\t\t\t\t\t\r\n\t\t\t\t\t<!-- Inner panel Start -->\r\n\t\t\t\t\t<div class=\"wpsm_panel wpsm_panel-default\">\r\n\t\t\t\t\t\t<div class=\"wpsm_panel-heading\" role=\"tab\" >\r\n\t\t\t\t\t\t  <h4 class=\"wpsm_panel-title\">\r\n\t\t\t\t\t\t\t<a  class=\"collapsed\"  data-toggle=\"collapse\" data-parent=\"#wpsm_accordion_13946 \" href=\"javascript:void(0)\" data-target=\"#ac_13946_collapse5\" onclick=\"do_resize()\">\r\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t<span class=\"ac_open_cl_icon fa fa-plus\"><\/span>\r\n\t\t\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\t \r\n\t\t\t\t\t\t\t\t<span class=\"ac_title_class\">\r\n\t\t\t\t\t\t\t\t\tHow do I allow NFS through the firewall on Ubuntu?\t\t\t\t\t\t\t\t<\/span>\r\n\t\t\t\t\t\t\t<\/a>\r\n\t\t\t\t\t\t  <\/h4>\r\n\t\t\t\t\t\t<\/div>\r\n\t\t\t\t\t\t<div id=\"ac_13946_collapse5\" class=\"wpsm_panel-collapse collapse \"  >\r\n\t\t\t\t\t\t  <div class=\"wpsm_panel-body\">\r\n\t\t\t\t\t\t\tAllow NFS traffic through the firewall: <code>sudo ufw allow from  to any port nfs<\/code>\r\n\r\n\t\t\t\t\t\t  <\/div>\r\n\t\t\t\t\t\t<\/div>\r\n\t\t\t\t\t<\/div>\r\n\t\t\t\t\t<!-- Inner panel End -->\r\n\t\t\t\t\t\r\n\t\t\t\t\t\t\t<\/div>\r\n\t\t\t\r\n<script type=\"text\/javascript\">\r\n\t\r\n\t\tfunction do_resize(){\r\n\r\n\t\t\tvar width=jQuery( '.wpsm_panel .wpsm_panel-body iframe' ).width();\r\n\t\t\tvar height=jQuery( '.wpsm_panel .wpsm_panel-body iframe' ).height();\r\n\r\n\t\t\tvar toggleSize = true;\r\n\t\t\tjQuery('iframe').animate({\r\n\t\t\t    width: toggleSize ? width : 640,\r\n\t\t\t    height: toggleSize ? height : 360\r\n\t\t\t  }, 250);\r\n\r\n\t\t\t  toggleSize = !toggleSize;\r\n\t\t}\r\n\t\t\r\n<\/script>\t\n\n    <div class=\"xs_social_share_widget xs_share_url after_content \t\tmain_content  wslu-style-1 wslu-share-box-shaped wslu-fill-colored wslu-none wslu-share-horizontal wslu-theme-font-no wslu-main_content\">\n\n\t\t\n        <ul>\n\t\t\t        <\/ul>\n    <\/div> \n","protected":false},"excerpt":{"rendered":"<p>NFS (Network File System) is a file system that allows file sharing over the local file system. It is commonly used in Linux environments, especially in Ubuntu 24.04. NFS makes file sharing easy between different machines and users. It eliminates the burden faced by individual file servers and allows users to access shared files from [&hellip;]<\/p>\n","protected":false},"author":2,"featured_media":13949,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[43],"tags":[584,740,317],"class_list":["post-13894","post","type-post","status-publish","format-standard","has-post-thumbnail","hentry","category-tutorials","tag-file-sharing","tag-nfs-server","tag-ubuntu-24-04"],"yoast_head":"<!-- This site is optimized with the Yoast SEO plugin v26.5 - https:\/\/yoast.com\/wordpress\/plugins\/seo\/ -->\n<title>How to Install NFS Server and Client on Ubuntu 24.04<\/title>\n<meta name=\"description\" content=\"This detailed tutorial will contain step-by-step instructions on how you can install and set up NFS on Ubuntu 24.04.\" \/>\n<meta name=\"robots\" content=\"index, follow, max-snippet:-1, max-image-preview:large, max-video-preview:-1\" \/>\n<link rel=\"canonical\" href=\"https:\/\/greenwebpage.com\/community\/how-to-install-nfs-server-and-client-on-ubuntu-24-04\/\" \/>\n<meta property=\"og:locale\" content=\"en_US\" \/>\n<meta property=\"og:type\" content=\"article\" \/>\n<meta property=\"og:title\" content=\"How to Install NFS Server and Client on Ubuntu 24.04\" \/>\n<meta property=\"og:description\" content=\"This detailed tutorial will contain step-by-step instructions on how you can install and set up NFS on Ubuntu 24.04.\" \/>\n<meta property=\"og:url\" content=\"https:\/\/greenwebpage.com\/community\/how-to-install-nfs-server-and-client-on-ubuntu-24-04\/\" \/>\n<meta property=\"og:site_name\" content=\"Greenwebpage Community\" \/>\n<meta property=\"article:published_time\" content=\"2025-04-03T08:26:37+00:00\" \/>\n<meta property=\"article:modified_time\" content=\"2025-04-03T08:26:39+00:00\" \/>\n<meta property=\"og:image\" content=\"http:\/\/greenwebpage.com\/community\/wp-content\/uploads\/2025\/04\/How-to-Install-NFS-Server-and-Client-on-Ubuntu-24.04.jpg\" \/>\n\t<meta property=\"og:image:width\" content=\"1020\" \/>\n\t<meta property=\"og:image:height\" content=\"600\" \/>\n\t<meta property=\"og:image:type\" content=\"image\/jpeg\" \/>\n<meta name=\"author\" content=\"Karim Buzdar\" \/>\n<meta name=\"twitter:card\" content=\"summary_large_image\" \/>\n<meta name=\"twitter:label1\" content=\"Written by\" \/>\n\t<meta name=\"twitter:data1\" content=\"Karim Buzdar\" \/>\n\t<meta name=\"twitter:label2\" content=\"Est. reading time\" \/>\n\t<meta name=\"twitter:data2\" content=\"10 minutes\" \/>\n<script type=\"application\/ld+json\" class=\"yoast-schema-graph\">{\"@context\":\"https:\/\/schema.org\",\"@graph\":[{\"@type\":\"Article\",\"@id\":\"https:\/\/greenwebpage.com\/community\/how-to-install-nfs-server-and-client-on-ubuntu-24-04\/#article\",\"isPartOf\":{\"@id\":\"https:\/\/greenwebpage.com\/community\/how-to-install-nfs-server-and-client-on-ubuntu-24-04\/\"},\"author\":{\"name\":\"Karim Buzdar\",\"@id\":\"https:\/\/greenwebpage.com\/community\/#\/schema\/person\/467c100c1d017bc081473ee0440680c8\"},\"headline\":\"How to Install NFS Server and Client on Ubuntu 24.04\",\"datePublished\":\"2025-04-03T08:26:37+00:00\",\"dateModified\":\"2025-04-03T08:26:39+00:00\",\"mainEntityOfPage\":{\"@id\":\"https:\/\/greenwebpage.com\/community\/how-to-install-nfs-server-and-client-on-ubuntu-24-04\/\"},\"wordCount\":958,\"commentCount\":0,\"publisher\":{\"@id\":\"https:\/\/greenwebpage.com\/community\/#organization\"},\"image\":{\"@id\":\"https:\/\/greenwebpage.com\/community\/how-to-install-nfs-server-and-client-on-ubuntu-24-04\/#primaryimage\"},\"thumbnailUrl\":\"https:\/\/greenwebpage.com\/community\/wp-content\/uploads\/2025\/04\/How-to-Install-NFS-Server-and-Client-on-Ubuntu-24.04.jpg\",\"keywords\":[\"File Sharing\",\"NFS Server\",\"Ubuntu 24.04\"],\"articleSection\":[\"Tutorials\"],\"inLanguage\":\"en-US\",\"potentialAction\":[{\"@type\":\"CommentAction\",\"name\":\"Comment\",\"target\":[\"https:\/\/greenwebpage.com\/community\/how-to-install-nfs-server-and-client-on-ubuntu-24-04\/#respond\"]}]},{\"@type\":\"WebPage\",\"@id\":\"https:\/\/greenwebpage.com\/community\/how-to-install-nfs-server-and-client-on-ubuntu-24-04\/\",\"url\":\"https:\/\/greenwebpage.com\/community\/how-to-install-nfs-server-and-client-on-ubuntu-24-04\/\",\"name\":\"How to Install NFS Server and Client on Ubuntu 24.04\",\"isPartOf\":{\"@id\":\"https:\/\/greenwebpage.com\/community\/#website\"},\"primaryImageOfPage\":{\"@id\":\"https:\/\/greenwebpage.com\/community\/how-to-install-nfs-server-and-client-on-ubuntu-24-04\/#primaryimage\"},\"image\":{\"@id\":\"https:\/\/greenwebpage.com\/community\/how-to-install-nfs-server-and-client-on-ubuntu-24-04\/#primaryimage\"},\"thumbnailUrl\":\"https:\/\/greenwebpage.com\/community\/wp-content\/uploads\/2025\/04\/How-to-Install-NFS-Server-and-Client-on-Ubuntu-24.04.jpg\",\"datePublished\":\"2025-04-03T08:26:37+00:00\",\"dateModified\":\"2025-04-03T08:26:39+00:00\",\"description\":\"This detailed tutorial will contain step-by-step instructions on how you can install and set up NFS on Ubuntu 24.04.\",\"breadcrumb\":{\"@id\":\"https:\/\/greenwebpage.com\/community\/how-to-install-nfs-server-and-client-on-ubuntu-24-04\/#breadcrumb\"},\"inLanguage\":\"en-US\",\"potentialAction\":[{\"@type\":\"ReadAction\",\"target\":[\"https:\/\/greenwebpage.com\/community\/how-to-install-nfs-server-and-client-on-ubuntu-24-04\/\"]}]},{\"@type\":\"ImageObject\",\"inLanguage\":\"en-US\",\"@id\":\"https:\/\/greenwebpage.com\/community\/how-to-install-nfs-server-and-client-on-ubuntu-24-04\/#primaryimage\",\"url\":\"https:\/\/greenwebpage.com\/community\/wp-content\/uploads\/2025\/04\/How-to-Install-NFS-Server-and-Client-on-Ubuntu-24.04.jpg\",\"contentUrl\":\"https:\/\/greenwebpage.com\/community\/wp-content\/uploads\/2025\/04\/How-to-Install-NFS-Server-and-Client-on-Ubuntu-24.04.jpg\",\"width\":1020,\"height\":600,\"caption\":\"How to Install NFS Server and Client on Ubuntu 24.04\"},{\"@type\":\"BreadcrumbList\",\"@id\":\"https:\/\/greenwebpage.com\/community\/how-to-install-nfs-server-and-client-on-ubuntu-24-04\/#breadcrumb\",\"itemListElement\":[{\"@type\":\"ListItem\",\"position\":1,\"name\":\"Home\",\"item\":\"https:\/\/greenwebpage.com\/community\/\"},{\"@type\":\"ListItem\",\"position\":2,\"name\":\"How to Install NFS Server and Client on Ubuntu 24.04\"}]},{\"@type\":\"WebSite\",\"@id\":\"https:\/\/greenwebpage.com\/community\/#website\",\"url\":\"https:\/\/greenwebpage.com\/community\/\",\"name\":\"Greenwebpage Community\",\"description\":\"Get online in three steps with our wide range of web hosting solutions. Choose from professional business to enterprise options designed to meet your needs.\",\"publisher\":{\"@id\":\"https:\/\/greenwebpage.com\/community\/#organization\"},\"potentialAction\":[{\"@type\":\"SearchAction\",\"target\":{\"@type\":\"EntryPoint\",\"urlTemplate\":\"https:\/\/greenwebpage.com\/community\/?s={search_term_string}\"},\"query-input\":{\"@type\":\"PropertyValueSpecification\",\"valueRequired\":true,\"valueName\":\"search_term_string\"}}],\"inLanguage\":\"en-US\"},{\"@type\":\"Organization\",\"@id\":\"https:\/\/greenwebpage.com\/community\/#organization\",\"name\":\"Greenwebpage Community\",\"url\":\"https:\/\/greenwebpage.com\/community\/\",\"logo\":{\"@type\":\"ImageObject\",\"inLanguage\":\"en-US\",\"@id\":\"https:\/\/greenwebpage.com\/community\/#\/schema\/logo\/image\/\",\"url\":\"https:\/\/greenwebpage.com\/community\/wp-content\/uploads\/2023\/10\/cropped-logomic.png\",\"contentUrl\":\"https:\/\/greenwebpage.com\/community\/wp-content\/uploads\/2023\/10\/cropped-logomic.png\",\"width\":512,\"height\":512,\"caption\":\"Greenwebpage Community\"},\"image\":{\"@id\":\"https:\/\/greenwebpage.com\/community\/#\/schema\/logo\/image\/\"}},{\"@type\":\"Person\",\"@id\":\"https:\/\/greenwebpage.com\/community\/#\/schema\/person\/467c100c1d017bc081473ee0440680c8\",\"name\":\"Karim Buzdar\",\"image\":{\"@type\":\"ImageObject\",\"inLanguage\":\"en-US\",\"@id\":\"https:\/\/greenwebpage.com\/community\/#\/schema\/person\/image\/\",\"url\":\"https:\/\/secure.gravatar.com\/avatar\/0628fcbcddd9bc5486245d2cf4a904dbcdeac9ad6c3098f49237094e9d513d0c?s=96&d=mm&r=g\",\"contentUrl\":\"https:\/\/secure.gravatar.com\/avatar\/0628fcbcddd9bc5486245d2cf4a904dbcdeac9ad6c3098f49237094e9d513d0c?s=96&d=mm&r=g\",\"caption\":\"Karim Buzdar\"},\"sameAs\":[\"https:\/\/greenwebpage.com\"],\"url\":\"https:\/\/greenwebpage.com\/community\/author\/karim\/\"}]}<\/script>\n<!-- \/ Yoast SEO plugin. -->","yoast_head_json":{"title":"How to Install NFS Server and Client on Ubuntu 24.04","description":"This detailed tutorial will contain step-by-step instructions on how you can install and set up NFS on Ubuntu 24.04.","robots":{"index":"index","follow":"follow","max-snippet":"max-snippet:-1","max-image-preview":"max-image-preview:large","max-video-preview":"max-video-preview:-1"},"canonical":"https:\/\/greenwebpage.com\/community\/how-to-install-nfs-server-and-client-on-ubuntu-24-04\/","og_locale":"en_US","og_type":"article","og_title":"How to Install NFS Server and Client on Ubuntu 24.04","og_description":"This detailed tutorial will contain step-by-step instructions on how you can install and set up NFS on Ubuntu 24.04.","og_url":"https:\/\/greenwebpage.com\/community\/how-to-install-nfs-server-and-client-on-ubuntu-24-04\/","og_site_name":"Greenwebpage Community","article_published_time":"2025-04-03T08:26:37+00:00","article_modified_time":"2025-04-03T08:26:39+00:00","og_image":[{"width":1020,"height":600,"url":"http:\/\/greenwebpage.com\/community\/wp-content\/uploads\/2025\/04\/How-to-Install-NFS-Server-and-Client-on-Ubuntu-24.04.jpg","type":"image\/jpeg"}],"author":"Karim Buzdar","twitter_card":"summary_large_image","twitter_misc":{"Written by":"Karim Buzdar","Est. reading time":"10 minutes"},"schema":{"@context":"https:\/\/schema.org","@graph":[{"@type":"Article","@id":"https:\/\/greenwebpage.com\/community\/how-to-install-nfs-server-and-client-on-ubuntu-24-04\/#article","isPartOf":{"@id":"https:\/\/greenwebpage.com\/community\/how-to-install-nfs-server-and-client-on-ubuntu-24-04\/"},"author":{"name":"Karim Buzdar","@id":"https:\/\/greenwebpage.com\/community\/#\/schema\/person\/467c100c1d017bc081473ee0440680c8"},"headline":"How to Install NFS Server and Client on Ubuntu 24.04","datePublished":"2025-04-03T08:26:37+00:00","dateModified":"2025-04-03T08:26:39+00:00","mainEntityOfPage":{"@id":"https:\/\/greenwebpage.com\/community\/how-to-install-nfs-server-and-client-on-ubuntu-24-04\/"},"wordCount":958,"commentCount":0,"publisher":{"@id":"https:\/\/greenwebpage.com\/community\/#organization"},"image":{"@id":"https:\/\/greenwebpage.com\/community\/how-to-install-nfs-server-and-client-on-ubuntu-24-04\/#primaryimage"},"thumbnailUrl":"https:\/\/greenwebpage.com\/community\/wp-content\/uploads\/2025\/04\/How-to-Install-NFS-Server-and-Client-on-Ubuntu-24.04.jpg","keywords":["File Sharing","NFS Server","Ubuntu 24.04"],"articleSection":["Tutorials"],"inLanguage":"en-US","potentialAction":[{"@type":"CommentAction","name":"Comment","target":["https:\/\/greenwebpage.com\/community\/how-to-install-nfs-server-and-client-on-ubuntu-24-04\/#respond"]}]},{"@type":"WebPage","@id":"https:\/\/greenwebpage.com\/community\/how-to-install-nfs-server-and-client-on-ubuntu-24-04\/","url":"https:\/\/greenwebpage.com\/community\/how-to-install-nfs-server-and-client-on-ubuntu-24-04\/","name":"How to Install NFS Server and Client on Ubuntu 24.04","isPartOf":{"@id":"https:\/\/greenwebpage.com\/community\/#website"},"primaryImageOfPage":{"@id":"https:\/\/greenwebpage.com\/community\/how-to-install-nfs-server-and-client-on-ubuntu-24-04\/#primaryimage"},"image":{"@id":"https:\/\/greenwebpage.com\/community\/how-to-install-nfs-server-and-client-on-ubuntu-24-04\/#primaryimage"},"thumbnailUrl":"https:\/\/greenwebpage.com\/community\/wp-content\/uploads\/2025\/04\/How-to-Install-NFS-Server-and-Client-on-Ubuntu-24.04.jpg","datePublished":"2025-04-03T08:26:37+00:00","dateModified":"2025-04-03T08:26:39+00:00","description":"This detailed tutorial will contain step-by-step instructions on how you can install and set up NFS on Ubuntu 24.04.","breadcrumb":{"@id":"https:\/\/greenwebpage.com\/community\/how-to-install-nfs-server-and-client-on-ubuntu-24-04\/#breadcrumb"},"inLanguage":"en-US","potentialAction":[{"@type":"ReadAction","target":["https:\/\/greenwebpage.com\/community\/how-to-install-nfs-server-and-client-on-ubuntu-24-04\/"]}]},{"@type":"ImageObject","inLanguage":"en-US","@id":"https:\/\/greenwebpage.com\/community\/how-to-install-nfs-server-and-client-on-ubuntu-24-04\/#primaryimage","url":"https:\/\/greenwebpage.com\/community\/wp-content\/uploads\/2025\/04\/How-to-Install-NFS-Server-and-Client-on-Ubuntu-24.04.jpg","contentUrl":"https:\/\/greenwebpage.com\/community\/wp-content\/uploads\/2025\/04\/How-to-Install-NFS-Server-and-Client-on-Ubuntu-24.04.jpg","width":1020,"height":600,"caption":"How to Install NFS Server and Client on Ubuntu 24.04"},{"@type":"BreadcrumbList","@id":"https:\/\/greenwebpage.com\/community\/how-to-install-nfs-server-and-client-on-ubuntu-24-04\/#breadcrumb","itemListElement":[{"@type":"ListItem","position":1,"name":"Home","item":"https:\/\/greenwebpage.com\/community\/"},{"@type":"ListItem","position":2,"name":"How to Install NFS Server and Client on Ubuntu 24.04"}]},{"@type":"WebSite","@id":"https:\/\/greenwebpage.com\/community\/#website","url":"https:\/\/greenwebpage.com\/community\/","name":"Greenwebpage Community","description":"Get online in three steps with our wide range of web hosting solutions. Choose from professional business to enterprise options designed to meet your needs.","publisher":{"@id":"https:\/\/greenwebpage.com\/community\/#organization"},"potentialAction":[{"@type":"SearchAction","target":{"@type":"EntryPoint","urlTemplate":"https:\/\/greenwebpage.com\/community\/?s={search_term_string}"},"query-input":{"@type":"PropertyValueSpecification","valueRequired":true,"valueName":"search_term_string"}}],"inLanguage":"en-US"},{"@type":"Organization","@id":"https:\/\/greenwebpage.com\/community\/#organization","name":"Greenwebpage Community","url":"https:\/\/greenwebpage.com\/community\/","logo":{"@type":"ImageObject","inLanguage":"en-US","@id":"https:\/\/greenwebpage.com\/community\/#\/schema\/logo\/image\/","url":"https:\/\/greenwebpage.com\/community\/wp-content\/uploads\/2023\/10\/cropped-logomic.png","contentUrl":"https:\/\/greenwebpage.com\/community\/wp-content\/uploads\/2023\/10\/cropped-logomic.png","width":512,"height":512,"caption":"Greenwebpage Community"},"image":{"@id":"https:\/\/greenwebpage.com\/community\/#\/schema\/logo\/image\/"}},{"@type":"Person","@id":"https:\/\/greenwebpage.com\/community\/#\/schema\/person\/467c100c1d017bc081473ee0440680c8","name":"Karim Buzdar","image":{"@type":"ImageObject","inLanguage":"en-US","@id":"https:\/\/greenwebpage.com\/community\/#\/schema\/person\/image\/","url":"https:\/\/secure.gravatar.com\/avatar\/0628fcbcddd9bc5486245d2cf4a904dbcdeac9ad6c3098f49237094e9d513d0c?s=96&d=mm&r=g","contentUrl":"https:\/\/secure.gravatar.com\/avatar\/0628fcbcddd9bc5486245d2cf4a904dbcdeac9ad6c3098f49237094e9d513d0c?s=96&d=mm&r=g","caption":"Karim Buzdar"},"sameAs":["https:\/\/greenwebpage.com"],"url":"https:\/\/greenwebpage.com\/community\/author\/karim\/"}]}},"amp_enabled":true,"_links":{"self":[{"href":"https:\/\/greenwebpage.com\/community\/wp-json\/wp\/v2\/posts\/13894","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/greenwebpage.com\/community\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/greenwebpage.com\/community\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/greenwebpage.com\/community\/wp-json\/wp\/v2\/users\/2"}],"replies":[{"embeddable":true,"href":"https:\/\/greenwebpage.com\/community\/wp-json\/wp\/v2\/comments?post=13894"}],"version-history":[{"count":4,"href":"https:\/\/greenwebpage.com\/community\/wp-json\/wp\/v2\/posts\/13894\/revisions"}],"predecessor-version":[{"id":13948,"href":"https:\/\/greenwebpage.com\/community\/wp-json\/wp\/v2\/posts\/13894\/revisions\/13948"}],"wp:featuredmedia":[{"embeddable":true,"href":"https:\/\/greenwebpage.com\/community\/wp-json\/wp\/v2\/media\/13949"}],"wp:attachment":[{"href":"https:\/\/greenwebpage.com\/community\/wp-json\/wp\/v2\/media?parent=13894"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/greenwebpage.com\/community\/wp-json\/wp\/v2\/categories?post=13894"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/greenwebpage.com\/community\/wp-json\/wp\/v2\/tags?post=13894"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}