Network storage by protocol NFS (Network File System on Xiaomi TVs allows not only to expand memory for media files, but also to solve specific tasks - for example, to ensure stable operation of banking applications such as SberBank Online. Many users are faced with the fact that the bank application requires additional space for cache or temporary files, and the built-in memory of the TV is not enough. NFS β A protocol that allows you to βmountβ a folder from another device (NAS, computer or router) as a local disk.
However, the setup NFS Xiaomi TV It has nuances, from firmware versions to banking applications, which often block access to external storage for security reasons. In this article, we will take a step-by-step guide to all the pitfalls, and we will also explain how to avoid common errors, such as Permission denied or Mount failed. NFS-folder and how to fix it.
If you are using Xiaomi TV Stick, Mi Box or Mi TV series TV A2/A Pro, the procedure will be almost identical, but with slight differences in the interface, and we'll highlight these points separately (NFS, SMB, FTP) and their features for banking applications.
What is it? NFS Why you need it for Sberbank on Xiaomi TV
Protocol NFS (Network File System was developed by Sun Microsystems in 1984 to unify file access on local networks. SMB (Windows-based), NFS optimized UNIX-Similar systems, which include the Android operating system TV This makes it more stable and faster to work with applications that are sensitive to delays, such as banking.
Why? NFS Suitable for Sberbank Online?
- π Security: NFS It supports kerberos and RPSEC β authentication protocols, which can be critical for banking applications. SMB, where data is often transmitted in plaintext.
- β‘ Performance: When properly set up NFS Provides lower reading/write delay, which is important for fast loading of the bank interface.
- π Access rights flexibility: You can set up which files will be available to the application and which will not, reducing the risk of data leakage.
But there are downsides: NFS It requires more complex adjustment than SMB, and not all routers or NAS-For example, popular TP-Link Archer or Keenetic routers often need manual activation. NFS-servers via Telnet or alternative firmware.
β οΈ Note: The SberBank Online application can block access to external storage if it is connected via an unsecured protocol (for example, FTP codeless). NFS With enabled authentication, this problem is solved.
Preparation of equipment: what will be needed to set up
Before you start setting up, make sure you have everything you need:
- πΊ Xiaomi TV (any model, but with the current firmware MIUI TV 3.0+). On older versions (e.g. PatchWall 1.0) NFS may not be supported.
- π₯οΈ Device with NFS-server: it can be: a computer running Linux (Ubuntu, Debian) or macOS. NAS-device (Synology, QNAP, Western Digital My Cloud, a router with support NFS (For example, Asus RT-AX88U or Keenetic Ultra with alternative firmware).
- π Network connection: preferably via cable (Ethernet), as Wi-Fi can cause delays critical to the network. NFS.
- π± Smartphone or PC for remote settings (if you need access to the SSH or ADB).
If you are using Windows as a NFS-server, additional components will need to be installed:
- Open Control Panel β Programs and Components β Enable or disable Windows components.
- Activate Items: Services NFS β Server for NFS Services NFS β Client for NFS
After installation, restart the computer.
β οΈ Attention: Adjustment NFS-Windows server requires administrator rights and may conflict with the firewall. TV Do not see the folder, check the rules of the firewall for ports 2049 (TCP/UDP).
Step-by-step adjustment NFS-servers (for example, Linux and NAS)
Letβs look at the two most common scenarios: NFS-Linux-based (Ubuntu/Debian) on NAS-If you have other hardware, the principles will be the same, and only the paths in the menu will be different.
Script 1: NFS-Linux-server (Ubuntu/Debian)
1. Install the nfs-kernel-server package:
sudo apt update && sudo apt install nfs-kernel-server -y2. Create a folder that you will share, and assign rights:
sudo mkdir -p /mnt/nfs_share
sudo chown nobody:nogroup /mnt/nfs_share
sudo chmod 777 /mnt/nfs_share3. edit the /etc/exports file:
sudo nano /etc/exportsAdd a line (replace 192.168.1.0/24 with your subnet):
/mnt/nfs_share 192.168.1.0/24(rw,sync,no_subtree_check,no_root_squash)4. Apply changes and restart the server:
sudo exportfs -a
sudo systemctl restart nfs-kernel-serverScenario 2: NFS-server NAS
1. Open the control panel. β Shared folders and create a new folder (for example, XiaomiTV_NFS).
2. Go to the Control Panel. β File service β Win/Mac/NFS and activate the tab. NFS.
3. Click Create and specify:
- Name of the shared folder: XiaomiTV_NFS
- IP-client-address: 192.168.1.0/24 (specific IP your Xiaomi TV)
- Rights: Reading/Writing
- Coding: UTF-8
- Additionally: Turn on Asynchronous for better performance.
4. Save the settings and restart NAS.
Make sure that NFS-server|Check the permissions to the folder (777 or rw)|Open Port 2049 in the Firewall|Write it down. IP-server address and folder path|Connect Xiaomi TV Cable to the network (recommended)-->
Connection NFS Xiaomi TV: step-by-step
Now that NFS-The server is configured, we're going to connect to the TV itself. The interface may vary slightly depending on the model, but the overall algorithm is the same.
1. Open Settings. β The device β Storage (on some models, the path may be Settings) β System system β Memory).
2. Select Add Network Storage (or Connect) USB/disk).
3. In the list of protocols select NFS (If not, update the TVβs firmware).
4. Fill in the fields:
- server: IP-address NFS-servers (e.g. 192.168.1.100).
- Path: The complete path to the folder (e.g, /mnt/nfs_share or /volume1/XiaomiTV_NFS synology).
- Username: Leave blank (if authentication is not configured) or enter anonymous.
- Password: Leave it blank (if not required).
5. Press Connect and wait for mounting. If an error occurs, check:
- π Correctness IP-addresses and paths.
- π Access rights on the server (folder must be available for recording).
- π Network Connection (try ping from TV to server).
6. Once successfully connected, the folder will appear in the Storage section as a network drive, and can now be used to install applications or store the SberBank Online cache.
β οΈ Attention: If after connection NFS TV starts to "hang" when working with the banking application, try to disable the option no_root_squash customized /etc/exports This can solve the problem of access rights.
π‘
If Xiaomi TV see NFS-try to connect to it from another device (for example, from an Android smartphone through the application) NFS This will help to localize the problem, either on the server or on the TV.
Setting up Sberbank Online to work with NFS
Even after successful connection NFS The SberBank Online app may not see external storage or may give out errors when trying to save data, due to the bank's security policies that restrict access to "untrusted" folders:
1. The transfer of the application cache:
- Install App Cloner or Island from Google Play (if itβs available for your Xiaomi model) TV).
- Clone SberBank Online and in the clone settings, specify the folder on NFS like an external vault.
Manual setting of rights:
adb shell pm grant ru.sberbankmobile android.permission.WRITE_EXTERNAL_STORAGEThis command gives the application access to external storage. ADB and the debugging on USB TV-wise.
3. Use of symbolic links (for advanced users):
If the application searches for cache on a fixed path (for example, /data/data/ru.sberbankmobile/cache), You can create a symbolic reference to NFS-folder:
adb shell
su
ln -s /storage/nfs_share/sberbank_cache /data/data/ru.sberbankmobile/cacheImportant: This operation requires root rights and can disrupt the application if executed incorrectly.
| Problem. | Reason. | Decision |
|---|---|---|
| The app can't see NFS-folder | Android Security Limitations TV | Use App Cloner or ADB-permit-board |
| Permission denied error | Incorrect rights on the server | Check out the chmod 777 and exports |
| Hanging out when working with the bank | High delay NFS Wi-Fi | Connect the TV to the network via cable |
| The application is painted while saving data | NFS time-out | Increase timeo and retrans in mounting parameters |
Optimizing productivity NFS banking applications
NFS It can be slow if you don't optimize your connection settings. This is critical for SberBank Online, where delays lead to authorization errors or incorrect interface loading:
Mounting parameters:
When connected NFS Xiaomi TV Use the following options (if the TV allows you to specify them):
rw,soft,timeo=30,retrans=3,rsize=32768,wsize=32768- timeo=30 β Time waiting for a response from the server (in tenths of a second).
- retrans=3 β number of repeated attempts.
- rsize/wsize=32768 β Read/write block size (increases speed with stable connection).
Server configuration:
On a Linux server, add to /etc/sysctl.conf:
net.ipv4.tcp_rmem = 4096 87380 16777216
net.ipv4.tcp_wmem = 4096 87380 16777216And apply the changes:
sudo sysctl -p3.Use of DNS instead IP:
If IP-The server address changes (for example, through the DHCP), use locally. DNS-Name (e.g. nas.local) instead of IP. This will prevent connection breaks when changing address.
How to check the speed NFS-linkage?
Typical errors and their solutions
When you set up NFS Xiaomi TV Users are most often faced with the following problems:
Mount failed: Operation not allowed:
- πΉ Reason: The server is not allowed to mount from the specified IP.
- πΉ Solution: Check the file /etc/exports server and restart NFS-service.
2. NFS It's connected, but the folder is empty:
- πΉ Reason: Incorrect access rights or folder owner.
- πΉ Solution: Run on the server: sudo chmod -R 777 /mnt/nfs_share sudo chown -R nobody:nogroup /mnt/nfs_share
3. the SberBank application does not store data on NFS:
- πΉ Reason: Android TV Blocks the entry to external storage for banking applications.
- πΉ Solution: Use ADB to issue permits (see section above) or transfer only cache, not basic data.
4. NFS It shuts down after the TV is restarted:
- πΉ Reason: Settings are not saved in autoboot.
- πΉ Solution: Add mounting to /etc/fstab on your TV (root required) or use Tasker to automatically connect.
π‘
If no solution works, try an alternative protocol β SMB. Despite its slower speed, it is often better compatible with Android banking apps. TV.