Quelle partition

Comment utiliser TestDisk pour récupérer une partition perdue
Message
Author
user458
Posts: 7
Joined: 27 May 2014, 17:04

Quelle partition

#1 Post by user458 »

Bonjour,

Durant le deep search (analyse cylinder), je vois passer le nom de mon ancienne partition (New_Volume) que je souhaite recuperer, parmis d'autre.

Code: Select all

Linux                0    0    1   243201    80    63    3907029168 [New_Volume]
A la fin de la recherche, Testdisk m'affiche çà :

Code: Select all

TestDisk 6.14, Data Recovery Utility, July 2013
Christophe GRENIER <grenier@cgsecurity.org>
http://www.cgsecurity.org

Disk /dev/sdc - 2000 GB / 1863 GiB - CHS 243201 255 63
     Partition               Start        End    Size in sectors
>  Linux                    0   1  1 242224 254 63 3891344562
   Linux                73327 245  5 73329  60  9      20480
   Linux                73329 190 14 73331   5 18      20480
   Linux                78607  31 17 83381  18 29   76693504
   Linux                79317   0  1 82955 254 63   58460535
   Linux                80564 155 40 85338 142 52   76693504
   Linux                80651 173 35 85425 160 47   76693504
   Linux                80653  21  9 85427   8 21   76693504
   Linux                80653 151 11 85427 138 23   76693504
   HPFS - NTFS          81001  92 52 86222 197 55   83881984
   HPFS - NTFS          81006 118  9 86227 223 12   83881984
   Linux                81563 240 22 86337 227 34   76693504
   Linux                81564 180 25 86338 167 37   76693504
   Linux                81814  15 58 86588   3  7   76693504
   Linux                82134 140 55 86908 128  4   76693504
   Linux                82806 130 13 87580 117 25   76693504
   Linux                83525  64 60 88299  52  9   76693504
   Linux                83827 196 18 85338  45 19   24264704
   Linux                83834 199 14 85345  48 15   24264704
   Linux                83852 160 21 85363   9 22   24264704
   Linux                85369  39 47 87006   6 40   26296320
   Linux                85462 185 36 87099 152 29   26296320
   Linux                85462 218  5 87099 184 61   26296320
   Linux                85632 201 10 87269 168  3   26296320
   Linux                85633 108 44 87270  75 37   26296320
   Linux                85653  79 59 87290  46 52   26296320
   HPFS - NTFS          86256  44 61 91477 150  1   83881984
   HPFS - NTFS          97761  46 14 105593 108 51  125825024
 * Linux Swap           242225   1  1 243200 254 63   15679377
Quelle partition dois-je choisir car je n'ai pas l'impression de la voir ?!

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

Re: Quelle partition

#2 Post by cgrenier »

Si le système de fichier commençait au premier secteur (0 0 1), le disque n'était pas partionné. Il faut utiliser directement /dev/sdc et non un éventuel /dev/sdc1

user458
Posts: 7
Joined: 27 May 2014, 17:04

Re: Quelle partition

#3 Post by user458 »

Desole, je ne comprends. A quel moment je doit choisir sdc a la place d'un sdcx ?

Veux-tu que je post une partie de mon fichier de log (il est trop gros pour le poster) ?

En tout cas merci d'avoir créé cet outil !

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

Re: Quelle partition

#4 Post by cgrenier »

Ce que je veux dire, c'est qu'il n'y a pas de table de partition. Le disque a été utilisé directement à priori.
En tant que root, essayes

Code: Select all

mkdir /mnt/tmp
mount /dev/sdc /mnt/tmp
ls -l /mnt/tmp

user458
Posts: 7
Joined: 27 May 2014, 17:04

Re: Quelle partition

#5 Post by user458 »

J'ai essayé de faire çà mais il me mettait :

Code: Select all

# mount /dev/sdc /mnt/tmp
mount: you must specify the filesystem type
# mount -t auto  /dev/sdc /mnt/tmp
mount: you must specify the filesystem type
# mount -t ext4  /dev/sdc /mnt/tmp
mount: wrong fs type, bad option, bad superblock on /dev/sdc,
       missing codepage or helper program, or other error
       In some cases useful info is found in syslog - try
       dmesg | tail  or so
# fdisk -l
Disk /dev/sdc: 2000.4 GB, 2000398934016 bytes
255 heads, 63 sectors/track, 243201 cylinders, total 3907029168 sectors
Units = sectors of 1 * 512 = 512 bytes
Sector size (logical/physical): 512 bytes / 4096 bytes
I/O size (minimum/optimal): 4096 bytes / 4096 bytes
Disk identifier: 0x00011cd3

   Device Boot      Start         End      Blocks   Id  System
/dev/sdc1              63  3891344624  1945672281   83  Linux
Partition 1 does not start on physical sector boundary.
/dev/sdc2      3891344625  3907024064     7839720    5  Extended
Partition 2 does not start on physical sector boundary.
/dev/sdc5      3891344688  3907024064     7839688+  82  Linux swap / Solaris
Tu as une idée ?

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

Re: Quelle partition

#6 Post by cgrenier »

Peux-tu refaire un TestDisk, Analyse, Quick Search, si tu vois ton ancienne partition, va dessus et choisis 'p' pour en lister les fichiers puis postes le fichier testdisk.log

user458
Posts: 7
Joined: 27 May 2014, 17:04

Re: Quelle partition

#7 Post by user458 »

Avec l'option EFI a la place d'Intel, car j'ai vu que tu recommandqis cette option pour les disque de 2To.

Code: Select all


Sat May 31 09:19:45 2014
Command line: TestDisk

TestDisk 6.14, Data Recovery Utility, July 2013
Christophe GRENIER <grenier@cgsecurity.org>
http://www.cgsecurity.org
OS: Linux, kernel 3.13.0-27-generic (#50-Ubuntu SMP Thu May 15 18:06:16 UTC 2014) x86_64
Compiler: GCC 4.8
Compilation date: 2013-10-29T01:29:29
ext2fs lib: 1.42.9, ntfs lib: libntfs-3g, reiserfs lib: none, ewf lib: none
/dev/sda: LBA, HPA, LBA48, DCO support
/dev/sda: size       488397168 sectors
/dev/sda: user_max   488397168 sectors
/dev/sda: native_max 488397168 sectors
/dev/sdb: LBA, HPA, LBA48, DCO support
/dev/sdb: size       3907029168 sectors
/dev/sdb: user_max   3907029168 sectors
/dev/sdb: native_max 3907029168 sectors
/dev/sdc: LBA, HPA, LBA48, DCO support
/dev/sdc: size       3907029168 sectors
/dev/sdc: user_max   3907029168 sectors
/dev/sdc: native_max 3907029168 sectors
Warning: can't get size for Disk /dev/mapper/control - 0 B - 1 sectors, sector size=512
Hard disk list
Disk /dev/sda - 250 GB / 232 GiB - CHS 30401 255 63, sector size=512 - ST9250421AS, S/N:5TH04HCM, FW:SD13
Disk /dev/sdb - 2000 GB / 1863 GiB - CHS 243201 255 63, sector size=512 - WDC WD20EZRX-00D8PB0, S/N:WD-WCC4M2154312, FW:80.00A80
Disk /dev/sdc - 2000 GB / 1863 GiB - CHS 243201 255 63, sector size=512 - WDC WD20EARX-00PASB0, S/N:WD-WMAZA9346712, FW:51.0AB51
Disk /dev/sdd - 15 GB / 14 GiB - CHS 15193 64 32, sector size=512 - Sony DSC, FW:1.00
Disk /dev/sde - 110 MB / 105 MiB - CHS 1021 4 53 (RO), sector size=512 - Sony DSC, FW:1.00
Disk /dev/sdf - 22 MB / 21 MiB - CHS 1024 1 42 (RO), sector size=512 - Sony DSC, FW:1.00

Partition table type (auto): None
Disk /dev/sdc - 2000 GB / 1863 GiB - WDC WD20EARX-00PASB0
Partition table type: EFI GPT

Analyse Disk /dev/sdc - 2000 GB / 1863 GiB - CHS 243201 255 63
Bad GPT partition, invalid signature.
Trying alternate GPT
Bad GPT partition, invalid signature.
Current partition structure:
Bad GPT partition, invalid signature.
Trying alternate GPT
Bad GPT partition, invalid signature.

search_part()
Disk /dev/sdc - 2000 GB / 1863 GiB - CHS 243201 255 63

block_group_nr 1

recover_EXT2: part_offset problem

block_group_nr 1

recover_EXT2: "e2fsck -b 32768 -B 4096 device" may be needed
recover_EXT2: s_block_group_nr=1/14904, s_mnt_count=443/4294967295, s_blocks_per_group=32768, s_inodes_per_group=8192
recover_EXT2: s_blocksize=4096
recover_EXT2: s_blocks_count 488378646
recover_EXT2: part_size 3907029168
     MS Data                        0 3907029167 3907029168 [New_Volume]
     ext4 blocksize=4096 Large file Sparse superblock Backup superblock, 2000 GB / 1863 GiB
Partition not added.

block_group_nr 1

recover_EXT2: "e2fsck -b 32768 -B 4096 device" may be needed
recover_EXT2: s_block_group_nr=1/14844, s_mnt_count=0/4294967295, s_blocks_per_group=32768, s_inodes_per_group=8192
recover_EXT2: s_blocksize=4096
recover_EXT2: s_blocks_count 486418070
recover_EXT2: part_size 3891344560
     MS Data                       61 3891344620 3891344560
     ext4 blocksize=4096 Large file Sparse superblock Backup superblock, 1992 GB / 1855 GiB
     Linux Swap            3891344680 3891344695         16
     SWAP2 version 0, pagesize=8192, 8192 B

Results
   P MS Data                       61 3891344620 3891344560
     ext4 blocksize=4096 Large file Sparse superblock Backup superblock, 1992 GB / 1855 GiB
   P Linux Swap            3891344680 3891344695         16
     SWAP2 version 0, pagesize=8192, 8192 B

   P MS Data                       61 3891344620 3891344560
     ext4 blocksize=4096 Large file Sparse superblock Backup superblock, 1992 GB / 1855 GiB
Can't open filesystem. Filesystem seems damaged.

interface_write()
 1 P MS Data                       61 3891344620 3891344560
 2 P Linux Swap            3891344680 3891344695         16
Mon ancienne partition se nomme [New_Volume]

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

Re: Quelle partition

#8 Post by cgrenier »

Lance TestDisk, selectionne le disque, None, Advanced, List. Postes le nouveau fichier testdisk.log

user458
Posts: 7
Joined: 27 May 2014, 17:04

Re: Quelle partition

#9 Post by user458 »

Je n'ai rien dans mon fichier Log :

Code: Select all

Sun Jun  1 14:35:19 2014
Command line: TestDisk
J'ai çà à l'ecran :

Code: Select all

TestDisk 6.14, Data Recovery Utility, July 2013
Christophe GRENIER <grenier@cgsecurity.org>
http://www.cgsecurity.org
   P ext4                     0   0  1 243201  80 63 3907029168 [New_Volume]
Directory /

No file found, filesystem may be damaged.

Use Right to change directory, h to hide deleted files
    q to quit, : to select the current file, a to select all files
    C to copy the selected files, c to copy the current file

user458
Posts: 7
Joined: 27 May 2014, 17:04

Re: Quelle partition

#10 Post by user458 »

Une idee ?

Locked