Page 1 of 1

Récupération d'un partie d'une partition

Posted: 12 Feb 2013, 20:34
by karuzo
Bonjour,
suite à une erreur lors de l'installation de Linux (finalement non effectuée) sur un ordinateur portable fonctionnant sous Windows 7, une partie de ma partition principale a disparu comme le montre le cliché de la gestion de disques :
impression d'écran de la Gestion de Disques
impression d'écran de la Gestion de Disques
gestion de disques.gif (161.32 KiB) Viewed 4797 times
)

elle contenait 618 GB mais seuls 477 sont disponibles.

voila mon log sous testdisk :
J'ai tenté dans celui-ci de créer une nouvelle partition au "trou" indiqué entre [C] et [LL disk] mais les valeurs sont étranges notamment à cause de la présence de "E extended LBA" à la fin qui semble en chevaucher d'autres.


OS: Windows 7 (7601) SP1
Compiler: GCC 4.7, Cygwin 1007.17

ext2fs lib: 1.42.2, ntfs lib: 10:0:0, reiserfs lib: 0.3.1-rc8, ewf lib: 20120504
disk_get_size_win32 IOCTL_DISK_GET_LENGTH_INFO(/dev/sda)=1000204886016
disk_get_size_win32 IOCTL_DISK_GET_LENGTH_INFO(\\.\PhysicalDrive0)=1000204886016
disk_get_size_win32 IOCTL_DISK_GET_LENGTH_INFO(\\.\C:)=663209639936
filewin32_getfilesize(\\.\D:) GetFileSize err Fonction incorrecte.

filewin32_setfilepointer(\\.\D:) SetFilePointer err Fonction incorrecte.

Warning: can't get size for \\.\D:
disk_get_size_win32 IOCTL_DISK_GET_LENGTH_INFO(\\.\E:)=322121498624
Hard disk list
Disk /dev/sda - 1000 GB / 931 GiB - CHS 121601 255 63, sector size=512 - WDC WD10 JPVT-75A1YT0, S/N:XW1F1CS28834, FW:01.0

Partition table type (auto): Intel
Disk /dev/sda - 1000 GB / 931 GiB - WDC WD10 JPVT-75A1YT0
Partition table type: Intel

Analyse Disk /dev/sda - 1000 GB / 931 GiB - CHS 121601 255 63
Geometry from i386 MBR: head=255 sector=63
check_part_i386 1 type DE: no test
NTFS at 5/25/21
NTFS at 1807/242/36
Info: size boot_sector 999999993, partition 1295331328
NTFS at 82438/184/51
get_geometry_from_list_part_aux head=255 nbr=2
get_geometry_from_list_part_aux head=8 nbr=1
get_geometry_from_list_part_aux head=16 nbr=1
get_geometry_from_list_part_aux head=32 nbr=1
get_geometry_from_list_part_aux head=64 nbr=1
get_geometry_from_list_part_aux head=128 nbr=1
get_geometry_from_list_part_aux head=240 nbr=1
get_geometry_from_list_part_aux head=255 nbr=2

Current partition structure:
1 P Dell Utility 0 1 1 4 254 63 80262

Bad sector count.
2 * HPFS - NTFS 5 25 21 1807 242 35 28962816 [RECOVERY]
3 P HPFS - NTFS 1807 242 36 82438 152 18 1295331328 [C]
4 E extended LBA 82438 152 19 121601 25 24 629145600
5 L HPFS - NTFS 82438 184 51 121601 25 24 629143552 [LLdisk]

search_part()
Disk /dev/sda - 1000 GB / 931 GiB - CHS 121601 255 63

FAT16 at 0/1/1
FAT1 : 1-79
FAT2 : 80-158
start_rootdir : 159
Data : 191-80258
sectors : 80262
cluster_size : 4
no_of_cluster : 20017 (2 - 20018)
fat_length 79 calculated 79

FAT16 at 0/1/1
FAT16 >32M 0 1 1 4 254 63 80262 [DellUtility]
FAT16, blocksize=2048, 41 MB / 39 MiB
NTFS at 5/25/21
filesystem size 28962816
sectors_per_cluster 8
mft_lcn 786432
mftmirr_lcn 2
clusters_per_mft_record -10
clusters_per_index_record 1
HPFS - NTFS 5 25 21 1807 242 35 28962816 [RECOVERY]
NTFS, blocksize=4096, 14 GB / 13 GiB
NTFS at 1807/242/36
filesystem size 999999993
sectors_per_cluster 8
mft_lcn 786432
mftmirr_lcn 2
clusters_per_mft_record -10
clusters_per_index_record 1
HPFS - NTFS 1807 242 36 64055 18 20 999999993 [C]
NTFS, blocksize=4096, 511 GB / 476 GiB
NTFS at 82438/184/51
filesystem size 629143552
sectors_per_cluster 8
mft_lcn 786432
mftmirr_lcn 2
clusters_per_mft_record -10
clusters_per_index_record 1
HPFS - NTFS 82438 184 51 121601 25 24 629143552 [LLdisk]
NTFS, blocksize=4096, 322 GB / 299 GiB
file_pread(4,2,buffer,1953525760(121601/90/26)) lseek err Invalid argument
file_pread(4,1,buffer,1953525760(121601/90/26)) lseek err Invalid argument
file_pread(4,8,buffer,1953525248(121601/82/18)) lseek err Invalid argument
file_pread(4,1,buffer,1953525248(121601/82/18)) lseek err Invalid argument
file_pread(4,8,buffer,1953525376(121601/84/20)) lseek err Invalid argument
file_pread(4,8,buffer,1953525504(121601/86/22)) lseek err Invalid argument
file_pread(4,8,buffer,1953525632(121601/88/24)) lseek err Invalid argument
file_pread(4,7,buffer,1953525761(121601/90/27)) lseek err Invalid argument
file_pread(4,16,buffer,1953525760(121601/90/26)) lseek err Invalid argument
file_pread(4,3,buffer,1953525776(121601/90/42)) lseek err Invalid argument
file_pread(4,3,buffer,1953525823(121601/91/26)) lseek err Invalid argument
file_pread(4,8,buffer,1953525839(121601/91/42)) lseek err Invalid argument
file_pread(4,11,buffer,1953525886(121601/92/26)) lseek err Invalid argument
file_pread(4,2,buffer,1953527808(121601/122/58)) lseek err Invalid argument
get_geometry_from_list_part_aux head=255 nbr=2
get_geometry_from_list_part_aux head=8 nbr=1
get_geometry_from_list_part_aux head=16 nbr=1
get_geometry_from_list_part_aux head=32 nbr=1
get_geometry_from_list_part_aux head=64 nbr=1
get_geometry_from_list_part_aux head=128 nbr=1
get_geometry_from_list_part_aux head=240 nbr=1
get_geometry_from_list_part_aux head=255 nbr=2


Results
* FAT16 >32M 0 1 1 4 254 63 80262 [DellUtility]
FAT16, blocksize=2048, 41 MB / 39 MiB
P HPFS - NTFS 5 25 21 1807 242 35 28962816 [RECOVERY]
NTFS, blocksize=4096, 14 GB / 13 GiB
P HPFS - NTFS 1807 242 36 64055 42 51 1000001536 [C]
NTFS, blocksize=4096, 512 GB / 476 GiB
L HPFS - NTFS 82438 184 51 121601 25 24 629143552 [LLdisk]
NTFS, blocksize=4096, 322 GB / 299 GiB
Change partition type:
HPFS - NTFS 64055 42 52 82438 184 49 295331839
add_ext_part_i386: max
add_ext_part_i386: max

interface_write()
1 * FAT16 >32M 0 1 1 4 254 63 80262 [DellUtility]
2 P HPFS - NTFS 5 25 21 1807 242 35 28962816 [RECOVERY]
3 P HPFS - NTFS 1807 242 36 64055 42 51 1000001536 [C]
4 E extended LBA 64056 0 1 121601 80 63 924465528
//cette ligne m'inquiète
5 L HPFS - NTFS 64056 42 52 82437 184 49 295299709
//ce serait la nouvelle partition (les valeurs sont ok ?)
6 L HPFS - NTFS 82438 184 51 121601 25 24 629143552 [LLdisk]


Merci pour vos réponses

Re: Récupération d'un partie d'une partition

Posted: 17 Feb 2013, 17:00
by karuzo
Bonjour

Petite précision car je n'avais pas été très clair : je n'ai du coup pas créé cette partition : il aurait fallu que je sélectionne write à la fin, mais je voudrais justement savoir si il n'y a pas un autre problème dans mon cas à cause de
4 E extended LBA 64056 0 1 121601 80 63 924465528

est-ce que
4 E extended LBA 64056 0 1 121601 80 63 924465528
5 L HPFS - NTFS 64056 42 52 82437 184 49 295299709
6 L HPFS - NTFS 82438 184 51 121601 25 24 629143552 [LLdisk]

représente 3 partitions différentes (et alors qui se chevauchent ...) ou alors quelle est la signification de la première ligne ?

Dans la nouvelle partition que je voudrais créer
5 L HPFS - NTFS 64056 42 52 82437 184 49 295299709
les coordonnées CHS sont choisies automatiquement au début, comment savoir si elles sont correctes ?

Re: Récupération d'un partie d'une partition

Posted: 28 Feb 2013, 08:24
by cgrenier
De ce que je vois, le système de fichier C: a été réduit mais pas la partition correspondante.
Après Analyse et Quick Search, modifier le type de la partition DellUtility en DE, mettez cette partition en P(rimary),
la partition Recovery en *(bootable) puis Write et confirmer.

Re: Récupération d'un partie d'une partition

Posted: 11 Mar 2013, 23:00
by karuzo
Bonjour, merci beaucoup de votre réponse, mais en effectuant votre manipulation, testdisk m'a renvoyé "write error".

voici une partie du log (impossible de mettre en pièce jointe les .log ou les . txt ...)


OS: Windows 7 (7601) SP1
Compiler: GCC 4.7, Cygwin 1007.17
ext2fs lib: 1.42.2, ntfs lib: 10:0:0, reiserfs lib: 0.3.1-rc8, ewf lib: 20120504
disk_get_size_win32 IOCTL_DISK_GET_LENGTH_INFO(/dev/sda)=1000204886016
disk_get_size_win32 IOCTL_DISK_GET_LENGTH_INFO(\\.\PhysicalDrive0)=1000204886016
disk_get_size_win32 IOCTL_DISK_GET_LENGTH_INFO(\\.\C:)=663209639936
filewin32_getfilesize(\\.\D:) GetFileSize err Fonction incorrecte.

filewin32_setfilepointer(\\.\D:) SetFilePointer err Fonction incorrecte.

Warning: can't get size for \\.\D:
disk_get_size_win32 IOCTL_DISK_GET_LENGTH_INFO(\\.\E:)=322121498624
Hard disk list
Disk /dev/sda - 1000 GB / 931 GiB - CHS 121601 255 63, sector size=512 - WDC WD10 JPVT-75A1YT0, S/N:XW1F1CS28834, FW:01.0


Partition table type (auto): Intel
Disk /dev/sda - 1000 GB / 931 GiB - WDC WD10 JPVT-75A1YT0
Partition table type: Intel

Analyse Disk /dev/sda - 1000 GB / 931 GiB - CHS 121601 255 63
Geometry from i386 MBR: head=255 sector=63
check_part_i386 1 type DE: no test
NTFS at 5/25/21
NTFS at 1807/242/36
Info: size boot_sector 999999993, partition 1295331328
NTFS at 82438/184/51
get_geometry_from_list_part_aux head=255 nbr=2
get_geometry_from_list_part_aux head=8 nbr=1
get_geometry_from_list_part_aux head=16 nbr=1
get_geometry_from_list_part_aux head=32 nbr=1
get_geometry_from_list_part_aux head=64 nbr=1
get_geometry_from_list_part_aux head=128 nbr=1
get_geometry_from_list_part_aux head=240 nbr=1
get_geometry_from_list_part_aux head=255 nbr=2

Current partition structure:
1 P Dell Utility 0 1 1 4 254 63 80262

Bad sector count.
2 * HPFS - NTFS 5 25 21 1807 242 35 28962816 [RECOVERY]
3 P HPFS - NTFS 1807 242 36 82438 152 18 1295331328 [C]
4 E extended LBA 82438 152 19 121601 25 24 629145600
5 L HPFS - NTFS 82438 184 51 121601 25 24 629143552 [LLdisk]

search_part()
Disk /dev/sda - 1000 GB / 931 GiB - CHS 121601 255 63
FAT16 at 0/1/1
FAT1 : 1-79
FAT2 : 80-158
start_rootdir : 159
Data : 191-80258
sectors : 80262
cluster_size : 4
no_of_cluster : 20017 (2 - 20018)
fat_length 79 calculated 79

FAT16 at 0/1/1
FAT16 >32M 0 1 1 4 254 63 80262 [DellUtility]
FAT16, blocksize=2048, 41 MB / 39 MiB
NTFS at 5/25/21
filesystem size 28962816
sectors_per_cluster 8
mft_lcn 786432
mftmirr_lcn 2
clusters_per_mft_record -10
clusters_per_index_record 1
HPFS - NTFS 5 25 21 1807 242 35 28962816 [RECOVERY]
NTFS, blocksize=4096, 14 GB / 13 GiB
NTFS at 1807/242/36
filesystem size 999999993
sectors_per_cluster 8
mft_lcn 786432
mftmirr_lcn 2
clusters_per_mft_record -10
clusters_per_index_record 1
HPFS - NTFS 1807 242 36 64055 18 20 999999993 [C]
NTFS, blocksize=4096, 511 GB / 476 GiB
NTFS at 82438/184/51
filesystem size 629143552
sectors_per_cluster 8
mft_lcn 786432
mftmirr_lcn 2
clusters_per_mft_record -10
clusters_per_index_record 1
HPFS - NTFS 82438 184 51 121601 25 24 629143552 [LLdisk]
NTFS, blocksize=4096, 322 GB / 299 GiB
file_pread(4,2,buffer,1953525760(121601/90/26)) lseek err Invalid argument
file_pread(4,1,buffer,1953525760(121601/90/26)) lseek err Invalid argument
file_pread(4,8,buffer,1953525248(121601/82/18)) lseek err Invalid argument
file_pread(4,1,buffer,1953525248(121601/82/18)) lseek err Invalid argument
file_pread(4,8,buffer,1953525376(121601/84/20)) lseek err Invalid argument
file_pread(4,8,buffer,1953525504(121601/86/22)) lseek err Invalid argument
file_pread(4,8,buffer,1953525632(121601/88/24)) lseek err Invalid argument
file_pread(4,7,buffer,1953525761(121601/90/27)) lseek err Invalid argument
file_pread(4,16,buffer,1953525760(121601/90/26)) lseek err Invalid argument
file_pread(4,3,buffer,1953525776(121601/90/42)) lseek err Invalid argument
file_pread(4,3,buffer,1953525823(121601/91/26)) lseek err Invalid argument
file_pread(4,8,buffer,1953525839(121601/91/42)) lseek err Invalid argument
file_pread(4,11,buffer,1953525886(121601/92/26)) lseek err Invalid argument
file_pread(4,2,buffer,1953527808(121601/122/58)) lseek err Invalid argument
get_geometry_from_list_part_aux head=255 nbr=2
get_geometry_from_list_part_aux head=8 nbr=1
get_geometry_from_list_part_aux head=16 nbr=1
get_geometry_from_list_part_aux head=32 nbr=1
get_geometry_from_list_part_aux head=64 nbr=1
get_geometry_from_list_part_aux head=128 nbr=1
get_geometry_from_list_part_aux head=240 nbr=1
get_geometry_from_list_part_aux head=255 nbr=2


Results
* FAT16 >32M 0 1 1 4 254 63 80262 [DellUtility]
FAT16, blocksize=2048, 41 MB / 39 MiB
P HPFS - NTFS 5 25 21 1807 242 35 28962816 [RECOVERY]
NTFS, blocksize=4096, 14 GB / 13 GiB
P HPFS - NTFS 1807 242 36 64055 42 51 1000001536 [C]
NTFS, blocksize=4096, 512 GB / 476 GiB
L HPFS - NTFS 82438 184 51 121601 25 24 629143552 [LLdisk]
NTFS, blocksize=4096, 322 GB / 299 GiB
add_ext_part_i386: max
add_ext_part_i386: max

interface_write()
1 P FAT16 >32M 0 1 1 4 254 63 80262 [DellUtility]
2 * HPFS - NTFS 5 25 21 1807 242 35 28962816 [RECOVERY]
3 P HPFS - NTFS 1807 242 36 64055 42 51 1000001536 [C]
4 E extended LBA 64055 42 52 121601 57 56 924477440
5 L HPFS - NTFS 82438 184 51 121601 25 24 629143552 [LLdisk]

Re: Récupération d'un partie d'une partition

Posted: 11 Mar 2013, 23:25
by karuzo
Gros Problème d'ailleurs : en rallumant mon ordinateur, je découvre que la manipulation a fait fusionner l'espace qu'il me manquait avec mon disque de données personnelles : LLdisk : J'ai donc bien retrouvé toute ma place d'écriture en théorie, mais j'aimerai ne pas avoir à perdre les données qui étaient sur ce disque :
gestion disque.jpg
gestion disque.jpg (98.05 KiB) Viewed 4663 times

Re: Récupération d'un partie d'une partition

Posted: 12 Mar 2013, 00:26
by karuzo
A la suite de ces malheurs, j'obtient ceci après une nouvelle recherche (Analyse puis quick search) :

Hard disk list
Disk /dev/sda - 1000 GB / 931 GiB - CHS 121601 255 63, sector size=512 - WDC WD10 JPVT-75A1YT0, S/N:XW1F1CS28834, FW:01.0
...
Partition table type (auto): Intel
Disk /dev/sda - 1000 GB / 931 GiB - WDC WD10 JPVT-75A1YT0
Partition table type: Intel
...
Analyse Disk /dev/sda - 1000 GB / 931 GiB - CHS 121601 255 63
Current partition structure:
1 P FAT16 >32M 0 1 1 4 254 63 80262 [DellUtility]
2 * HPFS - NTFS 5 25 21 1807 242 35 28962816 [RECOVERY]
3 P HPFS - NTFS 1807 242 36 64055 42 51 1000001536 [C]
4 E extended LBA 64055 42 52 121601 57 56 924477440

test_logical:
Partition sector doesn't have the endmark 0xAA55

search_part()
...
Results
* FAT16 >32M 0 1 1 4 254 63 80262 [DellUtility]
FAT16, blocksize=2048, 41 MB / 39 MiB
P HPFS - NTFS 5 25 21 1807 242 35 28962816 [RECOVERY]
NTFS, blocksize=4096, 14 GB / 13 GiB
P HPFS - NTFS 1807 242 36 64055 42 51 1000001536 [C]
NTFS, blocksize=4096, 512 GB / 476 GiB
L HPFS - NTFS 82438 184 51 121601 25 24 629143552 [LLdisk]
NTFS, blocksize=4096, 322 GB / 299 GiB
add_ext_part_i386: max
add_ext_part_i386: max

interface_write()
1 * FAT16 >32M 0 1 1 4 254 63 80262 [DellUtility]
2 P HPFS - NTFS 5 25 21 1807 242 35 28962816 [RECOVERY]
3 P HPFS - NTFS 1807 242 36 64055 42 51 1000001536 [C]
4 E extended LBA 64055 42 52 121601 57 56 924477440
5 L HPFS - NTFS 82438 184 51 121601 25 24 629143552 [LLdisk]


Ceci m'a fait réapparaitre les bonnes partitions en reconnaissant un espace non alloué entre C et LLdisk (mais j'avais laissé en boot sur DellUtility, donc plus de redémarrage ... à part avec un live CD d'Ubuntu. J'ai donc modifié à nouveau les types en mettant bootable pour RECOVERY par gParted depuis Linux, et ça a marché :D :D :D )
(D'ailleurs au passage, j'ai été un peu inquiété de ne pas réussir à lancer testdisk depuis Linux sur LiveCD, est-ce possible ?)

Donc tout est résolu, bravo pour ce joli logiciel.