Personal homelab (Raspberry Pi 4) setup.
- 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
ext4partition.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=<hdd-uuid> /mnt/hdd ext4 defaults,nofail,x-systemd.device-timeout=5 0 2
-
Change the ownership of the mounted drive.
chown $USER:$USER /mnt/hdd