Linux Mint und Co


    Partition mit Gparted versehentlich gelöscht - testdisk stellt sie wieder her

    Teilen
    avatar
    helli

    Anzahl der Beiträge : 134
    Anmeldedatum : 06.03.14

    Partition mit Gparted versehentlich gelöscht - testdisk stellt sie wieder her

    Beitrag  helli am Fr 1 Aug - 21:30

    Ich hab mal die sdb1 auf einem Stick mit Gparted gelöscht aber nicht formatiert, um zu zeigen, wie man sie mit testdisk wieder herstellt.
    Eine tiefere Suche war nicht nötig, da sie gleich gefunden wurde.
    Gestartet wird testdisk mit root-Rechten unter Angabe der Platte.
    Code:
    root@KanotixBox:/home/dragon# testdisk /dev/sdb

    Code:
    TestDisk 6.13, Data Recovery Utility, November 2011
    Christophe GRENIER <grenier@cgsecurity.org>
    http://www.cgsecurity.org

      TestDisk is free software, and
    comes with ABSOLUTELY NO WARRANTY.

    Select a media (use Arrow keys, then press Enter):
    >Disk /dev/sdb - 4043 MB / 3856 MiB - Ut165 USB2FlashStorage













    >[Proceed ]  [  Quit  ]

    Note: Disk capacity must be correctly detected for a successful recovery.
    If a disk listed above has incorrect size, check HD jumper settings, BIOS
    detection, and install the latest OS patches and disk drivers.
    Code:
    TestDisk 6.13, Data Recovery Utility, November 2011
    Christophe GRENIER <grenier@cgsecurity.org>
    http://www.cgsecurity.org


    Disk /dev/sdb - 4043 MB / 3856 MiB - Ut165 USB2FlashStorage

    Please select the partition table type, press Enter when done.
    >[Intel  ] Intel/PC partition
     [EFI GPT] EFI GPT partition map (Mac i386, some x86_64...)
     [Humax  ] Humax partition table
     [Mac    ] Apple partition map
     [None   ] Non partitioned media
     [Sun    ] Sun Solaris partition
     [XBox   ] XBox partition
     [Return ] Return to disk selection




    Note: Do NOT select 'None' for media with only a single partition. It's very
    rare for a drive to be 'Non-partitioned'.
    Code:
    TestDisk 6.13, Data Recovery Utility, November 2011
    Christophe GRENIER <grenier@cgsecurity.org>
    http://www.cgsecurity.org


    Disk /dev/sdb - 4043 MB / 3856 MiB - CHS 1018 125 62

    >[ Analyse  ] Analyse current partition structure and search for lost partitions
     [ Advanced ] Filesystem Utils
     [ Geometry ] Change disk geometry
     [ Options  ] Modify options
     [ MBR Code ] Write TestDisk MBR code to first sector
     [ Delete   ] Delete all data in the partition table
     [ Quit     ] Return to disk selection






    Note: Correct disk geometry is required for a successful recovery. 'Analyse'
    process may give some warnings if it thinks the logical geometry is mismatched.
    Code:
    TestDisk 6.13, Data Recovery Utility, November 2011
    Christophe GRENIER <grenier@cgsecurity.org>
    http://www.cgsecurity.org

    Disk /dev/sdb - 4043 MB / 3856 MiB - CHS 1018 125 62
    Current partition structure:
         Partition                  Start        End    Size in sectors

     2 P Linux                   26  53 15   960  39 14    7237632
     3 P Linux Swap             960  72 17  1018  89  6     450544

    Warning: Bad ending cylinder (CHS and LBA don't match)
    No partition is bootable












    *=Primary bootable  P=Primary  L=Logical  E=Extended  D=Deleted
    >[Quick Search]  [ Backup ]
                                Try to locate partition
    Code:
    TestDisk 6.13, Data Recovery Utility, November 2011
    Christophe GRENIER <grenier@cgsecurity.org>
    http://www.cgsecurity.org

    Disk /dev/sdb - 4043 MB / 3856 MiB - CHS 1019 125 62

    Warning: the current number of heads per cylinder is 125
    but the correct value may be 255.
    You can use the Geometry menu to change this value.
    It's something to try if
    - some partitions are not found by TestDisk
    - or the partition table can not be written because partitions overlaps.










    [ Continue ]
    Code:
    TestDisk 6.13, Data Recovery Utility, November 2011
    Christophe GRENIER <grenier@cgsecurity.org>
    http://www.cgsecurity.org

    Disk /dev/sdb - 4043 MB / 3856 MiB - CHS 1019 125 62
         Partition               Start        End    Size in sectors
    >* FAT16 >32M               0  33  3    26  36 14     201698 [NO NAME]
     P Linux                   26  53 15   960  39 14    7237632
     P Linux Swap             960  72 17  1018  89  6     450544













    Structure: Ok.  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
    FAT16, 103 MB / 98 MiB
    Code:
    TestDisk 6.13, Data Recovery Utility, November 2011
    Christophe GRENIER <grenier@cgsecurity.org>
    http://www.cgsecurity.org

    Disk /dev/sdb - 4043 MB / 3856 MiB - CHS 1019 125 62

         Partition                  Start        End    Size in sectors

     1 * FAT16 >32M               0  33  3    26  36 14     201698 [NO NAME]
     2 P Linux                   26  53 15   960  39 14    7237632
     3 P Linux Swap             960  72 17  1018  89  6     450544















     [  Quit  ]  [Deeper Search] >[ Write  ]
                           Write partition structure to disk

    Hier fehlt mir eine Ausgabe, bei der noch mal mit Y bestätigt werden musste.


    Code:
    TestDisk 6.13, Data Recovery Utility, November 2011
    Christophe GRENIER <grenier@cgsecurity.org>
    http://www.cgsecurity.org


    You will have to reboot for the change to take effect.












    >[Ok]

      Aktuelles Datum und Uhrzeit: Do 18 Jan - 0:45