How to use a USB HDD for HA data logging on a Raspberry Pi 3+?

Hi,

I’m new to HA and just about to set up my Raspberry Pi 3+. I’ve read recommendations to not use an SD card as data storage due to the numerous IO operations, so I dug up an old barely-used USB HDD (not SSD). How can I adapt the HA RPi install guide to use my USB HDD for data storage instead of the SD card?

Do I need to boot from the HDD or can I still boot from the SD card?

Cheers,