

dev/sda1: UUID="uuid" TYPE="ext4" PARTUUID="partuuid-01" Now get the list os UUIDs and PARIDS of your disk: $ sudo blkid | grep sda Mount your sda1 into mnt: $ sudo mount /dev/sda1 /mntĬopy the root to the mounted hdd: $ sudo rsync -axv / /mnt Do you want to continue?įormat boot and root file systems: $ sudo mkfs.ext4 /dev/sda1 Warning: The existing disk label on /dev/sda will be destroyed and all data on this disk will be lost. This example makes a 10GB ext4 partition and another ext4 with the rest of the disk space: $ sudo parted /dev/sda To summarize it:įirst unmount your sda: $ sudo umount /dev/sda1 You can follow part 4 of this excellent guide. Make sure you have rsync installed: $ sudo apt-get install rsync If you don't have Raspbian installed, grab the official Stretch image and flash it with Etcher.Īfter logging in update your distro: $ sudo apt-get update & sudo apt-get upgrade -y

Plus Traefik auto-manages Let’s Encrypt SSL certificates, with auto renewal. By having a reverse-proxy you don't need to expose various ports on your system, only 80 and 443. This offers great maintainability, as all services start with a single docker-compose up. Raspbian is running from an HDD for better performance, with most of the services running on Docker. Here is the setup I'm using on my Raspberry Pi 3 server, compiled from different guides across the internet.
