I've been trying to get testdisk to write my partition for weeks now. I had an external USB hard drive that had a power supply give out. I took it out of the casing and connected it via SATA cable.
It immediately prompted me to reformat. After some research I came across Testdisk. I have analysed the disk many times and it can read the old partition and I can also copy most files from it. Unfortunately it's about 1.5TB and I'd much prefer to re-write the partition to be like it was. I have not gotten any notifications that the hard drive is bad.
It also worth noting I have no Anti Virus running and I am running TestDisk as an administrator (I'm an IT engineer).
After the multiple hour analyzation takes place I select write and am prompted to reboot. But nothing happens. It did write a small partition after the first time (See screenshot below). But the drive is still prompting for reformatting. What else should I be doing?
Log below.
Any advice would be tremendously appreciated. Thank you all.Tue Mar 29 21:38:38 2016
Command line: TestDisk
TestDisk 7.0, Data Recovery Utility, April 2015
Christophe GRENIER <grenier@cgsecurity.org>
http://www.cgsecurity.org
OS: Windows 7 (7601) SP1
Compiler: GCC 4.8, Cygwin 1007.34
Compilation date: 2015-04-18T13:01:55
ext2fs lib: 1.42.8, ntfs lib: 10:0:0, reiserfs lib: 0.3.1-rc8, ewf lib: 20120504, curses lib: ncurses 5.9
disk_get_size_win32 IOCTL_DISK_GET_LENGTH_INFO(/dev/sda)=1000204886016
disk_get_size_win32 IOCTL_DISK_GET_LENGTH_INFO(/dev/sdb)=128035676160
disk_get_size_win32 IOCTL_DISK_GET_LENGTH_INFO(/dev/sdc)=250000000000
disk_get_size_win32 IOCTL_DISK_GET_LENGTH_INFO(/dev/sdd)=250000000000
disk_get_size_win32 IOCTL_DISK_GET_LENGTH_INFO(/dev/sde)=3000592982016
disk_get_size_win32 IOCTL_DISK_GET_LENGTH_INFO(\\.\PhysicalDrive0)=1000204886016
disk_get_size_win32 IOCTL_DISK_GET_LENGTH_INFO(\\.\PhysicalDrive1)=128035676160
disk_get_size_win32 IOCTL_DISK_GET_LENGTH_INFO(\\.\PhysicalDrive2)=250000000000
disk_get_size_win32 IOCTL_DISK_GET_LENGTH_INFO(\\.\PhysicalDrive3)=250000000000
disk_get_size_win32 IOCTL_DISK_GET_LENGTH_INFO(\\.\PhysicalDrive4)=3000592982016
disk_get_size_win32 IOCTL_DISK_GET_LENGTH_INFO(\\.\C:)=127795200000
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:)=629145600000
disk_get_size_win32 IOCTL_DISK_GET_LENGTH_INFO(\\.\F:)=375072489472
disk_get_size_win32 IOCTL_DISK_GET_LENGTH_INFO(\\.\P:)=499994591232
Hard disk list
Disk /dev/sda - 1000 GB / 931 GiB - CHS 121601 255 63, sector size=512
Disk /dev/sdb - 128 GB / 119 GiB - CHS 15566 255 63, sector size=512
Disk /dev/sdc - 250 GB / 232 GiB - CHS 30394 255 63, sector size=512
Disk /dev/sdd - 250 GB / 232 GiB - CHS 30394 255 63, sector size=512
Disk /dev/sde - 3000 GB / 2794 GiB - CHS 364801 255 63, sector size=512
Drive C: - 127 GB / 119 GiB - CHS 15536 255 63, sector size=512
Drive E: - 629 GB / 585 GiB - CHS 76489 255 63, sector size=512
Drive F: - 375 GB / 349 GiB - CHS 45599 255 63, sector size=512
Drive P: - 499 GB / 465 GiB - CHS 60787 255 63, sector size=512
Partition table type (auto): Intel
Disk /dev/sde - 3000 GB / 2794 GiB
Partition table type: Intel
Analyse Disk /dev/sde - 3000 GB / 2794 GiB - CHS 364801 255 63
Geometry from i386 MBR: head=255 sector=63
Current partition structure:
1 * HPFS - NTFS 1 5 5 45600 251 27 732563456
search_part()
Disk /dev/sde - 3000 GB / 2794 GiB - CHS 364801 255 63
HPFS - NTFS 1 5 5 45600 251 27 732563456
exFAT, blocksize=1048576, 375 GB / 349 GiB
file_pread(8,2,buffer,1565566976(364801/98/34)) lseek err Invalid argument
file_pread(8,1,buffer,1565566976(364801/98/34)) lseek err Invalid argument
file_pread(8,1,buffer,1565566975(364801/98/33)) lseek err Invalid argument
file_pread(8,14,buffer,1565566977(364801/98/35)) lseek err Invalid argument
file_pread(8,3,buffer,1565566991(364801/98/49)) lseek err Invalid argument
file_pread(8,3,buffer,1565567038(364801/99/33)) lseek err Invalid argument
file_pread(8,8,buffer,1565567054(364801/99/49)) lseek err Invalid argument
file_pread(8,11,buffer,1565567101(364801/100/33)) lseek err Invalid argument
file_pread(8,2,buffer,1565569023(364801/131/2)) lseek err Invalid argument
Results
* HPFS - NTFS 1 5 5 45600 251 27 732563456
exFAT, blocksize=1048576, 375 GB / 349 GiB
interface_write()
1 * HPFS - NTFS 1 5 5 45600 251 27 732563456
write!
write_mbr_i386: starting...
write_all_log_i386: starting...
No extended partition
You will have to reboot for the change to take effect.
TestDisk exited normally.