Andyroo wrote: ↑
Sat Aug 03, 2019 11:23 am
Best way to boot Buster is put the /boot on the SD card and the rest of the OS on the HDD / SSD.
Best way is to carve out a primary FAT partition (/dev/sda1) of 256MB at the front of your HDD/SSD and format that as FAT. Create an extended partition (/dev/sda2) for the rest of the space. In the extended partition create two partitions of at least 16GB (/dev/sda5 & /dev/sda6) create a third partition with the rest of the space.
Install Raspbian on an 8GB SDCard and boot it.
Unmount any partitions on the SDD/HDD that get automounted.
Copy /dev/mmcblk0p1 to /dev/sda1 (with dd or rsync, it's your choice)
Copy /dev/mmcblk0p2 to /dev/sda5 (use dd it'll fit because the target is 16GB)
Run gparted to expand the filesystem on /dev/sda5 to 16GB.
Copy /dev/sda5 to /dev/sda6 (we're going to flip-flop when Bullseye comes out, we going to leave this as a rescue system until then).
Mount /dev/sda1 on /mnt
Update /mnt/cmdline.txt with the PARTUUID for /dev/sda5
Mount /dev/sda5 on /mnt
Update /mnt/etc/fstab with the PARTUUID for /dev/sda1 and /dev/sda5 for /boot and / respectively.
Mount /dev/sda6 on /mnt
Update /mnt/etc/fstab with the PARTUUID for /dev/sda1 and /dev/sda6
Eject the SDCard
Run gparted to format /dev/sda7 as ext4. Choose a mount point for it (/srv or /home), it's going to be the space where you store all of those movies etc. Update /etc/fstab with the PARTUUID for /dev/sda7 and the mount point.
It may sound like hard work but that's how my two 3Bs with hard drives are set-up.
If anything goes wrong you only need to update cmdline.txt on /dev/sda1 to boot the other good 16GB partition. You can trash either of those partitions and none of your valuable stuff gets lost.
Every time that raspberrypi-kernel and raspberrypi-bootloader get an update copy /dev/sda5 to /dev/sda6 (or vice versa - copy from the one that's active at the time). Don't forget this step or your rescue system will go stale and won't boot.