getting a bad structure when its supposed to be OK

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
Post Reply
Message
Author
Franck67
Posts: 4
Joined: 28 Sep 2015, 09:01

getting a bad structure when its supposed to be OK

#1 Post by Franck67 »

Hi guys,
i upgraded my desktop, and while plugging my old hard drive in my new computer, i cant acces all my partitions anymore.
My old hard drive was partionned in 3 partiions, one system (bootable) and 2 datas (Hugo and datas)
After plugging it in my new desktop, the hugo partition is not showing anymore
when i run testdisk, i can find it, but i would like to set all my partitions as Primary or the "system" one as "*" but as soon as i approach the configuration i would like, i get a "bad structure"
here is a configuration where it works, and one where it doesnt but that i would like ....

Code: Select all

Disk /dev/sda - 3000 GB / 2794 GiB - CHS 364801 255 63
     Partition               Start        End    Size in sectors
 D HPFS - NTFS              0  32 33 25497  14 53  409608192 [System]
 D HPFS - NTFS             12 223 20 267349  89  4 4294760448
 D HPFS - NTFS          25497   1  1 267348 254 63 3885352317 [Data]
>* HPFS - NTFS          267349 186 38 364801   0 63 1565554688 [Hugo]

[color=#40BF00]Structure: Ok[/color].  Use Up/Down Arrow keys to select partition.
Use Left/Right Arrow keys to CHANGE partition characteristics:
*=Primary bootable  P=Primary  L=Logical  E=Extended  D=Deleted
Keys A: add partition, L: load backup, T: change type, P: list files,
     Enter: to continue
NTFS, blocksize=4096, 801 GB / 746 GiB

Code: Select all

Disk /dev/sda - 3000 GB / 2794 GiB - CHS 364801 255 63
     Partition               Start        End    Size in sectors
 * HPFS - NTFS              0  32 33 25497  14 53  409608192 [System]
>L HPFS - NTFS             12 223 20 267349  89  4 4294760448
 P HPFS - NTFS          25497   1  1 267348 254 63 3885352317 [Data]
 P HPFS - NTFS          267349 186 38 364801   0 63 1565554688 [Hugo]
 
 [color=#FF0000]Structure: Bad[/color]. Use Up/Down Arrow keys to select partition.
Use Left/Right Arrow keys to CHANGE partition characteristics:
*=Primary bootable  P=Primary  L=Logical  E=Extended  D=Deleted
Keys A: add partition, L: load backup, T: change type, P: list files,
     Enter: to continue
NTFS found using backup sector, blocksize=4096, 2198 GB / 2047 GiB

Any help appreciated, thanks in advance

Sponsored links

recuperation
Posts: 683
Joined: 04 Jan 2019, 09:48
Location: Hannover, Deutschland (Germany, Allemagne)

Re: getting a bad structure when its supposed to be OK

#2 Post by recuperation »

You had most likely a GPT table, not a MBR table.

What you marked as "L" (logical) would be an extended partition that can only reach 2TB~2000 GB of size.
With your system partition being 210GB the extended partition cannot span the remaining partitions whose size is 1989 GB [Data] and 801 GB [Hugo]. The sum of both 2790 GB exceeds the maximum value of 2000 GB for an extended partition (with a sector size of 512 Byte).

Franck67
Posts: 4
Joined: 28 Sep 2015, 09:01

Re: getting a bad structure when its supposed to be OK

#3 Post by Franck67 »

thanks for the hint !
So i used EFI/GPT type instead of intel when starting testdisk, and could recover my partition !
Problem solved, thanks you again

Post Reply