Protocol NFS (Network File System, which allows you to turn your Xiaomi Redmi Note into a full member of the local network with access to remote folders as if they were your own. 4K It's a drone, a backup, or a project in Android Studio, where the internal memory of the smartphone is not enough. SMB or FTP, NFS requires precise configuration as on the server (computer) side/NAS), and the customer (your Redmi Note).
Many users experience connection problems such as mount errors: invalid argument, βunavailable serverβ or low data transfer speeds, most often due to incorrect export parameters on the server or lack of support. NFS firmware MIUI. In this article, we will analyze working schemes for Redmi Note. 10/11/12 (including Pro versions) on the basis of MIUI 12β14, and also bypass the typical system constraints.
β οΈ Note: Starting with Android 11, Google removed built-in support NFS The work will require root access or custom kernel installation (e.g. KernelSU), without which connection is only possible through third-party applications with limited functionality.
If your goal is simply to transfer files between your phone and PC, consider alternatives:
- π SMB (Samba: built into MIUI, It works without root, but slower. NFS.
- βοΈ WebDAV: Suitable for Internet access (e.g., Nextcloud).
- π FTP/FTPS: Simple but Insecure Protocol for Local Networks.
NFS It is justified when you need the maximum speed of reading / writing (up to the maximum speed). 90% It's based on local storage speeds, and minimal overhead, like mounting a network disk as internal storage. /storage/emulated/0 or work with the SQLite database directly over the network.
1. Preparation of the server NFS (PC-only NAS)
Before you set up Redmi Note, you need to export the folder on the server correctly (Ubuntu/Debian) Windows 10/11 using WSL 2.
Linux installation NFS-The server takes one command:
sudo apt update && sudo apt install nfs-kernel-server -yAfter installation, edit the configuration file /etc/exports, line:
/path/to/folder *(rw,sync,no_subtree_check,no_root_squash,insecure)Where:
- rw β Allows reading and writing;
- no_root_squash β Maintains root rights (important for Android);
- Insecure β allows you to connect from ports above 1024 (Android uses random ports).
For Windows, it is easiest to deploy. NFS-server WSL 2 (Linux subsystem):
- Install Ubuntu from the Microsoft Store.
- Launch the terminal. WSL and execute commands above.
- In exports, specify IP-your Redmi Note address instead of * (e.g. 192.168.1.100(rw,...)).
β οΈ Note: If you are using Synology NAS or QNAP, In the control panel, enable support NFS v3 (v4 It may not work on Android. Add to the export settings IP the phone to the list of allowed hosts and tick the boxes "Enable asynchronous recording" and "Allow unsafe ports".
2. Verification of support NFS Xiaomi Redmi Note
By default. MIUI module-free NFS You can check their availability through Terminal Emulator or Adb shell:
ls /proc/filesystems | grep nfsIf the team returns the empty result, your core does not support the NFS. Decisions:
- π§ Install a custom core (e.g. KernelSU or FrancoKernel for your model).
- π± Use wrapping applications (see section 4).
- π Get root access and manually load modules (difficult, brick risk!).
For the Redmi Note 10 Pro (sweet/sweetin) note 11 Pro (peux) has finished kernels with support NFS. For example, Crdroid or PixelExperience include the necessary modules "out of the box". XDA Developers.
3.Tune in. NFS-Customers with Redmi Note without root
If root is not available, the only way to work is to use the app. NFS Manager (available on Google Play) It creates a virtual drive through the FUSE, but with limitations:
- π Speed is lower than with native-mounting (up to 30-50 MB / s).
- π No support. chmod/chown (File rights may be lost).
- π Increased battery consumption due to work FUSE-demons.
Step-by-step:
- Install. NFS Manager.
- Open the app and click + β Add NFS Share.
- Fill in the fields: Server IP: IP your PC/NAS (for example, 192.168.1.10); Export Path: The path to the folder (for example, /mnt/data/shares); Mount Point: /storage/emulated/0/NFS (folder will appear in the internal storage).
Options
rw,soft,intr,tcp,vers=3
Mount
β οΈ Note: When connecting through NFS The files in the mounted folder will not be available to other applications (for example, Gallery or other applications). VLC) Due to the limitations of Scoped Storage in Android 11+. To get around this, use Termux with the team:
termux-setup-storage && cp -r /storage/emulated/0/NFS/file.mp4 ~/storage/downloads/βοΈ Connection check NFS
4. Mounting NFS root-access
If you have root, you can install it. NFS It's a very fast, very integrated system with Android. + KernelSU:
1. Install Magisk and module NFS Utils (available in Magisk Modules repository).
2. Open Termux and do:
su
mkdir -p /data/nfs/mount
mount -t nfs -o rw,soft,intr,tcp,vers=3 192.168.1.10:/path/to/folder /data/nfs/mount3. To mount it automatically when downloading, add a line to the /data/adb/post-fs-data.d/nfs.sh:
#!/system/bin/sh
mount -t nfs -o rw,soft,intr,tcp,vers=3 192.168.1.10:/path/to/folder /data/nfs/mountAnd make the file executable:
chmod 755 /data/adb/post-fs-data.d/nfs.sh4. To access the mounted folder from the file manager, create a symbolic link:
ln -s /data/nfs/mount /storage/emulated/0/NFSβ οΈ Note: Do not use a folder to store critical data (such as Telegram or WhatsApp databases) when you mount. NFS It can freeze, which will lead to the collapse of applications.=3 in mounting options.
5. Speed optimization and error elimination
NFS Android is often slower than PCs because of the network stack:
1.Tune in. MTU:
By default, Android uses MTU=1500, but for NFS It's better to reduce it to 1400:
ip link set dev wlan0 mtu 1400Check the current value:
ip link show wlan0Mounting options:
Add to the mounting parameters:
- rsize=32768,wsize=32768 β Increases the size of the read/write block;
- noatime, nodiratime β disables the access time record (accelerates work);
- actimeo=1800 β caches file attributes on 30 minute.
Typical errors and decisions:
| Mistake. | Reason. | Decision |
|---|---|---|
| mount: Operation not permitted | There is no NFS support in the kernel | Install a custom core or use NFS Manager |
| Permission denied | Incorrect rights on the server | Check Exports and Chmod 777 on the folder |
| No route to host | Firewall lockdown | Open ports 2049/tcp and 2049/udp |
| Low speed (<10 MB/s) | Used. NFS v4 or Wi-Fi 2.4 GHz | Switch to vers=3 and 5GHz Wi-Fi |
π‘
If NFS falls off when the screen is locked, add bg (background) and retry to the mounting options=5.This will cause the system to automatically restore the connection.
Alternatives NFS Xiaomi Redmi Note
If the setting NFS If you find it too complicated, consider alternative protocols with similar functionality:
1. SMB (Samba):
- πΉ Built in MIUI (file-appendix β Network storage).
- πΉ Speed: 20-40 MB/s (slower) NFS, but more stable).
- πΉ Cons: High expenditure CPU, Problems with Cyrillic in file names.
2. SSHFS (via Termux):
He's mounting a remote folder on SFTP through SSH. Installation:
pkg install openssh sshfs
sshfs user@192.168.1.10:/path/to/folder /data/local/mnt -o allow_otherPros: traffic encryption, no need for root. Cons: speed ~15-25 MB/s.
3. WebDAV (from Nextcloud):
Ideal for accessing files over the Internet. Set up Nextcloud on the server and connect via the FolderSync app. Speed depends on the bandwidth of the channel.
Which protocol should I choose?
7 Security: How to protect NFS break-in
NFS v3 It doesn't encrypt traffic, so it's easy to intercept it on the local network:
1. Restrict access to the IP:
V /etc/exports specify IP phone *:
/path/to/folder 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 server. NFS It's only through an encrypted tunnel, and it'll protect you from sniffing attacks on public networks.
3. disable unused versions NFS:
V /etc/default/nfs-kernel-server add:
RPCNFSDOPTS="--no-nfs-version 2 --no-nfs-version 4"And restart the service:
sudo systemctl restart nfs-kernel-serverSet firewalls:
Allow connections only from trusted IP:
sudo ufw allow from 192.168.1.100 to any port nfsπ‘
Never export. NFS offline VPN! Even with a password, the protocol is vulnerable to man-in-the-middle attacks".