Recover disk geometry with partitions

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
Posts: 1
Joined: 11 Aug 2014, 00:27

Recover disk geometry with partitions

#1 Post by warmos »

Hi, I have a little problem. My hard drive accidentally thinks, it has only 500GB instead of 2000GB. Even the partition table was lost. I changed the number of cylinders to fit the normal size of the harddrive, it also finds the partition while ill try analyze the disk, but I cant write the partition table into it... It keeps telling me "Partition: write error". In the log I've found this message after write() "write err No space left on device", but what should I do? There's like 100GB free on the disk. I also tried adding few cylinders, to fit the partition into the boundary, but no luck.
Thanks in advance and sorry for my bad english by the way.


Code: Select all

Using locale 'C'.

Mon Aug 11 01:17:46 2014
Command line: TestDisk /log /dev/sde

TestDisk 6.14, Data Recovery Utility, July 2013
Christophe GRENIER <>
OS: Linux, kernel 3.15.8-1-ARCH (#1 SMP PREEMPT Fri Aug 1 08:51:42 CEST 2014) x86_64
Compiler: GCC 4.8
Compilation date: 2014-02-28T19:18:36
ext2fs lib: 1.42.11, ntfs lib: libntfs-3g, reiserfs lib:, ewf lib: none
Hard disk list
Disk /dev/sde - 500 GB / 465 GiB - CHS 60801 255 63, sector size=512 - WD Ext HDD 1021, FW:2021

Partition table type (auto): EFI GPT
Disk /dev/sde - 500 GB / 465 GiB - WD Ext HDD 1021
Partition table type: EFI GPT
New geometry
Disk /dev/sde - 2000 GB / 1863 GiB - CHS 243200 255 63 sector_size=512

Analyse Disk /dev/sde - 2000 GB / 1863 GiB - CHS 243200 255 63
Current partition structure:
 1 P MS Data                     2048 3907022840 3907020793 [Games]

Disk /dev/sde - 2000 GB / 1863 GiB - CHS 243200 255 63
NTFS part_offset=1048576, part_size=2000394646016, sector_size=512
NTFS partition cannot be added (part_offset<part_size).
     MS Data                     2048 3907022840 3907020793 [Games]
     NTFS, blocksize=4096, 2000 GB / 1863 GiB

 1 P MS Data                     2048 3907022840 3907020793 [Games]
file_pwrite(4,32,buffer,3907007967(243199/254/31)) write err No space left on device

Partition: Write error

TestDisk exited normally.

Posts: 19
Joined: 29 Jul 2014, 20:40

Re: Recover disk geometry with partitions

#2 Post by Deity666 »

Any chance you could get a second drive and copy all the info to it instead? I'm just guessing, and hope I'm not getting in the way, but is it possible when you try to write the new partition it is taking into account all of the drive space, thus making it a larger drive than it is?

Feel free to read some of my posts and see how much more clueless I am than you... :cry:

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

Re: Recover disk geometry with partitions

#3 Post by Fiona »

Your disk must be recognized correctly.
Did you enter the geometry values manually?
If you enter any values using the menu geometry, the values are only virtually and they're not read nor writeable.
Did you check your disk using the diagnose tool from your manfucturer?
Also check for a firmware update?
Some diagnosis tools offer an option called SetMax to get your capacity back.
Info about a similar topic here: ... n-t32.html
Until yet, it's recommended to run a diagnose first.