Xiaomi Redmi Note 9 is a popular smartphone with flexible options for working with network storage, but the function is not limited to the smartphone. NFS (Network File System is not activated out of the box, and many users have difficulty connecting network disks using the protocol. NFS, Although this allows you to significantly expand the storage capabilities, organize backups or streaming media files without using cloud services.
In this article you will find detailed instructions for setting up NFS-Redmi Note 9 customers, including Note 9 Pro and Note 9S), compatible with the latest versions MIUI 12-14. We're going to look at two scenarios: connecting to an existing one. NFS-server (for example, on a router or NAS) And you can set up your own server on an Android device, and you can get around the restrictions. MIUI, which block standard methods of mounting network folders.
If you have previously tried to set up NFS You've got bugs like mount: permission denied or no such device, and you'll find work solutions here. 720G (for example, POCO X2 Redmi Note 10, as the methods are universal for devices with similar architecture.
What is NFS and why you need it on your smartphone
Protocol NFS (Network File System was developed by Sun Microsystems in 1984 to allow files to be accessed over a network as if they were on a local device. In the context of the Xiaomi Redmi Note 9, this means:
- π Memory expansion: connecting network folders as local disks, which is important for devices with 64/128 GB of internal memory.
- π¬ Streaming Media: Watching movies in high resolution (including: 4K) directly NAS or PC without pre-loading.
- π Automatic backups: synchronize photos, contacts or documents with network storage on schedule.
- π₯οΈ Remote File Work: editing documents on the server directly through mobile applications (e.g. QuickEdit or FX File Explorer).
Compared to alternatives (SMB, FTP, WebDAV), NFS stand out:
| Protocol | Speed. | Reliability | Support for Android | Encryption |
|---|---|---|---|---|
| NFS | βββββ | ββββ | Requires manual adjustment | No (use) VPN) |
| SMB (Samba) | ββββ | βββ | Built-in support | Yes (SMB 3.0+) |
| FTP | βββ | ββ | Through applications | Yes (FTPS/SFTP) |
| WebDAV | ββ | βββ | Through applications | Yes (HTTPS) |
The main disadvantage NFS Android β lack of built-in support MIUI. However, this is offset by flexibility in customization and performance, especially when working with large files (e.g. video in the video format). HEVC or RAW-photo).
Preparation of Xiaomi Redmi Note 9 to work with NFS
Before setting up NFS Several critical steps need to be taken to avoid mounting errors or access rights issues.Redmi Note 9 features based on Qualcomm Snapdragon 720G It requires taking into account the following nuances:
β οΈ Attention: On devices with MIUI 12.5+ The installation of network folders is blocked through standard methods due to SELinux security policy).
Step 1: Verify NFS Support in the Core
Open Termux (or another terminal application) and execute the command:
cat /proc/filesystems | grep nfsIf the answer is nfs or nfs4 β If you don't, you'll need a custom kernel (like ArrowOS or LineageOS).
Step 2: Installation of the necessary packages
In Termux, do:
pkg update && pkg upgrade
pkg install nfs-utils busybox proot-distroTo mount folders, you will need mount and nfs utilities, which are not included in the standard firmware MIUI.
Step 3: Configure the rights of the superuser (optional)
If you plan to install NFS-For folders with write rights, root access is required:
- π Unlock the bootloader via Mi Unlock Tool (official way, but reset data).
- π οΈ Installation of Magisk through patched boot.img (Recommended for experienced users).
- π« Use of exploits (e.g. DirtyCOW) is unstable MIUI 14.
Termux installed with nfs-utils and busybox|Support checked NFS core|Backup of important data is made|If necessary, root access is provided.|Power saving mode for Termux is disabled-->
Connection to existing NFS-server, NAS, PC)
If you already have NFS-server (for example, on a router) ASUS RT-AX88U, synologies DS220+ or PC with Ubuntu, follow this instruction to connect with Redmi Note 9.
Step 1: Configure the server
On the server side (for example, on a Linux PC) edit the file. /etc/exports, line:
/path/to/folder *(rw,sync,no_subtree_check,no_root_squash)Then restart the service. NFS:
sudo exportfs -a
sudo systemctl restart nfs-kernel-serverStep 2: Mounting a folder on a smartphone
In Termux, create a mount point and connect the folder:
mkdir ~/nfs_share
mount -t nfs -o port=2049,nolock,soft 192.168.1.100:/path/to/folder ~/nfs_shareReplace 192.168.1.100 with IP If you have a Permission Denied error, check it:
- π Access rights on the server (parameter rw in /etc/exports).
- π Firewall settings (port 2049 should be open).
- π‘ Stability of Wi-Fi connection (NFS cliff-sensitive).
Step 3: Automation of mounting
To connect the folder automatically when Termux starts, add a command to the file. ~/.bashrc:
echo "mount -t nfs -o port=2049,nolock,soft 192.168.1.100:/path/to/folder ~/nfs_share" >> ~/.bashrcπ‘
If mounting doesnβt work over Wi-Fi, try connecting to the server via cable. USB (USB OTG + Ethernet adapter. This will eliminate latency problems in the wireless network.
Creation NFS-servers on Xiaomi Redmi Note 9
You can turn your Redmi Note 9 into a NFS-a server to distribute files to other devices on the network:
- π± Sharing files between Android devices without clouds.
- π» Connecting a smartphone as a network disk to a PC or Smart TV.
- π Local Backup Organizations for Other Gadgets.
Step 1: Installation of server software
In Termux, install it. unfs3 β lungy NFS-Android server:
pkg install unfs3
wget https://raw.githubusercontent.com/termux/termux-packages/master/packages/unfs3/unfs3.conf -O ~/unfs3.confStep 2: Configure export folders
Edit the file. ~/unfs3.conf, adding a path to the folder on the smartphone:
/sdcard/Download 192.168.1.0/24(rw,sync,no_subtree_check)Here. /sdcard/Download β The folder you give away, and 192.168.1.0/24 β subnet.
Step 3: Start the server
Follow the command:
unfsd -e ~/unfs3.conf -p 2049Now other devices will be able to connect to your smartphone IP-address (you can find it by the ifconfig command in Termux).
β οΈ Attention: Server unfs3 does not support login/password authentication. For security, limit access to trusted devices on the local network or use VPN (For example, WireGuard).
Solving Common NFS Errors on Xiaomi
When you set up NFS On the Redmi Note 9, users often face typical problems:
| Mistake. | Reason. | Decision |
|---|---|---|
| mount: permission denied | SELinux Block or Wrong Rights on the Server | Use the mount. -o soft or turn off SELinux temporarily (setenforce) 0) |
| no such device | There is no NFS support in the kernel | Install a custom core or use it NFS over TCP (-o tcp) |
| Stale file handle | Connection break or server reboot | Rewire the folder or add retry=5 in the mounting option |
| Slow reading speed | Wi-Fi 5 GHz or settings MTU | Switch to the switch. 2.4 GHz or reduce rsize/wsize before 8192 |
The problem of energy conservation
MIUI aggressively closes background processes, including Termux and NFS-to avoid the connection:
- Add Termux to battery exceptions: Settings β Annexes β Battery management β Choice of applications.
- Turn off optimization for Termux: Settings β Annexes β Termux β Battery β No restrictions.
- Use the Keep Alive app to keep the services running.
How to Check Real Speed NFS-linkage?
Alternative ways to connect network folders
If NFS configuration seems too complicated, consider alternative protocols that are easier to integrate into MIUI:
- π SMB (Samba: Integrated support in the MIUI through the Files application or FX File Explorer. Speed is lower than that. NFS, but more stable.
- π WebDAV: runs via RaiDrive or FileBrowser. HTTPS, high-latency.
- π FTP/FTPS: Easy to set up, but not secure without encryption.
- βοΈ Syncthing: Decentralized synchronization without servers. Perfect for backups.
Comparison with NFS:
NFS It's faster and more reliable when you're on a local network, but it's easier to set up, like streaming video. 4K better NFS, for β SMB or syncthing.
π‘
If you need maximum performance (for example, to mount game images or work with large databases), NFS It is the best choice despite the complexity of the setup.
Safety in use NFS Android
NFS The first step is not to encrypt traffic, which makes it vulnerable to public networks:
- π Restrict access to IP: into /etc/exports Only provide trusted addresses (for example, 192.168.1.50(rw instead *).
- π‘οΈ Use it. VPN: Set up WireGuard or OpenVPN to encrypt traffic between devices.
- π Turn off root access: if it is not needed, the parameter no_root_squash into /etc/exports should be replaced by root_squash.
- π‘ Isolate the network: place NFS-subnet (VLAN) If you use a router that supports this function.
Example of WireGuard settings for NFS:
1. Install WireGuard on the server and smartphone.
2. Generate the keys:
wg genkey | tee privatekey | wg pubkey > publickey3. Set up the tunnel in /etc/wireguard/wg0.conf:
[Interface]
PrivateKey = Server Private Key
Address = 10.0.0.1/24
ListenPort = 51820
[Peer]
PublicKey = client public key
AllowedIPs = 10.0.0.2/324. Connect from your smartphone and mount NFS through VPN-IP (for example 10.0.0.1).