Partition found but cannot write

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
antonyunus
Posts: 2
Joined: 03 May 2014, 11:59

Partition found but cannot write

#1 Post by antonyunus »

Hi, I have a problem with my external drive, WD Mybook Essential, which is suddenly requesting to be initialized on the disk management, and I made a mistake here, I initialized the drive

After I run TestDisk 7.0 April 2014, the TestDisk found my partition and I was able to confirm that all my files are there, but when I choose write, it give me the error message :

Code: Select all

Partition: Write error
attached is the log file generated


Code: Select all

Sat May 03 17:56:26 2014
Command line: TestDisk

TestDisk 7.0-WIP, Data Recovery Utility, April 2014
Christophe GRENIER <grenier@cgsecurity.org>
http://www.cgsecurity.org
OS: Windows 7 (7601) SP1
Compiler: GCC 4.8, MinGW 3.11
Compilation date: Apr 28 2014 11:23:03
ext2fs lib: none, ntfs lib: 10:0:0, reiserfs lib: none, ewf lib: 20120504
disk_get_size_win32 IOCTL_DISK_GET_LENGTH_INFO(\\.\PhysicalDrive0)=256066453504
disk_get_size_win32 IOCTL_DISK_GET_LENGTH_INFO(\\.\PhysicalDrive1)=2000365289472
disk_get_size_win32 IOCTL_DISK_GET_LENGTH_INFO(\\.\C:)=239186477056
filewin32_getfilesize(\\.\F:) GetFileSize err Incorrect function.


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


Warning: can't get size for \\.\F:
Hard disk list
Disk \\.\PhysicalDrive0 - 256 GB / 238 GiB - CHS 31131 255 63, sector size=512
Disk \\.\PhysicalDrive1 - 2000 GB / 1862 GiB - CHS 243197 255 63, sector size=512
Drive C: - 239 GB / 222 GiB - CHS 29079 255 63, sector size=512

Partition table type default to Intel
Disk \\.\PhysicalDrive1 - 2000 GB / 1862 GiB
Partition table type: Intel

Analyse Disk \\.\PhysicalDrive1 - 2000 GB / 1862 GiB - CHS 243197 255 63
Current partition structure:

Partition sector doesn't have the endmark 0xAA55

search_part()
Disk \\.\PhysicalDrive1 - 2000 GB / 1862 GiB - CHS 243197 255 63
NTFS at 0/32/33
filesystem size           3906961408
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 243197  57 60 3906961408
     NTFS, blocksize=4096, 2000 GB / 1862 GiB

Results
   * HPFS - NTFS              0  32 33 243197  57 60 3906961408
     NTFS, blocksize=4096, 2000 GB / 1862 GiB

interface_write()
 1 P HPFS - NTFS              0  32 33 243197  57 60 3906961408
write!

write_mbr_i386: starting...
Store new MBR code
file_win32_pwrite(92,1,buffer,0(0/0/1)) write err
write_all_log_i386: starting...
No extended partition

Partition: Write error

How do I get the TestDisk to be able to write the partition table ? I am doing the deeper scan now

Thank you

Sponsored links

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

Re: Partition found but cannot write

#2 Post by cgrenier »

You don't need to use Deeper Search as your partition has been found.
An antivirus may block the write operation. Restart Windows in safe mode and/or disable your antivirus

antonyunus
Posts: 2
Joined: 03 May 2014, 11:59

Re: Partition found but cannot write

#3 Post by antonyunus »

Thanks for the reply,

I managed to bring back the partition with :

1. hdd needs to be connected with the original circuit board (I don't know, but I read on other forums that WD Mybooks are hardware encrypted)
2. with the hdd connected by the circuit board, I found two partition (1 data partition and 1 wd smartware partition)
turns out that when I connected the hdd with docking station, the partition found is the wd smartware partition and cannot be recovered
3. hdd needs to be initialized on disk manager, but when I tried to initialized, it said that hdd is write protected, so I used diskpart command in cmd to clear the write protect attribut
4. I run the TestDisk again and this time the TestDisk can write to the hdd and my data can be accessed again.

Thank you

Locked