How to set up network storage NAS Xiaomi: The Complete Guide from Connection to Fine Customization

Xiaomi network storage (e.g. Mi models) NAS Xiaomi Mi Router Pro with a feature NAS) It's becoming more popular with users who want to build a reliable and affordable cloud at home, but many people have difficulty in the initial setup phase: confusing terms like: RAID-Circumstances, Connection Problems SMB or FTP, This article will help you understand all the nuances from unpacking the device to fine-tuning access rights and automating backups.

We will look not only at the basic steps (how to connect drives and create a shared folder), but also at advanced scenarios: setting up a new setup. DLNA for streaming media, integration with Xiaomi Home for smart home, as well as solving typical problems like β€œI don’t see” NAS "network" or "slow file transfer speeds." We'll focus on security, how to protect data from unauthorized access and why you can turn off anonymous access. SMB β€” critical step to prevent leakage.

1. Selection and preparation of equipment: which disks are suitable for NAS Xiaomi

Before you start setting up, you need to choose the right hard drives. Xiaomi devices (for example, Mi). NAS Mi Router Pro with support NAS) compatible with the majority 3.5" and 2.5" HDD/SSD, But there are important nuances:

  • πŸ”Ή Capacity: Minimum recommended volume - 2 TB (for RAID 1 will require two discs of the same size. For media library or backups, it is better to take 4 TB and higher.
  • πŸ”Ή Type of disks: Optimal use NAS-Class (e.g. Seagate IronWolf or WD Red, they're designed to work around the clock. HDD may overheat.
  • πŸ”Ή Form factor: For compact models (such as the Mi Router Pro), only 2.5" discs will work. NAS Support 3.5".
  • πŸ”Ή Speed: SSD They'll speed up access to files, but they'll cost more. HDD speed of 5400-7200 rpm.

Before installation of the discs:

  1. Format them in ext4 or NTFS (via PC, if NAS Does not offer formatting when initializing).
  2. Check the health of the CrystalDiskInfo utility – the Reallocated Sectors Count setting should be 0.
  3. If you use RAID, Take discs from one batch (the same firmware, model).
πŸ“Š What discs are you using in NAS?
NAS-class (WD Red, Seagate IronWolf)
Normal. HDD (WD Blue, Seagate Barracuda)
SSD
I don't know which one to choose.

⚠️ Note: Do not use disks from external boxes (for example, WD My Passport – Undisassembled – their electronics may conflict with NAS. Also avoid discs with SMR-technology, for example, WD Red SMR), They slow down when writing small files.

2.Initial setup: Connection and initialization NAS

After installing the disks in the compartments connect NAS router LAN-port (preferably gigabit) and power up. The next steps depend on the model:

  • πŸ”Œ Mi NAS: Go to the web interface at the address http://miwifi.com (or IP-address of the device, for example, 192.168.31.1).
  • πŸ“‘ Mi Router Pro with the NAS: Open up. http://192.168.31.1, Go to the Settings section β†’ USB/NAS.

At the first start, the system will offer:

  1. Create an administrator account (remember the login / password!).
  2. Select Disk Mode: Single Disk – One Disk without Redundancy. RAID 0 - High speed, but no fault tolerance. RAID 1 - mirroring (data duplicated on both disks). JBOD β€” merging disks into one logical volume.

Format the disks (all data will be deleted!).

For most users, it is optimal. RAID 1 β€” it protects against data loss when one disk fails. If you want maximum capacity without redundancy, choose JBOD.

β˜‘οΈ Preparation for initialization NAS

Done: 0 / 5

⚠️ Attention: If you choose RAID 0 and one of the drives will fail, all data will be lost without recovery.This mode is only suitable for temporary files or high-speed tasks (for example, editing video).

3. Network access setting: SMB, FTP and DLNA

Once initialized, you need to configure the protocols to access the files.

ProtocolAppointmentPort portSecurity
SMBSharing files on a local network (Windows, macOS, Linux)445Medium (you need to disable anonymous access!)
FTPRemote access to files (for example, to download from your phone)21Low (data transmitted in plain text)
DLNAStreaming media on TVs and playersβ€”High (read only)
NFSHigh-speed access for Linux/Unix-system2049High (configurable via configs)

To set up:

  1. Go to the web interface. NAS, Section Network Services or Shared Access.
  2. Turn it on. SMB Create a folder: The name of the folder: Media Way: /volume1/Media Administrator Reading/Write-only for Guests
  3. For FTP activate the service and specify port 21. FTPS (FTP through SSL) cryptographic.
  4. For DLNA Turn on the media server and specify folders with movies / music.

To connect to NAS Windows:

  1. Open the Conductor. β†’ Network.
  2. In the address bar, enter \\IP_yours_NAS\Media (for example, \\192.168.31.100\Media).
  3. Enter the administrator login/password.

πŸ’‘

If NAS not displayed on a Windows network, check the network detection settings in the Control Panel β†’ Network parameters β†’ Sharing options. Also make sure that NAS protocol included SMBv2/v3 (customized SMB).

4. Performance optimization: caching, indexing and speed

If NAS It works slowly (long download files, brakes when copying), check the following parameters:

  • πŸ”§ Connection Type: Use Gigabit router and Cat cable 5e Wi-Fi for the better. NAS Not suitable - the speed will be 5-10 times lower.
  • πŸ”§ RAID-controller: In settings NAS Turn on Write Cache (write caching) to speed up operations.
  • πŸ”§ Indexing: Disable automatic indexing for folders with rarely used files (e.g. archives).
  • πŸ”§ Antivirus: Eliminate folders NAS from scanning to PC – it will speed up copying.

To check the speed, use the CrystalDiskMark utility on the connected network drive.

  • πŸ“Š HDD into RAID 1: 80–110 MB/s (read/write).
  • πŸ“Š SSD into RAID 0: 200-300MB/s.

If the speed is lower, try:

  1. Disable Jumbo Frames in Network Settings NAS (Sometimes it helps with packets).
  2. Change the cable or port on the router.
  3. Turn on SMB Multichannel (if yours is yours) NAS PCs support multiple network connections).
How to turn it on SMB Multichannel in Windows 10/11?
Open the control panel. β†’ Programme programmes β†’ Turning Windows components on or off. Find SMB 1.0/CIFS File Sharing Support and uncheck (this is an outdated protocol). Then in Group Policy Editor (gpedit.msc) go to Computer Configuration β†’ Administrative templates β†’ Network β†’ Lanman workstation β†’ Turn on SMB Multichannel and activate the setting.

5.Security: Protection against hacking and data leakage

NAS In the home network, it is often the target of attacks (especially if the Internet is open:

  • 🚨 Brutforce passwords - selection of login / password according to the dictionary.
  • 🚨 Vulnerabilities SMB β€” exploits like EternalBlue (used by encryption viruses).
  • 🚨 Anonymous Access – If guest login is enabled, anyone on your network can read files.

Minimum safety measures:

  1. Turn off anonymous access in settings SMB/FTP.
  2. Change the standard port FTP (21) to non-standard (e.g. 2121).
  3. Enable lockdown on IP After 5 failed attempts to enter.
  4. Update the firmware NAS Up to the latest version (in the System menu) β†’ Update).

For advanced protection:

  • πŸ” Set up. VPN (WireGuard for remote access instead of opening ports.
  • πŸ” Use two-factor authentication (if supported by your model) NAS).
  • πŸ” Create a separate user with limited rights for everyday access (do not use an admin account).

πŸ’‘

Never open access to the NAS offline VPN β€” Even if you change the standard ports, bots scan the networks for vulnerable devices, and you'd better use TailScale or ZeroTier for secure remote connectivity.

6. Automation of backup and integration with Xiaomi Home

One of the key challenges NAS β€” Automatic backup. Xiaomi NAS There are built-in backup tools:

  • πŸ”„ Local Copying: Set up a Task in Utilities β†’ Backup for copying folders from PC to NAS scheduled.
  • ☁️ Cloud Backup: Connect Google Drive or Dropbox in the Cloud.
  • πŸ“± Phone Backup: Use the Mi Home app to automatically upload photos from Xiaomi smartphones.

For integration with Xiaomi Home:

  1. Make sure that NAS And the phone is connected to the same network.
  2. In the Mi Home app, add the device NAS via Add device β†’ Other devices.
  3. Set up automatic upload of photos / videos from Xiaomi cameras to the folder on the NAS.

Example of setting up a backup task (via web interface):

Source: \\192.168.31.100\Documents (PC)


Purpose: /volume1/Backup/PC_Documents (NAS)




Schedule: Daily at 2:00




Type: Incremental (only copy modified files)

0 3 * mysqldump -u user -p database data password | gzip > /volume1/Backup/db_ $ +\ (date +\%Y-\%m-\%d).sql.gz

This script will create a database archive every day at 3:00.-->

7. Troubleshooting: NAS not visible on the network, slow operation, disk errors

Let’s look at the typical problems and their solutions:

Problem.Possible causeDecision
NAS not displayed on the networkUnplugged. SMB or incorrect network settingsCheck Network Services β†’ SMB, reboot NAS router
Slow copying speedProblems with the cable or RAID-massifReplace the cable with Cat 6, check the health of the drives
Error "Disk is not initialized"A partition or file system is damagedFormat the disk through the web interface NAS
It's not working. FTPPort 21 blocked by firewallOpen the port in the router settings or change it to a non-standard one.

If NAS stopped:

  1. Try to connect to the SSH (if enabled) and restart the device with the command: reboot
  2. If it doesn’t work, press the Reset button on the back (hold 10 seconds to reset settings).
  3. To recover data from damaged RAID Use the ReclaiMe utility or UFS Explorer.

⚠️ Attention: If NAS It makes unusual sounds (squeaking, knocking) -- turn it off immediately! It's a sign of physical malfunction of the discs.

FAQ: Frequent questions about setting up NAS Xiaomi

πŸ”Ή Can I use it? NAS Xiaomi as a media server for TV?
Yeah, turn it on for that. DLNA customized NAS Make sure that the TV and NAS They're on the same network. On Xiaomi TVs or Android TVs. TV Media files will automatically appear in the Local Devices section. For better compatibility, use folders with files in formats. MP4, MKV or JPEG.
πŸ”Ή How to connect NAS Xiaomi Mi Router for backup?
If you have a Mi Router Pro or other model with a USB-port, connect the external drive to the router, then in the web interface (192.168.31.1) Go to Settings. β†’ USB/NAS. Create a shared folder and set up a backup task with NAS The speed will be limited by the router’s performance (usually up to the router’s drive). 30–50 MB/s).
πŸ”Ή Why? NAS Xiaomi is slowing down when copying small files?
This is a typical problem for HDD s SMR-technology, for example, WD Red SMR). When you write thousands of small files (for example, photos) the speed drops to the lower limit. 1–5 MB/s Solutions: Replace the disks with CMR (for example, WD Red Plus or Seagate IronWolf. archive small files in ZIP/RAR Enable Write Cache in the settings NAS.
πŸ”Ή How to set up access to NAS from the internet without the risk of hacking?
The safest way to use is to use VPN: Install WireGuard or OpenVPN on the NAS (If the firmware supports, set up the client. VPN on your phone/PC. Connect to VPN, Then you can go to NAS locally IP (Alternatively, TailScale or ZeroTier, which creates an encrypted network on top of the Internet without opening ports.
πŸ”Ή Can we set it on NAS Xiaomi third-party apps (such as Plex or NextCloud)?
The official firmware Xiaomi NAS It does not support third-party application installation, but there are workarounds: πŸ›  Docker: Some firmware (e.g. for Mi Router Pro) lets you install Docker and deploy containers with Plex, NextCloud, or Transmission. πŸ›  For advanced users there are custom firmware like OpenWRT or Padavan, but this voids the warranty. πŸ›  External Server: Install applications on a separate mini PC (such as Xiaomi Mi Box with Linux) and connect it to a separate mini PC. NAS down SMB.