How to buy bitcoin to my local harddrive?
I'd suggest you to:

Look into hosting your own bitcoin node.
Try using P2P non-custodial non-kyc exchange, you can find the list here.
You may want not to store your wallet on a hard drive. The suggested
solution is to own a hardware wallet