The./testdisk command can be used to start a test disk. Create a recovery log file. When asked, enter your password and hit the return key. Press the Return key to select the physical drive where the partition needs to be repaired.