I need to install fresh windows 10 on my HDD already containing important data (and unfortunately it's all stored on one partition). What's more, all I can work with is pendrive with windows installation tool, as my ssd died and I'm nowhere near any other computer. I've been given advice to try to shrink current partition using diskpart/shrink and then create partition from newly form unallocated space, but I'm not sure if my data won't get corrupted in the process. Please advise best course of action.
@edit
The data on HDD does not contain any windows installation, so keeping 'old' installation is not possible.