NFS Connection to Xiaomi Redmi 10: From Server Configuration to Network Disk mounting

Network File System (NFS) allows you to turn your Xiaomi Redmi 10 into a full-fledged client for working with remote files β€” whether it’s a home NAS, server or even another smartphone. Unlike SMB or FTP, NFS provides faster data transfer speeds and minimal latency, which is critical for streaming 4K video or working with large databases. However, standard MIUI tools do not support NFS out of the box β€” you will need manual configuration.

In this article, we will discuss three working ways to connect NFS to Redmi 10 (relevant to 2021/2022 models with MIUI 12.5–14): through specialized applications, the Termux terminal, and alternative firmware. We will focus on common errors like β€œmount: permission denied” or β€œno such device” that often occur when working with networked file systems on Android. If you plan to use NFS for backup, media server or development, here you will find proven solutions with Xiaomi limitations.

What is NFS and why you need it on your smartphone

NFS (Network File System) was developed by Sun Microsystems in 1984 to unify file access on local area networks. In the context of Xiaomi Redmi 10, it allows:

  • πŸ“ Mount network folders as local disks (for example, to work with files on the NAS synchronously, without copying).
  • 🎬 Streaming video without buffering (relevant for movies in the 1080p/4K from the home server).
  • πŸ”„ Automate backup of photos and documents to remote storage.
  • πŸ’» Develop applications on a smartphone, connecting to the working directory on a PC.

Compared to alternatives (SMB, WebDAV, FTP), NFS benefits in two key ways:

ProtocolTransmission speedDelay (ms)Android supportEncryption
NFS v3/v4⭐⭐⭐⭐⭐ (up to 1 Gbps)1–5Requires manual adjustmentOnly NFSv4 with krb5
SMB (Samba)⭐⭐⭐⭐ (up to 500 Mbps)10–30Built-in support in MIUIYes (SMB3)
FTP/FTPS⭐⭐⭐ (up to 300 Mbps)50–100Any file managersYes (FTPS)

⚠️ Attention: NFS It does not encrypt traffic by default (unlike the default traffic code). SMB3 or SFTP). If you connect to the server via a public network (for example, 4G), use VPN or tunnel through SSH (sshfs: On the local network, the risks are minimal.

πŸ“Š What do you plan to use for? NFS Redmi 10?
Media server (movies, music)
Backup
Development/programming
Access to files with NAS
Other

Preparation: What you will need to connect NFS

Before setting up, make sure you have:

  1. NFS-server (can be configured to a PC with a Linux/Windows, router with OpenWRT, or NAS sort of Synology/QNAP).
  2. Local area network (Wi-Fi or Ethernet via USB-C adapter β†’ RJ45). Redmi 10 does not support NFS over mobile Internet (3G/4G/5G) without additional settings.
  3. Root rights (optional, but recommended for stable operation) without them, mounting is possible only through Termux with restrictions.

πŸ”Ή Minimum requirements for the server:

  • πŸ–₯️ OS: Linux (Ubuntu, Debian), FreeNAS, or Windows 10/11 s NFS Server.
  • πŸ“‘ Port port: 2049/TCP (default NFS).
  • πŸ”’ Exportable folder: must be read/writeable (Rw rights,no_root_squash).

πŸ› οΈ Android software:

  • πŸ“± Termux (for manual mounting).
  • πŸ“ Solid Explorer or Solid Explorer FX File Explorer (with support for network protocols).
  • πŸ”§ Root Browser (if there is root).

πŸ’‘

If you are using Windows as a NFS-server, enable the "Services" component NFS" via the control panel β†’ Programmes and components β†’ Enabling or disabling Windows components. Linux just install nfs-kernel-server package (Debian/Ubuntu).

Method 1: Connecting NFS over Termux (without root)

This is a method that works for people without root rights, and we're going to use Termux, a terminal emulator for Android that supports Linux packages.

Step 1 Install Termux and the required packages

  1. Download Termux (recommended version with F-Droid, not Google Play).
  2. Update repositories and install nfs-common: pkg update && pkg upgrade pkg install nfs-utils

Step 2: Creating a mounting point

In Termux, do:

mkdir ~/nfs_mount


mount -t nfs -o port=2049,nolock,soft 192.168.1.100:/path/to/share ~/nfs_mount

Where:

  • 192.168.1.100 β€” IP-address NFS-server.
  • /path/to/share is the exported folder (as indicated in /etc/exports on the server).

Step 3: Checking the connection

Do this:

ls ~/nfs_mount

If the command outputs the contents of the network folder, the connection is successful.

umount ~/nfs_mount

Ping to the server is passed (ping 192.168.1.100)

Port 2049 open (nc -zv 192.168.1.100 2049)

Folder exported with rw rights

Termux has access to a storage (termux-setup-storage)

-->

⚠️ Warning: Termux mounting is temporary - after restarting the smartphone or closing the application, the connection will break. ~/.termux/boot/ (See the section on autoloading).

Method 2: Permanently mounting NFS with root rights

If your Redmi 10 has root (like Magisk), you can set up automatic NFS mounting when you boot up, which is more reliable and works at the Android kernel level.

Step 1: Verify NFS Support in the Core

Open Termux and do:

su


cat /proc/filesystems | grep nfs

If the output has nfs or nfs4, the kernel supports the protocol; if it doesn't, you'll need a custom kernel (e.g., KernelSU).

Step 2.Editing /etc/fstab

Open /etc/fstab in any root-access text editor (such as Root Explorer) and add a line:

192.168.1.100:/path/to/share /mnt/nfs nfs rw,soft,intr,noatime,nodiratime 0 0

Create a folder for mounting:

mkdir /mnt/nfs


chmod 777 /mnt/nfs

Step 3: Installation and inspection

Do this:

mount -a


df -h | grep nfs

If df shows you a connected file system, the setup is successful. To make the mounting work after the reboot, make sure that Magisk has Mount namespace mode enabled.

What if you fail to install a β€œno such device” error?
1. Check what's on the server in /etc/exports The smartphone network is indicated (for example, 192.168.1.0/24(rw,sync,no_subtree_check)). 2. Reboot the service NFS on the server: sudo systemctl restart nfs-server. 3. Make sure the firewall does not block the port. 2049 (server-and-router). 4. If you are using Windows NFS, try to turn off no_root_squash export-setting.

Method 3: Using a file manager with NFS support

If you don't want to work with a terminal, you can connect to NFS through a GUI, and file managers like Solid Explorer or FX File Explorer are good for that.

Instructions for Solid Explorer:

  1. Open the application and go to the Network β†’ Add storage.
  2. Choose. NFS enter: πŸ“Œ Server address: 192.168.1.100 πŸ“‚ The way to the folder: /path/to/share πŸ‘€ Username: leave blank (or indicate if the server requires authentication).

Connect.

Limitations of the method:

  • ❌ There is no automatic mounting when loading.
  • ❌ Speed is lower than when mounted via Termux or fstab.
  • ❌ Some files may not open due to Android restrictions on access to network resources.

πŸ’‘ If you need to work with files regularly NFS, Combine this method with Termux: connect through the manager to view, and use commands for copy/move operations cp/mv terminally.

Solving Common Errors When Connecting NFS

Even with the right setup, you can encounter errors, and let's look at the most common ones and how to fix them.

Mistake.Reason.Decision
mount: permission deniedThe server does not allow connection from your IP or incorrect export rights.Check /etc/exports on the server and restart NFS: sudo exportfs -a.
no route to hostThe smartphone and server are in different subnets or the firewall blocks traffic.Check the ping to the server and the router settings (open port 2049).
Stale file handleThe server has rebooted and the client is trying to use outdated file descriptors.Unmount and reconnect: umount /mnt/nfs; mount /mnt/nfs.
Operation not permittedThe server has an option on. root_squash, And you're connecting without root.Change the export on the server: /path/to/share 192.168.1.0/24(rw,no_root_squash,sync).

⚠️ Note: If you are using Windows NFS Server, by default, requires authentication through ANONYMOUS Or a domain account. To make access easier, set up the Control Panel. β†’ Services NFS β†’ Server for NFS Anonymous access and specify the user Everyone with Read/Write rights.

πŸ’‘

The most common error – permission denied – is solved by editing. /etc/exports on the server, make sure yours IP or subnets are specified with rw,sync options,no_subtree_check.

Automatic mounting of NFS when loading

So NFS-Connection restored after the Redmi 10 reboot, you can use it:

  1. Script in Termux (without root): Create a file ~/nfs_mount.sh: #!/bin/bash mount -t nfs -o port=2049,nolock,soft 192.168.1.100:/path/to/share ~/nfs_mount Make it executable: chmod +x ~/nfs_mount.sh Add to autoboot: mkdir -p ~/.termux/boot ln -s ~/nfs_mount.sh ~/.termux/boot/
  2. Tasker + Termux (without root): Install Tasker. Create a task with the action Run the shell and specify the command: am start -a com.termux.RUN_COMMAND -e com.termux.RUN_COMMAND_PATH"~/nfs_mount.sh" Set up a trigger for the event Download the device.

Init.d or Magisk (with root):

  • Create a script in /data/local/userinit.d/ (Magisk userinit.d is required).
  • Or add a string to /etc/fstab (see Method 2).

πŸ”Ή Important: When you install automatically, add soft (breaks connection when errors occur) and intr (allows you to interrupt operations) to prevent the system from freezing if you have network problems:

192.168.1.100:/share /mnt/nfs nfs rw,soft,intr,noatime 0 0

FAQ: Frequent questions about NFS on Xiaomi Redmi 10

Can I connect NFS without root and Termux?
Yes, but with serious limitations. Some file managers (like FX File Explorer) support NFS directly, but: Speed will be lower due to lack of low-level access. Automatic mounting is impossible when downloading. Some operations (like changing file rights) may not work. At least Termux is recommended for full operation.
Why is NFS slower than SMB?
The reasons may be: Server settings: NFS v3 is faster than v4 but less secure. Try explicitly specifying the version when mounting: -o vers=3. Network settings: Turn off Wi-Fi Power Save Mode in Redmi 10 settings (Settings β†’ Wi-Fi β†’ Additional). MTU: If you have routers on the network with non-standard MTU, reduce it to 1472: mount -t nfs -o mtu=1472,...
How to connect to NFS via mobile Internet (4G/5G)
By default, Android blocks network file systems from mounting via mobile networks: VPN: Set up WireGuard or OpenVPN on the server and connect via a local network VPN. SSH-Tunnel: Use sshfs via Termux: sshfs user@server:/path ~/nfs_mount -o ssh_command="ssh -p 22" Port rollover: On the router, throw the port 2049 locally IP server (unsafe!). ⚠️ Warning: Transmission of unencrypted NFS-traffic through the mobile network puts your data at risk of interception. VPN or SSH.
Can I use NFS for streaming video (Kodi, VLC)?
Yes, but with nuances: Kodi: Supports NFS Directly. Specify the path in the format nfs://192.168.1.100/path/to/share. VLC: We need to mount. NFS via Termux or fstab, then open files from the local folder (/mnt/nfs). MX Player: Does not work with network protocols - only local files. 4K Video: Use NFS v3 (Turn off Wi-Fi Power Save on your smartphone. On the server, increase the buffer size: rwsize=8192,wsize=8192.
How to break the "hungry" NFS-connection?
If the server is unavailable and the umount command is hanging, do: Forced Unmounting: umount -f /mnt/nfs If it doesn't work, kill the rpcbind: pkill rpcbind process. In extreme cases, restart your smartphone. To avoid such situations, always mount with soft and intr options.