- Raspberry Pi 4B 8GB
- NVMe SSD 1TB
- Dual SATA HDD Bay with Hardware RAID
- 2 x HDD 16TB
-
Install Arch Linux ARM (
aarch64
) on the SSD following the guides- Raspberry Pi 4 - Arch Linux ARM
- Arch Linux ARM USB Boot on Raspberry Pi 4
- This comment on the previous gist
-
Install the HDDs in the bay and set up RAID1 mode for redundancy.
-
Format the resulting logical drive with an
ext4
partition:lsblk sudo fdisk /dev/sdb # create an ext4 partition using the default values sudo mkfs.ext4 /sdb1
-
Automatically mount the drive by adding it to
fstab
:# Static information about the filesystems. # See fstab(5) for details. # <file system> <dir> <type> <options> <dump> <pass> UUID=036B-B429 /boot vfat defaults 0 0 UUID=e5202fed-ade4-4b63-a13a-911aba4af8d6 /mnt/hdd ext4 defaults,nofail,x-systemd.device-timeout=5 0 2
-
Change the ownership of the mounted drive:
chown $USER:$USER /mnt/hdd
-
Create the folder structure specified in the TRaSH guide:
sudo mkdir -p /mnt/hdd/data/{media,torrents}/{anime,movies,tv}
Follow the TRaSH guides.
-
Start and enable
homeflix
on boot:systemctl --user enable --now homeflix/systemd/homeflix.service
-
Enable lingering:
loginctl enable-linger
-
Check the logs:
journalctl --user -u homeflix