Why NFS on a Smartphone Is Convenient, But Hard
The Network File System (NFS) allows your Xiaomi Mi 9T to access remote folders as if they were on your device. Itβs the perfect solution for large media libraries, backups or project files that you donβt want to store in your smartphoneβs limited internal memory. But setting up NFS on Android is not an easy task: standard MIUI tools donβt support out-of-the-box protocol, and most guides on the network are either outdated or require root rights.
In this article, we will discuss the only working way to connect. NFS Xiaomi Mi 9T No rooting rights, using a combination of third-party applications and fine-tuning network settings. MIUI 14 and newer, but requires prior preparation of the PC or NAS-If you've never set up a network protocol, don't worry, we're going to break it down into simple steps with visual examples and warnings of common errors.
Before you start, check:
- π± Your Mi. 9T Connected to the same Wi-Fi network as the future NFS-server (the router must support) 802.11ac steady-work).
- π₯οΈ On PC./NAS One of the supported operating systems is installed: Windows 10/11 (with additional software, Linux (any distribution), or Synology/QNAP (switched-on NFS-server).
- β‘ On the smartphone free at least 500 MB of RAM β applications to work with NFS Consume resources in the background.
Step 1: Preparation NFS-servers (for example, Windows and Linux)
Without a properly configured server, it is impossible to connect NFS to the Xiaomi Mi 9T. Consider two of the most common scenarios: configuring on Windows (using third-party software) and on Linux (built-in tools).
Option A: NFS-Windows-server 10/11
Windows does not support default NFS-server, but this is fixed by the hanewin installation NFS Server (free version with restrictions) or WinNFSd (open source software). We recommend the latter option as a lighter one:
- Download WinNFSd and unpack the archive in any folder.
- Open Command Prompt on behalf of the administrator and execute: winnfsd.exe -id 0 192.168.1.0/24 -log.\nfs.log Here 192.168.1.0/24 is your subnet (replace with current, for example, 192.168.0.0/24).
- Open the folder you want to share and add a line to the export file: C:\SharedFolder 192.168.1.0/24(rw,no_root_squash,async)
Option B: NFS-Linux-server (Ubuntu/Debian)
On Linux, it's simpler -- NFS is a standard package set. Set it up by command:
sudo apt update && sudo apt install nfs-kernel-serverThen edit the /etc/exports file:
/mnt/nfs_share 192.168.1.0/24(rw,sync,no_subtree_check,no_root_squash)And restart the service:
sudo exportfs -a && sudo systemctl restart nfs-kernel-serverβ οΈ Note: If you use a firewall (like ufw on Linux), be sure to open ports. 2049/tcp and 2049/udp:
sudo ufw allow from 192.168.1.0/24 to any port 2049 proto tcp
sudo ufw allow from 192.168.1.0/24 to any port 2049 proto udpπ‘
Before setting up the server, check that sleep mode is turned off on it - otherwise the connection will break when it is down.
Step 2: Set up NFS client on Xiaomi Mi 9T
Now, to the smartphone, because MIUI doesn't support NFS natively, we're going to need an NFS Manager app (from the Cortex developer). Download it from Google Play (the free version with ads).
After installation:
- Open the application and provide all the permissions you request (file, network, etc.).
- Click + in the lower right corner and select Add NFS Share.
- Fill in the fields: π Server IP: IP-address NFS-servers (e.g., servers, 192.168.1.100). π Export Path: The path to the shared folder (for example, /mnt/nfs_share for Linux or C:\SharedFolder Windows). π Mount Point: local folder on the smartphone, where the network will be mounted (for example, /storage/emulated/0/NFS).
Options
rw,soft,udp,nolock,noatime,nodiratimeSave
Mount
If you're successful, you'll see a green tick in the main window next to your connection, and you can open any file manager (like Mi File Manager) and go to /storage/emulated/0/NFS, where files from the server will be displayed.
Make sure that IP-server address entered without typos|Check that the folder on the server is shared with the rights to write (rw)|Turn it off. VPN Proxies on your smartphone β they can block local traffic|Restart the router if the connection is not established
-->
Solving Common Errors When Connecting NFS
Even if you follow the instructions accurately, the NFS may not work, and here are the most common problems and solutions.
| Mistake. | Reason. | Decision |
|---|---|---|
| Mount failed: Permission denied | Incorrect access rights on the server or in exports | Add the parameter. no_root_squash in exports and restart NFS-server |
| Connection timed out | Block ports with a firewall or router | Open 2049/tcp and 2049/udp ports on server and router |
| Stale file handle | The server is restarted and the client is trying to use the old descriptors. | Open the folder in NFS Manager and remount it |
| The folder is empty, although the server has files. | Disparity of ways or rights | Check Export Path in connection settings and folder rights (chmod 777) |
β οΈ Note: If you are using the Mi 9T firmware MIUI Global, some versions have a bug with network folders mounting through /storage/emulated/0. In this case, try to specify an alternative path, for example:
/data/media/0/NFSWhat if NFS shuts down after sleeping?
Optimizing NFS performance on the Mi 9T
NFS is not mobile-friendly by default, so without fine-tuning, you may encounter lags when working with files. Here's how to improve speed:
- β‘ Use it. UDP instead TCP: In mounting options, replace tcp with udp β this will reduce the overhead cost of installing a connection.
- πΆ Fixed IP for smartphone: Set up static on the router IP for Mi 9T down MAC-address to avoid gaps when changing address.
- π Disable atime: Add noatime, nodiratime to mount options β this will reduce the number of records per disk.
- π οΈ Increase the buffer size: Add rsize for larger files=32768,wsize=32768 (values can be increased to 65,536 with stable connection).
To test your speed, use the LAN Speed Test app (available on Google Play). Normal scores for Mi 9T on 802.11ac:
- π₯ Reading: 30-50MB/s
- π€ Record: 10-20 MB / s (limited by the performance of flash memory of the smartphone)
π‘
NFS is not encrypted by default!If you have untrusted devices on your network, use a VPN (like WireGuard) to tunnel traffic.
NFS Alternatives: When to Choose a Different Protocol
NFS is not always the best solution, so let's look at the alternatives depending on the problem:
| Protocol | When to use | Pluses | Cons |
|---|---|---|---|
| SMB (Samba) | Sharing files on a local network with Windows PC | Simple setup, encryption | Slower NFS, high battery consumption |
| WebDAV | Access to files via the Internet | It works through HTTPS, cross-platform | Low speed, complex setup |
| FTP/FTPS | Backup or transfer of large files | Widely supported, simple protocol | No file locks, unsafe without FTPS |
| SSHFS | Secure access to files on a Linux server | Encryption, low overheads | Demands. SSH-access, slower NFS |
For the Xiaomi Mi 9T, we recommend:
- π NFS β Local access to media library or project files (maximum speed).
- π SSHFS β If you need security (for example, to work with documents).
- π WebDAV β for remote access via the Internet.
How to protect data when using NFS
NFS is not designed for untrusted networks, but if you connect to a server over the Internet or on a public Wi-Fi network, take action:
- Restrict access by IP: In the export file, only those IP-addresses that are allowed to connect: /mnt/nfs_share 192.168.1.100(rw) 192.168.1.101(ro)
- Use VPN: Set up WireGuard or OpenVPN on the server and connect to the NFS only through the tunnel.
- Disable unused versions NFS: In the file /etc/default/nfs-kernel-server (Linux) add: RPCNFSDOPTS="--no-nfs-version 2,3" This will make customers use only NFS v4, safer.
- Set up kerberos: For enterprise networks, set up authentication via Kerberos (requires additional server configuration).
β οΈ Warning: Never open it. NFS-Port (2049) directly to the Internet, even with authorization IP It is not safe, and the attackers can replace it. IP-Always use the addresses. VPN.
π‘
For additional protection, turn on the firewall NFS-server and allow connection only from MAC-address of your devices.