Follow these steps to recover a partition: In the Windows search box, type 'CMD'. Click 'Run as administrator' from the context menu of the 'Command Prompt' application. Enter the upcoming command: Press 'Enter' after typing 'chkdsk X: //f//r//x' (change 'X' with the drive letter of the corrupted partition).