Hi I am trying to clone a linux distro (GPT) where EFI, and OS is on partition 1 and 2 respectively, the system also have two more partitions 3 and 4 and a swap. I want to use savedisk but only the partitions 1 and 2, since the other partitions is just container of media files, so i dont want to clone them. I want to create an image with these two partitions on a microSD with 4 gig space in it. Then I want to create an automatic installer USB disk so when inserted, it will re-create the image without the user having to do anything. Upon installation, I can recreate the two partitions that I left of during imaging, since the installation creates default distro, its ok if it doesnt have media files.
I have a few options but they are not suitable / doesnt work 100%. For example I can create an image from the two partitions. But then when I try to resore the partitions using my existing restore disk command which gets run from EFI/grub (un-attended mode), it doesnt work, obviously you cant use restoredisk command to restore partitions. And I am not able to successfully call restoreparts from grub config scripts that will automatically install the disk image from partition backups. If restoreparts can be used with options to load GPT/ partition tables (I believe MBR is not used anymroe for GPT ?) and the two partition backups from original source disk residing in the same USB key where clonezilla is stored, and all these options can be specified in EFI/grub config file, then that will solve my problem.
My other option is to remove the two media partitions before I start cloning. This option along with automatic launch of restoredisk from EFI/grub is currently working. However I dont want to do that, re-adding the huge list of media files from source disk after everytime I create an image is very time consuming.
So I am left with one possibility, call savedisk with couple of partitions specified. Is there such an option?
Thanks
Ratin
Last edit: Ratin Rahman 2015-10-13
If you would like to refer to this comment somewhere else in this project, copy and paste the following link:
Hi I am trying to clone a linux distro (GPT) where EFI, and OS is on partition 1 and 2 respectively, the system also have two more partitions 3 and 4 and a swap. I want to use savedisk but only the partitions 1 and 2, since the other partitions is just container of media files, so i dont want to clone them. I want to create an image with these two partitions on a microSD with 4 gig space in it. Then I want to create an automatic installer USB disk so when inserted, it will re-create the image without the user having to do anything. Upon installation, I can recreate the two partitions that I left of during imaging, since the installation creates default distro, its ok if it doesnt have media files.
I have a few options but they are not suitable / doesnt work 100%. For example I can create an image from the two partitions. But then when I try to resore the partitions using my existing restore disk command which gets run from EFI/grub (un-attended mode), it doesnt work, obviously you cant use restoredisk command to restore partitions. And I am not able to successfully call restoreparts from grub config scripts that will automatically install the disk image from partition backups. If restoreparts can be used with options to load GPT/ partition tables (I believe MBR is not used anymroe for GPT ?) and the two partition backups from original source disk residing in the same USB key where clonezilla is stored, and all these options can be specified in EFI/grub config file, then that will solve my problem.
My other option is to remove the two media partitions before I start cloning. This option along with automatic launch of restoredisk from EFI/grub is currently working. However I dont want to do that, re-adding the huge list of media files from source disk after everytime I create an image is very time consuming.
So I am left with one possibility, call savedisk with couple of partitions specified. Is there such an option?
Thanks
Ratin
Last edit: Ratin Rahman 2015-10-13
nvm, got this working with some preboot command and some specific options.
Yes, sure. For your case it's easier to customize the system with some prerun command in the boot parameters.
Steven.