How to set up NFS on Xiaomi Redmi 8 Pro: from server to client

Why is Redmi 8 Pro NFS Network Disk?

Protocol NFS (Network File System allows you to turn your Xiaomi Redmi 8 Pro into a full-fledged client for working with network folders - whether it is a home one. NAS, Linux-based server or even other Android-enabled device NFS-The server, unlike the server. SMB or FTP, NFS Provides higher data transfer speed when working in a local network, which is critical for streaming video 4K, Backup or synchronization of large files.

However, in standard firmware MIUI For the Redmi 8 Pro, model M1908C3JG) support NFS There's no "out of the box." That means that you can connect to the box. NFS-You will need to manually configure via Termux and ADB, In this article, we will discuss both options, from preparing the server to mounting a network folder on a smartphone, and also consider typical errors and how to fix them.

⚠️ Important: tuning NFS If your Redmi 8 Pro runs on standard firmware without superuser rights, some of the instructions will not be available, in which case you will go straight to the section about client applications.

Equipment and software requirements

Before you start setting up, make sure your system meets the minimum requirements:

  • πŸ“± Smartphone: Xiaomi Redmi 8 Pro (M1908C3JG) base MIUI 12+ (or custom firmware with support NFS).
  • πŸ–₯️ Server: Device with running NFS-server (Linux, NAS Synology/QNAP, Or even another Android app with an app. NFS Server).
  • πŸ”Œ Network: Both devices must be on the same local area network (Wi-Fi or Ethernet via the network). USB-adapter).
  • πŸ”§ Rights: root or unlocked bootloader (for manual settings).

If you are planning to use the Redmi 8 Pro as a NFS-The server (not the client) will need to be:

  • πŸ“¦ Installed annex NFS Server (e.g. Ice Cold Apps).
  • πŸ”„ Stable power (charge at least 50% or connect to the network).
  • πŸ“‘ Power saving mode disabled for server application.
πŸ“Š How you plan to use it NFS Redmi 8 Pro?
As a client to connect to the NAS
How a server for distributing files
For backups
For streaming video
Other

Option 1: Connection to NFS-server without root (through applications)

If you don’t have superuser rights, the easiest way to mount NFS-The best options for the Redmi 8 Pro are third-party file managers with protocol support:

  • πŸ“ FX File Explorer (plug-in) NFS Add-on).
  • πŸ”— Solid Explorer (built-in support) NFS pro-version).
  • πŸ–₯️ Total Commander + plugin NFS Plugin.

Let’s look at the example of Solid Explorer:

  1. Install the app from Google Play and activate the pro version (or use the trial period).
  2. Open the side menu and select Network β†’ Add Storage β†’ NFS.
  3. Enter the server data: Server: 192.168.1.100 (IP yours NFS-server) port: 2049 (Default: Exportable folder: /mnt/nas/shares (server path) Username/password: (if authentication is required)
  4. Click Connect and wait for the folder to mount.

⚠️ Note: client applications are often limited by data transfer speeds due to implementation features NFS Android, recommended for stable operation:

  • Use a wired connection via USB OTG β†’ Ethernet adapter (if available).
  • Disable energy saving for the file manager in the battery settings (Settings β†’ Battery β†’ Battery Optimization).

β˜‘οΈ Preparation for connection NFS

Done: 0 / 4

Option 2: Manually mount NFS via Termux (for advanced)

If you have a root or unlocked bootloader, you can mount it. NFS-This method allows maximum speed and flexibility, but requires knowledge of Linux commands.

Step 1: Install Termux from F-Droid (Google Play version is outdated and does not support proot).

pkg update && pkg upgrade


pkg install tsu root-repo

Step 2: Install utilities to work with NFS:

pkg install nfs-utils

Step 3: Create a mount point and connect the folder:

mkdir /sdcard/nfs_share


su -c "mount -t nfs -o nolock,proto=tcp,rsize=8192,wsize=8192 192.168.1.100:/mnt/nas/shares /sdcard/nfs_share"

⚠️ Note: when mounting via Termux, take into account:

  • The rights to write to /sdcard may be limited – use /data/local/tmp as an alternative.
  • After the reboot, the mounting will reset. To make it permanent, add a command to /data/adb/post-boot.d/ (Magisk required).
How to automate mounting during booting?
To automatically mount NFS when you start: 1. Create a file /data/adb/post-boot.d/99nfs.sh with the mount command. 2. Give it execution rights: chmod 755 /data/adb/post-boot.d/99nfs.sh. 3. Reboot the device. This method only works on firmware that supports init.d or Magisk.

Setting up NFS-servers on Redmi 8 Pro

If you want to distribute folders from your smartphone over NFS (for example, to back up to NAS), use the NFS Server application from Ice Cold Apps.

  1. Install the application and provide all the permissions you request (storage, network).
  2. In the main menu, click Start NFS Server.
  3. In Exported Directories, add a folder for export: /storage/emulated/0/Download *(rw,sync,no_subtree_check,no_root_squash) rw,...) means that all devices on the network with write rights are allowed access.
  4. Remember. IP-Your Redmi 8 Pro address (displayed in the app) – it will be required to connect customers.

Critical feature: NFS-Android servers consume a lot of power to avoid battery drain:

  • Connect your smartphone to charging while the server is running.
  • In the application settings, reduce the timeout of inactivity (Idle Timeout) to 5 minutes.
  • Disable the server immediately after the file transfer is completed.

πŸ’‘

If NFS-Redmi 8 Pro server often shuts down, check battery optimization settings for the app NFS Server. Add it to the exceptions (Settings) β†’ Battery β†’ Optimizing the battery β†’ All applications β†’ NFS Server β†’ No restrictions).

Removing common mistakes

When working with NFS on Redmi 8 Pro, users often face typical problems. Below is a table of errors and their solutions:

Mistake.Reason.Decision
mount: Operation not permittedNo root rights or SELinux blocks mounting.Use Magisk to get root or client apps without mounting.
NFS server not respondingThe server is not available over the network or blocked by a firewall.Check ping to the server and firewall settings (iptables on Linux).
Permission denied by recordingIncorrect access rights on the server or export parameters.Change the folder rights (chmod 777) or the settings in /etc/exports.
Slow file transferThe UDP protocol is used instead of TCP.Add the proto=tcp option to the mount command.

If the problem is not resolved, check the server logs (/var/log/syslog on Linux) or use the logcat on Android to diagnose:

adb logcat | grep nfs

Optimizing NFS Performance

By default, NFS uses small rsize/wsize transmissions, which limit speed. To speed up, edit the mounting settings:

Example of an optimized team:

mount -t nfs -o rsize=32768,wsize=32768,hard,intr,noatime,nodiratime,proto=tcp 192.168.1.100:/mnt/nas/shares /sdcard/nfs_share

Decoding of keys:

  • rsize/wsize=32768 β€” Increases the size of the read/write block to 32 CBB.
  • Hard – Repeats operations when a failure occurs (important for stable networks).
  • noatime – disables the recording of file access time (reduces the load).

⚠️ Attention: too high a value rsize/wsize (for example, 65536) They can cause a connection to break on weak routers. 8192 and gradually increase.

πŸ’‘

For maximum speed, use a wired connection (USB-Ethernet) and turn off power saving for Wi-Fi (Settings β†’ Wi-Fi β†’ Additional β†’ Energy Saving Policy β†’ Always Active).

NFS Alternatives for Xiaomi Redmi 8 Pro

If setting up NFS seems too complicated, consider alternative protocols for accessing network folders:

  • πŸ“‚ SMB (Samba: Integrated support in the MIUI through the Files β†’ Network β†’ Add storage, speed lower than that. NFS, but easier to set up.
  • 🌐 WebDAV: Works through HTTP/HTTPS, It's supported by most file managers. NFS, But more reliable in unstable networks.
  • ☁️ SFTP/SSH: secure protocol for file transfer. requires a server with SSH (For example, Termux on Android).

Comparison of protocols by key parameters:

ProtocolSpeed.SecurityDifficulty setting up
NFS⭐⭐⭐⭐⭐⭐⭐ (demand VPN protect)⭐⭐⭐⭐
SMB⭐⭐⭐⭐⭐⭐ (encryption SMB3)⭐⭐
WebDAV⭐⭐⭐⭐⭐⭐ (HTTPS)⭐⭐⭐

FAQ: Frequent questions on NFS on Redmi 8 Pro

Can I set up NFS without root?
Yes, but with limitations. You can use file managers with NFS support (like Solid Explorer), but full mounting (/sdcard) will require superuser rights, and some features (like automatic mounting when booting) will not be available.
Why does NFS shut down after the device sleeps?
This is related to energy conservation policies. MIUI. To avoid disconnection: Add a client application (such as Termux or file manager) to battery optimization exceptions. Turn off Wi-Fi sleep mode in router settings (or use wired connection). Set a fixed one. IP-Address for Redmi 8 Pro in Settings DHCP router.
How to check the speed of NFS on Redmi 8 Pro?
Use the dd utility in Termux to test read/write speed: # Write Test (creates file) 100 MB) dd if=/dev/zero of=/sdcard/nfs_share/testfile bs=1M count=100 Reading test dd if=/sdcard/nfs_share/testfile of=/dev/null bs=1M Compare the results with local storage (/sdcard) β€” The difference will show overhead NFS.
Can I use NFS to stream 4K video?
Technically yes, but with reservations: Wi-Fi speeds should be at least 300 Mbps (802.11ac standard). Use wired connectivity for stability. Set up buffering in the player (e.g. VLC or Kodi) for 5-10 seconds. For Redmi 8 Pro with its hardware limitations, it is better to use SMB or DLNA for streaming video.
How to unmount NFS-folder?
If the folder was mounted via Termux, use the command: su -c "umount /sdcard/nfs_share" For client applications (for example, Solid Explorer) just click Disable in the connection menu.