Setting up NFS Xiaomi TV for the correct operation of the SberBank application: a detailed guide

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:

  1. Open Control Panel β†’ Programs and Components β†’ Enable or disable Windows components.
  2. 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).

πŸ“Š What device are you using as NFS-server?
NAS (Synology/QNAP)
Computer with Linux
Windows computer
Router with alternative firmware
Other

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

2. 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_share

3. edit the /etc/exports file:

sudo nano /etc/exports

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

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

This 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/cache

Important: This operation requires root rights and can disrupt the application if executed incorrectly.

Problem.Reason.Decision
The app can't see NFS-folderAndroid Security Limitations TVUse App Cloner or ADB-permit-board
Permission denied errorIncorrect rights on the serverCheck out the chmod 777 and exports
Hanging out when working with the bankHigh delay NFS Wi-FiConnect the TV to the network via cable
The application is painted while saving dataNFS time-outIncrease 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 16777216

And apply the changes:

sudo sysctl -p

3.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?
Install the Terminal Emulator app on your TV and execute the command: dd if=/dev/zero of=/storage/nfs_share/testfile bs=1M count=100 This team will record 100 MB of data NFS And you can actually write it down.=/storage/nfs_share/testfile of=/dev/null bs=1M The speed must be at least 10 MB / s for comfortable work with the banking application.

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.

FAQ: Frequent questions on NFS Xiaomi TV and Sberbank

Can I use it? NFS for storing data of the SberBank application?
Technically, yes, but the application can block the recording to external storage for security reasons, and it is recommended to transfer only cache or temporary files, not the main database.
Why Xiaomi TV see NFS-The folder, although the server is configured correctly?
Check it out: πŸ”Ή TV firmware version (NFS supported MIUI TV 2.0+). πŸ”Ή Firewall settings on the server (port) 2049 should be open). πŸ”Ή Network. IP-address /etc/exports (must include IP television).
How to transfer the cache of SberBank to NFS rootless?
Use App Cloner: Install App Cloner from Google Play (if available for your model). Clone SberBank Online. In the clone settings, specify the external folder on the NFS storage.
What's the alternative? NFS, if it doesn't work?
Review the protocols: πŸ”Ή SMB: Easy to set up, but slower and less secure. πŸ”Ή WebDAV: Works through HTTP/HTTPS, It can be blocked by a banking application. πŸ”Ή FTP s TLS: Supported by majority NAS, but requires additional encryption settings.
Can I connect? NFS Xiaomi TV via Wi-Fi?
Yes, but it's not recommended for banking applications. Wi-Fi can cause delays that cause delays. NFS It's going to shut down, and SberBank Online is going to make errors).