NFS on Xiaomi: how to enable and configure network access to files

The NFS (Network File System) protocol allows Xiaomi devices β€” whether smartphone, tablet or TV set-top box β€” to access files on network storage as if they were on a local drive, which is convenient for streaming NAS movies, backing up or working with large files without taking up the device’s memory, but the default feature is disabled: it needs to be activated manually, and on some firmware, it also unlocks hidden settings.

In this article, you will find step-by-step instructions for different types of Xiaomi devices, including solutions to common problems (such as connection errors or the absence of an NFS item from the menu).

⚠️ Important: Setup NFS It requires super-user rights on smartphones or activation of developer mode on TV set-top boxes.

What is NFS and why is it needed by Xiaomi?

NFS is a network protocol developed by Sun Microsystems in 1984 for remote file system access, and on Xiaomi devices it allows:

  • 🎬 Stream movies in 4K HDR s NAS-servers without buffering (if the network supports 1 Gbps).
  • πŸ“ Work with files on a remote server as with local ones (edit, delete, move).
  • πŸ”„ Automatically synchronize backups between devices.
  • πŸ–₯️ Connect network folders as a disk in a file manager (e.g., in Mi File Explorer).

Compared to alternatives (SMB, FTP, WebDAV), NFS benefits in speed and stability, especially when working with large files.

  1. NFS-server (e.g., Synology) NAS, QNAP Linux PC with configured nfs-kernel-server).
  2. Local area network with IPv4 support (NFS does not work over the Internet without VPN).
  3. Read/write rights for the connected folder.

⚠️ Note: On smartphones Xiaomi with MIUI protocol NFS It is blocked by default due to security restrictions and requires root rights or workarounds (see section below).

Preparing Xiaomi Device for NFS

Before setting up, check:

The device is connected to the same network as the NFS-server|Export of folder is configured on the server (file) /etc/exports)|Xiaomi has a developer mode enabled|File Manager with Support NFS (for example, FX File Explorer)|Unplugged. VPN Proxies that can block local traffic-->

If you are using a Xiaomi TV Box (such as the Mi Box S or Mi Box 4K), activate the developer mode:

  1. Go to Settings. β†’ About the device.
  2. Press 7 times on the MIUI version (or Android TV version).
  3. Go back to the main settings menu and open a new section for developers.
  4. Enable USB Debugging and Network Debugging.

On smartphones (Redmi Note 12, POCO X5, Xiaomi 13, etc.) additionally require:

  • πŸ”“ Unlock the bootloader through the official Xiaomi tool.
  • πŸ“± Install custom restoration (TWRP) Get root rights (for example, through Magisk).

Smartphone (MIUI)|TV set-top box (Android) TV)|Tablet (Pad 6 et al.)|Other-->

How to turn on NFS on Xiaomi smartphones (MIUI)

The standard file manager Mi File Explorer does not support NFS. You will need a third-party application, such as:

  • πŸ“‚ FX File Explorer (paid version with module) FX Connect).
  • πŸ”— Solid Explorer (requires a plugin) NFS Plugin).
  • πŸ› οΈ Root Explorer (only for rooted devices).

Instructions for FX File Explorer:

  1. Install the app from Google Play.
  2. Open the side menu and select Add Storage β†’ Add Network Storage.
  3. Select NFS and enter server data: Server: 192.168.1.100 (IP of your NAS) Port: 2049 (default) Exportable folder: /mnt/nas/shares/movies Username: (if authentication is required)
  4. Press Connect and wait for the mounting.

⚠️ Note: If the connection fails, check:

  • πŸ”’ The server is allowed access to IP Your smartphone (check the file) /etc/exports).
  • 🌐 Turn off the firewall on the router for local traffic.
  • πŸ“΅ Make sure your smartphone is not running traffic saving mode (it can block the device). NFS).

πŸ’‘

If NFS doesn’t work on MIUI 14, try retracing to MIUI 13 or using an alternative protocol called SMB (also known as FX File Explorer).

NFS on Xiaomi TV Box: step-by-step customization

Xiaomi TV set-top boxes (such as the Mi Box S or Mi TV Stick 4K) support NFS out of the box, but the option is hidden.

  1. Install the File Commander or X-plore File Manager app from Google Play.
  2. Open the application settings and find the Network Storage section.
  3. Select Add Add. NFS and type: Server name: 192.168.1.100 The way to the folder: /mnt/nas/videos Name for display: NAS_Films
  4. Save the settings and reboot the console.

On Android TV 12+ consoles (such as Xiaomi TV Box 4S Max), NFS may not automatically mount, in which case use the ADB command to force the connection:

adb shell mount -t nfs -o nolock 192.168.1.100:/mnt/nas/shares /storage/emulated/0/Download/NAS

To keep the mounting after the reboot, add the command to the script init.d (root required).

How to check if NFS is connected to a TV set-top box?
Open the terminal via ADB and execute the command: mount | grep nfs If the output is empty, the connection is not active.

Solving NFS problems on Xiaomi

If the NFS is not working, use the diagnostic table:

Symptoms.Possible causeDecision
Error "Permission denied"Insufficient rights on the serverCheck chmod and chown for exported folder
NFS is not installed after restartingThere's no autoloading.Add the mount command to init.d or cron
Slow transmission speedNFSv3 is used instead of NFSv4.Update the protocol on the server and client
App doesn't see NFSThere is no support in the file managerInstall FX File Explorer or Solid Explorer

For smartphones with MIUI, a common problem is locking NFS at the kernel level.

  • πŸ”§ Install a custom core with support NFS (For example, FrancoKernel for POCO F3).
  • πŸ“² Use an alternative, WebDAV or SSHFS (via Termux).

πŸ’‘

If NFS is only for streaming video, consider Plex or Jellyfin – they bypass the limitations of MIUI and work without root.

NFS Alternatives for Xiaomi: When the Standard Way Doesn't Work

If you can’t turn on NFS, use one of these methods:

  • πŸ–₯️ SMB (Samba: Works on all Xiaomi devices without root.Use the Mi File Explorer app β†’ Network β†’ Samba.
  • 🌐 WebDAV: Supported by Solid Explorer and FX File Explorer requires server configuration (Apache or Nginx).
  • πŸ”Œ FTP: Simple but insecure protocol. Use encryption. FTPS or SFTP.
  • ☁️ Cloud services: Xiaomi Cloud, Google Drive or Nextcloud with automatic synchronization.

For set-top boxes, the best alternative is Kodi with an NFS or SMB plugin. Install it from Google Play and configure the media source:

  1. Open Kodi β†’ Files β†’ Add files.
  2. Select the Protocol β†’ NFS (or Windows (SMB)).
  3. Enter the path to the server (e.g., nfs://192.168.1.100/mnt/nas/movies).
  4. Please provide a username/password (if required) and save it.

Security with NFS on Xiaomi

The NFS transmits data in plain form, making it vulnerable to interception, to protect the connection:

  • πŸ” Set up. NFSv4 coded (krb5 or krb5i).
  • πŸ›‘οΈ Restrict access to the server by IP file-wise /etc/exports: /mnt/nas/shares 192.168.1.0/24(rw,sync,no_subtree_check)
  • 🌐 Use it. VPN (For example, WireGuard for remote access.
  • πŸ”„ Update your firmware regularly NAS and client devices.

⚠️ Note: On smartphones with MIUI Some applications (such as a gallery) may not see files mounted on the NFS, Because of the limitations of Scoped Storage, in which case, copy the files to local storage or use Kodi to view the files.

FAQ: Frequent questions about NFS on Xiaomi

Can I turn on NFS without root on a Xiaomi smartphone?
Yeah, but with limitations. FX File Explorer or Solid Explorer lets you connect to the NFS-servers without root, however: Files will only be available inside these applications. Automatic mounting when downloaded is impossible. Some functions (for example, writing to a mounted folder) may not work.
Why is NFS running slowly on Xiaomi TV Box?
The reasons may be different: used NFSv3 instead NFSv4. Update the protocol on the server. Weak Wi-Fi connection. Connect the console via Ethernet cable. The server has compression or encryption on. Turn them off for the local network. Lack of RAM. Close background applications on the console. Use the command to diagnose: adb shell cat /proc/mounts | grep nfs Check the mounting settings (e.g. rsize)=8192,wsize=8192).
How to disable NFS on Xiaomi if you no longer need it?
To unmount NFS-folder: In the file manager, find the mounted folder and select Disable. Or run a command through ADB: adb shell umount /storage/emulated/0/Download/NAS To completely remove the settings, clear the app cache that was used to connect. NFS has been added to fstab (on rooted devices), delete the corresponding line from the file.
Does the Xiaomi Mi Box 4K NFS support out of the box?
Yes, but with reservations: The standard file manager Mi File Explorer can not connect NFS. It requires third-party software (for example, X-plore or Kodi). The maximum speed is limited to Wi-Fi bandwidth (up to 300 Mbps on the Mi Box S). For stable operation, it is recommended to use an Ethernet cable and configure NFS via Kodi.
Can I use NFS to back up on Xiaomi?
Technically yes, but there are nuances: πŸ“± On smartphones without root backup through NFS It is not possible due to the limitations of Scoped Storage. πŸ–₯️ On TV-boxes you can configure automatic copying of logs or screenshots using Tasker + Termux. ☁️ For backup, it is better to use rsync by SSH Google Drive, Nextcloud, an example of a command to back up via ADB: adb pull /sdcard/DCIM/ 192.168.1.100:/backup/xiaomi/photos/