How to configure NFS on Xiaomi 9C NFC: from server to file manager connection

Why NFS is on a Smartphone and Why It’s Relevant for the Redmi 9C NFC

The NFS Network File System is a protocol that allows you to mount remote folders as local drives. On the Xiaomi Redmi 9C NFC with its modest 64/128 GB of memory NFS can be a salvation: you can access terabytes of data on NAS, a home PC or even a Raspberry Pi without having to manipulate the clouds or USB- cables.

The main advantage NFS over alternatives (SMB, WebDAV) is minimal overhead and high data rate. This is critical for Redmi 9C NFC, where a weak Helio processor G35 can slow down when working with heavy protocols. But there is a nuance: MIUI does not support the NFS- client by default, so you have to use workarounds.

This article is a unique guide to MIUI 14/15, where standard NFS connection methods often fail, and we will look at server configuration (on Linux/Windows), smartphone client configuration, and solutions to common errors like Permission denied or mount: Operation not allowed.

Requirements and Preparation: What You Need to Set Up NFS

Before you start, make sure you have:

  • πŸ“± Xiaomi Redmi 9C NFC with unlocked bootloader (optional, but simplifies the process).
  • πŸ–₯️ Device-server: PC with Linux (Ubuntu/Debian), Windows with WSL2 or NAS (Synology, QNAP).
  • 🌐 Stable connection to a single LAN (Wi-Fi 5GHz is recommended for speed).
  • πŸ”§ Root rights on a smartphone or an alternative file manager (e.g., Mixplorer with a plugin NFS).

If you don't have root, don't despair: in the client apps section, we'll look at options without superuser rights. However, note that without root, read/write speeds may be limited due to the features of MIUI.

πŸ“Š What type of server do you plan to use for NFS?
Linux (Ubuntu/Debian)
Windows (WSL2)
NAS (Synology/QNAP)
Raspberry Pi
Other

Important: if you are running Windows 10/11 without WSL2, setting up the NFS- server will require additional components (e.g. haneWIN NFS Server).

Setting up NFS-Linux-based (Ubuntu/Debian)

Starting with the server side, using the example of Ubuntu 22.04 LTS, we will analyze the minimum configuration that is sufficient to work with the Xiaomi 9C NFC.

1. Install the necessary packages:

sudo apt update && sudo apt install nfs-kernel-server -y

2. Create and configure an exportable folder, for example, open access to /mnt/nfs_share:

sudo mkdir -p /mnt/nfs_share


sudo chown nobody:nogroup /mnt/nfs_share




sudo chmod 777 /mnt/nfs_share

3. edit the /etc/exports file:

sudo nano /etc/exports

Add a line (replace 192.168.1.0/24 with your subnet):

/mnt/nfs_share 192.168.1.0/24(rw,sync,no_subtree_check,no_root_squash)

πŸ’‘

If you have a dynamic IP on your local area network, use the insecure setting in /etc/exports to allow connections from ports above 1024: /mnt/nfs_share 192.168.1.0/24(rw,sync,insecure).

4. Restart the NFS service:

sudo exportfs -a


sudo systemctl restart nfs-kernel-server

5. Check that the folder is exported:

sudo exportfs -v

Checking the efficiency of the server

From another Linux PC on the same network, do:

showmount -e <IP- server address>

The line with your /mnt/nfs_share folder should be displayed.

What if showmount doesn't show the folder?
1. Check that the nfs-server service is running: sudo systemctl status nfs-server. 2. Make sure the firewall does not block ports 111 (portmapper) and 2049 (nfs): sudo ufw allow from 192.168.1.0/24 to any port nfs. 3. Reboot the server and repeat the export of the folder.

Setting up a NFS- server on Windows (with WSL2)

If you have Windows 10/11, the easiest way to use WSL2 is with Ubuntu. Installing a NFS- server in WSL is similar to native Linux (see previous section), but there are nuances:

  1. Install WSL2 and Ubuntu distribution from the Microsoft Store.
  2. In the /etc/exports file, specify the IP- address of the Windows host machine (you can find it by the ipconfig command in PowerShell).
  3. Open ports in Windows Firewall: New-NetFirewallRule -DisplayName "NFS Portmapper" -Direction Inbound -Protocol TCP -LocalPort 111 -Action Allow New-NetFirewallRule -DisplayName "NFS Daemon" -Direction Inbound -Protocol TCP -LocalPort 2049 -Action AllowRule -DisplayName "NFS Daemon" -Direction Inbound -Protocol TCP -LocalPort 2049 -Ac Allow

⚠️ Warning: WSL2 does not support folder export outside of its file system by default. To export a folder from disk C:, you must first mount it in WSL:

sudo mkdir /mnt/c


sudo mount -t drvfs C: /mnt/c

Then, in /etc/exports, specify the path /mnt/c/folder.

NFS Connection to Xiaomi 9C NFC: Rootless Options

MIUI does not include built-in support for the NFS- client, but there are workarounds.

Method 1: Mixplorer + NFS plugin

Mixplorer is one of the few file managers for Android that supports NFS via plugins. Download it from XDA Developers (Free Restricted Version) and follow the steps:

  1. Install the NFS Add-on for Mixplorer plugin (available there).
  2. Open Mixplorer, go to the Web β†’ Add β†’ NFS.
  3. Fill in the fields: πŸ“Œ Name: Any (e.g., "My NAS"). πŸ“Œ Server: IP- address of your NFS- server. πŸ“Œ Path: Exportable folder (e.g., /mnt/nfs_share). πŸ“Œ Port: 2049 (default).

Connect.

β˜‘οΈ Checking the connection in Mixplorer

Done: 0 / 4

⚠️ Warning: Mixplorer may give Mount failed: Operation not permitted on MIUI 14+.

  • Disable MIUI Optimization in the developer settings.
  • Use Port 111 instead of 2049 (sometimes helps bypass SELinux restrictions).

Method 2: Termux + Manual mounting

If Mixplorer is not suitable, you can use Termux with utilities to mount NFS. This method is more complicated, but gives more control:

  1. Install Termux from F-Droid (the version from Google Play is outdated).
  2. Update packages and install nfs-utils: pkg update && pkg upgrade -y pkg install nfs-utils -y
  3. Create a mount point and connect the folder: mkdir ~/nfs_share mount -t nfs -o port=2049, nolock 192.168.1.100:/mnt/nfs_share ~/nfs_share (replace 192.168.1.100 on your server's IP).

To unmount:

umount ~/nfs_share

πŸ’‘

Termux mounts NFS only for the duration of the session. Once the application is closed or the smartphone is restarted, the connection will break. Automatic mounting will require a script in ~/.termux/boot/ or root access.

NFS Connection with Root Rights: Full Control

If your Xiaomi 9C NFC has root, you can mount the NFS- folders as system drives, which gives you maximum speed and stability.

1. Install Magisk and the NFS Manager module (available in the Magisk repository).

2. Open the Termux or Adb shell and do:

su


mkdir /data/nfs_share




mount -t nfs -o rw,noatime,nodiratime,rsize=8192,wsize=8192 192.168.1.100:/mnt/nfs_share /data/nfs_share

3. To mount automatically when booting, add a line to /etc/fstab:

192.168.1.100:/mnt/nfs_share /data/nfs_share nfs rw,noatime,nodiratime,rsize=8192,wsize=8192 0 0

⚠️ Warning: When using fstab on MIUI, you may freeze when booting if the NFS server is not available.

192.168.1.100:/mnt/nfs_share /data/nfs_share nfs rw,noatime,nodiratime,rsize=8192,wsize=8192,soft 0 0

Optimizing productivity

To speed up the NFS on the Redmi 9C NFC (especially for the weaker Helio G35), use the following mounting options:

ParameterMeaningDescription
rsize8192Read block size (increases speed with a large network latency).
wsize8192The size of the recording block.
noatimeβ€”Disables the update of the access time to files (reduces the load).
nodiratimeβ€”It's similar to noatime, but for folders.
tcpβ€”Forced use of TCP instead of UDP (more stable on Wi-Fi).

Typical errors and their solutions

When setting up NFS on Xiaomi 9C NFC, the following problems most often arise:

1 Permission denied error

Causes and solutions:

  • πŸ”Ή The server has incorrect folder rights. Correct: chmod 777 /mnt/nfs_share.
  • πŸ”Ή /etc/exports does not specify no_root_squash (needed for root access).
  • πŸ”Ή SELinux is blocking access. Check the logs: dmesg | grep nfs.

2. mount error: Operation not allowed

Typical of MIUI without root.

  • πŸ”Ή Use Port 111 instead of 2049 in connection settings.
  • πŸ”Ή Turn off MIUI Optimization in the developer settings.
  • πŸ”Ή Try another file manager (e.g., FX File Explorer with NFS plugin).

3.The slow operation of the NFS

Optimize the mounting parameters (see the table above) and:

  • πŸ”Ή Connect to a 5 GHz network (2.4 GHz gives high latency).
  • πŸ”Ή Turn off power saving for Wi-Fi in the settings MIUI.
  • πŸ”Ή Reduce rsize/wsize to 4096 if cliffs are observed.
How to check the speed of NFS?
In Termux, install iperf3 and run the test between your smartphone and the server: pkg install iperf3 iperf3 -c 192.168.1.100 Normal speed for 5GHz Wi-Fi is 30-50MB/s. If less than 10MB/s, look for the problem in the network or NFS settings.

How to protect your NFS- server

NFS is the default default to transmit data without encryption. On a local network, this is not critical, but if you have risks (such as public Wi-Fi), take action:

  • πŸ”’ Limit access to /etc/exports specific IP: /mnt/nfs_share 192.168.1.100(rw) 192.168.1.101(ro)
  • πŸ”’ Use VPN (e.g., WireGuard) to tunnel traffic NFS.
  • πŸ”’ Turn off export for superuser: remove no_root_squash to /etc/exports.
  • πŸ”’ Set up a firewall on the server: sudo ufw allow from 192.168.1.100 to any port nfs

⚠️ Warning: If you connect to NFS via the mobile Internet (3G/4G/5G), all data will be transmitted in plain form. In this case, be sure to use VPN or alternative protocols (WebDAV + HTTPS).

FAQ: Answers to Frequent Questions

Can I connect NFS to Xiaomi 9C NFC without root and without Mixplorer?
Yes, but the choice is limited. Alternatives: πŸ“ FX File Explorer with plugin NFS (paid but reliable). πŸ“ Total Commander with plugin NFS Plugin (requires manual tuning). πŸ“ Solid Explorer supports NFS in paid version. All these applications work through FUSE, so the speed will be lower than when manually mounting root with.
Why After Rebooting Your Smartphone NFS-folder disappears?
This is normal behavior for Android: temporary mounts (e.g., via Termux) are reset when rebooted. Solutions: πŸ”„ Use autofs (requires root). πŸ”„ Create a script in ~/.termux/boot/ to automatically mount. πŸ”„ Set Tasker to execute a mount command when connected to Wi-Fi.
How to connect NFS to Xiaomi 9C NFC via mobile Internet?
Technically possible, but highly discouraged for security reasons: If necessary: Set up WireGuard or OpenVPN on a server. Connect to VPN from your smartphone. Use only the IP- address of the VPN- tunnel to connect to NFS. ⚠️ Speed will be low due to dual encryption (VPN + NFS).
Can I use NFS to back up data with Xiaomi?
Yes, but with reservations: βœ… Suitable for backup photos, videos, music (large files). ❌ Not suitable for application databases (like WhatsApp) - errors can occur due to file locks. For a reliable backup, use specialized tools like Swift Backup (requires root) or Titanium Backup.
Why is NFS video slowing down on Xiaomi 9C NFC?
Causes and Solutions: πŸ“Ά Weak Wi-Fi signal: connect to 5 GHz or use a Powerline adapter. πŸ–₯️ Low server performance: check the load on the CPU/ disk using htop or iotop. πŸ“± Limitations MIUI: disable Battery β†’ Optimize power consumption for the file manager. πŸ”§ Non-optimal settings NFS: try rsize=32768,wsize=32768 for high-resolution video.