Hi,
I'm using CZ to do these steps, to achieve restoring partition without USB:
1, save a partition image of /dev/sda5,
2, customize this image to a bootable zip file to restore /dev/sda5,
3, unzip the zip file on /dev/sda6, and add a new grub2 boot option to boot from /dev/sda6,
4, boot from sda6, and do the restore process.
However, after CZ boot from /dev/sda6, it haven't restore /dev/sda5. I enter cmdline and can't find any image files in the /home/partimag dir, seems to be the /dev/sda6/home/partimage haven't been mounted to the live debian's /home/partimag.
Could you tell me, is it a doable way to restore partition(/dev/sda5) from boot a local disk partition(/dev/sda6)? If it is, is there anything wrong with my boot parameters, or the steps?
Thank you so much!
If you would like to refer to this comment somewhere else in this project, copy and paste the following link:
Hi,
I'm using CZ to do these steps, to achieve restoring partition without USB:
1, save a partition image of /dev/sda5,
2, customize this image to a bootable zip file to restore /dev/sda5,
3, unzip the zip file on /dev/sda6, and add a new grub2 boot option to boot from /dev/sda6,
4, boot from sda6, and do the restore process.
However, after CZ boot from /dev/sda6, it haven't restore /dev/sda5. I enter cmdline and can't find any image files in the /home/partimag dir, seems to be the /dev/sda6/home/partimage haven't been mounted to the live debian's /home/partimag.
Here's my grub boot parameters, which is refer to: http://clonezilla.nchc.org.tw/clonezilla-live/livehd.php
menuentry "Clonezilla" {
insmod xfs
set root='hd0,msdos6'
linux /live-hd/vmlinuz boot=live live-config noswap nolocales edd=on nomodeset ocs_live_run=\"ocs-live-restore\" ocs_live_extra_param=\"-g auto -e1 auto -e2 -c -r -j2 -p true restoreparts 2015-01-30-07-img sda5\" ocs_live_keymap=\"\" ocs_live_batch=\"no\" ocs_lang=\"\" vga=788 ip=frommedia nosplash live-media-path=/live-hd bootfrom=/dev/sda6 toram=filesystem.squashfs
initrd /live-hd/initrd.img
}
Could you tell me, is it a doable way to restore partition(/dev/sda5) from boot a local disk partition(/dev/sda6)? If it is, is there anything wrong with my boot parameters, or the steps?
Thank you so much!
So if your image was saved to /dev/sda6, in your boot parameters, add this:
ocs_prerun="mount /dev/sda6 /home/partimag/"
then Clonezilla can find the image.
For more about ocs_prerun*, please check:
http://clonezilla.org/fine-print-live-doc.php?path=clonezilla-live/doc/99_Misc/00_live-boot-parameters.doc
One more reference:
http://clonezilla.org/show-live-doc-content.php?topic=clonezilla-live/doc/05_Preseed_options_to_do_job_after_booting
Steven.