Replacing my HDD

You should be fine.

On Windows it’s fairly similar to the documentation @nerdatwork linked to but slightly different…