Connection NFS Xiaomi Poco X3: from setting up the router to mounting the folder

Xiaomi Poco X3 β€” It's a popular smartphone with a lot of hardware, but a lot of internal memory, if you're storing movies, games or backups. NAS-server or computer with Linux, connection by protocol NFS (Network File System is the best solution for accessing files without undue delay. SMB or FTP, NFS Provides faster data transfer speeds on the local network, especially when working with large files.

However, in standard firmware MIUI No built-in support NFS-This means that mounting network folders requires using third-party applications or rooting the device. In this article, we will discuss three working methods: through the application. NFS Manager, using Termux and through manual editing of system files (for advanced users). NFS-server on a router or PC to Poco X3 I could connect to it without any errors.

Before you start, make sure your router supports NFS (Most of the models based on OpenWRT, DD-WRT or firmware ASUS/Netgear β€” If you are using a Linux computer, check if you have an nfs-kernel-server installed. Windows will require additional software, such as haneWIN. NFS Server.

1. Equipment and network requirements

To successfully connect NFS Xiaomi Poco X3, There are several prerequisites to be met, first of all, your device and NFS-The server must be on the same local network. VPN Remote access (e.g., via the Internet) is possible, but requires additional port configuration and security, which is beyond the scope of this article.

Second, check the version of the protocol. NFS, which your server supports. X3 Android-based 10/11 It works best with NFS v3 or NFS v4. Older versions (v2) If you are setting up the server yourself, we recommend using it. v4 β€” It supports encryption and is more secure.

  • πŸ“‘ Router with support NFS (PC/NAS tuned NFS-The popular models: ASUS RT-AX88U, Netgear Nighthawk, Keenetic (with alternative firmware).
  • πŸ“± Xiaomi Poco X3 on MIUI 12+ (Or custom firmware like Pixel Experience).
  • πŸ”Œ 5 GHz Wi-Fi connection (or Ethernet connection via Wi-Fi) USB-OTG adapter).
  • πŸ” Superuser rights (root) – mandatory for manually mounted methods.

⚠️ Note: If your router does not support NFS out of the box, don't try to flash it with an alternative firmware without experience. Wrong firmware can turn a router into a brick. For beginners, it's easier to set up NFS-server on a Linux computer or use a ready-made solution such as Synology NAS.

Also note that NFS If you have untrusted devices on your network, we recommend using them. NFS over TLS or tune in VPN-It's not critical at home, but it can be a vulnerability in the office network.

2.Tune in. NFS-router-server

Before you connect from a smartphone, you need to configure yourself. NFS-So let's look at two options: setup on a router with OpenWRT firmware and on a computer with control. Ubuntu/Debian.

Adjustment NFS on the router (OpenWRT)

If your router is running on OpenWRT, follow the following steps:

  1. Connect to the router on SSH (For example, through PuTTY or Termux).
  2. Install the packages for NFS: opkg update opkg install nfs-kernel-server
  3. Edit the export file /etc/exports, line: /path/to/your/folder *(rw,sync,no_subtree_check,no_root_squash) Here. /path/to/your/folder β€” The path to the folder you want to share.
  4. Restart the server: /etc/init.d/rpcbind restart /etc/init.d/nfsd restart

2.2. Setting up NFS Linux (Ubuntu/Debian)

For a computer running Linux:

  1. Install nfs-kernel-server: sudo apt update sudo apt install nfs-kernel-server
  2. Edit it. /etc/exports: /home/username/shared 192.168.1.0/24(rw,sync,no_subtree_check) Replace. 192.168.1.0/24 subnetwork your local network.
  3. Apply the changes: sudo exportfs -a sudo systemctl restart nfs-kernel-server

After you set up the server, check that the folder is available for mounting. From a Linux computer, you can run a test connection:

sudo mount -t nfs 192.168.1.1:/path/to/folder /mnt/test

If the command is executed without errors, the server is ready to connect from a smartphone.

πŸ“Š What kind of guy. NFS-server you're using?
Router with OpenWRT
Computer with Linux
NAS (Synology, QNAP)
Another option

3. Connection NFS via NFS Manager

The easiest way to connect NFS Poco X3 without root rights - use the application NFS Manager from developer Spritz. It is available on Google Play, but requires Android 5.0 and higher.The application is paid (about 200 rubles), but there is a free trial with restrictions.

Connection algorithm:

  1. Download and install NFS Manager from Google Play.
  2. Launch the app and press Add NFS Share.
  3. Enter server data: πŸ“Œ Server IP β€” IP-address NFS-servers (e.g., servers, 192.168.1.1). πŸ“ Export Path – Path to a shared folder (for example, /mnt/usb/shared). πŸ”‘ Mount Point – a local folder on a smartphone, where the network will be mounted (for example, /sdcard/NFS). πŸ”„ NFS Version - choose v3 or v4 (server-dependent).

Mount

If you've done this successfully, you'll see the folder in Mount Point, and you can now work with the files as if they're local. NFS Manager does not support automatic connection when restarting the device – you will have to mount manually after each switch on the smartphone.

⚠️ Attention: When in use NFS Manager read/write speeds may be lower than those for manual mounting via Termux or root rights, due to Android’s limitations on working with networked file systems in user space.

Install the application NFS Manager

Find out. IP-address NFS-server

Check the path to the shared folder

Create a folder for mounting on a smartphone

Select the protocol version NFS-->

4. Connection NFS via Termux (without root)

If you don't want to pay for it NFS Manager, you can use the free Termux terminal. This method does not require root rights, but you will need to install additional packages and basic knowledge of working with the command line.

Instructions:

  1. Install Termux from Google Play or F-Droid (the latest version is recommended).
  2. Update packages and install nfs-common: pkg update && pkg upgrade pkg install nfs-utils
  3. Create a folder for mounting: mkdir ~/storage/shared/NFS (replace the path with the desired one).
  4. Perform mounting: mount -t nfs 192.168.1.1:/path/to/share ~/storage/shared/NFS -o nolock,soft

The nolock flag disables file locking (good for Android), and soft allows you to break the connection if you make errors without the system freezing. If the mounting is successful, the folder will be available in the Termux file manager.

To unmount the folder, use:

umount ~/storage/shared/NFS

Important: mounting through Termux is temporary and will reset after rebooting the smartphone or closing the application.

πŸ’‘

If you see a "Permission denied" error when mounting, check the server's access rights. On Linux, run the chmod command. -R 777 /path/to/share (Not recommended for public networks!).

5. Manual connection NFS root-righted

If your Poco X3 It has root access, you can install it. NFS-This will give maximum speed and stability, but requires caution - wrong actions can lead to a crash of Android.

Steps for manual mounting:

  1. Install any file manager with root support (such as Root Explorer or FX File Explorer).
  2. Create a folder for mounting (for example, /mnt/NFS): su mkdir /mnt/NFS
  3. Edit the file. /etc/fstab (Or create it if it is not available by adding a line: 192.168.1.1:/path/to/share /mnt/NFS nfs rw,soft,nolock 0 0
  4. Apply the changes: mount -a

Now the folder will be mounted automatically when you boot the system. To check if the connection is successful, do:

mount | grep nfs

If you have a line with yours in the end. NFS-server – everything is set up correctly.

⚠️ Attention: Editing /etc/fstab Android can make it impossible to boot the system if you make a syntax error. Always back up the file before making changes! Also avoid mounting in system folders like this. /system or /data β€” It could disrupt the job. MIUI.

How to roll back changes to fstab if the smartphone does not boot?
If, after editing, /etc/fstab Poco X3 It's not loading, go to the TWRP Recovery, connect to the device via ADB and fix the file: Enable ADB into TWRP (Advanced β†’ ADB Sideload. Connect to the PC and do: adb pull /etc/fstab adb shell mount /system adb push fstab /etc/ adb shell umount /system Reset the device.

6. Solving common errors

When connected NFS Poco X3 Users often encounter typical problems, and the following are the most common errors and ways to fix them.

Mistake.Possible causeDecision
mount: Operation not permittedNot enough rights or SELinux blocks mounting.Try disabling SELinux (setenforce 0) or using root.
RPC: Program not registeredNFS-server not running or incorrect version of the protocol.Restart the server (service nfs-kernel-server restart) and check the version.
No route to hostThere is no network connection or the firewall blocks the ports.Check the ping to the server and turn off the firewall (ufw disable on Linux).
Permission deniedIncorrect access rights on the server.Change the rights to the folder (chmod) 777 /path/to/share) or tune in /etc/exports.
The folder is mounted, but the files are not displayedMount Point or File Manager Cache.Check the mount path and restart the file manager.

If none of these methods worked, try:

  • πŸ”„ Reboot the smartphone and NFS-server.
  • πŸ“Ά Connect to the network via cable (via USB-OTG adapter).
  • πŸ› οΈ Update the router firmware or server software.

πŸ’‘

If you use Wi-Fi, make sure that the smartphone and the server are on the same subnet. IP server 192.168.1.100, and the smartphone receives the address 192.168.0.5, the connection will be impossible.

7. Speed and safety optimization

NFS It works faster. SMB or FTP, But for maximum performance, we recommend setting up several parameters.

Increase in transmission speed

Add the following options when mounting:

  • rsize=8192,wsize=8192 β€” Increases the size of the read/write block.
  • timeo=14,retrans=2 β€” Optimize timeouts for unstable networks.
  • TCP - Forced use of TCP instead UDP (stably).

Team example:

mount -t nfs -o rsize=8192,wsize=8192,tcp,soft 192.168.1.1:/share /mnt/NFS

7.2 Enhancing security

NFS It's the default, it's the clear transmission, to protect traffic:

  • πŸ”’ Use it. NFS over TLS (requires server configuration).
  • πŸ›‘οΈ Restrict access to IP into /etc/exports (for example, 192.168.1.100(rw)).
  • πŸ”‘ Configure key authentication (for Linux servers).

We also recommend that exports be switched off. NFS on the internet if you are not using VPN. To do this, on a router or server, link firewall to block ports 2049 (NFS) 111 (portmapper) for external connections.

8. Alternatives NFS Xiaomi Poco X3

If NFS Not suitable for some reason, consider alternative protocols for accessing network folders:

  • πŸ“‚ SMB (Samba - supported MIUI Out of the box (use the File Manager app) β†’ Network β†’ Add storage. Speed is lower than that. NFS, but easier to set up.
  • 🌐 WebDAV works through HTTP/HTTPS, It is supported by many file managers (e.g. Solid Explorer). NFS, But more reliable in unstable networks.
  • ☁️ SFTP/SSH β€” secure protocol, but requires server installation (e.g. OpenSSH on Linux) FX File Explorer.
  • πŸ”„ Syncthing is a decentralized file synchronization system without a server, useful for backups, but not for direct access to files.

Each protocol has its pros and cons, SMB It's easier to set up, but it can slow down when you're dealing with a lot of small files. WebDAV is universal, but it requires more server resources:

The challengeBest protocol.
Streaming video 4KNFS or SMB (customized rsize/wsize)
Backupsyncthing or SFTP
Access to files from anywhereWebDAV + VPN
Database management (e.g., Kodi)NFS (minimum delays)

FAQ: Frequent questions on NFS Poco X3

Can I connect NFS without root rights?
Yes, with the app. NFS Manager or Termux. However, without root, mounting will be temporary and may be slower.
Why After Rebooting Your Smartphone NFS-pairs fall off?
Android doesn't save custom mounting after you reboot. To fix this, you need to: Use an init.d script (requires root). Set up automatic mounting via Tasker or MacroDroid. Add a line to the /etc/fstab (rooted-only).
What's the maximum speed? NFS Poco X3?
Speed depends on the network and the server. Under ideal conditions (Wi-Fi 5 GHz, NFS v4, rsize=32768) can reach 50–80 MB/s. In practice, it is usually 20–40 MB/s due to the limitations of Android and Wi-Fi drivers.
Is it safe to use NFS on a public network?
No. NFS It doesn't encrypt traffic, so in open networks (such as a cafe), your data can be intercepted. NFS over VPN or switch to SFTP/WebDAV s TLS.
Can I connect? NFS to the internal memory of the smartphone?
Technically, yes, but it's highly discouraged. /data or /system may cause disruption MIUI. Better use the folder on SD-a card or internal storage (e.g., in a card or internal storage, /sdcard/NFS).