Page 1 of 1

getting a bad structure when its supposed to be OK

Posted: 16 Feb 2020, 22:55
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

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

Posted: 17 Feb 2020, 00:07
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).

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

Posted: 17 Feb 2020, 08:31
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