Announcement

Collapse
No announcement yet.

PARTUUID what's that? system can't see partitions

Collapse
This topic is closed.
X
X
 
  • Filter
  • Time
  • Show
Clear All
new posts

    PARTUUID what's that? system can't see partitions

    I need to recover partitions sd5 and sda6



    What looks bad is that gparted see those partitions as clean with no data.

    I recovered system with clonezilla and now systemcan't see those two partitions

    sda5 is /home
    sda6 important data

    sdb is disk I use to write from

    in gparted gparted to:
    /dev/sda5 23244802 52543489 29298688 14G 83 Linux
    /dev/sda6 52543491 117026817 64483327 30,8G 83 Linux

    Code:
    sudo fdisk -l
    
    Disk /dev/sda: 55,9 GiB, 60021399040 bytes, 117229295 sectors
    Units: sectors of 1 * 512 = 512 bytes
    Sector size (logical/physical): 512 bytes / 512 bytes
    I/O size (minimum/optimal): 512 bytes / 512 bytes
    Disklabel type: dos
    Disk identifier: 0x0001b6eb
    
    Device     Boot     Start       End  Sectors  Size Id Type
    /dev/sda1            2048  23244799 23242752 11,1G 83 Linux
    /dev/sda2        23244800 117225473 93980674 44,8G  5 Extended
    /dev/sda5        23244802  52543489 29298688   14G 83 Linux
    /dev/sda6        52543491 117026817 64483327 30,8G 83 Linux
    /dev/sda7  *    117030912 117225471   194560   95M 83 Linux
    
    
    testdisk shows
    
    Disk /dev/sda - 60 GB / 55 GiB - CHS 7297 255 63
    Current partition structure:
         Partition                  Start        End    Size in sectors
    
     1 P Linux                    0  32 33  1446 235  5   23242752
     2 E extended              1446 235  6  7296 241 51   93980674
    No partition is bootable
    No ext2, JFS, Reiser, cramfs or XFS marker
     5 L Linux                 1446 235  8  3270 173 41   29298688
     5 L Linux                 1446 235  8  3270 173 41   29298688
       X extended              3270 173 42  7284 148 34   64483328
    No ext2, JFS, Reiser, cramfs or XFS marker
     6 L Linux                 3270 173 43  7284 148 34   64483327
     6 L Linux                 3270 173 43  7284 148 34   64483327
       X extended              7284 148 35  7296 241 49     198654
    Logical partition must not be bootable
     7 L Linux                 7284 213 34  7296 241 49     194560
    
    ~$ sudo blkid
    
    /dev/sda1: UUID="2b383205-d6e5-4711-adc8-83d841b090c7" TYPE="ext4" PARTUUID="0001b6eb-01" 
    /dev/sda7: UUID="e094f1eb-0ecb-49b3-bafc-de55104b285f" TYPE="ext4" PARTUUID="0001b6eb-07" 
    /dev/sdb1: UUID="548d0a90-a349-46b4-8edb-67219ab9bfe4" TYPE="ext4" PARTUUID="cc11712c-01" 
    /dev/sdb5: UUID="91f0c40c-e683-48d0-a970-0a9dbf4ecbed" TYPE="ext4" PARTUUID="cc11712c-05" 
    /dev/sdb6: UUID="7ef2a3e3-73a3-4086-bca5-971115220db0" TYPE="ext4" PARTUUID="cc11712c-06" 
    /dev/sda5: PARTUUID="0001b6eb-05" 
    /dev/sda6: PARTUUID="0001b6eb-06"
    This happend after I used in Clonezilla advance option "Reinstall grub on target harddisk boot sector".
    I don't know what PARTUUID is and how to use it. In fastab I used UUID's.

    I read this article
    http://askubuntu.com/questions/84501...untu-boot-from

    Code:
    sudo gdisk /dev/sda
    GPT fdisk (gdisk) version 0.8.8
    
    Partition table scan:
      MBR: MBR only
      BSD: not present
      APM: not present
      GPT: not present
    
    
    ***************************************************************
    Found invalid GPT and valid MBR; converting MBR to GPT format
    in memory. THIS OPERATION IS POTENTIALLY DESTRUCTIVE! Exit by
    typing 'q' if you don't want to convert your MBR partitions
    to GPT format!
    ***************************************************************
    
    
    Command (? for help):
    I don't remember if I used GPT or MBR before. It is SSD disk.


    I may loose system but I want to recover those two partitions. I don't know how to use testdisk properly. I don't want to make things worse.

    Edit:

    Code:
    Disk /dev/sda - 60 GB / 55 GiB - GOODRAM C50
    
    Hidden sectors are present.
    
    size       117229295 sectors
    user_max   117229295 sectors
    native_max 117231408 sectors
    dco        117231408 sectors
    Host Protected Area (HPA) present.
    
    analyse
    Disk /dev/sda - 60 GB / 55 GiB - CHS 7297 255 63
         Partition               Start        End    Size in sectors
     * Linux                    0  32 33  1446 235  5   23242752
     P Linux                 1447  12 38  1459  40 53     194560
    >P Linux                 1459  73 23  3283  11 56   29298688
     L Linux                 3283  44 26  7297  19 18   64483328
    I step on last partition and press enter

    Code:
    Disk /dev/sda - 60 GB / 55 GiB - CHS 7297 255 63
    
    Disk /dev/sda - 60 GB / 55 GiB - CHS 7297 255 63
         Partition               Start        End    Size in sectors
    >* Linux                    0  32 33  1446 235  5   23242752
     P Linux                 1447  12 38  1459  40 53     194560
     P Linux                 1459  73 23  3283  11 56   29298688
     L Linux                 3283  44 26  7297  19 18   64483328

    When I am here and there is menu

    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
    ext4 blocksize=4096 Large file Sparse superblock, 11 GB / 11 GiB

    and I chose positions 29298688 and 64483328 and press P it shows me files and folders on this partition so they are not lost but I don't know how to recover this partition.

    Will pressing A recover this partition and write it to MBR?

    Edit,
    I pressed Enter and there are options for saving partitions.
    Last edited by gnomek; May 14, 2015, 04:00 AM.

    #2
    For now, I wouldn't be concerned about PARTUUID.
    PARTUUID, for partitions; UUID mainly for filesystems. Persistent naming methods.
    https://wiki.archlinux.org/index.php..._device_naming
    https://bbs.archlinux.org/viewtopic.php?id=165051
    See, also Wikipedia article of GPT partitions.
    https://en.wikipedia.org/wiki/GUID_Partition_Table

    From your edit, sounds like you made progress. The "OK" you found is a good sign. I think it would warn you if it wasn't ready for a "Write or Save partition." Been since 2009 that I used TestDisk, I'll look at it for an experiment I'm working on--the site, though dated, does have many work-through examples of the "back-and-forth" it takes to get to the bottom of things until you finally do a write/save. Keep us posted. If you can't boot into the repaired partitions, you may have fix the bootloader (maybe Boot Repair disk? re-install GRUB 2? ) and/or use a live CD to rescue your data. Also if they do get restored, check that your fstab is OK.
    Last edited by Qqmike; May 14, 2015, 05:44 AM.
    An intellectual says a simple thing in a hard way. An artist says a hard thing in a simple way. Charles Bukowski

    Comment


      #3
      Thank you. Enter was the right choice. It recovered partitions. I also reinstalled Grub2 from LiveCD and kernel.
      Problem solved.

      Comment


        #4
        Very nice! Good work! I'm sure glad you got it ;-)
        (I was motivated to look at TestDisk, got the latest 7.0, did some experiments yesterday, it works well to recover partitions from either MBR or GPT disks.)
        An intellectual says a simple thing in a hard way. An artist says a hard thing in a simple way. Charles Bukowski

        Comment

        Working...
        X