NFS Xiaomi Redmi Note 10 and Samsung: how to configure network access to files

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).

πŸ“Š What do you want to use for? NFS smartphone?
Backup
Media server (movies, music)
Development/programming
Sharing files on a local network
Another option

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-server

2. Edit the configuration file /etc/exports:

sudo nano /etc/exports

Add 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-server

Scenario 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.

ParameterLinux (Ubuntu)Synology NAS
Installation of packagesnfs-kernel-serverBuilt-in support
Configuration file/etc/exportsWeb interface
Access rightsrw,no_root_squashReading/Recording + Turn off the squash
Restart of servicesystemctl restart nfs-kernel-serverAutomatically.

⚠️ 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-utils

3. Create a folder for mounting:

mkdir ~/nfs_mount

4. Connect to NFS-server:

mount -t nfs -o rw,soft,intr,rsize=8192,wsize=8192 IP_ servers:/path/to/folder ~/nfs_mount

5. 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?
If after installing nfs-utils, commands like ping or mount don’t work with the network, run: pkg install tsu tsu -c "setenforce 0" This will temporarily disable SELinux, which can block network operations.The permanent solution will require a kernel patch or Magisk module for Termux.

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 0

Note: 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 permittedNo root rights or SELinux blocks the operation.Use tsu in Termux or disable SELinux (setenforce 0).
No route to hostNFS-server is not available on the network.Check it out. IP-Server address, firewall and routing (ping, traceroute).
Permission deniedIncorrect access rights on the server.Check it out. /etc/exports on the server and folder rights (chmod) 777).
Slow file transferSmall 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").

FAQ: Frequent questions about setting up NFS

Can we set up? NFS on a smartphone without root rights?
Yes, but with limitations. You can use Termux with nfs-utils for manual mounting, but this connection will not be permanent (reset after rebooting).
Why? NFS It works slowly on the Xiaomi Redmi Note 10?
The reasons may be as follows: The network is used. 2.4 GHz instead of 5 GHz. Small buffer size (rsize/wsize). Try to zoom in to 32768. Background optimization MIUI Shuts down the connection. Turn off the battery limitations. Termux/NFS Manager. NFS-The server is overloaded or runs on a weak hardware (for example, a Raspberry Pi).
How do you do that? NFS automatically connected when loading the smartphone?
Methods depend on the method of connection: With root: Use the application NFS Manager with Auto Mount option. No root (Termux): Install termux:boot: pkg install termux:boot ~/nfs_mount.sh Make it executable: chmod +x ~/nfs_mount.sh Add in. ~/.termux/boot/ script.
Can I use it? NFS streaming video on a smartphone?
Yes, but with reservations: πŸŽ₯ To play without lags, you need stable Wi-Fi (5 GHz) and sufficient server performance. πŸ“Ί Not all players support direct work with NFS. Recommended use VLC or MX Player with support for network protocols. πŸ”„ If the video slows down, try reducing bitrate or using it. SMB instead NFS.
Is it safe to use? NFS public-wifi?
No. NFS default does not encrypt traffic, making it vulnerable to interception on open networks: πŸ”’ Set up. NFS over TLS (requires additional server configuration). πŸ›‘οΈ Use it. VPN (WireGuard for encryption of all traffic. πŸ”„ Switch to the switch. SSHFS or WebDAV with HTTPS.