How to set up NFS Xiaomi Redmi Note 9 Pro: a detailed guide

Network file system NFS (Network File System allows you to connect remote folders as local drives, which is especially convenient for working with large amounts of data on Xiaomi Redmi Note 9 Pro. NFS-The client, it can be activated through root access or third-party applications, and this instruction will help you configure the connection without loss of performance and taking into account the features of the firmware. MIUI.

It is important to understand: Redmi Note 9 Pro (model) joyeuse/curtana) It is based on the Snapdragon processor. 720G, It's a problem that affects the speed of data transmission over the network. NFS It could be an alternative. SMB or FTP, Especially if you need to mount network folders for applications like Kodi, VLC File Manager of Solid Explorer.

In this guide, we will examine two scenarios: connecting to an existing one. NFS-server (for example, on a router or NAS) and setting up a smartphone as NFS-You'll also learn how to get around the restrictions. MIUI Avoid common mistakes such as Permission Denied or Mount Failed.

What is NFS and why you need it on your smartphone

NFS β€” A file network protocol originally developed for Unix systems. SMB (It is optimized for large files and low latency, which is critical for streaming video or backup. on Xiaomi Redmi Note 9 Pro NFS may be useful:

  • 🎬 Watching movies in 4K s NAS downloadless.
  • πŸ“ Automatic backup of photos on the network storage.
  • πŸ”§ Development of Android applications with mounting source over the network.
  • 🎡 Streaming music from a shared folder without taking up internal memory.

The main advantage NFS beforehand FTP or WebDAV, which is the minimum overhead for data transfer, for example, when you copy a file size. 1 GB over local area network NFS spend 20-30% less time than SMB, If the server and client are properly configured.

⚠️ Attention: NFS If you connect over a public network (for example, in a cafe), use VPN or SSH-tunnel to avoid interception of data.

Requirements and preparation for setting up

Before setting up NFS On the Redmi Note 9 Pro, make sure the following conditions are met:

ComponentRequirementNote
Network equipmentRouter with Gigabit Ethernet support (1000 Mbps)For a stable job. NFS Recommended wired connection of the server.
NFS-serverLinux/Unix-machine, NAS (Synology, QNAP) or a router with EntwareThe server must have an nfs-kernel-server (for Linux) package installed.
Xiaomi Redmi Note 9 ProRoot access (Magisk) or custom recovery (TWRP)Without root rights, you can use applications like NFS Manager, but with limitations.
IP-addressStatic IP server and client in the same subnetAvoid. DHCP β€” NFS change-sensitive IP.

If you don't have a separate NFS-server, it can be deployed on a router with OpenWRT firmware or DD-WRT. This will require an external storage device to be connected to USB-port of router and install the packet nfs-utils via opkg.

πŸ“Š What type of network storage you use?
NAS (Synology, QNAP, etc.)
router USB-accumulator
Separate PC/server
Cloud storage (Google Drive, Yandex Disk)
I haven't used it yet.

To check the network speed between devices, use the command:

ping 192.168.1.100 -c 100

where 192.168.1.100 β€” IP-If packet losses are greater than 1%, optimize your network (change Wi-Fi channel, use cable instead of wireless connection).

Installation NFS-Customers at Xiaomi Redmi Note 9 Pro

Android does not include support by default NFS It's the core, so you'll need root access or a special application.

Method 1: Magisk (route access)

If you have Magisk installed on your Redmi Note 9 Pro, follow the following steps:

  1. Download the module. NFS Manager for Magisk.
  2. Install the module through Magisk Manager (Modules section).
  3. Reset the device.
  4. After restarting, check for the file. /system/bin/mount.nfs:
ls -l /system/bin/mount.nfs

If the file exists, NFS-The client is successfully integrated into the system. You can now mount network folders manually or through applications.

Method 2: No root rights (appendix) NFS Manager)

For users without root access, the application will suit NFS Manager from Google Play. It works through VPN-service by redirecting traffic NFS The downside of this method is that it reduces the speed of the 10-15%.

  • πŸ“± Install. NFS Manager.
  • πŸ”Œ In the application settings, specify IP-address NFS-server and path to the exported folder (e.g, /mnt/nas/movies).
  • πŸ”‘ Select the protocol version (NFS v3 recommended for stability).
  • πŸ”„ Press Connect and wait for the mounting.

⚠️ Note: Applications without root access cannot mount NFS system folders (e.g, /sdcard). Access to files will be limited to the application’s internal storage.

Install Magisk or NFS Manager|

Check it out. IP-server and client addresses|

Open ports 2049 (TCP/UDP) router|

Create a folder for mounting (for example, /mnt/nfs)|

Export the folder to the server (edit) /etc/exports)-->

Setting up NFS-server (for example, Linux)

If you are using a Linux machine or NAS As a server, run the following commands to export the folder:

  1. Install packages (for Debian/Ubuntu):
sudo apt update && sudo apt install nfs-kernel-server
  1. Edit the file. /etc/exports:
sudo nano /etc/exports

Add a line (replace) IP to your smartphone address):

/path/to/share 192.168.1.150(rw,sync,no_subtree_check,no_root_squash)
  1. Apply the changes:
sudo exportfs -a


sudo systemctl restart nfs-kernel-server

Parameters in /etc/exports:

  • Rw allows you to read and write.
  • Sync – synchronous recording (without data loss in case of failure).
  • no_root_squash β€” Maintain root rights (required for some applications).

To check the available export on the server, do:

showmount -e localhost

πŸ’‘

If NFS-server on a router with OpenWRT, install nfs-utils and kmod-fs-nfs packets, then edit /etc/exports via WinSCP or SSH.

Mounting NFS-Folders on Xiaomi Redmi Note 9 Pro

After you set up the server, we're going to mount it on a smartphone, and let's look at two ways: through Terminal Emulator (for root users) and through Solid Explorer.

Method 1: Through Terminal Emulator (route)

Follow the commands in order:

  1. Create a folder for mounting:
su


mkdir /mnt/nfs_share

  1. Mount the network folder:
mount -t nfs -o rw,soft,intr,rsize=8192,wsize=8192 192.168.1.100:/path/to/share /mnt/nfs_share

Mounting parameters:

  • rw is reading/write.
  • soft – breaks the connection when hanging (useful for mobile networks).
  • rsize/wsize=8192 β€” Transmission unit size (optimum for Wi-Fi).

To keep the mounting after the reboot, add a line to /etc/fstab:

192.168.1.100:/path/to/share /mnt/nfs_share nfs rw,soft,intr,rsize=8192,wsize=8192 0 0

Method 2: Through Solid Explorer

If you don’t have root access, use Solid Explorer:

  1. Open the application and go to the Network β†’ Add storage β†’ NFS.
  2. Indicate. IP-server address, folder path and protocol version (NFS v3).
  3. Enter your username and password (if authentication is required).
  4. Click Connect - the folder will appear in the Network section.

⚠️ Note: When connected via Solid Explorer, read/write speeds will be lower than when manually mounted due to the limitations of Android apps. 4K It is recommended to use the first method.

πŸ’‘

For a stable job. NFS On Xiaomi Redmi Note 9 Pro, use a wired connection (USB-Ethernet adapter) or Wi-Fi 5 GHz. Otherwise, there may be delays when playing video.

Solving typical mistakes NFS

When you set up NFS Users often encounter errors. Let's look at the most common ones and how to fix them.

Mistake.Reason.Decision
mount: Permission deniedIncorrect access rights on the server or firewall block port 2049.Check it out. /etc/exports and firewall settings (ufw allow) 2049).
NFS server not respondingThe server is not available over the network or the nfs server service is not running.Reset the service: sudo systemctl restart nfs-kernel-server.
Stale file handleThe server has restarted and the client is trying to access the old session.Rewire the folder: umount /mnt/nfs_share && mount /mnt/nfs_share.
Low transmission speedNon-optimal parameters rsize/wsize or network interference.Increase the block size to 32,768 or use a cable.

If files are displayed after mounting, but not opened, check the rights on the server:

chmod -R 777 /path/to/share

Or change the owner:

chown -R nobody:nogroup /path/to/share
How to check the speed NFS-linkage?
Use the dd command to test the write/read speed: dd if=/dev/zero of=/mnt/nfs_share/testfile bs=1M count=100 (record) dd if=/mnt/nfs_share/testfile of=/dev/null bs=1M (Compare the results to local storage. If the speed is lower 10 MB/s, optimize network or parameters NFS.

Optimizing NFS Performance

By default. NFS It uses conservative settings that can be improved on the Redmi Note 9 Pro. Here are the key options for optimizing the new features:

  • πŸ”§ rsize/wsize: Increase to 32768 for a Gigabit network or 8192 wifi.
  • πŸ”„ timeo/retrans: Set timeo.=14,retrans=2 time-out.
  • πŸš€ noatime: Disables file access time recording, speeding up reading.
  • πŸ”’ tcp: Enforcement of use TCP instead UDP stability.

Example of an optimized mounting command:

mount -t nfs -o rw,soft,intr,tcp,rsize=32768,wsize=32768,timeo=14,retrans=2,noatime 192.168.1.100:/share /mnt/nfs_share

For continuous optimization, add these parameters to the /etc/fstab. It is also recommended to disable MIUI Optimization (if custom firmware is used) as it can restrict network connections in the background.

πŸ’‘

If you use NFS for streaming video, enable buffering in the player (for example, in the VLC Set the network cache at 3,000ms. That compensates for network delays.

FAQ: Frequent questions on NFS Xiaomi Redmi Note 9 Pro

Can I connect? NFS rootless?
Yeah, but with limitations. NFS Manager or Solid Explorer allows you to install NFS-folders, but: Speed will be lower due to traffic proxies. Can't be mounted into system folders (e.g, /sdcard). Some apps won't see the mounted files. Root access is recommended for full operation.
Why does NFS shut down after restarting?
Android does not save mounting NFS Solutions: Add a line to /etc/fstab (Use Tasker or MacroDroid to automatically mount when you start. Install the module. NFS Bind in Magisk for permanent mounting.
Which protocol is better: NFS v3 or v4?
Xiaomi Redmi Note 9 Pro is recommended NFS v3 for the following reasons: Better compatibility with Android. Less overhead (higher speed). v4 requires additional configuration of the idmapd on the server. v4 If the server does not support v3 or need improved security (e.g. kerberos).
Can I use NFS over the mobile Internet (4G/5G)?
Technically yes, but it is highly discouraged: NFS It doesn't encrypt traffic, it can be intercepted, delays in mobile networks will cause permanent disconnects, and operators can block port 2049. Alternative: use it. SFTP or WebDAV with encryption.
How to unmount NFS-folder?
For safe shutdown, perform: umount /mnt/nfs_share If the folder is busy, find the process that uses it: fuser -vm /mnt/nfs_share Or forcefully unmount: umount -l /mnt/nfs_share