NFS on Xiaomi Poco X3 Pro: full instructions for setting up network storage

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:

ParameterRecommendationExplanation
NFS versionv3 or v4v4 Supports encryption, but may require additional core modules on Android
Port port2049 (default)Make sure the port is open in the server and router firewall
Exportable folder/mnt/nfs_shareThe folder must have 777 rights or belong to nobody:nogroup
Max. Number of connections8โ€“16For 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:

  1. Install Termux from F-Droid (the Play Market version is outdated).
  2. Execute the command: pkg install nfs-utils lsmod | grep nfs If the output is empty, the kernel module is missing.
  3. 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.

๐Ÿ“Š What type of server NFS You plan to use it?
Local Linux PC
NAS (Synology/QNAP)
Cloudy VPS
I haven't decided yet.

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:

  1. Install in Termux packages: pkg update & & pkg upgrade pkg install nfs-utils openssh
  2. Create a folder for mounting: mkdir ~/nfs_mount
  3. 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 nfs

If 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?
Use the cp command with a full path, such as: cp ~/nfs_mount/film.mp4 /sdcard/Download/ Or install Termux:API and use termux-share to transfer files to other applications.

Method 2: Permanent root access mounting

For a stable job. NFS Poco X3 Pro will be required:

  1. Root rights (e.g., via Magisk)
  2. The nfs.ko kernel module for your version of the kernel.
  3. Mount Manager App or Manual Editing /etc/fstab.

Step-by-step:

  1. 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 0

To 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 0

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

  1. Install. NFS Manager and provide root access.
  2. 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 permittedSELinux blocks mountingTurn off SELinux or add a rule audit2allow
Permission deniedIncorrect rights on the serverGive me the chmod. 777 Or set up exports with no_root_squash
Server not respondingFirewall blocks port 2049Open the port on the server and router, check rpcinfo -p
Protocol not supportedThere is no module nfs.koDownload 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.

FAQ: Frequent questions about NFS on Poco X3 Pro

Can I connect? NFS rootless?
Yes, but with serious limitations: mounting will be temporary (until Termux closes), speed is lower due to userspace, and not all options are available. NFS Supported. Root is mandatory for permanent connection.
Why after the reboot NFS not automatically mounted?
The reasons may be different: /etc/fstab Incorrect path or options are indicated. nfs.ko module does not load at launch (add it to the following page): /etc/init.d/). SELinux returns to enforcing (you need to turn off constantly through modification) boot.img). Check the logs: logcat | grep mount.
How to transfer files between NFS and internal memory?
Use Termux with the cp command or FX File Explorer with root support. Example: cp /data/nfs_share/video.mp4 /sdcard/Download/ For mass copying, rsync is more convenient (install in Termux: pkg install rsync).
Can I use it? NFS video-streaming?
Yes, but with reservations: ๐ŸŽž๏ธ For Full. HD (1080p) Gigabit is enough. LAN. ๐ŸŽฅ For 4K need rsize=32768,wsize=32768 and wired connection. ๐Ÿ”Š Sound may be lagging due to buffering - try network-enabled players (VLC, MX Player.Test with small files before watching movies.
Is it safe to connect? NFS via mobile Internet?
No. NFS It does not encrypt traffic, and all data (including passwords) is transmitted in plain form. VPN (WireGuard or OpenVPN to your home network. SSH-encryption-tunnel NFS-- Replace traffic. NFS WebDAV TLS or SFTP. Risk of data interception when connecting via 4G/5G high-pitched.