Page 1 of 1

getting drive not formated error and cannot repair MBR

Posted: 19 Nov 2013, 21:57
by abenson
I have a hard drive that was internal to my laptop that I have now removed and wish to use as an external device via USB. I put it in an enclosure and it was working fine, but something has gone wrong. I think the connector on the enclosure is broken. I used an SATA to USB cable to connect the drive. It assigns a drive letter, but says that the device must be formatted. checked it in disk management under windows 7, tried chkdsk /f and said it is a RAW data.

When I bring it up in TestDisk it finds the partitions, and I can see all of the files on the partitions. I try to repair the boot sector and master boot record, but I keep getting "write" errors. Any suggestions/advice would be greatly appreciated!!

Below is my log file:



Tue Nov 19 13:21:56 2013
Command line: TestDisk

TestDisk 6.14, Data Recovery Utility, July 2013
Christophe GRENIER <grenier@cgsecurity.org>
http://www.cgsecurity.org
OS: Windows 7 (7601) SP1
Compiler: GCC 4.7, MinGW 3.11
Compilation date: Jul 30 2013 14:09:04
ext2fs lib: none, ntfs lib: 10:0:0, reiserfs lib: none, ewf lib: 20120504
disk_get_size_win32 IOCTL_DISK_GET_LENGTH_INFO(\\.\PhysicalDrive0)=128035676160
disk_get_size_win32 IOCTL_DISK_GET_LENGTH_INFO(\\.\PhysicalDrive1)=750156374016
disk_get_size_win32 IOCTL_DISK_GET_LENGTH_INFO(\\.\C:)=127928369152
filewin32_getfilesize(\\.\D:) GetFileSize err Incorrect function.


filewin32_setfilepointer(\\.\D:) SetFilePointer err Incorrect function.


Warning: can't get size for \\.\D:
disk_get_size_win32 IOCTL_DISK_GET_LENGTH_INFO(\\.\E:)=750156374016
Hard disk list
Disk \\.\PhysicalDrive0 - 128 GB / 119 GiB - CHS 15566 255 63, sector size=512
Disk \\.\PhysicalDrive1 - 750 GB / 698 GiB - CHS 11400 255 63, sector size=4096
Drive C: - 127 GB / 119 GiB - CHS 15553 255 63, sector size=512
Drive E: - 750 GB / 698 GiB - CHS 11400 255 63, sector size=4096

Partition table type (auto): Intel
Disk \\.\PhysicalDrive1 - 750 GB / 698 GiB
Partition table type: EFI GPT

Interface Advanced
Bad GPT partition, invalid signature.
Trying alternate GPT
Bad GPT partition, invalid signature.
Partition table type (auto): Intel
Disk \\.\PhysicalDrive1 - 750 GB / 698 GiB
Partition table type: Intel

Interface Advanced
Geometry from i386 MBR: head=255 sector=63
NTFS at 0/162/35
Warning: number of bytes per sector mismatches 512 (NTFS) != 4096 (HD)
Info: size boot_sector 1540096, partition 192512
NTFS at 12/158/19
Warning: number of bytes per sector mismatches 512 (NTFS) != 4096 (HD)
Info: size boot_sector 1463517184, partition 182939648
1 * HPFS - NTFS 0 162 35 12 158 18 192512 [RECOVERY]
NTFS, blocksize=4096, 788 MB / 752 MiB
2 P HPFS - NTFS 12 158 19 11400 22 14 182939648 [OS]
NTFS, blocksize=4096, 749 GB / 697 GiB

ntfs_boot_sector
1 * HPFS - NTFS 0 162 35 12 158 18 192512 [RECOVERY]
NTFS, blocksize=4096, 788 MB / 752 MiB
NTFS at 0/162/35
Warning: number of bytes per sector mismatches 512 (NTFS) != 4096 (HD)
Info: size boot_sector 1540096, partition 192512
filesystem size 1540096 1470706680935409875
sectors_per_cluster 8 84
mft_lcn 64170 2339999267
mftmirr_lcn 2 4294451332
clusters_per_mft_record -10 -52
clusters_per_index_record 1 -52
Boot sector
Warning: number of bytes per sector mismatches 512 (NTFS) != 4096 (HD)
Status: OK

Backup boot sector
Status: Bad

Sectors are not identical.

A valid NTFS Boot sector must be present in order to access
any data; even if the partition is not bootable.
rebuild_NTFS_BS
mft at 2, seq=1, main=0 res=1
ntfs_find_mft: mft_lcn 64170
ntfs_find_mft: mftmirr_lcn 2
ntfs_find_mft: sectors_per_cluster 1
ntfs_find_mft: mft_lcn 64170
ntfs_find_mft: mftmirr_lcn 2
ntfs_find_mft: mft_record_size 1024
ntfs_find_mft: index_block_size 4096
New / Current boot sector
filesystem size 192512 1540096
sectors_per_cluster 1 8
mft_lcn 64170 64170
mftmirr_lcn 2 2
clusters_per_mft_record -10 -10
clusters_per_index_record 1 1
Extrapolated boot sector and current boot sector are different.
filesystem size 192512 1540096
sectors_per_cluster 1 8
mft_lcn 64170 64170
mftmirr_lcn 2 2
clusters_per_mft_record -10 -10
clusters_per_index_record 1 1
Write new boot!
Write error: Can't write new NTFS boot sector
Write error: Can't write new NTFS backup boot sector

ntfs_boot_sector
1 * HPFS - NTFS 0 162 35 12 158 18 192512 [RECOVERY]
NTFS, blocksize=4096, 788 MB / 752 MiB
NTFS at 0/162/35
NTFS at 0/162/35
filesystem size 192512
sectors_per_cluster 1
mft_lcn 64170
mftmirr_lcn 2
clusters_per_mft_record -10
clusters_per_index_record 1
Boot sector
Status: OK

Backup boot sector
Status: OK

Sectors are identical.

A valid NTFS Boot sector must be present in order to access
any data; even if the partition is not bootable.
Change partition type:
1 * HPFS - NTFS 0 162 35 12 158 18 192512 [RECOVERY]
NTFS, blocksize=4096, 788 MB / 752 MiB

ntfs_boot_sector
2 P HPFS - NTFS 12 158 19 11400 22 14 182939648 [OS]
NTFS, blocksize=4096, 749 GB / 697 GiB
NTFS at 12/158/19
Warning: number of bytes per sector mismatches 512 (NTFS) != 4096 (HD)
Info: size boot_sector 1463517184, partition 182939648
filesystem size 1463517184 1
sectors_per_cluster 8 0
mft_lcn 786432 0
mftmirr_lcn 2 0
clusters_per_mft_record -10 0
clusters_per_index_record 1 0
Boot sector
Warning: number of bytes per sector mismatches 512 (NTFS) != 4096 (HD)
Status: OK

Backup boot sector
Status: Bad

Sectors are not identical.

A valid NTFS Boot sector must be present in order to access
any data; even if the partition is not bootable.
rebuild_NTFS_BS
mft at 2, seq=1, main=0 res=1
ntfs_find_mft: mft_lcn 786432
ntfs_find_mft: mftmirr_lcn 2
ntfs_find_mft: sectors_per_cluster 1
ntfs_find_mft: mft_lcn 786432
ntfs_find_mft: mftmirr_lcn 2
ntfs_find_mft: mft_record_size 1024
ntfs_find_mft: index_block_size 4096
New / Current boot sector
filesystem size 182939648 1463517184
sectors_per_cluster 1 8
mft_lcn 786432 786432
mftmirr_lcn 2 2
clusters_per_mft_record -10 -10
clusters_per_index_record 1 1
Extrapolated boot sector and current boot sector are different.
filesystem size 182939648 1463517184
sectors_per_cluster 1 8
mft_lcn 786432 786432
mftmirr_lcn 2 2
clusters_per_mft_record -10 -10
clusters_per_index_record 1 1
Write new boot!
Write error: Can't write new NTFS boot sector
Write error: Can't write new NTFS backup boot sector

ntfs_boot_sector
2 P HPFS - NTFS 12 158 19 11400 22 14 182939648 [OS]
NTFS, blocksize=4096, 749 GB / 697 GiB
NTFS at 12/158/19
NTFS at 12/158/19
filesystem size 182939648
sectors_per_cluster 1
mft_lcn 786432
mftmirr_lcn 2
clusters_per_mft_record -10
clusters_per_index_record 1
Boot sector
Status: OK

Backup boot sector
Status: OK

Sectors are identical.

A valid NTFS Boot sector must be present in order to access
any data; even if the partition is not bootable.
Failed to open inode: Input/output error.
repair_MFT
NTFS at 12/158/19
ntfs_readdir failed for cluster 5
NTFS listing using MFT:
Directory /
5 dr-xr-xr-x 0 0 0 14-Nov-2013 15:59 .
5 dr-xr-xr-x 0 0 0 14-Nov-2013 15:59 ..
NTFS filesystem need to be repaired.
ntfs_dir: ntfs_inode_open failed
MFT and MFT mirror are bad. Failed to repair them.
MFT and MFT mirror are bad. Failed to repair them.

ntfs_boot_sector
2 P HPFS - NTFS 12 158 19 11400 22 14 182939648 [OS]
NTFS, blocksize=4096, 749 GB / 697 GiB
NTFS at 12/158/19
NTFS at 12/158/19
filesystem size 182939648
sectors_per_cluster 1
mft_lcn 786432
mftmirr_lcn 2
clusters_per_mft_record -10
clusters_per_index_record 1
Boot sector
Status: OK

Backup boot sector
Status: OK

Sectors are identical.

A valid NTFS Boot sector must be present in order to access
any data; even if the partition is not bootable.

TestDisk exited normally.

Re: getting drive not formated error and cannot repair MBR

Posted: 21 Nov 2013, 08:41
by cgrenier
Do you have the same problem with TestDIsk 7.0-WIP ?