{
    "ok": true,
    "data": {
        "title": "EP-0242",
        "rev_id": 15685,
        "updated_at": "2024-12-18T02:27:40+00:00",
        "chunk_count": 34,
        "chunks": [
            {
                "title": "EP-0242",
                "rev_id": 15685,
                "heading_path": "",
                "chunk_index": 0,
                "content": "# EP-0242",
                "char_count": 9,
                "token_estimate": 3
            },
            {
                "title": "EP-0242",
                "rev_id": 15685,
                "heading_path": "52Pi S021 SATA 3.0x2 for Raspberry Pi 5",
                "chunk_index": 1,
                "content": "<figure>\n<img src=\"EP-0242-1.jpg\" title=\"EP-0242-1.jpg\" width=\"320\" alt=\"EP-0242-1.jpg\" \/>\n<figcaption aria-hidden=\"true\">EP-0242-1.jpg<\/figcaption>\n<\/figure>",
                "char_count": 158,
                "token_estimate": 40
            },
            {
                "title": "EP-0242",
                "rev_id": 15685,
                "heading_path": "Description",
                "chunk_index": 2,
                "content": "The 52Pi S021 is a specialized Hat board designed for the Raspberry Pi 5, offering dual SATA 3.0 interfaces to expand the storage capabilities of your Raspberry Pi system. With its PCIe connectivity, it ensures seamless integration and high-speed data transfer. The board is equipped with a robust 12V DC power input and supports two separate 12V HDD power inputs for stable operation of high-capacity hard drives.",
                "char_count": 414,
                "token_estimate": 104
            },
            {
                "title": "EP-0242",
                "rev_id": 15685,
                "heading_path": "Fetures",
                "chunk_index": 3,
                "content": "-   <strong>Model Name<\/strong>: 52Pi S021\n-   <strong>Dual SATA 3.0 Ports<\/strong>: Supports two SATA 3.0 hard drives for enhanced data storage.\n-   <strong>PCIe Interface<\/strong>: Ensures compatibility with the Raspberry Pi 5's PCIe interface for fast data access.\n-   <strong>GPIO Compatibility<\/strong>: Aligns with the Raspberry Pi's 40-pin GPIO for extended functionality.\n-   <strong>Power Management<\/strong>: Designed for high-power applications with a recommended 12V @6A, 72W power supply.\n-   <strong>HDD Power Support<\/strong>: Includes two dedicated power connectors for hard drives, ensuring reliable operation.",
                "char_count": 627,
                "token_estimate": 157
            },
            {
                "title": "EP-0242",
                "rev_id": 15685,
                "heading_path": "Fetures > Specifications",
                "chunk_index": 4,
                "content": "-   Product Name: 52Pi S021 SATA 3.0x2 for Raspberry Pi 5\n-   Compatible Model: Raspberry Pi 5\n-   SATA Ports: 2 x SATA 3.0\n-   PCIe Interface: Compatible with Raspberry Pi 5's PCIe slot\n-   GPIO Connector: 40-pin GPIO for additional interfacing options\n-   Power Input: 12V DC for the board, with separate 12V inputs for HDDs(ITX Power supply）\n-   Recommended Power Supply: 12V @ 6A, capable of delivering up to 72W\n-   HDD Power Connectors: Two power connectors for independent HDD power management",
                "char_count": 500,
                "token_estimate": 125
            },
            {
                "title": "EP-0242",
                "rev_id": 15685,
                "heading_path": "Gallery",
                "chunk_index": 5,
                "content": "-   Product outlook\n\n<img src=\"EP-0242-1.jpg\" title=\"EP-0242-1.jpg\" width=\"800\" alt=\"EP-0242-1.jpg\" \/>\n<img src=\"EP-0242-2.jpg\" title=\"EP-0242-2.jpg\" width=\"800\" alt=\"EP-0242-2.jpg\" \/>\n\\* Port definitions <img src=\"EP-0242-3.jpg\" title=\"EP-0242-3.jpg\" width=\"800\" alt=\"EP-0242-3.jpg\" \/>\n\n-   Fix the hat with copper pillar, it has enought space to put heatsink.\n\n<img src=\"EP-0242-4.jpg\" title=\"EP-0242-4.jpg\" width=\"800\" alt=\"EP-0242-4.jpg\" \/>\n\n-   Jumper function description\n\n<img src=\"EP-0242-10.jpg\" title=\"EP-0242-10.jpg\" width=\"800\" alt=\"EP-0242-10.jpg\" \/>\n\n-   Active Cooler\n\n<img src=\"EP-0242-5.jpg\" title=\"EP-0242-5.jpg\" width=\"800\" alt=\"EP-0242-5.jpg\" \/>\n\n-   With 12V @ 6A 72W Power supply\n\n<img src=\"EP-0242-6.jpg\" title=\"EP-0242-6.jpg\" width=\"800\" alt=\"EP-0242-6.jpg\" \/>\n\n-   HDD connection and status\n\n<img src=\"EP-0242-7.jpg\" title=\"EP-0242-7.jpg\" width=\"800\" alt=\"EP-0242-7.jpg\" \/>\n\n-   Variable Power supply method support\n\n<img src=\"EP-0242-11.jpg\" title=\"EP-0242-11.jpg\" width=\"800\" alt=\"EP-0242-11.jpg\" \/>\n\n-   Specifications\n\n<img src=\"EP-0242-8.jpg\" title=\"EP-0242-8.jpg\" width=\"800\" alt=\"EP-0242-8.jpg\" \/>\n\n-   Different view angle",
                "char_count": 1155,
                "token_estimate": 289
            },
            {
                "title": "EP-0242",
                "rev_id": 15685,
                "heading_path": "Gallery",
                "chunk_index": 6,
                "content": "<img src=\"EP-0242-9.jpg\" title=\"EP-0242-9.jpg\" width=\"800\" alt=\"EP-0242-9.jpg\" \/>",
                "char_count": 81,
                "token_estimate": 21
            },
            {
                "title": "EP-0242",
                "rev_id": 15685,
                "heading_path": "Gallery > How to assemble it?",
                "chunk_index": 7,
                "content": "-   Please assemble it according to following figure.\n-   Default: Using 12V 6A (72W) Power supply\n\n<img src=\"EP-0242-IN.jpg\" title=\"EP-0242-IN.jpg\" width=\"800\" alt=\"EP-0242-IN.jpg\" \/>",
                "char_count": 184,
                "token_estimate": 46
            },
            {
                "title": "EP-0242",
                "rev_id": 15685,
                "heading_path": "Package Includes",
                "chunk_index": 8,
                "content": "<img src=\"EP-0242-PL.jpg\" title=\"EP-0242-PL.jpg\" width=\"800\" alt=\"EP-0242-PL.jpg\" \/>",
                "char_count": 84,
                "token_estimate": 21
            },
            {
                "title": "EP-0242",
                "rev_id": 15685,
                "heading_path": "Jumper Details",
                "chunk_index": 9,
                "content": "Note: This part is very important for using the jumper to control the power rail.\n\\* P1-P2 connected: Raspberry Pi and HAT share 5V power.\n\n1\\. When using a 2.5-inch hard drive, you can choose either the Raspberry Pi's USB-C power port or the HAT's DC jack for 12V power.\n\n2\\. When using a 3.5-inch hard drive, do not connect power to the Raspberry Pi's USB-C port; only connect to the HAT's DC jack using a 12V DC power supply, and configure it to provide a forced 5A power in the settings.\n\n-   P2-P3 not connected: Raspberry Pi and HAT share 5V power; both the Raspberry Pi's power supply and the HAT's power supply need to be connected.",
                "char_count": 640,
                "token_estimate": 160
            },
            {
                "title": "EP-0242",
                "rev_id": 15685,
                "heading_path": "How to use external ATX power supply with S021 kit?",
                "chunk_index": 10,
                "content": "Note: If powered by a 12V DC power supply, or while being powered by a 12V ATX power supply, do not supply power to the Raspberry Pi 5 through the USB-C port.\n\n-   Step1. Connect the power supply to S021 on 12V HDD power supply.\n\n<img src=\"20241018133030.jpg\" title=\"20241018133030.jpg\" width=\"800\" alt=\"20241018133030.jpg\" \/>\n\\* Step2. Connect the HDD harddrive with data transfer cable and power cables. <img src=\"20241018133036.jpg\" title=\"20241018133036.jpg\" width=\"800\" alt=\"20241018133036.jpg\" \/>\n\\* Step3. Turn on the power switch on your ATX PSU.\n\n-   Step4. Short between the green and black wires on the 24pin connector (as show below), with a paper\n\n`clip or piece of wire. If all wires are black, place the connector with the lock clip facing up and short`\n`4th and 5th pins (counting from left to right) in the upper row.`\n\n<img src=\"20241018133040.jpg\" title=\"20241018133040.jpg\" width=\"800\" alt=\"20241018133040.jpg\" \/>\n<img src=\"20241018132359.jpg\" title=\"20241018132359.jpg\" width=\"800\" alt=\"20241018132359.jpg\" \/>",
                "char_count": 1030,
                "token_estimate": 258
            },
            {
                "title": "EP-0242",
                "rev_id": 15685,
                "heading_path": "How to enable PCIe on Raspberry Pi 5",
                "chunk_index": 11,
                "content": "-   We assume that you are using:\n\n<!-- -->\n\n    Raspberry Pi OS with desktop and recommended software\n    Release date: July 4th 2024\n    System: 64-bit\n    Kernel version: 6.6\n    Debian version: 12 (bookworm)",
                "char_count": 211,
                "token_estimate": 53
            },
            {
                "title": "EP-0242",
                "rev_id": 15685,
                "heading_path": "How to enable PCIe on Raspberry Pi 5 > Step 1",
                "chunk_index": 12,
                "content": "-   Enable PCIe function\n\nEdit \/boot\/firmware\/config.txt file and adding following parameter in to the file.\n\n    dtparam=pciex1\n\n<img src=\"Pcie_overlay_parameter.png\" title=\"Pcie_overlay_parameter.png\" width=\"800\" alt=\"Pcie_overlay_parameter.png\" \/>\nSave it and then do remember reboot your Raspberry Pi to take effect.",
                "char_count": 320,
                "token_estimate": 80
            },
            {
                "title": "EP-0242",
                "rev_id": 15685,
                "heading_path": "How to enable PCIe on Raspberry Pi 5 > Step 2",
                "chunk_index": 13,
                "content": "-   Check if the SSD drive has been recognized\n\n<!-- -->\n\n    sudo lspci\n    sudo lsblk\n\nResult be like: <img src=\"Lsblk_lspci.png\" title=\"Lsblk_lspci.png\" width=\"800\" alt=\"Lsblk_lspci.png\" \/>",
                "char_count": 192,
                "token_estimate": 48
            },
            {
                "title": "EP-0242",
                "rev_id": 15685,
                "heading_path": "How to enable PCIe on Raspberry Pi 5 > Step 3",
                "chunk_index": 14,
                "content": "-   Partitioning\n\n<!-- -->\n\n    sudo fdisk \/dev\/sda\n\nand then input following letter, p - print partition label, n - new partition, p- primary partition, 1 - partition number 1, enter-first cylinder , enter - use whole space. if you want to generate specifiled space, you can just input +XXXG, for examples, if you want to create a 10G partition, just input +10G and then press enter. you can check the partition information by input \\`p\\` print partition table. Here, I am going to create a partition contains whole space of the disk.\n\n    p\n    n\n    p\n    1\n    enter\n    enter\n    w\n\nSame operation for the second HDD disk.",
                "char_count": 627,
                "token_estimate": 157
            },
            {
                "title": "EP-0242",
                "rev_id": 15685,
                "heading_path": "How to enable PCIe on Raspberry Pi 5 > Step 4",
                "chunk_index": 15,
                "content": "-   Format partition\n\n<!-- -->\n\n    sudo mkfs.ext4 \/dev\/sda1\n    sudo mkfs.ext4 \/dev\/sdb1\n\n<img src=\"Formatdisk.png\" title=\"Formatdisk.png\" width=\"800\" alt=\"Formatdisk.png\" \/>\nPlease divide the partition according to actual needs. Here I simply divided a partition and formatted it into ext4. Please refer to the configuration method related to the fdisk command to operate.",
                "char_count": 374,
                "token_estimate": 94
            },
            {
                "title": "EP-0242",
                "rev_id": 15685,
                "heading_path": "How to enable PCIe on Raspberry Pi 5 > Step 5",
                "chunk_index": 16,
                "content": "-   Create mounting point\n\n<!-- -->\n\n    sudo mkdir -pv \/home\/pi\/HDD1\n    sudo mkdir -pv \/home\/pi\/HDD2",
                "char_count": 102,
                "token_estimate": 26
            },
            {
                "title": "EP-0242",
                "rev_id": 15685,
                "heading_path": "How to enable PCIe on Raspberry Pi 5 > Step 6",
                "chunk_index": 17,
                "content": "-   Mount the disk to the mounting point\n\n<!-- -->\n\n    sudo mount -t ext4 \/dev\/sda1  \/home\/pi\/HDD1  -v\n    sudo mount -t ext4 \/dev\/sdb1  \/home\/pi\/HDD2  -v\n    sudo systemctl daemon-reload",
                "char_count": 188,
                "token_estimate": 47
            },
            {
                "title": "EP-0242",
                "rev_id": 15685,
                "heading_path": "How to enable PCIe on Raspberry Pi 5 > Step 7",
                "chunk_index": 18,
                "content": "-   Modify file system table file for automount function\n\n<!-- -->\n\n    sudo vim.tiny \/etc\/fstab\n\nadding following lines:\n\n    \/dev\/sda1    \/home\/pi\/HDD1   ext4   defaults,noatime  0  0\n    \/dev\/sdb1    \/home\/pi\/HDD2   ext4   defaults,noatime  0  0\n\nNOTE: please becareful when you editing this file, wrong parameters will cause the system crashed\n\\* How to test it .\n\n    sudo umount \/dev\/sda1\n    sudo umount \/dev\/sdb1\n    sudo mount -a\n    df -Th\n\nIf you can find the mounting device still there, means it works properly. you can just reboot your raspberry Pi to test it out, if not, please double check the parameters in \/etc\/fstab file.",
                "char_count": 641,
                "token_estimate": 161
            },
            {
                "title": "EP-0242",
                "rev_id": 15685,
                "heading_path": "Setting up a software RAID on a Raspberry Pi",
                "chunk_index": 19,
                "content": "-   Setting up a software RAID on a Raspberry Pi using the \\`mdadm\\` tool involves several steps. Below is a step-by-step guide to help you through the process:",
                "char_count": 160,
                "token_estimate": 40
            },
            {
                "title": "EP-0242",
                "rev_id": 15685,
                "heading_path": "Setting up a software RAID on a Raspberry Pi > Prerequisites",
                "chunk_index": 20,
                "content": "-   \\- Two or more USB hard drives or SSDs connected to your Raspberry Pi.\n-   \\- Raspberry Pi OS with SSH enabled.\n-   \\- Basic knowledge of Linux command-line operations.",
                "char_count": 172,
                "token_estimate": 43
            },
            {
                "title": "EP-0242",
                "rev_id": 15685,
                "heading_path": "Setting up a software RAID on a Raspberry Pi > Step 1: Update Your System",
                "chunk_index": 21,
                "content": "First, ensure your Raspberry Pi is up to date by running:\n\n    sudo apt-get update\n    sudo apt-get upgrade -y",
                "char_count": 110,
                "token_estimate": 28
            },
            {
                "title": "EP-0242",
                "rev_id": 15685,
                "heading_path": "Setting up a software RAID on a Raspberry Pi > Step 2: Install mdadm",
                "chunk_index": 22,
                "content": "Install the \\`mdadm\\` utility which is used to manage and monitor RAID arrays:\n\n    sudo apt-get install mdadm -y",
                "char_count": 113,
                "token_estimate": 29
            },
            {
                "title": "EP-0242",
                "rev_id": 15685,
                "heading_path": "Setting up a software RAID on a Raspberry Pi > Step 3: Identify Your Drives",
                "chunk_index": 23,
                "content": "Before creating the RAID array, identify the drives you want to include. You can use the \\`lsblk\\` or \\`fdisk\\` command to list all connected drives:\n\n    lsblk\n    # or\n\n    sudo fdisk -l\n\nTake note of the device names (e.g., \\`\/dev\/sda\\`, \\`\/dev\/sdb\\`).",
                "char_count": 255,
                "token_estimate": 64
            },
            {
                "title": "EP-0242",
                "rev_id": 15685,
                "heading_path": "Setting up a software RAID on a Raspberry Pi > Step 4: Partition the Drives (if necessary)",
                "chunk_index": 24,
                "content": "If your drives are not already partitioned, you'll need to do so. You can use \\`fdisk\\` or \\`parted\\` for partitioning. Here's an example using \\`fdisk\\`:\n\n    sudo fdisk \/dev\/sda\n\nFollow the prompts to create a new partition. Repeat for each drive.",
                "char_count": 249,
                "token_estimate": 63
            },
            {
                "title": "EP-0242",
                "rev_id": 15685,
                "heading_path": "Setting up a software RAID on a Raspberry Pi > Step 5: Create the RAID Array",
                "chunk_index": 25,
                "content": "Choose the RAID level (e.g., RAID1 for mirroring, RAID0 for striping). To create a RAID1 array with \\`\/dev\/sda1\\` and \\`\/dev\/sdb1\\`, use:\n\n    sudo mdadm --create --verbose \/dev\/md0 --level=1 --raid-devices=2 \/dev\/sda1 \/dev\/sdb1\n\nReplace \\`\/dev\/md0\\` with the desired RAID device name, and \\`\/dev\/sda1\\` and \\`\/dev\/sdb1\\` with your actual partition names.",
                "char_count": 355,
                "token_estimate": 89
            },
            {
                "title": "EP-0242",
                "rev_id": 15685,
                "heading_path": "Setting up a software RAID on a Raspberry Pi > Step 6: Assemble the RAID Array",
                "chunk_index": 26,
                "content": "After creating the RAID array, you need to assemble it:\n\n    sudo mdadm --assemble --scan\n\nThis command will scan for RAID arrays and assemble them.",
                "char_count": 148,
                "token_estimate": 37
            },
            {
                "title": "EP-0242",
                "rev_id": 15685,
                "heading_path": "Setting up a software RAID on a Raspberry Pi > Step 7: Create a Filesystem",
                "chunk_index": 27,
                "content": "Once the RAID array is assembled, create a filesystem on it. For example, to create an ext4 filesystem:\n\n    sudo mkfs.ext4 \/dev\/md0",
                "char_count": 132,
                "token_estimate": 33
            },
            {
                "title": "EP-0242",
                "rev_id": 15685,
                "heading_path": "Setting up a software RAID on a Raspberry Pi > Step 8: Mount the RAID Array",
                "chunk_index": 28,
                "content": "Create a mount point and mount the RAID array:\n\n    sudo mkdir -pv \/mnt\/raid\n    sudo mount -t ext4 \/dev\/md0 \/mnt\/raid",
                "char_count": 118,
                "token_estimate": 30
            },
            {
                "title": "EP-0242",
                "rev_id": 15685,
                "heading_path": "Setting up a software RAID on a Raspberry Pi > Step 9: Auto-mount at Boot",
                "chunk_index": 29,
                "content": "To auto-mount the RAID array at boot, add an entry to \\`\/etc\/fstab\\`:\n\n    echo '\/dev\/md0 \/mnt\/raid ext4 defaults 0 0' | sudo tee -a \/etc\/fstab",
                "char_count": 143,
                "token_estimate": 36
            },
            {
                "title": "EP-0242",
                "rev_id": 15685,
                "heading_path": "Setting up a software RAID on a Raspberry Pi > Step 10: Monitor the RAID Array",
                "chunk_index": 30,
                "content": "Use \\`mdadm\\` to monitor the status of your RAID array:\n\n    sudo mdadm --detail \/dev\/md0",
                "char_count": 89,
                "token_estimate": 23
            },
            {
                "title": "EP-0242",
                "rev_id": 15685,
                "heading_path": "Setting up a software RAID on a Raspberry Pi > Step 11: Update initramfs",
                "chunk_index": 31,
                "content": "Update the initial RAM filesystem to ensure the RAID array is assembled at boot:\n\n    sudo update-initramfs -u",
                "char_count": 110,
                "token_estimate": 28
            },
            {
                "title": "EP-0242",
                "rev_id": 15685,
                "heading_path": "Setting up a software RAID on a Raspberry Pi > Step 12: Reboot",
                "chunk_index": 32,
                "content": "Finally, reboot your Raspberry Pi to ensure everything works correctly:\n\n    sudo reboot\n\nAfter rebooting, your RAID array should be mounted automatically, and you can start using it.  <strong>Important Notes:<\/strong><\/br> - Always backup your data before making changes to disk partitions or setting up RAID arrays.<\/br> - The performance of a software RAID on a Raspberry Pi may not be as high as on a system with a dedicated RAID controller.<\/br> - RAID is not a substitute for backups. Always keep backups of important data.<\/br> <\/br>",
                "char_count": 540,
                "token_estimate": 135
            },
            {
                "title": "EP-0242",
                "rev_id": 15685,
                "heading_path": "Keywords",
                "chunk_index": 33,
                "content": "-   Raspberry Pi 5 SATA HDD adapter, S021 dual HDD adapter board, PCIe to SATA HDD adapter for Raspberry Pi 5.",
                "char_count": 110,
                "token_estimate": 28
            }
        ]
    }
}