The Network File System (NFS) allows remote folders to be connected as local drives, the perfect solution for working with large amounts of data on the Xiaomi 10S without taking up internal memory. However, standard MIUI settings do not support NFS out of the box, and manual configuration requires knowledge of Termux, rights or alternative firmware. In this guide, we will analyze all working methods from simple (via applications) to advanced (via console), taking into account the features of the Xiaomi 10S based on Qualcomm Snapdragon 870.
It's important: NFS It is more commonly used for corporate networks or for connecting to NAS-servers (e.g., Synology or QNAP). On smartphones, this technology is in demand among developers, software testers or users working with media libraries (such as Plex or Kodi). SMB (Samba or FTP, which are easier to set up MIUI.
1. Preparing Xiaomi 10S to work with NFS
Before setting up, check the key parameters of the device:
- π± Version. MIUI: NFS It works better on firmware. MIUI 13+ (Android 11/12). Older versions may have mounting errors. Check version: Settings β The phone. β Version. MIUI.
- π Root rights: For full-time work NFS mount requires Magisk or custom recovery (TWRP). Only workarounds are available without root (see Section 3).
- π Network connection: NFS Sensitive to delays. Use Wi-Fi 5 GHz or Ethernet via USB-C (Xiaomi adapter USB-C to Ethernet).
If you're Xiaomi. 10S It is not rooted, but you plan to use it. NFS access NAS, Check the protocol support on the server. DSM enable NFS in the control panel: Control panel β Shared folders β Select a folder β NFS-permitting.
β οΈ Attention: On some firmware MIUI The Android kernel lacks the nfs.ko module needed for mounting, in which case only flashing to custom firmware (for example, LineageOS) or using Termux with proot will help.
Method 1: Connecting NFS over Termux (without root)
If you donβt have root rights but have access to Termux (installed from F-Droid), you can mount the root. NFS-This method does not give full access to the Android file system, but allows you to work with data through a terminal or specialized applications (for example, FX File Explorer with Termux:API plugin).
Install the necessary packages in Termux:
pkg update && pkg upgrade -y
pkg install root-repo -y
pkg install nfs-utils -yCreate a mounting point and connect NFS-ball:
mkdir ~/nfs_share
mount -t nfs -o port=2049,nolock,soft 192.168.1.100:/path/to/share ~/nfs_share192.168.1.100:/path/to/share
- π§ Mounting parameters:
- π Access to files: After mounting, files will be available in ~/nfs_share. Use ls to check or set up FX File Explorer to work with Termux.
β οΈ Note: When you connect files to ~/nfs_share They will not be visible to standard file managers. MIUI. To integrate with the system, you will need a root or custom core with support for bind mount.
βοΈ Preparation of Termux for NFS
Method 2: Fully mount NFS with root rights
If you're Xiaomi. 10S It is rooted (Magisk), you can mount it. NFS-This allows you to access files through any application, but it requires caution - incorrect settings can lead to data loss or system freeze when the connection is broken.
Steps for mounting:
- Install the NFS core module (if not):
- Create a mounting point (for example, in the /mnt/nfs_share):
- Add a line to /etc/fstab (for automatic mounting when downloading):
- Manually install (for testing):
| Parameter fstab | Description | Recommended value |
|---|---|---|
| rw/ro | Access mode (read/write or read only) | rw (if the server allows the recording) |
| noatime | Disables file access time updates (reduces load) | Turn on |
| intr | Allows you to interrupt operations when hanging (critically for mobile devices) | Turn on |
| soft | Allows timeouts (alternatively hard, but can freeze) | soft |
To check the success of installation, use:
df -h | grep nfs
ls /mnt/nfs_shareπ‘
If files are not displayed in the gallery or music after mounting, restart the media scanner: am broadcast -a android.intent.action.MEDIA_MOUNTED -d file:///mnt/nfs_share
4. Solving Typical NFS Errors on Xiaomi 10S
When setting up NFS, Xiaomi 10S users often face the following problems:
- π« mount: unknown filesystem type 'nfs' - no kernel module nfs.ko. Solution: install a custom kernel (e.g. KernelSU) or use Termux.
- β³ mount: connection timed out - check out:
- π Permission denied - no access rights are configured on the server:
If you donβt see files after mounting an application (such as VLC or FX File Explorer), check:
- Rights to the mounting point (chmod) 777 /mnt/nfs_share).
- SELinux settings (if Enforcing is enabled, try temporarily translating to Permissive:
How to check the status of SELinux?
5. Optimizing NFS Speed on a Mobile Device
NFS on Xiaomi 10S can run slower than on PCs due to CPU limitations (Snapdragon 870) and power saving.
- β‘ Use rsize and wsize, the read/write block size. Optimal Wi-Fi values:
- πΆ Turn off energy saving for Wi-Fi:
- π Caching: For frequently used files, set up a cache on your device:
For speed testing, use:
dd if=/mnt/nfs_share/bigfile of=/dev/null bs=1M count=100dd if=/sdcard/bigfile of=/dev/null bs=1M count=100
π‘
NFS on mobile devices is not designed for high-load operations (e.g., 4K video editing), but is best used for reading media files, backing up or accessing documents.
6. NFS Alternatives for Xiaomi 10S
If NFS configuration seems too complicated, consider alternative protocols that are easier to integrate into MIUI:
| Protocol | Advantages | Deficiencies | Application for Xiaomi |
|---|---|---|---|
| SMB (Samba) | Built-in support in MIUI (via Files β Network) | Slower NFS, higher CPU load | Xiaomi files, Solid Explorer |
| WebDAV | It works via HTTPS, it is easy to configure. | Low speed, no file locking | FX File Explorer, Nextcloud |
| FTP/FTPS | Easy to set up, encryption (FTPS) | Unsafe without encryption, slower than SMB | ES Conductor, AndFTP |
| SSHFS | Encrypted connection, high speed | Demands. SSH-server, more difficult to configure | Termux + sshfs |
To connect SMB in the standard file manager MIUI:
- Open the Files app.
- Go to the Network section.
- Click Add Storage Add β SMB.
- Enter the server address (192.168.1.100), username and password.
If you want high speed and security, combine protocols, like using NFS for LAN and WebDAV for remote Internet access.
7 Safety in the use of NFS
NFS does not initially encrypt traffic, making it vulnerable to interception on the LAN.
- π Use it. NFS through VPN:
- π‘οΈ Restrict access by IP:
- π Turn it off. NFS idle:
β οΈ Note: If you are connecting to NFS Through public networks (such as a cafe or hotel), never mount folders with sensitive data without a single file. VPN. Traffic. NFS Transmitted in plain form, including file names and contents.