How to connect NFS to Xiaomi 10S: full instructions with configuration and error fixing

Xiaomi 10S β€” powerful smartphone with advanced capabilities for working with network resources, but the connection function NFS (Network File System is hidden in the depths by default MIUI. Many users are unaware that their device can mount network folders as local drives, bypassing the limitations of cloud services and slow-moving devices. SMB-In this article, we'll discuss how to activate the protocols. NFS-Xiaomi client 10S, set up a connection to the server and avoid the typical errors that plague beginners.

NFS This is especially useful if you are storing large files (video) 4K, backups, projects NAS-A server or a home PC running Linux. FTP or WebDAV, the protocol provides high data rate and minimal delays - critical for streaming media or working with databases. MIUI There is no built-in interface to configure, so you will have to use workarounds: from editing configuration files to installing third-party applications.

Important: the manual is relevant for Xiaomi 10S based on MIUI 12.5-14 (including global and Chinese versions of firmware).If your smartphone runs on HyperOS, some steps may differ - we will mention this separately. Also note that successful connection will require root access or the use of alternative methods (for example, through Termux), which we will discuss below.

What is NFS and why is it better than SMB/FTP for Xiaomi 10S?

NFS (Network File System) was developed by Sun Microsystems in 1984 to unify file access on local area networks, and unlike SMB (used in Windows) or FTP, it is optimized to work on UNIX-like systems, including Android (based on the Linux kernel), here are the key benefits for Xiaomi 10S owners:

  • ⚑ Speed: NFS v4 Supports client caching, which speeds up file re-access by up to 30-50% compared to the previous data SMB.
  • πŸ”— Low latency: Ideal for streaming high-resolution video (e.g., high-resolution video, 4K HDR s NAS).
  • πŸ›‘οΈ Security: Supports Kerberos authentication and traffic encryption (versions 4.1)+).
  • πŸ“ Flexibility: Allows you to mount remote folders as local, with support for chmod access rights.

But there are drawbacks: NFS is sensitive to network quality (packet loss can cause connection breakage), and configuration requires command line knowledge. In comparison, SMB is easier to use, but slower and less stable with a large number of small files. If you store RAW photos or video projects on the server, NFS is the best choice.

⚠️ Attention: On Xiaomi 10S Without root rights, you can connect to NFS Only through third-party applications (for example, NFS Manager, but the speed will be limited due to the lack of native support in the Android kernel.To work properly, you will need to unlock the bootloader and install a custom kernel.

Preparing for connection: requirements and network verification

Before you start setting up, make sure your network and devices meet the minimum requirements:

ComponentRequirementHow to check
NFS-serverLinux/UNIX-server-only NFS (version 3 or 4)Execute sudo systemctl status nfs-server on the server
NetworkLocal area network (Wi-Fi or Ethernet via the Internet) USB-Adapter with Jumbo Frames support (optional)Ping server with Xiaomi 10S: ping 192.168.x.x (delay <5 ms)
Xiaomi 10SMIUI 12.5+, unlocked bootloader (for root method) or TermuxCheck the version of MIUI in Settings β†’ About the phone
Access rightsThe server must have a folder exported for your IP or subnet.View /etc/exports on the server

If you are using Windows as a server, install it. NFS-Windows server (for example, through β€œEnable Windows Components” or third-party solutions such as haneWIN) NFS For Linux (Ubuntu/Debian) execute:

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


sudo systemctl enable --now nfs-server

Set up the folder export by adding a line to /etc/exports (substitute IP_Customer address to your Xiaomi 10S):

/path/to/folder IP_client(rw,sync,no_subtree_check,no_root_squash)

After editing the file, apply the changes:

sudo exportfs -a


sudo systemctl restart nfs-server

πŸ“Š What protocol do you use for network storage?
NFS
SMB
FTP/WebDAV
Cloud services (Google Drive, Yandex Disk)
I haven't set it up yet.

Method 1: Connecting NFS without root via Termux (for beginners)

If you don’t have root rights, the easiest way to install NFS-The system uses the Termux terminal with nfs-utils. This method does not require unlocking the bootloader, but has limitations: the connection will break when you restart, and the read/write speed can be lower than with a native connection.

Steps to set up:

  1. Install Termux from F-Droid (the version from Google Play is outdated and doesn’t support all commands).
  2. Update packages and install nfs-utils: pkg update && pkg upgrade -y pkg install nfs-utils -y
  3. Create a mount point (e.g., in the ~/storage/shared/NFS folder): mkdir -p ~/storage/shared/NFS
  4. Connect to the server (replace) IP_server and /path / to / folder: mount -t nfs -o soft,intr,rsize=8192,wsize=8192 IP_server:/path/to/folder ~/storage/shared/NFS

To automate the connection when you start Termux, add the mount command to the ~/.bashrc file:

echo 'mount -t nfs -o soft,intr,rsize=8192,wsize=8192 IP_ servers:/path/to/folder ~/storage/shared/NFS' >> ~/.bashrc

⚠️ Note: When using Termux, files in the mounted folder will only be accessible within this application. To open them in other programs (for example, in a gallery), you will need to transfer files manually or use them. FX File Explorer with root support.

β˜‘οΈ Preparation of Termux for NFS

Done: 0 / 5

Method 2: Full connection with root rights (for experienced)

If you have a bootloader unlocked and Magisk installed, you can activate built-in NFS support in the Android kernel.This method provides maximum speed and stability, but requires technical skills.

Instructions:

  1. Check for NFS support in the kernel: su cat /proc/filesystems | grep nfs If nodev nfs is missing, proceed to step 2.
  2. Install the kernel module via Magisk: - Download the NFS Kernel Module (e.g. with XDA). - Install it via Magisk Manager and restart the device.
  3. Mount the folder in /data/nfs: su mkdir /data/nfs mount -t nfs -o rw,soft IP_server:/path/to/folder /data/nfs
  4. Set up auto-mounting when booting by adding a line to /data/adb/post-fs-data.d/nfs.sh: #!/system/bin/sh mount -t nfs -o rw,soft IP_server:/path/to/folder /data/nfs Make the file executable: chmod 755 /data/adb/post-fs-data.d/nfs.sh

To check the connection speed, use the command:

dd if=/data/nfs/big file of=/dev/null bs=1M count=100

Normal performance for Xiaomi 10S on the Gigabit Ethernet (via the Internet) USB-adapter): 80–110 MB/s for reading and 30–50 MB/s on record. If the speed is lower, check the settings. rsize/wsize (optimality: 8192 or 32768).

How to increase the speed of NFS on Xiaomi 10S?
To optimize speed, edit the mounting parameters: 1. Increase the size of the buffer: add rsize parameters=32768,wsize=32768. 2. Enable asynchronous recording: async (but risk losing data if crashed). 3. For Wi-Fi networks, reduce timeouts: timeo=14,retrans=2. 4. If the server is supported NFS v4.1, Use it instead v3: -o vers=4.1. Example of the final team: mount -t nfs -o rw,soft,intr,rsize=32768,wsize=32768,vers=4.1 IP_server:/path /data/nfs

Solving Common Errors When Connecting NFS

Even if you set it up properly, you can run into errors. Here are the most common problems and solutions.

Mistake.Reason.Decision
mount: Operation not permittedNo mounting rights or SELinux blocks the actionRun setenforce 0 (temporary SELinux shutdown) or set policies
RPC: Program not registeredNo rpcbind or nfs server is running on the serverReset the services: sudo systemctl restart rpcbind nfs-server
Stale file handleThe server is restarted and the client is trying to use the old descriptor.Remount folder: umount /data/nfs &&mount -t nfs...
Permission deniedWrong rights in /etc/exports or UID/GID are not the sameCheck the export on the server and add the option no_root_squash

If files are displayed after mounting but not opened, check:

  • πŸ” Access rights: on the server run chmod -R 777 /Path/to/Folder (temporary solution for the test).
  • 🌐 Routing: Make sure ports 2049 (NFS) and 111 (rpcbind) are open.
  • πŸ“‘ MTU Networks: if you use them VPN or a non-standard network, reduce rsize/wsize before 4096.

πŸ’‘

If NFS-Windows server, make sure that in the haneWIN settings NFS Server enabled Allow non-root access and disabled firewall for port 2049.

Alternative ways to connect network drives on Xiaomi 10S

If setting up NFS seems too complicated, consider alternative protocols:

  • πŸ“‚ SMB (Samba: Easy to set up, but slower. Use the app FX File Explorer or Solid Explorer with a plugin SMB.
  • 🌐 WebDAV: Works through HTTP/HTTPS, It's supported by most file managers, and it's faster than the speed of the file manager. NFS, But more stable in unreliable networks.
  • ☁️ SSHFS: He's mounting a remote folder on SSH. Secure, but requires a server with SSH-Install in Termux: pkg install sshfs.
  • πŸ”— Rclone: A universal tool for mounting cloud storage (Google Drive, Yandex Disk) as local folders.

For comparison of protocol speeds on Xiaomi 10S (the 1GB file reading test over 5 GHz Wi-Fi):

| Protocol | Speed (MB/s) | Delay (MS) | Reliability |

|----------|-----------------|---------------|------------|

| NFS v4 | 60-90 | 1-3 | High |

| SMB | 30–50 | 5–10 | Average |

| WebDAV | 10-20 | 10-50 | Low |

| SSHFS | 20–40 | 3–5 | High |

If your main task is to watch NAS video, NFS will remain the best choice. Rclone or SSHFS will be suitable for backing up small files.

πŸ’‘

For maximum speed, use NFS v4 with rsize=32768,wsize=32768 and connect via an Ethernet adapter (USB-C β†’ RJ45).

How to protect data when using NFS

NFS doesn't encrypt traffic in the first place, so when you're on a local network, you can intercept data to protect sensitive information.

  1. Use it. NFS top-up VPN: - Set up WireGuard or OpenVPN on the server and Xiaomi 10S. - Get on the hook. NFS only VPN-tunnel.
  2. Enable Kerberos authentication (for NFS v4): - On the server: sudo apt install krb5-kdc krb5-admin-server. - On the client: install krb5-user in Termux.
  3. Limit IP Access: In /etc/exports, specify specific IPs, not subnets (e.g. 192.168.1.100(rw) instead of 192.168.1.0/24(rw)).
  4. Disable unused versions NFS: - V /etc/default/nfs-kernel-server add RPCNFSDOPTS="--no-nfs-version 2,3", leave only v4.

To check for data breaches, use Wireshark on a PC connected to the same network. NFS-traffic:

port 2049 || port 111

If you see unencrypted data packets, switch to VPN or Kerberos immediately.

FAQ: Frequent questions about NFS on Xiaomi 10S

Can I connect NFS to Xiaomi 10S without root?
Yes, but with limitations. You can use Termux with nfs-utils, but: The mounted folder will only be available inside Termux. The speed will be lower due to the lack of native support. The connection will break after the restart. The full operation requires root or custom firmware with NFS enabled in the kernel.
Why is NFS running slowly over Wi-Fi?
Main reasons: Network interference: Switch to 5 GHz channel with 80 MHz width. Small buffer size: Increase rsize and wsize to 32768. Packet loss: Reduce timeo to 5 and retrans to 1. Wi-Fi chipset limitations: Xiaomi 10S uses Qualcomm FastConnect 6800, which can brake with a large number of small files. For critical tasks (e.g. video editing), use a USB-Ethernet adapter.
How to automatically mount NFS when downloading?
There are two ways: 1. Termux (without root): echo 'mount -t nfs -o soft,intr,rsize=8192,wsize=8192 IP_server:/path ~/storage/shared/NFS' >> ~/.bashrc 2. With root rights: echo 'mount -t nfs -o rw,soft IP_server:/path /data/nfs' > /data/adb/post-fs-data.d/nfs.sh chmod 755 /data/adb/post-fs-data.d/nfs.sh For reliability, add network check before mounting: ping -c 1 IP_server &>/dev/null && mount -t nfs...
Can I use NFS to stream 4K video?
Yes, but with reservations: πŸ”΄ Wi-Fi 5 GHz: Supports to 100 MB/s is sufficient for 4K HDR (bitrate ~50 MB/s). 🟒 Ethernet: Optimal for the 8K or high-bit content. ⚠️ Codecs: Xiaomi 10S hardware-decode H.265 and VP9, but AV1 You need software decoding (may slow down). Recommended settings for video: mount -t nfs -o rw,soft,intr,rsize=65536,wsize=65536,vers=4.1 IP_servers:/films /data/nfs
How to turn off NFS if you no longer need it?
Follow the commands: su umount /data/nfs # or another mounting point rmdir /data/nfs # delete the folder (optional) If you used the Magisk module, disable it in Magisk Manager and restart the device. For Termux, just delete the string from.bashrc.