Can't recover my HD Topic is solved

How to use TestDisk to recover lost partition
Forum rules
When asking for technical support:
- Search for posts on the same topic before posting a new question.
- Give clear, specific information in the title of your post.
- Include as many details as you can, MOST POSTS WILL GET ONLY ONE OR TWO ANSWERS.
- Post a follow up with a "Thank you" or "This worked!"
- When you learn something, use that knowledge to HELP ANOTHER USER LATER.
Before posting, please read https://www.cgsecurity.org/testdisk.pdf
Message
Author
aurrutia
Posts: 5
Joined: 13 Apr 2012, 20:02

Can't recover my HD

#1 Post by aurrutia »

Hi everyone,

I'm a Windows 7 user, last week I plugged my external HD to a MacBook and after safe removal tried to plug it again to my PC. From then I got the The drive is not formatted, do you want to format it now? message. So I tried with TestDisk.

Did read the Wiki and follow this instructions http://www.cgsecurity.org/wiki/TestDisk_Step_By_Step after the You have to restart your Computer to access your data and pressed "Enter" I reboot my pc and then the External HD was displaying the same message about format.

Here you can find my testdisk.log

Fri Apr 13 16:26:39 2012
Command line: TestDisk

TestDisk 6.14-WIP, Data Recovery Utility, March 2012
Christophe GRENIER <grenier@cgsecurity.org>
http://www.cgsecurity.org
OS: Windows 7 (7601) SP1
Compiler: GCC 4.6, Cygwin 1007.9
Compilation date: 2012-03-25T21:26:26
ext2fs lib: 1.41.8, ntfs lib: 10:0:0, reiserfs lib: 0.3.1-rc8, ewf lib: 20100226
disk_get_size_win32 IOCTL_DISK_GET_LENGTH_INFO(/dev/sda)=256060514304
disk_get_size_win32 IOCTL_DISK_GET_LENGTH_INFO(/dev/sdd)=999501594624
disk_get_size_win32 IOCTL_DISK_GET_LENGTH_INFO(\\.\PhysicalDrive0)=256060514304
filewin32_getfilesize(\\.\PhysicalDrive1) GetFileSize err Función incorrecta.

filewin32_setfilepointer(\\.\PhysicalDrive1) SetFilePointer err Función incorrecta.

Warning: can't get size for \\.\PhysicalDrive1
filewin32_getfilesize(\\.\PhysicalDrive2) GetFileSize err Función incorrecta.

filewin32_setfilepointer(\\.\PhysicalDrive2) SetFilePointer err Función incorrecta.

Warning: can't get size for \\.\PhysicalDrive2
disk_get_size_win32 IOCTL_DISK_GET_LENGTH_INFO(\\.\PhysicalDrive3)=999501594624
disk_get_size_win32 IOCTL_DISK_GET_LENGTH_INFO(\\.\C:)=200000000000
disk_get_size_win32 IOCTL_DISK_GET_LENGTH_INFO(\\.\D:)=26841448448
disk_get_size_win32 IOCTL_DISK_GET_LENGTH_INFO(\\.\E:)=0
Warning: can't get size for \\.\E:
disk_get_size_win32 IOCTL_DISK_GET_LENGTH_INFO(\\.\F:)=0
Warning: can't get size for \\.\F:
filewin32_getfilesize(\\.\G:) GetFileSize err Función incorrecta.

filewin32_setfilepointer(\\.\G:) SetFilePointer err Función incorrecta.

Warning: can't get size for \\.\G:
disk_get_size_win32 IOCTL_DISK_GET_LENGTH_INFO(\\.\H:)=999498448896
Hard disk list
Disk /dev/sda - 256 GB / 238 GiB - CHS 31130 255 63, sector size=512 - SAMSUNG MMDPE56G5DXP, S/N:FY810V0130YS00C36118, FW:VBM2
Disk /dev/sdd - 999 GB / 930 GiB - CHS 121515 255 63, sector size=512 - WD My Passport 070A, S/N:WX90AA9E2366, FW:2010

Partition table type (auto): Intel
Disk /dev/sdd - 999 GB / 930 GiB - WD My Passport 070A
Partition table type: Intel

Analyse Disk /dev/sdd - 999 GB / 930 GiB - CHS 121515 255 63
Geometry from i386 MBR: head=255 sector=63
NTFS at 0/32/33
Info: size boot_sector 1952144552, partition 1952145408
Current partition structure:
1 * HPFS - NTFS 0 32 33 121515 142 35 1952145408 [My Passport]
pread: Input/Output error
Failed to calculate number of free clusters: Input/Output error.
search_vista_part: 1

search_part()
Disk /dev/sdd - 999 GB / 930 GiB - CHS 121515 255 63
NTFS at 0/32/33
filesystem size 1952144552
sectors_per_cluster 8
mft_lcn 786432
mftmirr_lcn 122009343
clusters_per_mft_record -10
clusters_per_index_record 1
HPFS - NTFS 0 32 33 121515 128 61 1952144552 [My Passport]
NTFS, 999 GB / 930 GiB
file_pread(5,2,buffer,1952151552(121515/207/37)) ReadFile La unidad no puede encontrar el sector solicitado.

file_pread(5,1,buffer,1952151552(121515/207/37)) ReadFile La unidad no puede encontrar el sector solicitado.

file_pread(5,7,buffer,1952151553(121515/207/38)) lseek err Invalid argument
file_pread(5,1,buffer,1952151553(121515/207/38)) lseek err Invalid argument
file_pread(5,8,buffer,1952151552(121515/207/37)) ReadFile La unidad no puede encontrar el sector solicitado.

file_pread(5,8,buffer,1952151560(121515/207/45)) lseek err Invalid argument
file_pread(5,3,buffer,1952151568(121515/207/53)) lseek err Invalid argument
file_pread(5,3,buffer,1952151615(121515/208/37)) lseek err Invalid argument
file_pread(5,8,buffer,1952151631(121515/208/53)) lseek err Invalid argument
file_pread(5,11,buffer,1952151678(121515/209/37)) lseek err Invalid argument
file_pread(5,2,buffer,1952153600(121515/240/6)) lseek err Invalid argument

Results
* HPFS - NTFS 0 32 33 121515 142 35 1952145408 [My Passport]
NTFS, 999 GB / 930 GiB
file_pread(5,16,buffer,6573616(409/48/8)) ReadFile Error de datos (comprobación de redundancia cíclica).

file_pread(5,1,buffer,6573616(409/48/8)) ReadFile Error de datos (comprobación de redundancia cíclica).

NTFS filesystem need to be repaired.


dir_partition inode=5
* HPFS - NTFS 0 32 33 121515 142 35 1952145408 [My Passport]
NTFS, 999 GB / 930 GiB
Directory /
5 dr-xr-xr-x 0 0 0 8-Apr-2012 03:31 .
5 dr-xr-xr-x 0 0 0 8-Apr-2012 03:31 ..
24039 dr-xr-xr-x 0 0 0 24-Nov-2011 23:32 Fotos
3501 dr-xr-xr-x 0 0 0 8-Apr-2012 12:37 $RECYCLE.BIN
3483 dr-xr-xr-x 0 0 0 3-Apr-2012 19:29 Films
5387 -r--r--r-- 0 0 75054 16-Mar-2012 10:10 misspass.kdbx
23664 dr-xr-xr-x 0 0 0 2-Apr-2012 22:29 Música
41 dr-xr-xr-x 0 0 0 24-Jan-2012 11:48 Recursos
115853 dr-xr-xr-x 0 0 0 11-Mar-2012 12:08 RECYCLER
24027 dr-xr-xr-x 0 0 0 30-Dec-2011 14:35 Series
27 dr-xr-xr-x 0 0 0 15-Dec-2011 20:38 System Volume Information
25661 dr-xr-xr-x 0 0 0 24-Jan-2012 11:53 Trabajos
148074 -r--r--r-- 0 0 10860 6-Apr-2011 20:04 viaje.odt
51205 dr-xr-xr-x 0 0 0 14-Mar-2010 15:41 _CDS Viejos
155510 dr-xr-xr-x 0 0 0 31-Mar-2012 18:11 日本語
add_ext_part_i386: max
add_ext_part_i386: min

interface_write()
1 E extended LBA 0 32 32 121515 142 35 1952145409
5 L HPFS - NTFS 0 32 33 121515 142 35 1952145408 [My Passport]
write!

write_mbr_i386: starting...
write_all_log_i386: starting...
write_all_log_i386: CHS: 0/32/32,lba=2047
You will have to reboot for the change to take effect.

TestDisk exited normally.
What am I doing wrong?
Help is very appreciated as my personal documents and photos are there.

User avatar
Fiona
Posts: 2835
Joined: 18 Feb 2012, 17:19
Location: Ludwigsburg/Stuttgart - Germany

Re: Can't recover my HD

#2 Post by Fiona »

Your partition table looks ok.
There is nothing to do.
But I've got something about your partition size and boot sector.

Code: Select all

Info: size boot_sector 1952144552, partition 1952145408
And something about your file system.

Code: Select all

Failed to calculate number of free clusters: Input/Output error.
NTFS filesystem need to be repaired.
In your case I recommend to copy your data.
If you list your files in TestDisk, at the bottom of the screen you'll see the commands.
Standard path is the TestDisk folder.
Use your arrow key to go into another folder.
If you check that two dots and pressing enter, you'll get one directory up.

If you get trouble to copy files, please let me know.
Afterwards it might be possible to diagnose your boot sector and the size of your partition.
And in case to have a try to repair your file system.
But before, I suggest to copy/backup your data.

Fiona

aurrutia
Posts: 5
Joined: 13 Apr 2012, 20:02

Re: Can't recover my HD

#3 Post by aurrutia »

Thanks Fiona for your reply.

I will buy a new HD to backup the files and after done will post here.
2 questions regarding backup files:

1- Is it normal to take long time to copy the files?
2 -Is there any trouble to try to copy all folders at once? Is almost 1TB.

Thanks again!

User avatar
Fiona
Posts: 2835
Joined: 18 Feb 2012, 17:19
Location: Ludwigsburg/Stuttgart - Germany

Re: Can't recover my HD

#4 Post by Fiona »

1- Is it normal to take long time to copy the files?
Copying files shouldn't take as long.
If you get some read errors, due to a damaged file system, please let me know.
In this case, it would be possible that TestDisk hangs.
2 -Is there any trouble to try to copy all folders at once? Is almost 1TB.
Yes, you can try to copy your complete disk.
But this takes a while.
If there is a damaged file or folder, it might be possible that TestDisk skips it.

Fiona

aurrutia
Posts: 5
Joined: 13 Apr 2012, 20:02

Re: Can't recover my HD

#5 Post by aurrutia »

Hi Fiona,

I'm still backing up the files, it's around 40% so still need a few days to be finished.

What should I do to recover the old HD?
Just a simple Format is it enough?

Thanks.

meet2326
Posts: 3
Joined: 23 Apr 2012, 23:04

Re: Can't recover my HD

#6 Post by meet2326 »

Hello, I have a similar problem.

When listing the files in testdisk, all my files are visible. However, even after restart my drive is still raw.

Here is the log file:

Code: Select all

Tue Apr 24 03:30:29 2012
Command line: TestDisk

TestDisk 6.14-WIP, Data Recovery Utility, April 2012
Christophe GRENIER <grenier@cgsecurity.org>
http://www.cgsecurity.org
OS: Windows 7 (7600)
Compiler: GCC 4.6, Cygwin 1007.9
Compilation date: 2012-04-21T15:07:46
ext2fs lib: 1.41.8, ntfs lib: 10:0:0, reiserfs lib: 0.3.1-rc8, ewf lib: 20100226
disk_get_size_win32 IOCTL_DISK_GET_LENGTH_INFO(/dev/sda)=40060403712
disk_get_size_win32 IOCTL_DISK_GET_LENGTH_INFO(/dev/sdb)=500105740288
disk_get_size_win32 IOCTL_DISK_GET_LENGTH_INFO(\\.\PhysicalDrive0)=40060403712
disk_get_size_win32 IOCTL_DISK_GET_LENGTH_INFO(\\.\PhysicalDrive1)=500105740288
disk_get_size_win32 IOCTL_DISK_GET_LENGTH_INFO(\\.\C:)=40048856064
filewin32_getfilesize(\\.\D:) GetFileSize err Incorrect function.

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

Warning: can't get size for \\.\D:
filewin32_getfilesize(\\.\E:) GetFileSize err Incorrect function.

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

Warning: can't get size for \\.\E:
disk_get_size_win32 IOCTL_DISK_GET_LENGTH_INFO(\\.\F:)=500104691712
filewin32_getfilesize(\\.\H:) GetFileSize err Incorrect function.

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

Warning: can't get size for \\.\H:
Hard disk list
Disk /dev/sda - 40 GB / 37 GiB - CHS 4870 255 63, sector size=512 - SAMSUNG SV0411N, S/N:30535231314a5930343435303536202020202020, FW:UA100-11
Disk /dev/sdb - 500 GB / 465 GiB - CHS 60801 255 63, sector size=512 - WD Elements 1023, S/N:WXD1AB0U8372, FW:2005

Partition table type (auto): Intel
Disk /dev/sdb - 500 GB / 465 GiB - WD Elements 1023
Partition table type: Intel

Analyse Disk /dev/sdb - 500 GB / 465 GiB - CHS 60801 255 63
Geometry from i386 MBR: head=255 sector=63
NTFS at 0/32/33
Current partition structure:
 1 * HPFS - NTFS              0  32 33 60801  15 14  976766976 [Elements]
search_vista_part: 1

search_part()
Disk /dev/sdb - 500 GB / 465 GiB - CHS 60801 255 63
NTFS at 0/32/33
filesystem size           976766976
sectors_per_cluster       8
mft_lcn                   786432
mftmirr_lcn               2
clusters_per_mft_record   -10
clusters_per_index_record 1
     HPFS - NTFS              0  32 33 60801  15 14  976766976 [Elements]
     NTFS, blocksize=4096, 500 GB / 465 GiB
file_pread(5,8,buffer,976769024(60801/15/15)) ReadFile The drive cannot find the sector requested.

file_pread(5,1,buffer,976769024(60801/15/15)) ReadFile The drive cannot find the sector requested.

file_pread(5,7,buffer,976769025(60801/15/16)) lseek err Invalid argument
file_pread(5,8,buffer,976769032(60801/15/23)) lseek err Invalid argument
file_pread(5,3,buffer,976769040(60801/15/31)) lseek err Invalid argument
file_pread(5,3,buffer,976769087(60801/16/15)) lseek err Invalid argument
file_pread(5,8,buffer,976769103(60801/16/31)) lseek err Invalid argument
file_pread(5,11,buffer,976769150(60801/17/15)) lseek err Invalid argument
file_pread(5,2,buffer,976771072(60801/47/47)) lseek err Invalid argument

Results
   * HPFS - NTFS              0  32 33 60801  15 14  976766976 [Elements]
     NTFS, blocksize=4096, 500 GB / 465 GiB

interface_write()
 1 * HPFS - NTFS              0  32 33 60801  15 14  976766976 [Elements]
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.

User avatar
Fiona
Posts: 2835
Joined: 18 Feb 2012, 17:19
Location: Ludwigsburg/Stuttgart - Germany

Re: Can't recover my HD

#7 Post by Fiona »

@ meet2326

Looks like the same as above!
Did you already try to list and copy your data?

Your partition is Microsoft standard and aligned on megabyte boundary.
So it looks that your partition table is Ok.
Until yet, your boot sector looks ok also.
There is nothing to repair.

Fiona

aurrutia
Posts: 5
Joined: 13 Apr 2012, 20:02

Re: Can't recover my HD

#8 Post by aurrutia »

Hi Fiona!

I could recover 95% of my files withTestDisk! Thanks so much!

Now, what should I do to recover the old HD? Should I just format it?

Danke!

meet2326
Posts: 3
Joined: 23 Apr 2012, 23:04

Re: Can't recover my HD

#9 Post by meet2326 »

Hi Fiona,

I started copying my files but now all of my copied files are shared with user groups such "CREATOR GROUP", and I'd have reset permissions for every single file one by one. Is it normal or did I made a mistake?

Also, is there any other way besides copying all the data to a new drive? If there is please tell me. I'd love not to go through this tedious task.

User avatar
Fiona
Posts: 2835
Joined: 18 Feb 2012, 17:19
Location: Ludwigsburg/Stuttgart - Germany

Re: Can't recover my HD

#10 Post by Fiona »

Do you copy all files into any folder?
In case, you can have a try to take ownership from your folder files and subdirectories.
Infos;
http://www.tipandtrick.net/2008/how-to- ... -in-vista/
It's vista, but should be the same under Win7.

Please let me know if this is helpful or not?

Fiona

Locked