DIY 4TB RAID1 NAS Using FriendlyElec CM3588

cm3588

Building a secure, efficient, and quiet personal NAS server is a rewarding project. In this article, we will guide you through the process of creating a 4TB NAS server using FriendlyElec’s CM3588 single-board computer (SBC) and 4TB NVMe solid-state drives. We'll configure RAID 1 for redundancy and install Safeboxbd, one of the best freeware NAS software options for high performance and security. If you're looking for the best software for NAS server setups on Linux, this guide will help you create a robust system for personal use.

1. Introduction

The FriendlyElec CM3588 SBC is ideal for building a custom NAS, thanks to its low power consumption, quiet operation, and support for high-speed NVMe SSDs. This guide covers every step to build a 4TB RAID 1 NAS using Linux software, ensuring fast data transfer, robust security, and remote accessibility.

Key Features:

  • High-performance hardware with an octa-core CPU for multitasking
  • Silent operation with minimal heat generation, perfect for home environments
  • RAID 1 redundancy for data security
  • Safeboxbd NAS software for high performance and secure access

2. Hardware Setup and Preparation

2.1 Introduction to FriendlyElec CM3588

The FriendlyElec CM3588 is a cost-effective single-board computer designed for embedded applications and high-performance computing tasks. It supports multiple NVMe SSD interfaces and onboard storage, with low heat generation and quiet operation, making it ideal for personal NAS devices. Key hardware features include:

  • CPU: Rockchip RK3588, an octa-core processor (4×Cortex-A76 + 4×Cortex-A55), capable of handling complex multitasking and data read/write operations.
  • GPU: ARM Mali-G610 MP4, supporting up to 4K/8K multimedia output, useful for users needing multimedia management, though not typically required for NAS use.
  • Memory: Supports 4GB/8GB LPDDR4X, suitable for large file transfers and multitasking.
  • Storage Interfaces:
    • 4 NVMe SSD interfaces, supporting direct connection of high-speed NVMe SSDs, greatly enhancing storage device read/write speeds, ideal for constructing high-speed data transfer RAID arrays.
    • Onboard 64GB eMMC storage for installing the OS, improving system boot speed and stability, allowing external storage to be fully dedicated to data storage.
  • Low heat, quiet operation: The low-power design of the CM3588 generates minimal heat during operation, eliminating the need for additional cooling fans. This design makes the system nearly silent, ideal for home or personal NAS use.
  • Networking: Gigabit Ethernet interface, ensuring fast network data transfer speeds, perfect for large file storage and media streaming.

2.2 Hardware Checklist

  • FriendlyElec CM3588 single-board computer
  • Two 4TB NVMe SSDs (M.2 slots)
  • Power adapter
  • USB keyboard and mouse
  • Monitor (connected to CM3588 via HDMI)
  • 16GB or larger SD card (for initial OS installation)
  • Ethernet cable (for connecting to the router)

2.3 Software Checklist

  • Ubuntu Jammy Desktop ARM64 image (downloaded from the FriendlyElec website)
  • Rufus (for writing the OS image to the SD card)
  • mdadm (for creating and managing RAID arrays)
  • Safeboxbd (a free NAS software)

3. System Installation

3.1 Download Ubuntu Jammy Desktop ARM64 Image

First, visit the FriendlyElec official website to download the Ubuntu Jammy Desktop 22.04 ARM64 image designed for the CM3588. This system is optimized for ARM architecture and is compatible with the CM3588's hardware.

3.2 Use Rufus to Write the OS Image to the SD Card

Steps:

  • Download and install the Rufus tool to write the image to the SD card.
  • Insert the SD card (16GB or larger recommended).
  • Open Rufus, select the Ubuntu Jammy Desktop ARM64 image downloaded from FriendlyElec.
  • Choose the inserted SD card as the target device, and click “Start” to write the image.
  • Once completed, remove the SD card and prepare to install the OS on the CM3588.

3.3 Insert SD Card and Boot

  • Insert the SD card into the CM3588’s SD card slot.
  • Connect the keyboard, mouse, and monitor (via HDMI), and plug in the Ethernet cable to ensure network connectivity.
  • Power on the CM3588, and the system will automatically boot from the SD card into the Ubuntu installation interface.
  • Follow the on-screen prompts to install the operating system on the CM3588’s 64GB eMMC onboard storage. This allows your external storage (NVMe SSDs) to be used exclusively for data storage without affecting OS performance.
  • After installation is complete, remove the SD card, and the system will reboot from the eMMC.

4. Configuring Hard Drives and RAID 1

4.1 Install NVMe SSDs

Insert the two 4TB NVMe SSDs into the CM3588’s two available NVMe slots, ensuring they are securely connected. The CM3588’s support for direct NVMe SSD connections ensures high-speed data transfer performance.

4.2 Verify Hard Drive Connections

After the system boots, run the following command to verify that the installed NVMe drives are properly connected:

lsblk

This will display all connected storage devices. NVMe SSDs typically appear as /dev/nvme0n1, /dev/nvme1n1, etc.

4.3 Create RAID 1 Array

To ensure data security and redundancy, the two NVMe SSDs can be configured in RAID 1. First, install the mdadm tool:

sudo apt update
sudo apt install mdadm

Next, create the RAID 1 array:

sudo mdadm --create /dev/md0 --level=1 --raid-devices=2 /dev/nvme0n1 /dev/nvme1n1

The system will prompt you to confirm whether to erase the data on the drives. Type yes and press Enter.

4.4 Format the RAID Array

Once the RAID array is created, format it as an EXT4 file system:

sudo mkfs.ext4 /dev/md0

4.5 Mount the RAID Array

After creating and formatting the RAID 1 array, mount it to a directory, such as /mnt/nas:

sudo mkdir -p /mnt/nas
sudo mount /dev/md0 /mnt/nas

To ensure the RAID array automatically mounts on system startup, add the array’s path to the /etc/fstab file:

echo '/dev/md0 /mnt/nas ext4 defaults 0 0' | sudo tee -a /etc/fstab

5. Installing Safeboxbd

5.1 Install Safeboxbd

Download and install the Safeboxbd ARM64 package, one of the best freeware NAS software options available for high security and performance:

sudo dpkg -i safeboxbd-arm64.deb

5.2 Configure Safeboxbd

From the application list, find the Safeboxbd icon. Click to start Safeboxbd and select the file storage path as /mnt/nas. Uploaded files will be stored on the RAID 1 solid-state drives, completing the Safeboxbd setup.

6. Install the Mobilink Client

Download the Mobilink client. After installing the client, bind the Safeboxbd device using its serial number (SN). You can find detailed instructions on the official website. Once the binding is successful, you can access this NAS storage device from anywhere. Whether you’re working remotely or traveling, your home data will always be within reach.

7. Conclusion

By using the FriendlyElec CM3588, you've successfully built a 4TB NAS system with RAID 1 redundancy. The best software for NAS, such as Safeboxbd, ensures that your data is secure and accessible. With low power consumption, quiet operation, and excellent performance, this NAS server is ideal for personal or home use. The combination of high-speed NVMe SSDs and robust Linux NAS software makes this setup a powerful solution for storing and managing your data.