 Pi NAS

Bura's Homelab — Raspberry Pi 4B NAS Server
Loading status...
Hardware Storage Network Containers NAS Setup Monitoring Power Config

Hardware

ModelRaspberry Pi 4 Model B (4GB)
SoCBCM2711 — Cortex-A72 (4 cores, 2.0 GHz)
Memory4 GB LPDDR4
OSDebian 13 (Trixie) — aarch64
Kernel
Uptime
Load
Temperature
Throttled
Voltage

Storage

SSD — Boot Drive /dev/sda

Model
Capacity
Used
Available
Mount/ (rootfs)
Health
Temp
Power-On
Reallocated
Wearout

HDD — NAS Storage /dev/sdb

Model
Capacity
Used
Available
Mount/mnt/nas (label: OLD MAN)
State
Health
Temp
Power-On
Reallocated
Load Cycles

Network

LAN

IP
Interfaceeth0

Tailscale

IP
MagicDNS
Serve

NAS Access

Web GUI (FileBrowser)

Tailnet<tailnet-host>:8080
Adminwithheld
Containernas-gui (filebrowser/filebrowser)
Backend127.0.0.1:8080 (localhost only)
ProtocolHTTP via tailscale serve (encrypted by WireGuard)

SMB (Samba)

Host\\<nas-host> (LAN) or over Tailscale
Containernas-samba (crazymax/samba)
Networkhost mode

Samba Users

adminUID 1003withheldFull access: Admin
CherryUID 1004withheldPrivate: Cherry_Private
FAMILYUID 1005withheldPrivate: FAMILY_Private
KAMALUID 1006withheldPrivate: KAMAL_Private
SharedFamily_Shared — all users R/W

Docker Containers

0 running 0 total
Loading...

Docker Compose Stacks

Monitoring Stack

Prometheus

Access<tailnet-host>:9090
Retention30 days
Scrape Interval15s (60s for sensors)

Grafana

Access<tailnet-host>:3001
Loginwithheld

Exporters

Node Exporter:9100
BMP280 (temp/pressure):8001
SDS011 (PM2.5/PM10):8000

Power & Maintenance

HDD Spin-Down

Standby Timer10 min idle (hdparm -S 120)
APM127 (allow spin-down)
Applied viasystemd service + udev rule
Current State

SMART Monitoring

ScheduleEvery Sunday 3am (systemd timer)
Last Report
Report Path~/smart-reports/
Continuous PollingDisabled (was keeping HDD active)

Swap & Memory

Swap
ZRAM2 GB, zstd compression

Configuration

FileBrowser Settings

{
  "port": 80,
  "address": "",
  "database": "/database/filebrowser.db",
  "root": "/srv"
}

Samba Config

Loading...

HDD Power (systemd service)

/etc/systemd/system/hdd-powermanage.service
/etc/udev/rules.d/99-hdd-powermanage.rules

fstab

UUID=<nas-partition-uuid> /mnt/nas ext4 defaults,noatime,nofail 0 2

Prometheus Config

global:
  scrape_interval: 15s
  evaluation_interval: 15s

scrape_configs:
  - job_name: 'prometheus'
    static_configs:
      - targets: ['localhost:9090']
  - job_name: 'node_exporter'
    static_configs:
      - targets: ['node_exporter:9100']
  - job_name: 'sds011'
    static_configs:
      - targets: ['sds011_exporter:8000']
  - job_name: 'bmp280'
    static_configs:
      - targets: ['bmp280_exporter:8001']

Monitoring Compose

Loading...

NAS Compose

Loading...