Protocol NFS (Network File System allows you to turn your Xiaomi Redmi 9 into a full-fledged client for working with network storage โ whether it is a real-life customer. NAS-A server, a home PC, or even another smartphone, even though it's a MIUI supportive NFS "Out of the box, it can be configured with third-party apps or manual mounting, and this guide covers everything from preparing the device to solving typical connection problems.
Main advantage NFS beforehand SMB or FTP โ Minimum overhead data transfer costs, which is critical for Redmi 9 With its modest hardware resources (Helio processor) G80 and 3/4 But there are some nuances, like, for example, MIUI 12 and newer blocks mounting NFS in the user space without root rights, so some methods will require unlocking the bootloader or using workarounds.
In this guide, we will look at:
- ๐ง Device requirements and Redmi 9 preparation (including developer settings).
- ๐ฅ๏ธ Setup NFS-PC-based/NAS with examples for Windows and Linux.
- ๐ฑ Smartphone Connection Methods: via Termux, Client Apps and Manual mounting.
- โก Speed optimization and delay elimination (especially relevant for Wi-Fi 5 on Redmi 9).
1. Preparation of Xiaomi Redmi 9 to work with NFS
Before you set up NFS, Make sure your device meets the minimum requirements:
- ๐ฑ Version. MIUI: 12.0 and higher (older versions may not have kernel drivers).
- ๐ Unlocked bootloader: mandatory for root or custom core methods.
- ๐ถ Network Connection: Stable Wi-Fi 5 (2.4/5 GHz) or USB-ethernet adapter (for maximum speed).
- ๐ ๏ธ Tools: Termux (from F-Droid), NFS Manager (for simplified connection) or Magisk (for root methods).
If you are planning to use NFS Without root, install Termux and update your packages:
pkg update && pkg upgrade
pkg install nfs-utilsโ ๏ธ Attention: Redmi 9s MIUI 13+ fitting NFS The solution is a temporary shutdown enforcement (setenforce 0 command), but this reduces security.
To check for support NFS kernel run in Termux:
cat /proc/filesystems | grep nfsIf the output is nfs, or nfs4 โ Drivers are available. Otherwise, you will need to have custom core firmware (e.g. Pixel Experience or LineageOS).
2.Tune in. NFS-server NAS
NFS-The server can be deployed on any device on your network, from a home PC to a dedicated one. NAS (for example, Synology or QNAP). Below are instructions for the most popular platforms.
2.1. Windows 10/11 (through WSL third-party servers)
Windows does not have built-in support NFS-server, but you can add it:
- Install. WSL 2 (Windows Subsystem for Linux) with Ubuntu.
- V WSL do sudo apt update sudo apt install nfs-kernel-server
- Edit the export file (/etc/exports), adding the line: /path/to/folder *(rw,sync,no_subtree_check,no_root_squash) Where * is the resolution for all devices on the network (for security, specify the IP Redmi 9).
- Reset the server: sudo service nfs-kernel-server restart
2.2. Linux (Ubuntu/Debian)
On Linux, it is easier to set up:
sudo apt install nfs-kernel-server
sudo nano /etc/exportsAdd a line (example for folder) /home/user/nfs_share):
/home/user/nfs_share 192.168.1.0/24(rw,sync,no_subtree_check)Apply the changes:
sudo exportfs -a
sudo systemctl restart nfs-kernel-server2.3. NAS (Synology/QNAP)
Nana NAS-systems NFS It is enabled via the web interface:
- ๐ Go to the Control Panel. โ Shared folder.
- ๐ง Select folder, click Change. โ Permits NFS.
- ๐ก Add a rule to IP-Redmi 9 addresses with Reading/Write rights.
- ๐ Apply the changes and restart the service NFS.
| Platform | Minimum version | Required packages | Port by default |
|---|---|---|---|
| Windows (WSL) | 10 (1803+) | nfs-kernel-server | 2049 |
| Ubuntu/Debian | 18.04 LTS | nfs-kernel-server | 2049 |
| Synology DSM | 6.0 | Built-in package | 2049 |
| QNAP QTS | 4.3 | Built-in package | 2049 |
โ ๏ธ Note: If your router blocks port 2049 (for example, the firewall is turned on on on Xiaomi Router by default), add the local network permission rule in the router settings.
3. Connection to NFS Xiaomi Redmi 9
There are three main ways of mounting NFS Redmi 9: through Termux, specialized apps or manual root mounting.
Method 1: Termux (without root)
This method works on most devices, but requires a stable connection to the server.
- Install Termux from F-Droid (the version from Google Play is not updated).
- Update packages and install nfs-utils: pkg update && pkg upgrade -y pkg install nfs-utils -y
- Create a folder for mounting: mkdir ~/nfs_mount
- Connect to the server (replace) IP and the way: mount -t nfs 192.168.1.100:/path ~/nfs_mount
For automatic mounting when Termux starts, add a command to the file ~/.bashrc.
Method 2: Client applications (NFS Manager)
For users without experience with the terminal, the application will suit NFS Manager (available on Google Play) Connection algorithm:
- ๐ฑ Install the application and provide access to the storage.
- ๐ง Press Add. NFS Share and enter: ๐ Server IP: address NFS-servers (e.g., servers, 192.168.1.100). ๐ Export Path: The path to a shared folder (e.g, /home/user/nfs_share). ๐ Mount Point: Local folder on the device (e.g, /sdcard/nfs).
- ๐ Press Mount and confirm the connection.
โ ๏ธ Attention: NFS The manager may not work for you. MIUI 14 due to restrictions on access to /system. Use Termux or get root rights.
Method 3: Manual root mounting
If you have an unlocked bootloader and Magisk installed, you can mount NFS system-level:
- Install the module. NFS Mount Systemless via Magisk.
- Edit the file. /data/adb/nfs/options, line: 192.168.1.100:/path /data/media/0/nfs nfs rw,noatime,intr 0 0
- Reset the device.
Make sure that the server is available IP (ping 192.168.1.100)
Check the permissions to share folder (chmod 777)
Turn off the firewall on the server (ufw disable)
Reset the service NFS The server (nfs-kernel-server restart)
-->
4. Speed optimization and delay elimination
NFS Redmi 9 can run slowly due to Wi-Fi limitations (maximum 866 Mbps at 5 GHz) or high CPU load:
- ๐ถ Use 5GHz Wi-Fi: On Redmi 9 Wi-Fi 5 module (802.11ac) shows the best results at 5 GHz with a channel width of 80 MHz.
- ๐ Connect via Ethernet: via USB-ethernet adapter (for example, AX88179) You can get speeds up to 1 Gbps.
- โก Set up mounting options: Add rsize options=8192,wsize=8192 To increase the size of the packages: mount -t nfs -o rsize=8192,wsize=8192 192.168.1.100:/path ~/nfs_mount
- ๐ ๏ธ Disable unnecessary services: On the server, disable atd, cron, and other background tasks consuming CPU.
To test the speed, use the command in Termux:
dd if=/dev/zero of=~/nfs_mount/testfile bs=1M count=100Compare the result with a local record (e.g., in the /sdcard). If the speed is lower 30% and more, check the settings of the router or server.
๐ก
If NFS It connects, but files open with a delay, try disabling noatime in the mount options. This will reduce the number of records per disk and speed up reading.
5. Typical errors and their solutions
When you set up NFS On Redmi 9, users are facing a few common problems. Here's how to solve them:
| Mistake. | Reason. | Decision |
|---|---|---|
| mount: Operation not permitted | No mounting rights | Do su in Termux or use Magisk |
| RPC: Program not registered | server NFS not-fired | Re-launch service: service nfs-kernel-server restart |
| No route to host | Firewall lockdown | Turn off firewall on server or router |
| Stale file handle | The server rebooted. | Open and reconnect: umount ~/nfs_mount |
If files are not displayed after mounting, check:
- ๐ Access rights on the server (chmod) -R 777 /path).
- ๐ก Network status (e.g. ping 192.168.1.100 in Termux).
- ๐ง mounting options (add nolock for locking errors).
What if NFS shuts down after the device sleeps?
Alternatives NFS Xiaomi Redmi 9
If the setting NFS Seems too complicated, consider alternative protocols for accessing network folders:
- ๐ SMB (Samba: Built-in support for the MIUI through ES Conductor or Solid Explorer. Speed is lower, but setup is easier.
- ๐ WebDAV: Works through HTTP/HTTPS, It's supported by most file managers. NFS, But more reliable on unstable networks.
- โ๏ธ SFTP/SSH: Secure protocol, but requires installation SSH-It's suitable for remote access.
- ๐ Syncthing: Decentralized file synchronization without a central server. Ideal for backup.
Speed protocol comparison (Redmi 9 test, Wi-Fi 5, 1GB file):
| Protocol | Reading speed | Recording speed | Reliability |
|---|---|---|---|
| NFS | ~40MB/s | ~30MB/s | Medium (sensitive to cliffs) |
| SMB | ~25MB/s | ~20MB/s | Tall. |
| WebDAV | ~15 MB/s | ~10 MB/s | Low (depending on the HTTP) |
| SFTP | ~20MB/s | ~15 MB/s | High (encryption) |
If your goal is streaming video, NFS or SMB Syncthing is the best way to back up small files.
๐ก
NFS It is the fastest protocol for a local area network, but requires manual configuration. For most users, Redmi 9 is easier to use. SMB WebDAV through the file manager.