NFS on Xiaomi Mi 9T: how to configure network access to files without root

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.

πŸ“Š What type of device you plan to use as NFS-server?
Desktop PC with Windows
Linux server or Raspberry Pi
NAS (Synology/QNAP)
Mac

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:

  1. Download WinNFSd and unpack the archive in any folder.
  2. 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).
  3. 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-server

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

  1. Open the application and provide all the permissions you request (file, network, etc.).
  2. Click + in the lower right corner and select Add NFS Share.
  3. 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,nodiratime

Save

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 deniedIncorrect access rights on the server or in exportsAdd the parameter. no_root_squash in exports and restart NFS-server
Connection timed outBlock ports with a firewall or routerOpen 2049/tcp and 2049/udp ports on server and router
Stale file handleThe 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 rightsCheck 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/NFS

What if NFS shuts down after sleeping?
This bug is related to MIUI energy saving.To fix: 1. Add the NFS Manager app to battery optimization exceptions (Settings β†’ Battery β†’ Battery Optimization). 2. Turn off the Adaptive Battery function in power settings. 3. In Wi-Fi settings, turn off the option to turn off Wi-Fi in sleep mode.

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:

ProtocolWhen to usePlusesCons
SMB (Samba)Sharing files on a local network with Windows PCSimple setup, encryptionSlower NFS, high battery consumption
WebDAVAccess to files via the InternetIt works through HTTPS, cross-platformLow speed, complex setup
FTP/FTPSBackup or transfer of large filesWidely supported, simple protocolNo file locks, unsafe without FTPS
SSHFSSecure access to files on a Linux serverEncryption, low overheadsDemands. 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:

  1. 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)
  2. Use VPN: Set up WireGuard or OpenVPN on the server and connect to the NFS only through the tunnel.
  3. 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.
  4. 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.

FAQ: Frequent questions about NFS on Xiaomi Mi 9T

Can I connect NFS without apps, through standard MIUI settings?
No, MIUI doesn't support NFS natively. The only way is to use third-party applications like NFS Manager or Total Commander with an NFS plugin. The alternative is to get root rights and mount NFS via Termux, but that voids the warranty.
Why is the video NFS-folders are slowed when playing on Mi 9T?
This is due to network buffering. Solutions: Increase buffer size in mount options: add rsize=65536,wsize=65536. Use network cache-enabled player applications (e.g. VLC or MX Player). Move the video to internal memory for smooth playback.
NFS works, but I can't create/delete files. What's the problem?
The server must have the right to the wrong permissions. Check: The exports file must have rw (read-write) the folder on the server must have 777 (or at least 775) rights. On Linux, run chown nobody:nogroup /path/to/folder.
How to automatically mount NFS when booting a smartphone?
In the free version of NFS Manager, autoconnection is not available. Alternatives: Buy the Pro version of the app (costs ~$3). Use Tasker + AutoInput plugin to automatically press the Mount button after connecting to Wi-Fi. Set up a cron task on the server that will ping the smartphone and initialize the connection.
Will it be? NFS work if the smartphone is connected to the network through USB-tetring?
Technically yes, but with reservations: Speed will be limited by bandwidth USB (maximum ~10 MB/s for Mi 9T). On a Windows PC, you will need to enable Shared Internet Connection (ICS) for USB-On the net. Linux/NAS You need to add it manually. USB-subnet 192.168.42.0/24) export.