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:
| Component | Requirement | How to check |
|---|---|---|
| NFS-server | Linux/UNIX-server-only NFS (version 3 or 4) | Execute sudo systemctl status nfs-server on the server |
| Network | Local 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 10S | MIUI 12.5+, unlocked bootloader (for root method) or Termux | Check the version of MIUI in Settings β About the phone |
| Access rights | The 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-serverSet 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-serverMethod 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:
- Install Termux from F-Droid (the version from Google Play is outdated and doesnβt support all commands).
- Update packages and install nfs-utils: pkg update && pkg upgrade -y pkg install nfs-utils -y
- Create a mount point (e.g., in the ~/storage/shared/NFS folder): mkdir -p ~/storage/shared/NFS
- 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
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:
- Check for NFS support in the kernel: su cat /proc/filesystems | grep nfs If nodev nfs is missing, proceed to step 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.
- Mount the folder in /data/nfs: su mkdir /data/nfs mount -t nfs -o rw,soft IP_server:/path/to/folder /data/nfs
- 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=100Normal 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?
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 permitted | No mounting rights or SELinux blocks the action | Run setenforce 0 (temporary SELinux shutdown) or set policies |
| RPC: Program not registered | No rpcbind or nfs server is running on the server | Reset the services: sudo systemctl restart rpcbind nfs-server |
| Stale file handle | The server is restarted and the client is trying to use the old descriptor. | Remount folder: umount /data/nfs &&mount -t nfs... |
| Permission denied | Wrong rights in /etc/exports or UID/GID are not the same | Check 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.
- 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.
- 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.
- 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)).
- 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 111If you see unencrypted data packets, switch to VPN or Kerberos immediately.