Network File Protocol NFS (Network File System allows you to share folders and files between devices on the local network. On Xiaomi Redmi Note 10 and Samsung smartphones, this feature can be useful for backing up data, sharing media files without cloud services or working with remote resources. However, standard Android versions do not support NFS "Out of the box β you will need manual adjustment.
In this article, we will analyze two scenarios: connecting a smartphone to a smartphone. NFS-server (for example, on a PC or NAS) and setting up the smartphone as a NFS-We will pay special attention to the nuances of MIUI (on Xiaomi and One UI (Samsung, and consider alternative solutions for devices without root rights.
It's important: NFS β Enterprise-level protocol, and setting it up on mobile devices requires technical training. If you want simple file transfers, consider alternatives like SMB (Samba or FTP, which are easier to set up.
What is NFS and why you need it on your smartphone
Protocol NFS (Network File System was developed by Sun Microsystems in 1984 for Unix systems, and its key advantage is the high speed of data transfer on the local network and minimal overhead compared to the Internet. SMB Or WebDAV. On smartphones. NFS It may be useful in the following cases:
- π Backup: Automatically save photos, videos or documents NAS-cloud-free server.
- π¬ Media server: viewing movies and music directly from the network storage without pre-downloading.
- π» Development: access to projects on a remote server (for example, for programmers working with Android Studio).
- π Synchronization: file sharing between multiple devices on the home network (PC, TV, smartphone).
But NFS there are flaws:
- β οΈ Security: by default, data is transmitted without encryption (solved by settings) NFS over TLS or VPN).
- π Network dependency: with poor Wi-Fi connection, delays are possible.
- π οΈ Difficulty of setting up: requires superuser (root) rights or special applications.
Xiaomi Redmi Note 10 and Samsung with modern versions of Android (12)+) NFS It is not supported at the kernel level without additional manipulation, which means that to work properly, you will need either root access or the use of workarounds (for example, Termux with nfs-utils).
Preparation: What you need to set up NFS
Before you start setting up, make sure you have everything you need:
Xiaomi Redmi Note 10 or Samsung with Android 10+
NFS-server Linux/Windows + NFS-server NAS, for example Synology/QNAP)
Local Wi-Fi (5GHz recommended for stability)
Superuser (root) or Termux rights with stitched packets
Mounting annex NFS (for example, NFS Manager or Total Commander with a plugin)
-->
If you don't. NFS-server, it can be deployed to:
- π₯οΈ Linux Computer: Install the nfs-kernel-server package (Debian/Ubuntu) or nfs-utils (RHEL/CentOS).
- π₯οΈ Windows 10/11: use WSL 2 with Ubuntu distribution or third-party solutions like haneWIN NFS Server.
- π¦ NAS-Device: Most models (Synology, QNAP, TrueNAS support NFS box.
For the Xiaomi Redmi Note 10 and Samsung without root rights, the only working option is to use Termux with manual mounting. However, this method requires knowledge of Linux commands and is not suitable for beginners.
β οΈ Attention: Adjustment NFS smartphone-based MIUI (Xiaomi may conflict with built-in security features, MIUI Optimizations can block network connections in the background. It is recommended to disable battery optimization for applications running with the help of the system. NFS.
If your goal is to share files, consider alternatives:
- π SMB (Samba: Supported by most file managers (e.g. Solid Explorer or Solid Explorer) FX File Explorer).
- π WebDAV: Works through HTTP/HTTPS, tune in easily NAS.
- βοΈ Syncthing: Decentralized synchronization without server.
π‘
If you use Termux for mounting NFS, Add termux-wake-lock to the connection script, which will prevent Wi-Fi from being turned off when the screen is locked.
Setting up NFS-servers (for example, Linux and NAS)
Before connecting the smartphone, you need to configure yourself. NFS-Let's look at two popular scenarios: setup on a Linux PC and on a Linux PC. NAS Synology.
Script 1: NFS-Linux-server (Ubuntu/Debian)
1. Install the necessary packages:
sudo apt update && sudo apt install nfs-kernel-server2. Edit the configuration file /etc/exports:
sudo nano /etc/exportsAdd a line (replace) IP_smartphone IP-device address on the local network):
/path/to/folder IP_smartphone(rw,sync,no_subtree_check,no_root_squash)3. Apply changes and restart the server:
sudo exportfs -a
sudo systemctl restart nfs-kernel-serverScenario 2: NFS-server NAS
1. Open the control panel. β Create a new folder and create a new folder (for example, nfs_share).
2. Go to the Control Panel β File service β NFS and activate the service.
3. Click Create and specify:
- π Shared folder: Select the created folder.
- π IP-Customer addresses: state IP smartphone or subnet (for example, 192.168.1.0/24).
- π Rights: Set Reading/Write and Root Squash: No.
4. Save settings and check the availability of the server from another device on the network.
| Parameter | Linux (Ubuntu) | Synology NAS |
|---|---|---|
| Installation of packages | nfs-kernel-server | Built-in support |
| Configuration file | /etc/exports | Web interface |
| Access rights | rw,no_root_squash | Reading/Recording + Turn off the squash |
| Restart of service | systemctl restart nfs-kernel-server | Automatically. |
β οΈ Note: If your router is using DHCP, IP-Your smartphone address may change. To avoid access problems, reserve IP for the device in the router settings or use hostname (if supported by your DNS).
Connection to NFS Xiaomi Redmi Note 10 with root and without)
Xiaomi Redmi Note 10 has two ways to adjust NFS: With and without root rights, let's look at both.
Method 1: With root rights (full mounting)
If your device has an unlocked bootloader and Magisk is installed, follow the following steps:
1. Install the module through Magisk NFS Manager (available in Magisk repository).
2. Open the annex NFS Manager and go to the Mount section.
3. Specify the connection parameters:
- π Server IP: IP-address NFS-server.
- π Export Path: The path to a shared folder (e.g, /mnt/nfs_share).
- π Mount Point: Local folder on your smartphone (for example, /storage/emulated/0/nfs).
- π Options: rw,soft,intr,rsize=8192,wsize=8192.
4. Press Mount and confirm the rights of the superuser.
If you have successfully mounted, the folder will appear in the file manager. To automatically connect when you download, use the Auto Mount option in the application settings.
Method 2: No root (via Termux)
For rootless devices, you can use manually mounted Termux, which is more complex and requires knowledge of Linux commands.
1. Install Termux from [F-Droid](https://f-droid.org/) (Google Play does not support all functions).
2. Update the packages and install nfs-utils:
pkg update && pkg upgrade
pkg install nfs-utils3. Create a folder for mounting:
mkdir ~/nfs_mount4. Connect to NFS-server:
mount -t nfs -o rw,soft,intr,rsize=8192,wsize=8192 IP_ servers:/path/to/folder ~/nfs_mount5. To make files available in a standard file manager, use:
termux-setup-storage
ln -s ~/nfs_mount ~/storage/shared/NFSβ οΈ Note: When using Termux mounting NFS It will reset after you restart the device. To avoid this, add a mount command to the file. ~/.termux/boot/start (You will need to install termux:boot).
What if Termux doesnβt see the network interfaces?
Connection to NFS with Samsung (One) UI)
On Samsung devices with One firmware UI setup NFS The problem is that there's no built-in support. NFS There are workarounds in the file manager My Files.
Method 1: Using Total Commander with a plugin
1. Install Total Commander from Google Play.
2. Download the plugin NFS Plugin (available on the [4PDA](https://4pda.to/) or [XDA Developers](https://forum.xda-developers.com/)).
3.Total Commander Go to the Network β Add a network connection β NFS.
Specify the parameters:
- π server: IP-address NFS-server.
- π Export: The path to a shared folder (e.g, /volume1/nfs_share).
- π Options: rw,soft.
5. Save the connection and check access to the files.
Method 2: Termux (similar to Xiaomi)
The process is identical to the one described above for the Xiaomi Redmi Note 10. The only difference is that on some models Samsung may need to disable Knox, as it blocks low-level operations.
su
setenforce 0Note: Disabling Knox will trigger the Knox Void flag (0x1), This will cancel the warranty and block certain features (e.g. Samsung Pay).
π‘
On Samsung devices with One UI 4.0+ fitting NFS via Termux may require SELinux to be disabled.This is not secure and is only recommended for power users.
Optimization and troubleshooting
Even after successful connection NFS You may have performance or stability issues. Here are some tips for optimizing your performance:
- π Buffering: Increase buffer size in mounting options (e.g. rsize)=32768,wsize=32768).
- πΆ Wi-Fi: Use a 5GHz network or cable connection (via a cable) USB-ETH adapter).
- π Energy saving: Turn off battery optimization for applications running with NFS (for example, Termux or NFS Manager).
- π Security: Set up NFS over TLS or use VPN traffic-encrypting.
Common mistakes and their solutions:
| Mistake. | Reason. | Decision |
|---|---|---|
| mount: Operation not permitted | No root rights or SELinux blocks the operation. | Use tsu in Termux or disable SELinux (setenforce 0). |
| No route to host | NFS-server is not available on the network. | Check it out. IP-Server address, firewall and routing (ping, traceroute). |
| Permission denied | Incorrect access rights on the server. | Check it out. /etc/exports on the server and folder rights (chmod) 777). |
| Slow file transfer | Small buffer or interference in the network. | Increase. rsize/wsize and switch to 5 GHz Wi-Fi. |
If you are using Xiaomi Redmi Note 10, pay attention to the feature MIUI Optimizations: It can force the background processes to close, including NFS-To disable optimization for a particular application:
1. Go to Settings β Applications β Application Management.
2. Select an application (e.g., Termux).
3.Push Battery Limits β No restrictions.
π‘
For long-term installation NFS On your smartphone, create a script in Termux with the mount command and add it to autoboot via termux:boot!
Alternatives NFS smartphone
If the setting NFS Seems too complicated, consider alternative protocols for accessing network folders:
- π SMB (Samba): β Easy to set up, supported by most file managers. β Slower. NFS, Especially when working with a lot of small files.
- π WebDAV: β Works through HTTP/HTTPS, tune in easily NAS. β High load on the processor when encrypting.
- βοΈ Syncthing: β Decentralized synchronization without server. β Requires the installation of the client on all devices.
- π SSHFS: β Encrypted connection, high security. β Slower. NFS, demand SSH-server.
For most users SMB It's the best choice, for example, in Solid Explorer or FX File Explorer is sufficient to specify IP-Server address, username and password β and you will get access to network folders without complex settings.
Critical information: On Xiaomi devices with MIUI 13+ and Samsung with One UI 5.0+ built-in SMB This may be restricted due to security policies, and in this case, use third-party applications like MiXplorer (requires the source "Unknown Sources" to be enabled").