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:
| Component | Requirement | Note |
|---|---|---|
| Network equipment | Router with Gigabit Ethernet support (1000 Mbps) | For a stable job. NFS Recommended wired connection of the server. |
| NFS-server | Linux/Unix-machine, NAS (Synology, QNAP) or a router with Entware | The server must have an nfs-kernel-server (for Linux) package installed. |
| Xiaomi Redmi Note 9 Pro | Root access (Magisk) or custom recovery (TWRP) | Without root rights, you can use applications like NFS Manager, but with limitations. |
| IP-address | Static IP server and client in the same subnet | Avoid. 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.
To check the network speed between devices, use the command:
ping 192.168.1.100 -c 100where 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:
- Download the module. NFS Manager for Magisk.
- Install the module through Magisk Manager (Modules section).
- Reset the device.
- After restarting, check for the file. /system/bin/mount.nfs:
ls -l /system/bin/mount.nfsIf 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:
- Install packages (for Debian/Ubuntu):
sudo apt update && sudo apt install nfs-kernel-server- Edit the file. /etc/exports:
sudo nano /etc/exportsAdd a line (replace) IP to your smartphone address):
/path/to/share 192.168.1.150(rw,sync,no_subtree_check,no_root_squash)- Apply the changes:
sudo exportfs -a
sudo systemctl restart nfs-kernel-serverParameters 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:
- Create a folder for mounting:
su
mkdir /mnt/nfs_share- Mount the network folder:
mount -t nfs -o rw,soft,intr,rsize=8192,wsize=8192 192.168.1.100:/path/to/share /mnt/nfs_shareMounting 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 0Method 2: Through Solid Explorer
If you donβt have root access, use Solid Explorer:
- Open the application and go to the Network β Add storage β NFS.
- Indicate. IP-server address, folder path and protocol version (NFS v3).
- Enter your username and password (if authentication is required).
- 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 denied | Incorrect access rights on the server or firewall block port 2049. | Check it out. /etc/exports and firewall settings (ufw allow) 2049). |
| NFS server not responding | The 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 handle | The 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 speed | Non-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/shareOr change the owner:
chown -R nobody:nogroup /path/to/shareHow to check the speed NFS-linkage?
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_shareFor 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.