How to use it NFS Xiaomi Redmi Note 9: A Complete Guide with Customization and Tips

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:

ProtocolSpeed.ReliabilitySupport for AndroidEncryption
NFS⭐⭐⭐⭐⭐⭐⭐⭐⭐Requires manual adjustmentNo (use) VPN)
SMB (Samba)⭐⭐⭐⭐⭐⭐⭐Built-in supportYes (SMB 3.0+)
FTP⭐⭐⭐⭐⭐Through applicationsYes (FTPS/SFTP)
WebDAV⭐⭐⭐⭐⭐Through applicationsYes (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).

πŸ“Š What do you want to use for? NFS smartphone?
Expansion of memory
Streaming media
Data backup
Remote work.
Other

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 nfs

If 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-distro

To 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-server

Step 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_share

Replace 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.conf

Step 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 2049

Now 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 deniedSELinux Block or Wrong Rights on the ServerUse the mount. -o soft or turn off SELinux temporarily (setenforce) 0)
no such deviceThere is no NFS support in the kernelInstall a custom core or use it NFS over TCP (-o tcp)
Stale file handleConnection break or server rebootRewire the folder or add retry=5 in the mounting option
Slow reading speedWi-Fi 5 GHz or settings MTUSwitch 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:

  1. Add Termux to battery exceptions: Settings β†’ Annexes β†’ Battery management β†’ Choice of applications.
  2. Turn off optimization for Termux: Settings β†’ Annexes β†’ Termux β†’ Battery β†’ No restrictions.
  3. Use the Keep Alive app to keep the services running.
How to Check Real Speed NFS-linkage?
Install the utility in Termux iperf3 Run a test between your smartphone and server: pkg install iperf3 iperf3 -c 192.168.1.100 -p 5201 Compare the results with the connection to SMB/FTP. NFS should indicate the speed of 20–30% higher when working with small files.

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 > publickey

3. 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/32

4. Connect from your smartphone and mount NFS through VPN-IP (for example 10.0.0.1).

FAQ: Frequent questions on NFS Xiaomi Redmi Note 9

Can I use NFS without root rights?
Yes, but with limitations. Without root, you can only read files from the NFS-servers, but not record them (due to SELinux's policy in the MIUI). Full access will require either unlocking the bootloader or using workarounds (e.g. mounting through Linux Deploy from a chroot environment).
Why is NFS slower than SMB?
Main reasons: Settings rsize/wsize (default 1024 Increase to byte. 8192 or 16384. Use of Wi-Fi 5 GHz with interference. Try switching to 2.4 GHz or Ethernet via OTG. Fragmenting files on the server. Defragment the disk or use SSD. For speed testing, use dd: dd if=/dev/zero of=~/nfs_share/testfile bs=1M count=100
How to Automatically Mount NFS-folder?
V MIUI There are no built-in tools for auto-run scripts, but you can use: Tasker: create a task that mount performs when connecting to Wi-Fi. Termux:Boot: install the Termux:Boot plugin and place the mount command in the ~/../termux-boot/start-nfs.sh. Cron Tasks: Configure Crontab via Termux -e Example of a script for Termux:Boot: #!/bin/bash sleep 30 mount -t nfs -o soft,retry=3 192.168.1.100:/path ~/nfs_share
Can I connect? NFS to the standard application "Files" in MIUI?
No, the standard application Files in MIUI supportive NFS. Alternatives: FX File Explorer (plug-in) FX Connect for mounting. Solid Explorer (support) NFS Mixplorer (requires manual mounting via Termux) Once mounted in Termux, the folder will be available on the way. /data/data/com.termux/files/home/nfs_share. You can create a symbolic link to /sdcard: ln -s ~/nfs_share /sdcard/NFS
How to unmount NFS-folder if the smartphone is getting stuck?
If the device does not respond to commands, follow: Reboot the smartphone (hold power). + Loudness up 10 if NFS-server on your smartphone – stop the process unfsd: pkill unfsd For forced unmounting (root only): su umount -f ~/nfs_share If the folder is left β€œhung”, restart the server or check the processes using ps aux | grep nfs.