Recuperando NTFS do setor de boot usando testdisk

12 de novembro de 2014


Rebuilding NTFS boot sector using Testdisk

When disk capacity is changed and crosses one the following boundaries - 528Mb, 1Gb, 2Gb, 4Gb, change in the disk geometry may cause the NTFS boot sector
to become invalid. More detailed explanation can be found here.
Fortunately, it can be rebuilt using the Testdisk utility.

Step 1

Since a virtual machine can't boot from the VHD due to the invalid boot sector, temporally attach the VHD to another Virtual Machine as a second hard disk.
Make sure that the "Undo Disks" option on that machine is disabled.


Another approach is to use VHD Mount to mount the VHD as a disk on the host machine.
VHD Mount is part of Microsoft Virtual Server 2005 R2 SP1.
If you don't want to install the complete Virtual Server modify the setup options to install only VHD Mount.
By default VHD Mount is installed in the [Program Files]\Microsoft Virtual Server\Vhdmount directory.


Run the following command to mount the VHD:


On Windows XP


vhdmount /p /f <VHD File Name>


On Windows Server 2003


vhdmount /m /f <VHD File Name>




Step 2

Download Testdisk utility. Run testdisk_win.exe.


Select any option on this screen, as desired.







Step 3

Select the disk device corresponding to your VHD.







Step 4

Select Intel.







Step 5

Select Advanced.







Step 6

Select the boot partition, it is marked with the asterisk.







Step 7

On this screen TestDisk reports mismatch between the number of heads in NTFS BPB (NTFS) and number of heads reported by BIOS (HD). Rebuilding of the boot sector will correct this.


Select Rebuild BS.







Step 8

Select Write.








Step 9

Type Y for yes.







Step 10

Quit the Testdisk utility all the way through all the previous screens.







Step 11

If you temporally connected the VHD to another Virtual Machine, disconnect it now.


If you used VHD Mount, un-mount the VHD using the following command:


vhdmount /u <VHD File Name>







This document was last modified 04/08/13 12:23:53 CDT







0 comentários:

Postar um comentário

Veja outras Publicações