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
bbtester
Posts: 3 Joined: 15 Jan 2023, 23:21
#1
Post
by bbtester » 15 Jan 2023, 23:29
Hello
I buy a new pendrive for save the pics from my wife phone, and i got a problem with this usb flash device. I try many applications and tools to figure out whats the problem but with no results.
Yesterday i download TestDisk and follow some instructions to bring to life my pendrive but again no results.
The most common problem I have with this device when trying to salvage it is this
Can't clear partition table
Code: Select all
file_win32_pwrite(588,1,buffer,0(0/0/1)) write err
Write error: Can't clear partition table.
file_win32_pwrite(588,1,buffer,0(0/0/1)) write err
Write error: Can't write new MBR code.
I just want to bring to life my pendrive
recuperation
Posts: 2729 Joined: 04 Jan 2019, 09:48
Location: Hannover, Deutschland (Germany, Allemagne)
#2
Post
by recuperation » 16 Jan 2023, 00:08
Please post your complete logfile.
Thank you!
bbtester
Posts: 3 Joined: 15 Jan 2023, 23:21
#3
Post
by bbtester » 16 Jan 2023, 00:27
Code: Select all
Mon Jan 16 00:14:41 2023
Command line: TestDisk
TestDisk 7.2-WIP, Data Recovery Utility, November 2022
Christophe GRENIER <grenier@cgsecurity.org>
https://www.cgsecurity.org
OS: Windows 8 (9200)
Compiler: GCC 11.2, Cygwin32 3001.4
ext2fs lib: 1.45.3, ntfs lib: 10:0:0, reiserfs lib: none, ewf lib: 20140608, curses lib: ncurses 6.1
disk_get_size_win32 IOCTL_DISK_GET_LENGTH_INFO(\\.\PhysicalDrive0)=512110190592
disk_get_size_win32 IOCTL_DISK_GET_LENGTH_INFO(\\.\PhysicalDrive1)=240057409536
disk_get_size_win32 IOCTL_DISK_GET_LENGTH_INFO(\\.\PhysicalDrive2)=61865984000
disk_get_size_win32 IOCTL_DISK_GET_LENGTH_INFO(\\.\C:)=238559364608
disk_get_size_win32 IOCTL_DISK_GET_LENGTH_INFO(\\.\D:)=512092012544
disk_get_size_win32 IOCTL_DISK_GET_LENGTH_INFO(\\.\Z:)=61865984000
Hard disk list
Disk \\.\PhysicalDrive0 - 512 GB / 476 GiB - CHS 62260 255 63, sector size=512 - SSDPR-CX400-512-G2, S/N:GYY039714, FW:SBFM61.5
Disk \\.\PhysicalDrive1 - 240 GB / 223 GiB - CHS 29185 255 63, sector size=512 - GOODRAM, S/N:4D450767062701195969, FW:SAFM22.3
Disk \\.\PhysicalDrive2 - 61 GB / 57 GiB - CHS 7521 255 63, sector size=512 - General USB Flash Disk, S/N:AA00000000000489, FW:1100
Drive D: - 512 GB / 476 GiB - CHS 62258 255 63, sector size=512
Partition table type defaults to Intel
Disk \\.\PhysicalDrive2 - 61 GB / 57 GiB - General USB Flash Disk
Partition table type: Intel
Analyse Disk \\.\PhysicalDrive2 - 61 GB / 57 GiB - CHS 7521 255 63
Current partition structure:
Partition sector doesn't have the endmark 0xAA55
search_part()
Disk \\.\PhysicalDrive2 - 61 GB / 57 GiB - CHS 7521 255 63
file_win32_pread(628,2,buffer,120831999(7521/113/16)) read err: read after end of file
Results
interface_write()
No partition found or selected for recovery
Change partition type:
FAT32 0 0 1 7520 254 63 120824865
Change partition type:
FAT32 0 0 1 7520 254 63 120824865
interface_write()
No partition found or selected for recovery
search_part()
Disk \\.\PhysicalDrive2 - 61 GB / 57 GiB - CHS 7521 255 63
file_win32_pread(628,2,buffer,120831999(7521/113/16)) read err: read after end of file
Results
Change partition type:
FAT32 0 0 1 7520 254 63 120824865
Change partition type:
FAT32 0 0 1 7520 254 63 120824865
interface_write()
No partition found or selected for recovery
simulate write!
write_mbr_i386: starting...
Store new MBR code
write_all_log_i386: starting...
No extended partition
file_win32_pwrite(628,1,buffer,0(0/0/1)) write err
Write error: Can't clear partition table.
TestDisk exited normally.
recuperation
Posts: 2729 Joined: 04 Jan 2019, 09:48
Location: Hannover, Deutschland (Germany, Allemagne)
#4
Post
by recuperation » 16 Jan 2023, 01:04
If your pendrive does not let you write, duplicate it using ddrescue as described in the manual and try to rescue from the copy.
bbtester
Posts: 3 Joined: 15 Jan 2023, 23:21
#5
Post
by bbtester » 16 Jan 2023, 11:40
ok, pendrive copy done, but how to now rescue from copy ?
ok i found that will be done after:
i will back and post if it helps