Clean reinstall keeping data

I have my hackintosh for 2.5 years. I started with Sierra and upgraded over the years all the way to Catalina. I also installed and removed tonnes of different software. Now once in a while I see weird things happening. I suspect it's remnants of all that software interfering in subtle ways.

So how do I reinstall macOS clean but keep all my data, Clover, and Windows partition intact?

I'm currently on Catalina with APFS. I'm not very familiar with it. Here's my disk map:

/dev/disk0 (internal, physical): #: TYPE NAME SIZE IDENTIFIER 0: GUID_partition_scheme *2.1 TB disk0 1: EFI EFI 209.7 MB disk0s1 2: Apple_APFS Container disk1 1.8 TB disk0s2 3: Microsoft Reserved 16.8 MB disk0s3 4: Microsoft Basic Data 249.0 GB disk0s4 5: Windows Recovery 500.2 MB disk0s5 /dev/disk1 (synthesized): #: TYPE NAME SIZE IDENTIFIER 0: APFS Container Scheme - +1.8 TB disk1 Physical Store disk0s2 1: APFS Volume MacHD - Data 1.6 TB disk1s1 2: APFS Volume Preboot 81.8 MB disk1s2 3: APFS Volume Recovery 528.3 MB disk1s3 4: APFS Volume VM 17.2 GB disk1s4 5: APFS Volume MacHD 10.9 GB disk1s5 
submitted by /u/chebatron
[link] [comments]