Work at SourceForge, help us to make it a better place! We have an immediate need for a Support Technician in our San Francisco or Denver office.

Close

wrong partition table saved, then restore fails

2014-02-09
2014-02-14
  • Executive summary: I have five partitions, and all are (seemingly) correctly backed up.
    The partition table is incorrectly saved, then restored leading to a failed restore.

    I have a Win-7 machine (HP Mini) running as supplied. When I take a full image it lists four partitions (and they are wrong). It then correctly backs up five partitions. On restore it creates the wrong partitions (naturally) and then fails (natch).

    # cat parts # this is good
    sda1 sda2 sda3 sda4 sda5

    # cat sda-pt.sf # this looks bad
    # partition table of /dev/sda
    unit: sectors

    /dev/sda1 : start= 63, size= 1985, Id=42
    /dev/sda2 : start= 2048, size= 614400, Id=42, bootable
    /dev/sda3 : start= 616448, size=189003776, Id=42
    /dev/sda4 : start=189620224, size=435520176, Id=42

    # cat sda-pt.parted # this looks bad
    Model: ATA WDC WD3200BEKT-6 (scsi)
    Disk /dev/sda: 625142448s
    Sector size (logical/physical): 512B/512B
    Partition Table: msdos

    Number Start End Size Type File system Flags
    1 63s 2047s 1985s primary
    2 2048s 616447s 614400s primary ntfs boot
    3 616448s 189620223s 189003776s primary ntfs
    4 189620224s 625140399s 435520176s primary

    However, partitions as identified and backed up look correct.
    From clonezilla-img:
    Machine: HP Mini 5102
    sda (320GB_WDC_WD3200BEKT-6_WDC_WD3200BEKT-60PVMT0_WD-***)
    sda1 (300M_ntfs_SYSTEM(In_WDC_WD3200BEKT-6)_WDC_WD3200BEKT-60PVMT0_WD-
    *)
    sda2 (90.1G_ntfs_Win-7(In_WDC_WD3200BEKT-6)_WDC_WD3200BEKT-60PVMT0_WD-
    ***)
    sda3 (190.7G_ntfs_Media(In_WDC_WD3200BEKT-6)_WDC_WD3200BEKT-60PVMT0_WD-
    *)
    sda4 (15G_ntfs_HP_RECOVERY(In_WDC_WD3200BEKT-6)_WDC_WD3200BEKT-60PVMT0_WD-***)
    sda5 (2G_vfat_There_are_di(In_WDC_WD3200BEKT-6)_WDC_WD3200BEKT-60PVMT0_WD-
    ***)

    Is this a known problem with clonezilla?
    Is there a correct way to do the restore?

    I now have an empty disk (I did also take a full dd, this is a cz restore test) and am ready to experiment (I started using a new laptop).

    BTW, I probably could do this manually by either creating the pt or fixing sda-pt.sf
    (or whichever file is used), but apart from the actual sizes I do not know the exact
    layout of the partitions.

    TIA
    Eyal

     
  • Steven Shiau
    Steven Shiau
    2014-02-14

    "The partition table is incorrectly saved, then restored leading to a failed restore." -> What were the error messages?

    Steven.