Network protocol NFS (Network File System allows Xiaomi devices β whether smartphones, Mi TVs TV or routers β access files on remote servers or NAS-They're going to be stored locally, unlike the more common ones. SMB, NFS Optimized for high data rate networks with minimal latency, making it an ideal solution for streaming media or backup.
However, the setup NFS Xiaomi devices have their own nuances: from firmware limitations MIUI to the features of working with TVs on Android TV. In this article, we will analyze how the protocol interacts with the hardware and software of the company, which versions are available. NFS It is supported, and why it is sometimes better to choose an alternative. FTP You will also find a step-by-step instruction for connecting a network drive and solving typical errors, from Permission denied to mounting problems.
What is it? NFS And why is it needed on Xiaomi?
NFS (Network File System is a file access protocol developed by Sun Microsystems in 1984. SMB (Windows: Minimum overhead for data transfer, which is critical for resource-limited devices such as Redmi smartphones or Mi TVs TV.
On Xiaomi devices NFS may be useful:
- π¬ Streaming video from NAS-servers without buffering (e.g. movies in resolution) 4K HDR on Mi TV Q2).
- π Backup photos and documents to the network storage automatically (via rsync or Tasker).
- π Synchronize files between several Xiaomi devices (smartphone) + television + router).
- π₯οΈ Remote work with files on the server as with local ones (for example, editing documents in the server) WPS Office).
Itβs important to understand that Xiaomi doesnβt always provide built-in support. NFS "out of the box. For example, in smartphones on the MIUI The protocol is not at the kernel level, but in Android TVs TV You need to activate it manually through ADB or third-party applications. at the same time, Xiaomi routers (for example, AX3600) may be NFS-servers for other devices on the network.
Versions NFS: What is supported on Xiaomi
Protocol NFS There are several versions, and their support on Xiaomi devices depends on the version. Android/MIUI And the hardware platform. Here are the key differences:
| NFS version | Features | Support for Xiaomi |
|---|---|---|
| NFSv2 | An outdated version (1989), no security support. UDP, limited to a file size of 2 GB. | β Not supported (except for old routers on OpenWRT). |
| NFSv3 | Adding support TCP, Up to 8TB files, improved performance. Most common version. | β Supported on most devices (requires manual configuration). |
| NFSv4 | Built-in security (Kerberos), support ACL, Improved performance over the Internet. IPv6. | β οΈ Partially (only on Mi TVs) TV Android 9+ and routers with Padavan firmware). |
| NFSv4.1/4.2 | Multithreading support (pNFS), improved performance for SSD/NAS. | β Not supported (requires a custom core). |
On Xiaomi smartphones (MIUI 12β14) Only the default version is available NFSv3 through third-party applications, like NFS Manager or Total Commander with plugin. TV Android TV 9β11 can work with NFSv3/v4, but require activation through ADB. Xiaomi routers (for example, AX6000) support NFSv3 as a server for other devices on the network.
If you need the maximum data transfer speed (for example, for the 4K-Videos, choose your choice NFSv3 above TCP. For security (for example, access to files via the Internet) it is better to use NFSv4 with encryption, but this will require additional server configuration.
How to set up NFS on a Xiaomi smartphone (MIUI)
Since MIUI does not include built-in support NFS, To connect the network disk will require third-party software. Below is a step-by-step instruction for smartphones Redmi, Poco or Xiaomi based on Android 10β14.
Install the app NFS Manager from Google Play
Connect to the same Wi-Fi network as you do. NFS-server
Find out. IP-address and path to the exported folder on the server (e.g, 192.168.1.100:/mnt/data)
Check that the server is allowed access to your IP (file-wise /etc/exports)
-->
Step 1 Installation NFS-client
Download one of the apps from Google Play:
- π± NFS Manager β A simple client with support NFSv3.
- π± Total Commander + plugin LAN Plugin (to work with) NFS and SMB).
- π± FX File Explorer - Supports NFS, FTP, WebDAV.
Let's take an example. NFS Manager:
- Open the app and press Add. NFS Share.
- Enter the Server field IP-server address (e.g. 192.168.1.100).
- In the Export Path field, specify the path to the folder (for example, /mnt/data).
- Select the protocol version: NFSv3.
- Press Connect.
Step 2: mounting the network disk
After connection:
- Go to Mounted Shares in NFS Manager.
- Click on the connected folder and select Mount as System Folder (root rights, if any).
- Or use the applicationβs built-in file manager to access files.
Step 3: Automatic connection when downloading
So NFS-folder was automatically connected:
- V NFS Manager Go to Connection Settings.
- Activate the Auto Mount on Boot option.
- Make sure your smartphone is connected to Wi-Fi (NFS It does not work through mobile internet).
β οΈ Note: On smartphones without root-rights mounting NFS It's going to be temporary and reset once it's rebooted. NFS Mount System.
NFS on Xiaomi TVs (Mi) TV): customization
Xiaomi Mi TVs TV (series Q1E, P1E, A2 etc.) run on Android TV, support NFS It's implemented at the kernel level, but it's disabled by default. ADB or use of third-party applications.
Method 1: Activation NFS through ADB (debugging USB)
- Turn on the debugging. USB In the settings of the TV: go to Settings β On TV. β Android version TV and 7 times click on the line with the version to activate the developer mode. β For developers, turn on debugging by USB.
- Connect the TV to the PC via USB and execute the command: adb connect 192.168.X.X:5555 (substitute X.X on IP television).
- Activate support NFS: adb shell setprop persist.sys.nfs.enable 1
- Reboot TV: Adb shell reboot
Method 2: Use the X-plore File Manager application
If ADB Unavailable, install X-plore from Google Play:
- Open the X-plore and go to the LAN β Add server.
- Select the type of server: NFS.
- Enter. IP-address and path to the folder (for example, 192.168.1.100:/mnt/media).
- Press Save and connect to the server.
Method 3: Connecting through Kodi
Kodi Media Player Has Built-in Support NFS:
- Install Kodi from Google Play.
- Go to the Files. β Add a source β Protocol and select NFS.
- Enter the path in format nfs://192.168.1.100/mnt/media.
- Now you can watch movies directly from the NAS.
What to do if the TV canβt see NFS-folder?
β οΈ Note: Xiaomi TVs with PatchWall firmware (e.g. India) access to the ADB It can be blocked. In this case, use X-plore or Kodi.
NFS Xiaomi routers: how to configure the server
Xiaomi routers (for example, AX3600, AX6000, RA73) may be NFS-servers for other devices on the network. This is convenient if you don't have a separate device. NAS, but USB-drive connected to the router.
Step 1. Connect. USB-accumulator
Insert a flash drive or hard drive into USB-router port. Make sure the file system β ext4 or NTFS (FAT32 does not support files >4GB).
Step 2. NFS-web-based
- Open the router control panel at 192.168.31.1 (or miwifi.com).
- Go to Additional Settings β USB-accumulator β Network access.
- Activate the option. NFS-server.
- In the Exported folders field, specify the path (for example, /mnt/USB1).
- B Permitted IP Add addresses of devices that are allowed access (e.g, 192.168.31.0/24).
- Save the settings and restart the router.
Step 3: Connect to NFS-server from other devices
Now you can connect to the folder on the router:
- π± From the smartphone, through NFS Manager (address: 192.168.31.1:/mnt/USB1).
- π₯οΈ From PC to Linux β Team: Sudo mount -t nfs 192.168.31.1:/mnt/USB1 /mnt/xiaomi_nfs
- πΊ From TV β via Kodi or X-plore.
π‘
If the Xiaomi router does not support NFS In standard firmware, install an alternative (e.g., Padavan or OpenWRT) that will open access to the software. NFSv4 and other extended functions.
NFS vs SMB: What's best for Xiaomi
Choice between NFS and SMB It depends on your tasks. Below is a comparison of key parameters:
| Criteria | NFS | SMB (Samba) |
|---|---|---|
| Transmission speed | β‘ Higher (less overhead, optimized for) Linux/Unix). | π’ Below (the protocol is more "heavy", especially) SMB1). |
| Support for Xiaomi | β οΈ Requires manual configuration (except routers). | β Built in MIUI Android TV (for example, through ES Conductor). |
| Security | π Supports Kerberos (in the NFSv4), but is often used without encryption. | π Supports encryption (SMB3), Integration with Active Directory. |
| Media convenience | π₯ Perfect for streaming video (no delays). | π More convenient for sharing files with Windows-PC. |
| Setting up | π οΈ More complex (requires knowledge of Linux commands, access rights). | π± Simple (Graphic interface in Windows, minimum settings). |
When to choose NFS:
- π¬ You need to broadcast. 4K HDR-video-free.
- π₯οΈ You work in the Linux ecosystem (NAS on Synology/TrueNAS).
- π± You have a Xiaomi router with USB-accumulator.
When to choose SMB:
- π₯οΈ You share files with Windows-PC.
- π You need a simple setup without a command line.
- π Security is important (encryption, access control).
π‘
For most users, Xiaomi is the best option to use. SMB file-sharing and NFS video-streaming.
Typical errors NFS Xiaomi and how to fix them
When you set up NFS On Xiaomi devices, users often encounter errors. Let's look at the most common ones and how to solve them.
Error 1: "Permission denied" when connecting
Reason: The server does not have access rights for your IP user.
Decision:
- On the server, edit the file. /etc/exports: /mnt/data 192.168.1.0/24(rw,sync,no_subtree_check,no_root_squash) (substitute 192.168.1.0/24 subnet).
- Reset it. NFS-server: sudo exportfs -a sudo systemctl restart nfs-server
- Check the rights to the folder: sudo chmod -R 777 /mnt/data (Not recommended for productive systems!).
Error 2: "Mount failed: No such device"
Reason: Xiaomi device does not have support NFS kernel or misdirected path.
Decision:
- π± On a smartphone: make sure you are installed NFS Manager and root rights included (if required).
- πΊ On TV: Check if it is activated NFS through ADB (see section above).
- Try to point the path in a format nfs://192.168.1.100/mnt/data (Kodi).
Error 3: Slow data transfer
Reason: Used NFSv3 above UDP or network problems.
Decision:
- Forced to specify the protocol TCP connection settings.
- Check the speed of Wi-Fi: NFS Delay sensitive (ping to the server should be) < 10ms).
- If the server is on the Xiaomi router, connect USB-storage USB 3.0.
Error 4: "Stale file handle"
The reason: The server has restarted and the client is trying to access a non-existent file descriptor.
Decision:
- Rewire the folder: umount -f /mnt/nfs_share mount -t nfs 192.168.1.100:/mnt/data /mnt/nfs_share
- Reset the server. NFS: sudo systemctl restart nfs-server
β οΈ Attention: If you are using NFS on the Mi TV TV For streaming video, and it βslows downβ, try to turn off hardware acceleration in the player (Kodi) β Settings β Player. β Video β Allow hardware acceleration β Off.).