NFS on Xiaomi: How to set up network storage in 15 minutes

Do you want to turn your Xiaomi device into a full-fledged media center with access to movies, music and documents over the local network? Or do you need a reliable way to back up data between devices without cloud services? NFS (Network File System) is the perfect solution for these tasks. Unlike SMB or FTP, NFS provides faster data transfer speeds and minimal delays when working with files, which is critical for video playback in 4K or 8K resolution.

In this article, we will discuss two scenarios: Xiaomi connection TV (Android-based TV Google TV) ce NFS-computer-server/NAS, and tuning NFS-smartphone-based Xiaomi/Redmi/POCO steerable MIUI. Particular attention will be paid to typical errors (for example, permission denied or mount: invalid argument) and how to fix them. 2023–2026 Years and years of testing on devices with MIUI 14 Android 13/14.

What is NFS and why is it better than Xiaomi SMB?

The NFS (Network File System) protocol was developed by Sun Microsystems in 1984 for Unix systems, but is now supported by all modern operating systems, including Windows (through additional components), Linux, macOS and, of course, Android. Its key advantages over SMB (used on Windows by default):

  • πŸš€ Higher speed – up to 30% faster when working with small files (for example, when scanning the Kodi library).
  • πŸ”’ Flexible Access Rights – Configure permissions at the user and group level (as opposed to the simplified model) SMB).
  • πŸ“‘ Less stress on CPU β€” NFS use UDP/TCP without any encryption (unlike the SMB3 mandatory AES-128).
  • 🎬 Support for streaming video – no stutters when playing files with high bitrate (for example, HEVC 10-bit).

However, NFS has drawbacks: lack of built-in support in Windows Home (requires installation of NFS Client), more complex setup of access rights, and problems with encoding in file names (for example, Cyrillic can appear as??????.mk).

  • πŸ“Ί Xiaomi. TV NFS It works more consistently than SMB, It may require manual encoding. utf8 mounting.
  • πŸ“± On smartphones. MIUI support NFS limited – third party software will be required (for example, NFS Manager or Total Commander with a plugin).

⚠️ Note: If your router is using IPv6, NFS Before setting up, check that all devices on the network are using IPv4 (setting up in the router administrator panel).

Preparation: What you need to set up NFS

Before you start setting up, make sure you have everything you need:

Xiaomi device (TV or smartphone) with the latest updates

Computer/NAS with Linux (Ubuntu, Debian, Synology, QNAP) or Windows 10/11 Pro

Local area network with Gigabit Ethernet support (for stable operation)

Static IP-server-side NFS (configured on a router or server)

Administrator rights on the server and device Xiaomi-->

Xiaomi TV will also require:

  • πŸ“ File Manager (e.g., built-in File Manager or X-Plore from Google Play).
  • πŸ”§ ADB-Access (if you plan to install) NFS manually through terminal).

For smartphones Xiaomi/Redmi/POCO:

  • πŸ“± Root rights (optional, but simplify mounting).
  • πŸ”Œ Annex NFS Manager (Free version with restrictions or paid Pro).
The deviceRequired SOUTHAdditional requirements
Xiaomi TV (Android TV/Google TV)Kodi, File CommanderADB-debugging, static IP
Xiaomi/Redmi/POCO (MIUI)NFS Manager, Total CommanderRoot or BusyBox (optional)
Server (Linux)nfs-kernel-server, rpcbindSudo rights, open port 2049
Server (Windows)NFS Server for Windows (included in "Programs and Components")Pro/Enterprise version

If you are using a NAS (e.g. Synology DS220+ or QNAP TS-251D), check if NFS is enabled in the Control Panel. On Synology, this is done in Control Panel β†’ File Service β†’ NFS. For QNAP, the path: Control Panel β†’ Network & File Services β†’ Win/Mac/NFS β†’ NFS Service.

Xiaomi TV (Android TV/Google TV)

Xiaomi/Redmi/POCO Smartphone

Both options

Other gadgets (specify in the comments)-->

Setting up NFS-Linux-based (Ubuntu/Debian)

If the server is a computer running Ubuntu or Debian, follow the following steps: For other distributions (such as Fedora or Arch Linux), the commands may differ slightly.

1. Install the necessary packages:

sudo apt update && sudo apt install nfs-kernel-server rpcbind

2. Create a directory for access (for example, /mnt/nfs_share) and assign rights:

sudo mkdir -p /mnt/nfs_share


sudo chown nobody:nogroup /mnt/nfs_share




sudo chmod 777 /mnt/nfs_share

3. edit the /etc/exports configuration file:

sudo nano /etc/exports

Add a line (replace) 192.168.1.0/24 on your subnet and rw,sync,no_subtree_check optional):

/mnt/nfs_share 192.168.1.0/24(rw,sync,no_subtree_check,no_root_squash)

4. Apply the changes and restart the service:

sudo exportfs -a


sudo systemctl restart nfs-kernel-server




sudo systemctl restart rpcbind

5. Check that port 2049 is tapped:

sudo rpcinfo -p | grep nfs

⚠️ Attention: If you are using UFW (Firewall in Ubuntu, allow access to NFS: sudo ufw allow from 192.168.1.0/24 to any port nfs sudo ufw enable

sudo systemctl enable rpcbind nfs-server

Setting up NFS-Windows-based 10/11

In Windows, NFS support is implemented through the Server for NFS component, which is only available in Pro, Enterprise or Education editions. If you have Home, you will have to use third-party solutions (for example, haneWIN NFS Server).

1. Install the NFS components:

  • Open Control Panel β†’ Programs and Components β†’ Enable or disable Windows components.
  • Check the boxes for the NFS server and the client for the NFS.
  • Restart the computer.

2. Set up a common resource:

  • Create a folder (for example, C:\NFS_Share).
  • Open Folder Properties β†’ Access β†’ Share and select Everything with Read and Write Rights.
  • In Security, add an anonymous user login with full rights.

3. edit the C:\Windows\System32\drivers\etc\exports file (create it if it is not available):

C:\NFS_Share -name:nfs_share -network:192.168.1.0/24 -mask:255.255.255.0

4. Launch NFS services:

sc config nfssvr start= auto


sc start nfssvr




sc config rpcbind start= auto




sc start rpcbind

5. Check the work:

showmount -e localhost

If the command returns the path to your folder, the server is configured correctly, otherwise check the Windows firewall (ports 2049, 111, 20048) and antivirus (some block NFS as "suspicious activity").

Connecting NFS to Xiaomi TV (Android TV/Google TV)

On Xiaomi TVs (such as Mi TV Q2 75" or Xiaomi TV A2 43"), NFS connectivity is possible in two ways: via Kodi or manually via ADB.

Method 1: Connecting through Kodi

1. Install Kodi from Google Play (if not installed).

2. Go to Settings β†’ File Manager β†’ Add source.

3. Select Protocol: NFS and enter:

  • server: IP-address NFS-servers (e.g. 192.168.1.100).
  • Path: Exported directory (e.g., exported directory, /mnt/nfs_share).
  • Source Name: Any convenient (for example, My Movies)

4.If Kodi gives you an Operation not allowed error, try:

  • πŸ”„ Reboot the TV.
  • πŸ”§ Add to the mounting parameters in /etc/exports server-side insecure option:
/mnt/nfs_share 192.168.1.0/24(rw,sync,no_subtree_check,insecure,no_root_squash)

Method 2: Manual mounting via ADB

This method requires ADB debugging enabled and is suitable for power users. Connect the TV to your computer via USB (or Wi-Fi) and do:

1. Check the connection:

adb devices

2. Mount the NFS manually:

adb shell


su




mkdir /storage/emulated/0/nfs_mount




mount -t nfs -o nolock,vers=3 192.168.1.100:/mnt/nfs_share /storage/emulated/0/nfs_mount

If you have a mount: unknown filesystem type'nfs' error, then the TV firmware does not support NFS. In this case, only Kodi or alternative firmware (for example, LineageOS for the Mi Box S) will help.

What to do if the NFS is not installed?
1. Check that the server runs rpcbind and nfs-server (sudo systemctl status nfs-server). 2. Make sure the port is 2049 not blocked by a router or firewall. 3. Try to specify the version of the protocol manually: add to the mounting command vers=3 vers=4. 4. If you are using Windows Server, check that the export path is the correct path (e.g., the route, C:\NFS_Share, not /mnt/c/NFS_Share).

NFS Connection on Xiaomi Smartphones (MIUI)

On Xiaomi smartphones (such as the Redmi Note 12 Pro+ or Xiaomi 13 Ultra), NFS support is limited. Built-in Explorer can not work with NFS, so you will need third-party software. Let's consider two options: root rights and without them.

No root: Using NFS Manager

1. Install NFS Manager from Google Play (Android 8.0+ required).

2. Open the app and press + to add a new connection.

3. Fill in the fields:

  • Server: IP-server address (e.g, 192.168.1.100).
  • Export path: The path to the folder (for example, /mnt/nfs_share).
  • Mount point: Local folder for mounting (e.g. /storage/emulated/0/NFS).
  • Options: rw,soft,intr,vers=3.

4.Push Mount. If Mount failed: Operation not allowed occurs, your device does not support rootless mounting, in which case you can use Total Commander with the NFS Plugin plugin to access files without mounting.

With root: Constant mounting via fstab

If your Xiaomi has root rights, you can set up automatic NFS mounting when downloading:

1. Connect to the device via ADB or terminal:

su


mkdir /data/nfs




chmod 777 /data/nfs

2. edit /etc/fstab (create a file if it is not available):

echo"192.168.1.100:/mnt/nfs_share /data/nfs nfs rw,soft,intr,vers=3 0 0" >> /etc/fstab

Remove the section:

mount -a

Check the result:

df -h | grep nfs

If everything is set up correctly, the /data/nfs folder will be available after each reboot. To access files from applications (such as VLC or FX File Explorer), create a symbolic link:

ln -s /data/nfs /storage/emulated/0/NFS

⚠️ Attention: On devices with MIUI 14+ Android 13/14 It can trigger SELinux, which blocks mounting. To fix this, do: setenforce. 0 But this is a temporary solution, and after the reboot, SELinux will go back to enforcing mode. It will require a kernel modification to permanently shut down. NFS Even if you follow the instructions accurately, you can have errors. Let's look at the most common ones and how to fix them. NFS Specify the version manually: vers=3 vers=4 Permission denied Insufficient server rights Check chmod and chown on exported No route to host Network problems or firewall Check ping to server and settings of router Stale file handle Server NFS has been rebooted Rewire the resource or restart the rpcbind Cyrillic is displayed as????? Incorrect encoding Add the charset option=utf8 When installing if on Xiaomi TV plug-in NFS Video slows down or the sound is delayed, try it: πŸ”Œ Connect the TV to the router via Ethernet cable (instead of Wi-Fi). πŸ“Ά Change the Wi-Fi channel to a less loaded one (for example, from 2.4 GHz to 5 GHz). πŸ”§ Reduce MTU in network settings up to 1472. πŸ’‘For a stable job. NFS Xiaomi TV recommend using the protocol NFS v3 β€” It is better compatible with Android TV, more v4, freezer. FAQ: Frequent questions on NFS Can I connect to Xiaomi? NFS Xiaomi TV - No Kodi? ADB Or alternative firmware. In the standard shell of Android. TV No built-in support NFS (unlike SMB or DLNA). If you don’t want to use Kodi, install File Commander or X-Plore, which supports the use of Kodi. NFS plug-in. Why After Xiaomi Reboot TV NFS-Is the folder disappearing? It's because the mounting is through ADB It's not saved after you reboot. To fix it, create a script. /data/local/userinit.sh Add it to autoboot via Magisk (BootScript module) or Tasker. For Kodi, the problem is easier: just turn on the option to Automatically mount at startup in the source settings. How to speed up work NFS Xiaomi? speed depends on several factors: πŸ”Œ Use Gigabit Ethernet instead of Wi-Fi (especially for the first time) 4K HDR). πŸ”§ On the server, increase the size of the buffer: add to the /etc/exports wsize=8192,rsize=8192. πŸ“Ά On the router, disable QoS and Bandwidth Control – they can slow down NFS-Critical: On Xiaomi TV with an Amlogic processor (such as the Mi Box S) maximum speed NFS limited ~110 Mbps due to hardware limitations of the chipset. Can I use it? NFS Is it technically yes, but it’s not the best solution. NFS supportive: πŸ”„ Incremental copying (as opposed to rsync). πŸ”’ Encryption (data is transmitted in plain form). πŸ“± Automatic mounting on smartphones without root. SMB + FolderSync or cloud services (Google Drive, Mi Cloud). Why Xiaomi 13 Pro NFS Does it work, but doesn't it work on Redmi Note 10? It's due to differences in the Android cores: πŸ“± Xiaomi 13 Pro uses a kernel with support NFS v4. πŸ“± Redmi Note 10 on Snapdragon 678 can only support NFS v3. Solution: on the server, forcefully specify vers=3 in mounting options or update the firmware on Redmi to the latest version.