testdisk sees partition cant recover it

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
Locked
Message
Author
delukard
Posts: 2
Joined: 23 Apr 2016, 11:21

testdisk sees partition cant recover it

#1 Post by delukard »

Hi
Windows 7x64 user.
today i started my pc and one of my 2tb drives gave me a raw partition
The drive is a samsung 2tb and was formatted as MBR in a single partition (the drive was not new, it was a gift)

I'm using the testdisk software and it shows my partition
my partition is shown as primary bootable (this is not my os drive)
i choose P and i can see my files(i can even copy them)
I press q to return to where the partition is shown, then press enter to continue an choose Write. select yes and Rebbot.

After reboot i still have a raw partition, If i repeat the steps i can still see the partition and files under testdisk.
What could be wrong?
TY

User avatar
cgrenier
Site Admin
Posts: 5432
Joined: 18 Feb 2012, 15:08
Location: Le Perreux Sur Marne, France
Contact:

Re: testdisk sees partition cant recover it

#2 Post by cgrenier »

Run TestDisk, Advanced, Boot. If the boot sector is corrupted and the backup ok, choose [BackupBS], confirm, Quit and restart.
Run "cmd" (right click run as administrator) and "chdksk /f d:" (replace d: by the correct drive letter)

delukard
Posts: 2
Joined: 23 Apr 2016, 11:21

Re: testdisk sees partition cant recover it

#3 Post by delukard »

here is my log

Sat Apr 23 05:37:21 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)=2000398934016
disk_get_size_win32 IOCTL_DISK_GET_LENGTH_INFO(/dev/sdb)=2000398934016
disk_get_size_win32 IOCTL_DISK_GET_LENGTH_INFO(/dev/sdc)=2000398934016
disk_get_size_win32 IOCTL_DISK_GET_LENGTH_INFO(\\.\PhysicalDrive0)=2000398934016
disk_get_size_win32 IOCTL_DISK_GET_LENGTH_INFO(\\.\PhysicalDrive1)=2000398934016
disk_get_size_win32 IOCTL_DISK_GET_LENGTH_INFO(\\.\PhysicalDrive2)=2000398934016
disk_get_size_win32 IOCTL_DISK_GET_LENGTH_INFO(\\.\C:)=314572800000
disk_get_size_win32 IOCTL_DISK_GET_LENGTH_INFO(\\.\D:)=104855837184
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:)=2000397795328
disk_get_size_win32 IOCTL_DISK_GET_LENGTH_INFO(\\.\G:)=2000396746752
disk_get_size_win32 IOCTL_DISK_GET_LENGTH_INFO(\\.\H:)=1580967395328
filewin32_getfilesize(\\.\I:) GetFileSize err Incorrect function.

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

Warning: can't get size for \\.\I:
Hard disk list
Disk /dev/sda - 2000 GB / 1863 GiB - CHS 243201 255 63, sector size=512
Disk /dev/sdb - 2000 GB / 1863 GiB - CHS 243201 255 63, sector size=512
Disk /dev/sdc - 2000 GB / 1863 GiB - CHS 243201 255 63, sector size=512
Drive C: - 314 GB / 292 GiB - CHS 38244 255 63, sector size=512
Drive D: - 104 GB / 97 GiB - CHS 12747 255 63, sector size=512
Drive F: - 2000 GB / 1863 GiB - CHS 243201 255 63, sector size=512
Drive G: - 2000 GB / 1863 GiB - CHS 243201 255 63, sector size=512
Drive H: - 1580 GB / 1472 GiB - CHS 192208 255 63, sector size=512

Partition table type (auto): Intel
Disk /dev/sdc - 2000 GB / 1863 GiB
Partition table type: Intel

Analyse Disk /dev/sdc - 2000 GB / 1863 GiB - CHS 243201 255 63
Geometry from i386 MBR: head=255 sector=63
NTFS at 0/32/33
Current partition structure:
1 * HPFS - NTFS 0 32 33 243201 45 44 3907024896

search_part()
Disk /dev/sdc - 2000 GB / 1863 GiB - CHS 243201 255 63
NTFS at 0/32/33
filesystem size 3907024896
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 243201 45 44 3907024896
NTFS, blocksize=4096, 2000 GB / 1863 GiB
file_pread(6,2,buffer,3907031040(243201/110/46)) lseek err Invalid argument
file_pread(6,1,buffer,3907031040(243201/110/46)) lseek err Invalid argument
file_pread(6,8,buffer,3907029248(243201/82/18)) lseek err Invalid argument
file_pread(6,8,buffer,3907029376(243201/84/20)) lseek err Invalid argument
file_pread(6,8,buffer,3907029504(243201/86/22)) lseek err Invalid argument
file_pread(6,8,buffer,3907029632(243201/88/24)) lseek err Invalid argument
file_pread(6,8,buffer,3907029760(243201/90/26)) lseek err Invalid argument
file_pread(6,8,buffer,3907029888(243201/92/28)) lseek err Invalid argument
file_pread(6,8,buffer,3907030016(243201/94/30)) lseek err Invalid argument
file_pread(6,8,buffer,3907030144(243201/96/32)) lseek err Invalid argument
file_pread(6,8,buffer,3907030272(243201/98/34)) lseek err Invalid argument
file_pread(6,8,buffer,3907030400(243201/100/36)) lseek err Invalid argument
file_pread(6,8,buffer,3907030528(243201/102/38)) lseek err Invalid argument
file_pread(6,8,buffer,3907030656(243201/104/40)) lseek err Invalid argument
file_pread(6,8,buffer,3907030784(243201/106/42)) lseek err Invalid argument
file_pread(6,8,buffer,3907030912(243201/108/44)) lseek err Invalid argument
file_pread(6,1,buffer,3907031039(243201/110/45)) lseek err Invalid argument
file_pread(6,14,buffer,3907031041(243201/110/47)) lseek err Invalid argument
file_pread(6,3,buffer,3907031055(243201/110/61)) lseek err Invalid argument
file_pread(6,3,buffer,3907031102(243201/111/45)) lseek err Invalid argument
file_pread(6,8,buffer,3907031118(243201/111/61)) lseek err Invalid argument
file_pread(6,11,buffer,3907031165(243201/112/45)) lseek err Invalid argument
file_pread(6,2,buffer,3907033087(243201/143/14)) lseek err Invalid argument

Results
* HPFS - NTFS 0 32 33 243201 45 44 3907024896
NTFS, blocksize=4096, 2000 GB / 1863 GiB
NTFS filesystem need to be repaired.


dir_partition inode=5
* HPFS - NTFS 0 32 33 243201 45 44 3907024896
NTFS, blocksize=4096, 2000 GB / 1863 GiB
Directory /
5 dr-xr-xr-x 0 0 0 20-Apr-2016 23:07 .
5 dr-xr-xr-x 0 0 0 20-Apr-2016 23:07 ..
245814 dr-xr-xr-x 0 0 0 3-Mar-2016 15:55 $RECYCLE.BIN
250498 dr-xr-xr-x 0 0 0 6-Jul-2015 09:06 6046dbaa6a9aef22a3
251005 dr-xr-xr-x 0 0 0 19-Jun-2015 06:11 751fef1a426090bc656f2aff837d
250573 dr-xr-xr-x 0 0 0 7-Jul-2015 23:26 81d79519c89476a91794
246018 dr-xr-xr-x 0 0 0 14-Jun-2015 10:46 9365b1f4ffcd4438a488ebf0
39 dr-xr-xr-x 0 0 0 11-Jun-2015 08:40 CLAVES REDES
44 dr-xr-xr-x 0 0 0 12-Apr-2016 15:48 CONSOLE mods
317682 dr-xr-xr-x 0 0 0 10-Aug-2015 01:51 Config.Msi
165280 dr-xr-xr-x 0 0 0 18-Feb-2016 17:32 Console isos
2942 dr-xr-xr-x 0 0 0 25-Feb-2016 18:33 DRIVERS
156023 dr-xr-xr-x 0 0 0 20-Apr-2016 22:32 INSTALLED GAMES
140540 dr-xr-xr-x 0 0 0 10-Apr-2016 21:14 Isos software
8206 dr-xr-xr-x 0 0 0 10-Apr-2016 22:37 Musica
7176 dr-xr-xr-x 0 0 0 11-Apr-2016 01:04 PELICULAS
180259 dr-xr-xr-x 0 0 0 24-Sep-2015 16:36 RECYCLER
25166 dr-xr-xr-x 0 0 0 11-Jun-2015 09:42 RESPALDO DOCUMENTS W7
27351 dr-xr-xr-x 0 0 0 7-Dec-2015 22:29 RESPALDO FAMILIA
248082 dr-xr-xr-x 0 0 0 6-Jul-2015 08:26 RESPALDO SAVES JUEGOS
35 dr-xr-xr-x 0 0 0 24-Sep-2015 16:19 System Volume Information
153616 dr-xr-xr-x 0 0 0 20-Jan-2016 18:23 UTILERIA REINSTALL
153695 dr-xr-xr-x 0 0 0 2-Jan-2016 22:28 UTILERIA SOFTWARE XP
316442 dr-xr-xr-x 0 0 0 30-Nov-2015 17:42 VPN GAMES
6322 dr-xr-xr-x 0 0 0 3-Mar-2016 14:22 firefox backups
6331 dr-xr-xr-x 0 0 0 11-Jun-2015 09:00 foros_passwords
6337 dr-xr-xr-x 0 0 0 11-Jun-2015 09:00 linux tool
13997 dr-xr-xr-x 0 0 0 11-Jun-2015 09:08 offline pages
25160 dr-xr-xr-x 0 0 0 11-Jan-2016 12:09 recording software
320314 dr-xr-xr-x 0 0 0 21-Sep-2015 16:49 respaldo usb windows10
140530 dr-xr-xr-x 0 0 0 6-Sep-2015 14:21 seriales
10714 dr-xr-xr-x 0 0 0 10-Apr-2016 22:57 themes
140637 dr-xr-xr-x 0 0 0 1-Dec-2015 16:08 utileria juegos
153613 dr-xr-xr-x 0 0 0 11-Jun-2015 11:13 utileria linux
155678 dr-xr-xr-x 0 0 0 11-Jun-2015 11:18 utileria_me-98
10577 dr-xr-xr-x 0 0 0 10-Apr-2016 22:57 wallpapers
180258 dr-xr-xr-x 0 0 0 13-Feb-2016 00:05 windows 7 utileria
155878 dr-xr-xr-x 0 0 0 11-Jun-2015 11:18 windows faqs
155902 dr-xr-xr-x 0 0 0 11-Jun-2015 11:18 xp network install
155998 dr-xr-xr-x 0 0 0 11-Jun-2015 11:18 xpx64 utileria
156000 -r--r--r-- 0 0 4254632 5-Jan-2015 21:46 XMouseButtonControlSetup.2.9.2.exe
156000 -r--r--r-- 0 0 26 5-Jan-2015 21:46 XMouseButtonControlSetup.2.9.2.exe:Zone.Identifier

interface_write()
1 * HPFS - NTFS 0 32 33 243201 45 44 3907024896
simulate write!

write_mbr_i386: starting...
write_all_log_i386: starting...
No extended partition

Interface Advanced
Geometry from i386 MBR: head=255 sector=63
NTFS at 0/32/33
1 * HPFS - NTFS 0 32 33 243201 45 44 3907024896
NTFS, blocksize=4096, 2000 GB / 1863 GiB

ntfs_boot_sector
1 * HPFS - NTFS 0 32 33 243201 45 44 3907024896
NTFS, blocksize=4096, 2000 GB / 1863 GiB
NTFS at 0/32/33
NTFS at 0/32/33
filesystem size 3907024896
sectors_per_cluster 8
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.
rebuild_NTFS_BS
mft at 16
ntfs_find_mft: mft_lcn 786432
ntfs_find_mft: mftmirr_lcn 2
ntfs_find_mft: sectors_per_cluster 8
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
Extrapolated boot sector and current boot sector are identical.
filesystem size 3907024896
sectors_per_cluster 8
mft_lcn 786432
mftmirr_lcn 2
clusters_per_mft_record -10
clusters_per_index_record 1
NTFS filesystem need to be repaired.

Directory /
5 dr-xr-xr-x 0 0 0 20-Apr-2016 23:07 .
5 dr-xr-xr-x 0 0 0 20-Apr-2016 23:07 ..
245814 dr-xr-xr-x 0 0 0 3-Mar-2016 15:55 $RECYCLE.BIN
250498 dr-xr-xr-x 0 0 0 6-Jul-2015 09:06 6046dbaa6a9aef22a3
251005 dr-xr-xr-x 0 0 0 19-Jun-2015 06:11 751fef1a426090bc656f2aff837d
250573 dr-xr-xr-x 0 0 0 7-Jul-2015 23:26 81d79519c89476a91794
246018 dr-xr-xr-x 0 0 0 14-Jun-2015 10:46 9365b1f4ffcd4438a488ebf0
39 dr-xr-xr-x 0 0 0 11-Jun-2015 08:40 CLAVES REDES
44 dr-xr-xr-x 0 0 0 12-Apr-2016 15:48 CONSOLE mods
317682 dr-xr-xr-x 0 0 0 10-Aug-2015 01:51 Config.Msi
165280 dr-xr-xr-x 0 0 0 18-Feb-2016 17:32 Console isos
2942 dr-xr-xr-x 0 0 0 25-Feb-2016 18:33 DRIVERS
156023 dr-xr-xr-x 0 0 0 20-Apr-2016 22:32 INSTALLED GAMES
140540 dr-xr-xr-x 0 0 0 10-Apr-2016 21:14 Isos software
8206 dr-xr-xr-x 0 0 0 10-Apr-2016 22:37 Musica
7176 dr-xr-xr-x 0 0 0 11-Apr-2016 01:04 PELICULAS
180259 dr-xr-xr-x 0 0 0 24-Sep-2015 16:36 RECYCLER
25166 dr-xr-xr-x 0 0 0 11-Jun-2015 09:42 RESPALDO DOCUMENTS W7
27351 dr-xr-xr-x 0 0 0 7-Dec-2015 22:29 RESPALDO FAMILIA
248082 dr-xr-xr-x 0 0 0 6-Jul-2015 08:26 RESPALDO SAVES JUEGOS
35 dr-xr-xr-x 0 0 0 24-Sep-2015 16:19 System Volume Information
153616 dr-xr-xr-x 0 0 0 20-Jan-2016 18:23 UTILERIA REINSTALL
153695 dr-xr-xr-x 0 0 0 2-Jan-2016 22:28 UTILERIA SOFTWARE XP
316442 dr-xr-xr-x 0 0 0 30-Nov-2015 17:42 VPN GAMES
6322 dr-xr-xr-x 0 0 0 3-Mar-2016 14:22 firefox backups
6331 dr-xr-xr-x 0 0 0 11-Jun-2015 09:00 foros_passwords
6337 dr-xr-xr-x 0 0 0 11-Jun-2015 09:00 linux tool
13997 dr-xr-xr-x 0 0 0 11-Jun-2015 09:08 offline pages
25160 dr-xr-xr-x 0 0 0 11-Jan-2016 12:09 recording software
320314 dr-xr-xr-x 0 0 0 21-Sep-2015 16:49 respaldo usb windows10
140530 dr-xr-xr-x 0 0 0 6-Sep-2015 14:21 seriales
10714 dr-xr-xr-x 0 0 0 10-Apr-2016 22:57 themes
140637 dr-xr-xr-x 0 0 0 1-Dec-2015 16:08 utileria juegos
153613 dr-xr-xr-x 0 0 0 11-Jun-2015 11:13 utileria linux
155678 dr-xr-xr-x 0 0 0 11-Jun-2015 11:18 utileria_me-98
10577 dr-xr-xr-x 0 0 0 10-Apr-2016 22:57 wallpapers
180258 dr-xr-xr-x 0 0 0 13-Feb-2016 00:05 windows 7 utileria
155878 dr-xr-xr-x 0 0 0 11-Jun-2015 11:18 windows faqs
155902 dr-xr-xr-x 0 0 0 11-Jun-2015 11:18 xp network install
155998 dr-xr-xr-x 0 0 0 11-Jun-2015 11:18 xpx64 utileria
156000 -r--r--r-- 0 0 4254632 5-Jan-2015 21:46 XMouseButtonControlSetup.2.9.2.exe
156000 -r--r--r-- 0 0 26 5-Jan-2015 21:46 XMouseButtonControlSetup.2.9.2.exe:Zone.Identifier
filesystem size 3907024896
sectors_per_cluster 8
mft_lcn 786432
mftmirr_lcn 2
clusters_per_mft_record -10
clusters_per_index_record 1

ntfs_boot_sector
1 * HPFS - NTFS 0 32 33 243201 45 44 3907024896
NTFS, blocksize=4096, 2000 GB / 1863 GiB
NTFS at 0/32/33
NTFS at 0/32/33
filesystem size 3907024896
sectors_per_cluster 8
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.
SIGHUP detected! TestDisk has been killed.

Locked