Network protocol NFS (Network File System allows you to use Xiaomi Poco X3 Pro access files on a remote server as if they were stored locally, and it's the perfect solution for working with large media libraries, backups or project files without taking up the internal memory of the smartphone. NFS On Android devices, the task is not trivial: it requires superuser rights, accurate server configuration and understanding of network protocols.
In this article, we will discuss three ways to connect. NFS-POCO X3 Pro: through root access using Mount Manager, through Termux without root (with limitations) and through specialized applications such as NFS Manager: We will focus on common errors, such as why mounting falls after a reboot or how to fix a permission denied issue. NFS, Start with the section on server preparation โ it will save debugging hours.
โ ๏ธ Attention: Adjustment NFS Requires changes to Poco system files X3 Pro. Mistakes may result in data loss or unstable operation of the device.We recommend backing up through TWRP before manipulation.
1. Preparation of the server NFS: minimum requirements
Before you set up a client on a smartphone, make sure yours is yours. NFS-The server is configured correctly. You can use it for testing:
- ๐ฅ๏ธ Local PC with Linux (Ubuntu/Debian) or macOS (Nfsd service enabled)
- ๐ NAS-device (Synology, QNAP, TrueNAS supported NFS v3/v4
- โ๏ธ Cloud server (VPS publicly IP, But it's less safe)
Minimum server configuration for stable Poco operation X3 Pro:
| Parameter | Recommendation | Explanation |
|---|---|---|
| NFS version | v3 or v4 | v4 Supports encryption, but may require additional core modules on Android |
| Port port | 2049 (default) | Make sure the port is open in the server and router firewall |
| Exportable folder | /mnt/nfs_share | The folder must have 777 rights or belong to nobody:nogroup |
| Max. Number of connections | 8โ16 | For one smartphone is enough, but if you connect several devices โ increase |
Example of a file /etc/exports Linux server:
/mnt/nfs_share 192.168.1.0/24(rw,sync,no_subtree_check,no_root_squash)Where 192.168.1.0/24 โ You can subnet your local network, and rw allows you to write:
sudo exportfs -a
sudo systemctl restart nfs-kernel-server๐ก
If you are using OpenMediaVault or TrueNAS, turn on support. NFS in the web interface and specify IP-Poco address X3 Pro is on the list of allowed hosts, which will prevent access by unauthorized devices.
2.Photo compatibility check X3 Pro NFS
Xiaomi Poco X3 Pro (codename vayu) runs on a Qualcomm Snapdragon 860 processor with a Linux kernel, which theoretically allows you to support the processor. NFS. But there are nuances:
- ๐ง Android kernel is often assembled without the module nfs.ko โ it will have to download separately.
- ๐ SELinux enforcing locks mounting. Required to be translated to permissive.
- ๐ฑ Firmware: On custom ROM (For example, LineageOS) NFS It works more stable than on the stock MIUI.
To check for support NFS on your device:
- Install Termux from F-Droid (the Play Market version is outdated).
- Execute the command: pkg install nfs-utils lsmod | grep nfs If the output is empty, the kernel module is missing.
- Check the status of SELinux: getenforce When Enforcing responds, you will need to turn it off.
โ ๏ธ Warning: Disabling SELinux (setenforce 0) reduces the security of the device. Use this method only for testing and return enforcing after setting up.
Method 1: Mounting NFS via Termux (without root)
This method is suitable for temporary connection without superuser rights, but has limitations:
- โ It works without a root.
- โ Unmounted after Termux closes
- โ There is no automatic connection when downloading
- โ Speed is lower due to userspace
Adjustment steps:
- Install in Termux packages: pkg update & & pkg upgrade pkg install nfs-utils openssh
- Create a folder for mounting: mkdir ~/nfs_mount
- Connect to the server (replace) IP and the way: mount -t nfs 192.168.1.100:/mnt/nfs_share ~/nfs_mount -o nolock,soft Nolock Option disables file locking (solves the problem of freezes), and soft allows you to interrupt the operation when the communication breaks.
To check the mounting, do:
df -h | grep nfsIf the team returned the path to your folder, the connection is successful. ~/nfs_mount inside.
How to copy files from Termux to the main memory of the smartphone?
Method 2: Permanent root access mounting
For a stable job. NFS Poco X3 Pro will be required:
- Root rights (e.g., via Magisk)
- The nfs.ko kernel module for your version of the kernel.
- Mount Manager App or Manual Editing /etc/fstab.
Step-by-step:
- Install the kernel module: Download nfs.ko for your kernel (learn the version via uname) -r). Sources: XDA Developers or thematic telegram chats. Put the file in /vendor/lib/modules/ and grant the license: su chmod 644 /vendor/lib/modules/nfs.ko insmod /vendor/lib/modules/nfs.ko
Turn off SELinux:
su
setenforce 0To do this constantly, edit. /sys/fs/selinux/enforce (change boot.img).
Create a mounting point:
su
mkdir /data/nfs_share
chmod 777 /data/nfs_share/etc/fstab
192.168.1.100:/mnt/nfs_share /data/nfs_share nfs rw,noatime,nolock,soft,intr 0 0The intr option allows you to interrupt operations when getting stuck.
Hand-mount for the test:
mount -aโ ๏ธ Warning: If mounting does not work after restart, check logcat logs | grep nfs. A common cause is version mismatch NFS server and client. NFSv4 You may need to explicitly specify the version in the mounting options: nfs4.
Download nfs.ko for your core|Disable SELinux (temporarily)|Create a folder. /data/nfs_share|Check access rights on the server (777)|Add a line to /etc/fstab
-->
5. Method 3: Use NFS Manager (for beginners)
Annex NFS Manager from Sparks makes it easy to set up, but requires root:
- ๐๏ธ Graphical interface for adding servers
- ๐ Automatic mounting during loading
- ๐ Monitoring of connection status
Instructions:
- Install. NFS Manager and provide root access.
- Press. + โ specify: Server IP: 192.168.1.100 Export Path: /mnt/nfs_share Mount Point: /data/nfs_share Options: rw,noatime,nolock,soft
Mount at boot
Mount
NFS Manager does not support NFSv4 firmware MIUI If you don't get the kernel assembly, force the version. v3 in options: nfsvers=3.
6. Optimizing performance and eliminating errors
NFS It's often slower on mobile than on PCs. Here's how to make things better:
Acceleration of data transmission:
- ๐ Increase the read/write buffer size in the mounting options: rsize=8192,wsize=8192 (default values are 1024, which is not enough for video files)
- ๐ถ Use a wired connection via USB-Ethernet adapter (if the router supports Gigabit) LAN).
- ๐ Turn off atime (last access time) to reduce the load: noatime, nodiratime
Typical errors and decisions:
| Mistake. | Reason. | Decision |
|---|---|---|
| mount: Operation not permitted | SELinux blocks mounting | Turn off SELinux or add a rule audit2allow |
| Permission denied | Incorrect rights on the server | Give me the chmod. 777 Or set up exports with no_root_squash |
| Server not responding | Firewall blocks port 2049 | Open the port on the server and router, check rpcinfo -p |
| Protocol not supported | There is no module nfs.ko | Download the module for your version of the kernel |
๐ก
For a stable job. NFS Poco X3 Pro is critically matching protocol versions on the server and the client, if the server only supports NFSv4, And the core of the smartphone is just v3, Connection is not possible.
7. NFS Alternatives: When to Choose a Different Protocol
NFS It's not always optimal for mobile. Consider alternatives:
- ๐ SMB (Samba: Easy to set up, works without rooting through FX File Explorer or Solid Explorer. Minus - higher load CPU.
- โ๏ธ WebDAV: Supported by many NAS, works HTTPS. Slower. NFS, It is safer for public networks.
- ๐ SSHFS: He's mounting a remote folder on SSH. It requires root, but it encrypts traffic. Speed depends on the encryption algorithm.
When to choose NFS:
- โ Maximum speed is required on the local network (for example, for streaming video). 4K).
- โ The server and client are in the same low latency subnet.
- โ You need access to files at the block level (for example, to work with databases).
When to avoid NFS:
- โ Internet connection (not secure without security) VPN).
- โ Low-speed networks (3G/4G) โ SMB or WebDAV is more stable.
- โ No root access - settings NFS will be painful.