NFS on Xiaomi 10S: a complete guide to configuring network access to files

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.

πŸ“Š What are you setting up for? NFS Xiaomi 10S?
Work with media server (Plex/Kodi)
Software development/testing
Backup
Access to corporate storage
Other

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

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

192.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

Done: 0 / 5

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:

  1. Install the NFS core module (if not):
  2. Create a mounting point (for example, in the /mnt/nfs_share):
  3. Add a line to /etc/fstab (for automatic mounting when downloading):
  4. Manually install (for testing):
Parameter fstabDescriptionRecommended value
rw/roAccess mode (read/write or read only)rw (if the server allows the recording)
noatimeDisables file access time updates (reduces load)Turn on
intrAllows you to interrupt operations when hanging (critically for mobile devices)Turn on
softAllows 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:

  1. Rights to the mounting point (chmod) 777 /mnt/nfs_share).
  2. SELinux settings (if Enforcing is enabled, try temporarily translating to Permissive:
How to check the status of SELinux?
Run a getenforce command in Termux or adb-shell. If the Enforcing response, SELinux is active and can block access to NFS.

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=100

dd 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:

ProtocolAdvantagesDeficienciesApplication for Xiaomi
SMB (Samba)Built-in support in MIUI (via Files β†’ Network)Slower NFS, higher CPU loadXiaomi files, Solid Explorer
WebDAVIt works via HTTPS, it is easy to configure.Low speed, no file lockingFX File Explorer, Nextcloud
FTP/FTPSEasy to set up, encryption (FTPS)Unsafe without encryption, slower than SMBES Conductor, AndFTP
SSHFSEncrypted connection, high speedDemands. SSH-server, more difficult to configureTermux + sshfs

To connect SMB in the standard file manager MIUI:

  1. Open the Files app.
  2. Go to the Network section.
  3. Click Add Storage Add β†’ SMB.
  4. 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.

FAQ: Frequent questions about NFS on Xiaomi 10S

Can I connect NFS without root rights?
Yes, but with limitations, you can mount through Termux. NFS-only within an isolated environment (e.g., in ~/nfs_share). These files will not be visible to standard applications. MIUI (Full integration requires root rights or custom firmware.
Why does NFS shut down after restarting?
Android doesn't save time mounts. To make NFS connect automatically: Add a string to /etc/fstab (root required). Or create a script in Termux with a mount command and run it through Tasker when you boot.
What is the minimum Android for NFS?
Technically, NFS works on any version of Android, but: Android 9 and below often lacks the nfs.ko module in the kernel. Android 10+ may have problems with SELinux (solved by transferring to Permissive mode). Android 12+ (MIUI 13+) is better compatible, but requires manual addition of modules.
Can I use NFS to stream 4K video?
Theoretically, yes, but in practice: πŸ“Ά Wi-Fi 5 GHz must provide speeds of at least 30 Mbps (for the H.265). πŸ“± Xiaomi 10S may be delayed during decoding 4K The Snapdragon 870 (especially the Snapdragon 870) HEVC). πŸ”§ Recommendations: Use rsize=32768,wsize=32768 to increase block size. disable atime (noatime) to reduce load. 1080p before 4K.
How to unmount NFS if the device is frozen?
If Xiaomi 10S ceased to respond after the connection with NFS: Connect the device to the PC via adb: adb shell su umount -f /mnt/nfs_share If it doesn’t help, restart the device in Safe Mode (hold the power button). β†’ long tap on "Switch off" β†’ "Safe Mode"). In extreme cases, reset through TWRP (If installed, but this will delete all data. To avoid freezes, always use soft and intr settings when mounting.