What is NFS and why you need it on a Xiaomi smartphone
Network file system NFS (Network File System allows your Xiaomi to connect to remote folders on the server or NAS-It's especially useful for working with large media libraries, backups or corporate data, when you don't want to physically upload files to the device.
Xiaomiβs MIUI-enabled smartphones donβt have as much support for NFS as they do on desktops. Unlike SMB or FTP, NFS requires manual configuration and sometimes even superuser rights (root), but once configured correctly, youβll get a stable connection with minimal latency β ideal for streaming 4K video or working with project files.
Itβs important to understand that Xiaomi doesnβt officially announce NFS support in its devices, but the functionality is available through hidden Android settings or third-party apps. In this article, weβll look at both options β root and no root access.
Preparation: What you need to set up NFS
Before you start setting up, make sure you have:
- π± Xiaomi smartphone based on MIUI 12/13/14/15 or HyperOS (Android) 11β14). Older versions may have compatibility issues.
- π₯οΈ NFS-server (e.g., Synology) NAS, QNAP, computer Linux/Windows + NFS-For tests, you can use nfs-kernel-server on Ubuntu.
- π Stable connection to a single network (Wi-Fi or Ethernet via a network) USB-adapter). NFS It is sensitive to delays, so mobile internet is not suitable.
- π§ Application for connection: NFS Manager (for rootless devices) or Solid Explorer (with support) NFS).
If you plan to use root access, you will additionally need:
- π Unlocked bootloader and superuser rights (instructions for Xiaomi differ depending on the model).
- π² Magisk or SuperSU for rights management.
- π» ADB-Debugging tools (optional, but useful for errors).
Method 1: Connecting NFS without root (via apps)
If you do not have superuser rights, you can use third-party fileymi managers with support for NFS. The most reliable options are:
- π Solid Explorer is a paid application with intuitive interface and support NFS v3/v4.
- π§ NFS Manager - a specialized solution for mounting network folders.
- π FX File Explorer is a free alternative with basic support NFS.
Letβs look at the example of Solid Explorer:
- Install the app from Google Play and open it.
- Go to the Network section β Add storage β NFS.
- Enter the connection data: Server address: IP or domain name (e.g. 192.168.1.100). Port: usually 2049 (default). Path to folder: e.g. /mnt/nas/shares. Protocol: select NFS v3 (most compatible option).
Connect.
If the connection fails, check:
- π The server is allowed access to IP-Your phone address (setting up in the /etc/exports Linux).
- π Turn off the firewall on the server or add an exception for port 2049.
- π‘ Make sure that the phone and server are on the same subnet (e.g., both in the same subnet). 192.168.1.0/24).
Server running. NFS-demon `sudo service nfs-kernel-server status`)
Folder exported to `/etc/exports` right-handed
Wi-Fi (not mobile data) is enabled on the phone
Disabled. VPN Proxies that can block local traffic-->
β οΈ Note: Applications without root cannot be installed NFS You can only view files inside the application, but not through a standard Explorer. MIUI.
Method 2: Set up NFS with root access (full mounting)
If your Xiaomi has superuser rights, you can mount NFS-This allows you to work with files as if they were local, like watching videos in the system. MX Player or edit documents in OfficeSuite.
Instructions for devices with Magisk:
- Install the NFS Manager for Root module (available in the module repository) via Magisk.
- Open the NFS Manager app and go to Mounts.
- Click Add and fill in the fields: Server: IP-server address (e.g, 192.168.1.100). Export Path: The path to the exported folder (e.g, /mnt/nas/movies). Mount Point: Local folder for mounting (e.g, /storage/emulated/0/nfs_movies). Options: Specify rw,soft,intr,tcp,vers=3 record-keeping.
Mount
To check the mounting, run in Termux or through the adb shell:
mount | grep nfsIf the command returned the line with your mounting (for example, 192.168.1.100:/mnt/nas/movies on /storage/emulated/0/nfs_movies Type NFS, so everything is set up correctly.
| Parameter in Options | Description | Recommended value |
|---|---|---|
| rw/ro | Access mode (read/write or read only) | rw |
| vers | NFS version of the protocol | 3 (most stable) |
| soft/hard | Behavior in case of errors (soft / hard) | soft (to avoid hanging) |
| tcp/udp | Protocol on transport | tcp (more reliable) |
β οΈ Note: When installing in /storage/emulated/0 (internal memory) some applications may not see files due to the limitations of Scoped Storage in new versions of Android. /data/local/nfs and use symbolic references.
Solving Common Errors When Configuring NFS
Even with the right setup, there can be problems, and here are the most common mistakes and ways to fix them:
- π« Error "Permission denied": Check the permissions to the folder on the server (chmod) 777 /Path/to/daddy. - Make sure that /etc/exports indicated IP telephone or subnet (e.g, 192.168.1.0/24(rw,sync,no_subtree_check)). Reset it. NFS-server: sudo exportfs -ra && sudo service nfs-kernel-server restart.
- π Unable to connect to the server: Check that port 2049 is not blocked by the firewall (sudo ufw allow 2049). MIUI Optimizations in developer settings (can block network connections). Try connecting from another device to eliminate server problems.
- π’ Slow work NFS: Use it. TCP instead UDP Reduce rsize and wsize to 8192 (e.g., rw,soft,tcp,vers)=3,rsize=8192,wsize=Connect your phone to the network via an Ethernet adapter (if supported).
How to check NFS logs on the server?
On Xiaomi smartphones with HyperOS, you may need to disable Network Protection in your security settings, as it blocks non-standard network protocols, including NFS.
Optimizing NFS for Media Files and Backups
If you connect NFS to stream video or store backups, set up the system for maximum performance:
- π¬ For the video in 4K/HDR: Use it. NFS v4.1 (If the server supports it, it works better with large files. In the mounting settings, specify noatime, nodiratime to reduce the load on the server. MX Player or VLC Enable the option "Network buffer" (1β2 minutes for stable reproduction).
- πΎ For backups: Mount the folder in /data/backup Use Titanium Backup or Swift Backup to save data. Set up a cron task on the server to automatically take pictures (rsnapshot, /cache).
To speed up work with a large number of small files (for example, photos), add to the mounting options:
rw,soft,tcp,vers=3,rsize=32768,wsize=32768,intr,noatimeπ‘
If you use NFS to store music, in Poweramp or Musicolet, add a network folder as "Path to Media Library" in the application settings, which allows the player to index files without copying to the device.
NFS Alternatives: When to Choose a Different Protocol
NFS is not always the best solution, and in some scenarios, it is better to use other protocols:
| Protocol | Pluses | Cons | When to choose |
|---|---|---|---|
| SMB (Samba) | Easy to set up, wide support | Higher overhead, slower than NFS | For home use with Windows servers |
| FTP/FTPS | It works via the Internet, there is no link to the local network | Low speed, no file locking | Rare access to files outside the home |
| WebDAV | HTTPS support, cloud integration | High load on the server CPU | To access files through a browser or mobile applications |
| SSHFS | Traffic encryption, flexible access rights | Demands. SSH-server, slower NFS | Secure access to deleted files |
If your primary job is watching movies or working with large files on a local network, NFS is still the best choice.
π‘
NFS is optimal for LANs with high-speed connections (1 Gbps or higher). For mobile access or slow networks (less than 100 Mbps), SMB or WebDAV is better.