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:
- Format them in ext4 or NTFS (via PC, if NAS Does not offer formatting when initializing).
- Check the health of the CrystalDiskInfo utility β the Reallocated Sectors Count setting should be 0.
- If you use RAID, Take discs from one batch (the same firmware, model).
β οΈ 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:
- Create an administrator account (remember the login / password!).
- 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
β οΈ 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.
| Protocol | Appointment | Port port | Security |
|---|---|---|---|
| SMB | Sharing files on a local network (Windows, macOS, Linux) | 445 | Medium (you need to disable anonymous access!) |
| FTP | Remote access to files (for example, to download from your phone) | 21 | Low (data transmitted in plain text) |
| DLNA | Streaming media on TVs and players | β | High (read only) |
| NFS | High-speed access for Linux/Unix-system | 2049 | High (configurable via configs) |
To set up:
- Go to the web interface. NAS, Section Network Services or Shared Access.
- Turn it on. SMB Create a folder: The name of the folder: Media Way: /volume1/Media Administrator Reading/Write-only for Guests
- For FTP activate the service and specify port 21. FTPS (FTP through SSL) cryptographic.
- For DLNA Turn on the media server and specify folders with movies / music.
To connect to NAS Windows:
- Open the Conductor. β Network.
- In the address bar, enter \\IP_yours_NAS\Media (for example, \\192.168.31.100\Media).
- 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:
- Disable Jumbo Frames in Network Settings NAS (Sometimes it helps with packets).
- Change the cable or port on the router.
- 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?
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:
- Turn off anonymous access in settings SMB/FTP.
- Change the standard port FTP (21) to non-standard (e.g. 2121).
- Enable lockdown on IP After 5 failed attempts to enter.
- 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:
- Make sure that NAS And the phone is connected to the same network.
- In the Mi Home app, add the device NAS via Add device β Other devices.
- 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.gzThis 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 cause | Decision |
|---|---|---|
| NAS not displayed on the network | Unplugged. SMB or incorrect network settings | Check Network Services β SMB, reboot NAS router |
| Slow copying speed | Problems with the cable or RAID-massif | Replace the cable with Cat 6, check the health of the drives |
| Error "Disk is not initialized" | A partition or file system is damaged | Format the disk through the web interface NAS |
| It's not working. FTP | Port 21 blocked by firewall | Open the port in the router settings or change it to a non-standard one. |
If NAS stopped:
- Try to connect to the SSH (if enabled) and restart the device with the command: reboot
- If it doesnβt work, press the Reset button on the back (hold 10 seconds to reset settings).
- 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.