I have been successful in cloning the HP Stream laptop but when I go to restore I get an error about the partition. Then once I reboot the image I just created has been destroyed or maybe just the boot sector on the hard drive has been altered. Any suggestions?
If you would like to refer to this comment somewhere else in this project, copy and paste the following link:
@Bret,
Could you please do one more test,
1. rename the file "sda-gpt.gdisk" in the image dir to other name, like:
mv YOURIMAGE/sda-gpt.gdisk YOURIMAGE/sda-gpt.gdisk.bak
2. Then restore the image again.
By doing this, Clonezilla will use another method to create the GPT partition table.
Please let us know the results.
Thanks.
Steven.
If you would like to refer to this comment somewhere else in this project, copy and paste the following link:
I ran into this exact problem with latest alternative (20150217-utopic). Also on an HP Stream, running Windows 8.1.
I tried restoring it using the latest alternative testing (20150512-vivid), same problem.
Then I started from scratch - I tried saving the image AND restoring from alternative testing. Then this problem did not occur.
It seems this is the same problem in https://sourceforge.net/p/clonezilla/discussion/Help/thread/91414a5a/ where the older version of sgdisk screws up when saving. The older image is not readily usable, best thing is to probably re-save the image with the newer version if possible.
To salvage my older image I had to do the following:
Recreate the exact partitions manually with parted; by comparing with the output from mmcblk0-pt.parted
Restore with the -k switch so as to not recreate the partition table.
Windows will now attempt to boot but immediately error.
Ran the the Windows setup disk, went to Repair, opened a command prompt.
Ran bootrec a few times with each option: /FixMbr, /FixBoot, /RebuildBcd. I doubt all three of these were needed, but I was able to boot Windows after this.
I also had to run a chkdsk within Windows before saving again (partclone complained about a dirty volume first time).
Just wanted to post my results when I faced the same issue.
As Steven posted above:
"1. rename the file "sda-gpt.gdisk" in the image dir to other name, like:
mv YOURIMAGE/sda-gpt.gdisk YOURIMAGE/sda-gpt.gdisk.bak
2. Then restore the image again.
By doing this, Clonezilla will use another method to create the GPT partition table."
This worked perfectly for me. After renaming sda-gpt.gdisk and then trying to restore the image to the disk, it simply threw and error stating that 'the backup partition appears to be corrupt' but the primary isn't just before creating and restoring each partition.
Windows 8.1 then rebooted without any errors or issues. The version of Clonezilla that I created the image with was clonezilla-live-2.3.1-18-amd64 (and after fighting with the image over the network I copied the image to an old linux box (where I plugged in the HDD) and used clonezilla-live-2.4.2-10-i586 to restore the image to the HDD.
I will note that just before this I had created 4 partitions and using mkfs.ntfs formated each of them although I don't think this had any bearing on the result as the image that was being restored couldn't get past the first partition and the source image contained 6 partions that were to be restored.
Thank you for the simple fix Steven. Hopefully this helps others as well.
If you would like to refer to this comment somewhere else in this project, copy and paste the following link:
WayneH,
Thanks for confirming that. This latest stable Clonezilla live has used gdisk/sgdisk 1.0. However, the image saved by older version of Clonezilla live still has broken GPT table. I believe if you save the image with latest Clonezilla live, this issue should be gone.
Thanks.
Steven.
If you would like to refer to this comment somewhere else in this project, copy and paste the following link:
I have been successful in cloning the HP Stream laptop but when I go to restore I get an error about the partition. Then once I reboot the image I just created has been destroyed or maybe just the boot sector on the hard drive has been altered. Any suggestions?
Here is my code:
menuentry "CHzilla Restore"{
search --set -f /live/vmlinuz
linux /live/vmlinuz boot=live username=user config quiet noswap edd=on nomodeset nodmraid noeject locales="en_US.UTF-8" keyboard-layouts=NONE ocs_prerun1="dhclient -v eth0" ocs_prerun2="sleep 2" ocs_prerun3="sudo mount -t cifs //10.100.0.75/images /home/partimag -o user=swinneyb,password=*" ocs_live_run="ocs-sr -batch -g auto -e1 auto -e2 -r -j2 -p reboot restoredisk ask_user sda" ocs_live_extra_param="" ocs_live_batch=no vga=792 ip= nosplash i915.blacklist=yes radeonhd.blacklist=yes nouveau.blacklist=yes vmwgfx.enable_fbdev=1
initrd /live/initrd.img
}
menuentry
menuentry "CHzilla Clone"{
search --set -f /live/vmlinuz
linux /live/vmlinuz boot=live username=user config quiet noswap edd=on nomodeset nodmraid noeject locales="en_US.UTF-8" keyboard-layouts=NONE ocs_prerun1="dhclient -v eth0" ocs_prerun2="sleep 2" ocs_prerun3="sudo *" ocs_live_run="ocs-sr -q2 -batch -j2 -rm-win-swap-hib -z1p -p true savedisk ask_user sda" ocs_live_extra_param="" ocs_live_batch=no vga=792 ip= nosplash i915.blacklist=yes radeonhd.blacklist=yes nouveau.blacklist=yes vmwgfx.enable_fbdev=1
initrd /live/initrd.img
}
menuentry
Any help or guidance you can give would be greatly appreciated!
Here is what I get
You may have to use a different clonezilla version, and see what happens if you disable secure boot mode (leave EFI on)
If still not working
ctrl + alt + f2 (to change to tty2)
what does it see as far as your disk parameters?
Here is what i got
@Bret,
Did you try Clonezilla live 20150505-vivid?
http://clonezilla.org/downloads.php
Same issue?
Steven.
Same issue
@Bret,
Could you please do one more test,
1. rename the file "sda-gpt.gdisk" in the image dir to other name, like:
mv YOURIMAGE/sda-gpt.gdisk YOURIMAGE/sda-gpt.gdisk.bak
2. Then restore the image again.
By doing this, Clonezilla will use another method to create the GPT partition table.
Please let us know the results.
Thanks.
Steven.
I ran into this exact problem with latest alternative (20150217-utopic). Also on an HP Stream, running Windows 8.1.
I tried restoring it using the latest alternative testing (20150512-vivid), same problem.
Then I started from scratch - I tried saving the image AND restoring from alternative testing. Then this problem did not occur.
It seems this is the same problem in https://sourceforge.net/p/clonezilla/discussion/Help/thread/91414a5a/ where the older version of sgdisk screws up when saving. The older image is not readily usable, best thing is to probably re-save the image with the newer version if possible.
To salvage my older image I had to do the following:
(Unfortunately with that fixed I'm now running another error instead, although it looks like I can still restore successfully: https://sourceforge.net/p/clonezilla/bugs/217/#f5a1 )
FPhdeNK,
Thanks for sharing that.
Apparently we should release the next stable release based on gdisk 1.0 asap.
Steven.
Just wanted to post my results when I faced the same issue.
As Steven posted above:
"1. rename the file "sda-gpt.gdisk" in the image dir to other name, like:
mv YOURIMAGE/sda-gpt.gdisk YOURIMAGE/sda-gpt.gdisk.bak
2. Then restore the image again.
By doing this, Clonezilla will use another method to create the GPT partition table."
This worked perfectly for me. After renaming sda-gpt.gdisk and then trying to restore the image to the disk, it simply threw and error stating that 'the backup partition appears to be corrupt' but the primary isn't just before creating and restoring each partition.
Windows 8.1 then rebooted without any errors or issues. The version of Clonezilla that I created the image with was clonezilla-live-2.3.1-18-amd64 (and after fighting with the image over the network I copied the image to an old linux box (where I plugged in the HDD) and used clonezilla-live-2.4.2-10-i586 to restore the image to the HDD.
I will note that just before this I had created 4 partitions and using mkfs.ntfs formated each of them although I don't think this had any bearing on the result as the image that was being restored couldn't get past the first partition and the source image contained 6 partions that were to be restored.
Thank you for the simple fix Steven. Hopefully this helps others as well.
WayneH,
Thanks for confirming that. This latest stable Clonezilla live has used gdisk/sgdisk 1.0. However, the image saved by older version of Clonezilla live still has broken GPT table. I believe if you save the image with latest Clonezilla live, this issue should be gone.
Thanks.
Steven.