Menu

fail to restore partition image file V to P

odoyle81
2010-12-07
2013-04-05
  • odoyle81

    odoyle81 - 2010-12-07

    Hi,
    I'm trying to convert a vdi to physical using clonezilla.  I have a macbook 3,1 and I have created an image with clonezilla and I want to boot with the livecd and restore the image to my bootcamp partition (already formatted to ext4).
    I'm running into the following issue.  I know that the image is valid because I have restored it to a new VM.  I did some googling and I have a feeling the issue may be related to the partition?  When I made the image it was sda1 and I'm trying to restore to sda4.. is this an issue? How can I fix it? If this isn't the issue, what is?

    I can't post the error code because I'm using a liveCD and can't save anything…
    it says "failed to restore partition image file /home/partimg/imgname/sda4* to /dev/sda4! Maybe the image is corrupt or there is no /homepartimg/imgname"

    Thanks in advance for help

     
  • odoyle81

    odoyle81 - 2010-12-07

    I'm using clonezilla maverick…

     
  • odoyle81

    odoyle81 - 2010-12-07

    and here is the command I'm running:

    /opt/drb1/sbin/ocs-sr -g auto -e1 auto -e2 -c -r -j2 -k -p true restoreparts imgname sda4

     
  • odoyle81

    odoyle81 - 2010-12-07

    finally here is the output from the bug report file:

    To report the bug or problem, fill the contents in the following table, then send it to Clonezilla live mailing list or post it on the Clonezilla live forum."
    -----CUT BEGIN HERE-----------------------------
    Description of problem:

    How reproducible:

    Steps to Reproduce:

    Actual results:

    Expected results:

    Some info about the Clonezilla live environment (PLEASE DO NOT EDIT THEM!):

    *********************************************************
    The contents of /live/image/Clonezilla-Live-Version:
    clonezilla-live-20101106-maverick
    This Clonezilla live iso file was created by this command:
    ocs-iso -ocs-live-boot-menu-option u -s -extra-boot-param quiet -i 20101106-maverick
    *********************************************************
    Installed DRBL/Clonezilla related packages:  drbl-1.9.7-27 clonezilla-2.3.7-41 mkswap-uuid-0.1.1-1 drbl-partimage-0.6.8-1drbl partclone-0.2.16-drbl1 drbl-chntpw-0.0.20040818-7 drbl-lzop-1.02-0.8drbl pigz-2.1.6-1 pbzip2-1.1.1-1drbl  udpcast-20100130-2  
    *********************************************************
    /proc/partitions:
    major minor  #blocks  name

       7        0     110800 loop0
       8        0  312571224 sda
       8        1     204800 sda1
       8        2  285081600 sda2
       8        3    4358144 sda3
       8        4   22794240 sda4
       8       16  488386584 sdb
       8       17  204796588 sdb1
       8       18  283587412 sdb2
    *********************************************************
    Partition lists on the system:
    Model: ATA WDC WD3200BEKT-0 (scsi)
    Disk /dev/sda: 320GB
    Sector size (logical/physical): 512B/512B
    Partition Table: gpt

    Number  Start   End    Size    File system     Name                  Flags
    1      20.5kB  210MB  210MB   fat32           EFI System Partition  boot
    2      210MB   292GB  292GB   hfs+            Untitled
    3      292GB   297GB  4463MB  linux-swap(v1)  Untitled
    4      297GB   320GB  23.3GB  ext4

    Model: ST350063 0AS (scsi)
    Disk /dev/sdb: 500GB
    Sector size (logical/physical): 512B/512B
    Partition Table: msdos

    Number  Start   End    Size   Type     File system  Flags
    1      32.3kB  210GB  210GB  primary  ntfs
    2      210GB   500GB  290GB  primary  ntfs

    *********************************************************
    The info from blkid:
    /dev/loop0: TYPE="squashfs"
    /dev/sda1: LABEL="EFI" UUID="3F3C-1AF6" TYPE="vfat"
    /dev/sda2: UUID="5060daf7-b379-3a6f-b28e-488737ff0142" LABEL="MacOS" TYPE="hfsplus"
    /dev/sda3: UUID="e809ff34-1ae7-4c06-aa34-318ec7aafed8" TYPE="swap"
    /dev/sda4: UUID="64fb3d2f-8656-41e8-9bcc-1300f07f996c" TYPE="ext4"
    /dev/sdb1: LABEL="200 GB Backup" UUID="406853A868539C0A" TYPE="ntfs"
    /dev/sdb2: LABEL="270 GB Media" UUID="EC40DE4940DE1A62" TYPE="ntfs"
    *********************************************************
    Clonezilla image repository dir /home/partimag is none
    *********************************************************
    ===
    -----CUT END HERE-------------------------------

     
  • odoyle81

    odoyle81 - 2010-12-07

    RIDICULOUS!!!
    I can't restore sda1 to sda4 without changing the name of the image file???
    I cannot believe this is not a default option, or at least a warning provided during the GUI steps, or at least a more descriptive error message??? WHY even make an image specific to a partition??
    ABSOLUTELY RIDICULOUS HOW MUCH TIME I WASTED TO FIGURE THIS OUT!!!!!!!!!!!!!!!!!!
    for anyone else who runs into this issue, the answer is BURIED here:
    http://www.drbl.org/faq/fine-print.php?path=./2_System/102_restore_image_to_different_partition.faq#102_restore_image_to_different_partition.faq

    I wouldn't wish the past several hours of google searching on my worst enemy!!

     
  • Steven Shiau

    Steven Shiau - 2010-12-07

    Yes, it's ridiculous…
    Therefore we have added a prompt in Clonezilla live 1.2.6-49 or 20101207-maverick about this. Thanks for pointing this issue.
    We will try to make it easier in the future release.

    Steven.

     

Log in to post a comment.

MongoDB Logo MongoDB