Disable RepairMFT if partition has been found using backup boot sector.
This commit is contained in:
parent
42983929f3
commit
2d62f25b7f
1 changed files with 9 additions and 0 deletions
|
@ -136,6 +136,15 @@ int repair_MFT(disk_t *disk_car, partition_t *partition, const int verbose, cons
|
|||
free(ntfs_header);
|
||||
return 0;
|
||||
}
|
||||
if(partition->sb_offset!=0)
|
||||
{
|
||||
log_info("Please quit TestDisk and reboot your computer before trying to fix the MFT.\n");
|
||||
display_message("Please quit TestDisk and reboot your computer before trying to fix the MFT.\n");
|
||||
free(buffer_mftmirr);
|
||||
free(buffer_mft);
|
||||
free(ntfs_header);
|
||||
return -1;
|
||||
}
|
||||
/*
|
||||
log_debug("MFT\n");
|
||||
dump_log(buffer_mft, mftmirr_size_bytes);
|
||||
|
|
Loading…
Reference in a new issue