Network file system NFS (Network File System, which allows Xiaomi smartphones to access remote folders on servers or computers as if they were on a local device, is especially useful for large media libraries, backups or corporate data. NFS Android is not an easy task: it requires superuser rights, special applications and fine-tuning the connection settings.
In this article, we will discuss all stages of adjustment. NFS Xiaomi, from device preparation to solving common bugs, you'll learn which apps are suitable for different versions. MIUI, How to set up a server on a PC or router, and why standard file managers (like Mi File Explorer) donโt support the server. NFS "We will focus on compatibility with the MIUI 14/15 Restrictions on devices without root rights.
What is NFS and why is it needed by Xiaomi?
NFS โ It's a network file access protocol that was originally developed for Unix systems. SMB (used in Windows) or FTP, NFS It's optimized for LANs with minimal latency. On Xiaomi smartphones, it's used for LANs:
- ๐ mounting network drives as local folders (for example, to watch movies from the Internet) NAS phone-free).
- ๐ Automatic backup of photos and videos to the server.
- ๐ป Remote projects (for developers or designers).
- ๐ฎ Storage of game files (e.g. emulators or mods).
Main advantage NFS alternatives (e.g., WebDAV or SSHFS) โ There are also some downsides to the speed of data transfer in the local network:
- โ ๏ธ Requires root rights on most Xiaomi devices (except for individual firmware).
- โ ๏ธ Does not support encryption of traffic out of the box (unlike the SMB 3.0+).
- โ ๏ธ Configuring is more difficult than cloud services (Mi Cloud, Google Drive).
If you want simple file transfer, you might want to consider alternatives like Samba (via the app). FX File Explorer) or Syncthing. But if you prioritize speed and integration with Linux servers, NFS It's the best choice.
Installation requirements NFS Xiaomi
Before setting up, check if your device meets the following conditions:
| Component | Minimum requirements | Recommendations |
|---|---|---|
| Android version | Android 8.0+ | Android 11+ (Best compatibility with the Linux kernel) |
| Root rights | Required for most methods | Use Magisk for temporary root |
| Firmware | Any (including) MIUI Global/China) | Custom firmware (such as LineageOS) makes it easier to set up |
| NFS-server | Any (Linux, Windows with) WSL, router) | OpenMediaVault or TrueNAS is recommended |
| Local area network | Wi-Fi or Ethernet (via Wi-Fi) OTG) | 5 GHz Wi-Fi or wired connection for maximum speed |
Pay special attention to the version of the Linux kernel on your Xiaomi. CPU-Z or team in Termux:
uname -aIf the kernel version is older than 4.4, support problems NFS It will not appear on older devices (e.g. Redmi Note). 4X) You may need to update the firmware.
โ ๏ธ Attention: On devices with MIUI 12.5+ and the bootloader will block root rights and reset all data (due to Anti-Rollback protection). โ The phone. โ Backup.
Xiaomi Preparation for Installation NFS
Before installing NFS-Customer, follow the following steps:
Unlock the bootloader (if root is required)
Install Magisk to obtain superuser rights
Update the firmware to the latest version of MIUI
Install Termux or other terminal
Connect to the same network as you NFS-server-->
1. Unlock the loader (if necessary)
If your device does not support temporary root (for example, through Magisk in) RAM), You'll have to unlock the bootloader:
- Go to the Mi Unlock website and download the official utility.
- Link your Mi Account to your device in Settings โ Xiaomi Account.
- Launch Mi Unlock Tool on PC, connect Xiaomi in Fastboot mode (clip Volume Down) + Nutrition).
- Wait until the process is complete (it can take up to 72 hours due to Xiaomi restrictions).
2. Getting root rights through Magisk
After unlocking the loader:
- Download the latest version of Magisk from GitHub.
- Sweep through the file. Magisk-vXX.X.zip squirt (TWRP Or OrangeFox).
- Restart the device and check root through the Magisk Manager app.
If you MIUI 14/15 With a locked boot loader, consider alternative mounting methods NFS via Termux without root (in the next section).
๐ก
On some Xiaomi devices (e.g, POCO F3) You can use Magisk Delta for a temporary root without unlocking the bootloader, which reduces the risk of "brick", but requires a reboot after each root turn on.
Installation NFS-Xiaomi client
There are three main ways to connect to NFS-server on Xiaomi: through Termux, specialized applications or custom firmware.
Method 1: Termux (no root, limited functionality)
If you don't have root rights, you can use Termux with nfs-utils, which is a good way to read files, but you can't mount them. NFS locally.
- Install Termux from F-Droid (the version from Google Play is outdated).
- Update packages and install nfs-utils: pkg update && pkg upgrade pkg install nfs-utils
- Connect to NFS-server (replace) server_ip and /path on your own: mount -t nfs server_ip:/path /sdcard/Download/nfs_mount -o nolock,soft
Limitations of the method:
- โ No auto-mounting when restarting.
- โ Speed is lower than with full installation.
- โ Manual command entry is required after each reconnection to the network.
Method 2: Supported applications NFS (root)
For full work, the following annexes are recommended:
- ๐ฑ NFS Manager is a simple interface for mounting network folders. Supports auto-mounting when booting.
- ๐ฑ Mount Manager โ Advanced settings (e.g., protocol version selection) NFS).
- ๐ฑ Solid Explorer + plugin NFS Plugin โ convenient for working with files.
Example of settings in NFS Manager:
- Open the application and provide root access.
- Press Add. NFS Share and type in: Server IP: 192.168.1.100 (Example: Export Path: /mnt/data (path on the server) Mount Point: /storage/emulated/0/nfs (Local folder) Options: rw, noatime,nolock,soft,tcp
Mount
Method 3: Castom firmware (for experienced users)
LineageOS or ArrowOS-based firmware includes built-in support NFS. After installation:
- Activate the option in Settings โ System system โ Mounting NFS.
- Add the mounting line to /etc/fstab (case): 192.168.1.100:/mnt/data /storage/emulated/0/nfs nfs rw,noatime,nolock,soft,tcp 0 0
- Reset the device.
What to do if the NFS is not installed?
Setting up NFS-servers for Xiaomi
NFS-Xiaomi client is useless without properly configured server (Ubuntu/Debian) Windows 10/11.
Setting up NFS-Linux-based
- Install packs: sudo apt update sudo apt install nfs-kernel-server
- Edit the export file (/etc/exports), line: /mnt/data 192.168.1.0/24(rw,sync,no_subtree_check,no_root_squash) where /mnt/data โshared folder, and 192.168.1.0/24 โ subnet.
- Apply the changes: sudo exportfs -a sudo systemctl restart nfs-kernel-server
For WSL 2:
- Install Ubuntu distribution from Microsoft Store.
- Follow the commands from the "Settings" section NFS-Linux-based".
- Allow access to Windows folders through /mnt/c/Users/.
โ ๏ธ Attention: When using hanewin NFS Server disable Windows firewall or add an exception for port 2049.Otherwise, Xiaomi will not be able to connect to the server.
Typical problems with the NFS Xiaomi
Even with the right setup, you can get errors, and here are the most common ways to fix them:
| Mistake. | Reason. | Decision |
|---|---|---|
| mount: Operation not permitted | No root rights or SELinux blocks mounting. | Check root access through Magisk and disable SELinux (setenforce 0). |
| RPC: Program not registered | The rpcbind service on the server is not working. | Reboot it: sudo systemctl restart rpcbind. |
| No route to host | Xiaomi and the server are on different subnets. | Check it out. IP-Addresses or set up routing on the router. |
| Permission denied | Incorrect access rights on the server. | Check it out. /etc/exports and folder rights (chmod) 777 /mnt/data). |
| Slow transmission speed | Wi-Fi 2.4 GHz or encryption is used. | Switch to 5 GHz or turn off encryption in mounting options (sec)=none). |
If the problem is not solved, check the logs on the server:
sudo tail -f /var/log/syslog | grep nfsYou can see the Xiaomi logs via Termux:
su
logcat | grep nfs๐ก
The most common error is an incorrectly specified Export Path on the server. /etc/exports It matches the actual path to the folder (check through ls). -la /mnt/).
Alternatives NFS Xiaomi
If the setting NFS It may seem too complicated, consider alternative protocols:
- ๐ SMB (Samba โ easier to set up, supports Mi File Explorer without root. NFS, But enough for media files.
- ๐ WebDAV works through HTTP/HTTPS, It's suitable for remote access. It requires a server (e.g., Nextcloud).
- ๐ Syncthing is a decentralized file synchronization process without a server. NFS, But more reliable for backup.
- โ๏ธ SSHFS โ mounting SSH. Safer. NFS (traffic is encrypted, but the load on the processor is higher.
Speed comparison (test on Xiaomi 12 Pro, local network 1 Gbps):
- ๐ฅ NFS: ~90 MB/s (without encryption).
- ๐ฅ SMB 3.0: ~70 MB/s.
- ๐ฅ SSHFS: ~40 MB/s (depending on the encryption algorithm).
- โก Syncthing: ~20 MB/s (limited by protocol).
For most users, Xiaomi is the best choice. SMB (through FX File Explorer) or Syncthing (for automatic backup). NFS You should only choose if you want maximum speed or integration with Linux infrastructure.