Using several discs in Homeassistant

Hi,
I use Homeassistant with an external SSD where I have installed everything. I wanted to connect a 1TB HDD to my RPI 4 4GB and connect it to SambaNas. But as soon as I connect the HDD to the Pi, Homeassistant crashes. I connected the HDD to my computer, reformatted it and it works perfectly. But Homeassistant crashes on my Pi.
Does anyone know what could be the reason for this?
Thanks for your answers!

I to am interested in adding a HDD to my HA-yellow using the USB port. In order to store data and backups. Leaving only the config on the internal storage.

That’s probably a power issue. Use a powered USB hub.

Good to know that piece of info.

Thank you very much, I will buy a hub and try it out!