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:
- Connect to the router on SSH (For example, through PuTTY or Termux).
- Install the packages for NFS: opkg update opkg install nfs-kernel-server
- 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.
- 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:
- Install nfs-kernel-server: sudo apt update sudo apt install nfs-kernel-server
- 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.
- 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/testIf the command is executed without errors, the server is ready to connect from a smartphone.
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:
- Download and install NFS Manager from Google Play.
- Launch the app and press Add NFS Share.
- 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:
- Install Termux from Google Play or F-Droid (the latest version is recommended).
- Update packages and install nfs-common: pkg update && pkg upgrade pkg install nfs-utils
- Create a folder for mounting: mkdir ~/storage/shared/NFS (replace the path with the desired one).
- 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/NFSImportant: 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:
- Install any file manager with root support (such as Root Explorer or FX File Explorer).
- Create a folder for mounting (for example, /mnt/NFS): su mkdir /mnt/NFS
- 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
- 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 nfsIf 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?
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 cause | Decision |
|---|---|---|
| mount: Operation not permitted | Not enough rights or SELinux blocks mounting. | Try disabling SELinux (setenforce 0) or using root. |
| RPC: Program not registered | NFS-server not running or incorrect version of the protocol. | Restart the server (service nfs-kernel-server restart) and check the version. |
| No route to host | There 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 denied | Incorrect 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 displayed | Mount 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/NFS7.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 challenge | Best protocol. |
|---|---|
| Streaming video 4K | NFS or SMB (customized rsize/wsize) |
| Backup | syncthing or SFTP |
| Access to files from anywhere | WebDAV + VPN |
| Database management (e.g., Kodi) | NFS (minimum delays) |