I'm trying to automate Clonezilla so that every time it runs, it will take a disk image from one partition, write it onto another partition, and then set the partition that was just rewritten as the active partition.
I just can't seem to find the command to set the active partition in Clonezilla / Debian, or find out if it's even possible from Clonezilla live.
Thanks
If you would like to refer to this comment somewhere else in this project, copy and paste the following link:
Also the entire process I was trying to plan involved automatically restoring an image of Windows 7 onto the main partition.
At the end of every week, Task Scheduler in Windows 7 would to set a partition with Clonezilla as the active partition then reboot. Then in Clonezilla I would copy the image of Windows from a storage partition onto the partition with Windows 7. Finally, I would set the freshly copied installation of Windows 7 as the active partition again.
This might be confusing, so
partition 1 = Windows installation
partition 2 = Clonezilla
partition 3 = storage for Windows image
If you would like to refer to this comment somewhere else in this project, copy and paste the following link:
To make a partition active, you can use "parted" command, e.g. to make /dev/sda1 active:
# parted -s /dev/sda set 1 boot on
I am not sure if I answer all your questions. If not, please let me know.
Steven.
If you would like to refer to this comment somewhere else in this project, copy and paste the following link:
I'm trying to automate Clonezilla so that every time it runs, it will take a disk image from one partition, write it onto another partition, and then set the partition that was just rewritten as the active partition.
I just can't seem to find the command to set the active partition in Clonezilla / Debian, or find out if it's even possible from Clonezilla live.
Thanks
Also the entire process I was trying to plan involved automatically restoring an image of Windows 7 onto the main partition.
At the end of every week, Task Scheduler in Windows 7 would to set a partition with Clonezilla as the active partition then reboot. Then in Clonezilla I would copy the image of Windows from a storage partition onto the partition with Windows 7. Finally, I would set the freshly copied installation of Windows 7 as the active partition again.
This might be confusing, so
partition 1 = Windows installation
partition 2 = Clonezilla
partition 3 = storage for Windows image
To make a partition active, you can use "parted" command, e.g. to make /dev/sda1 active:
# parted -s /dev/sda set 1 boot on
I am not sure if I answer all your questions. If not, please let me know.
Steven.
Thanks! It worked :)
No problem. Enjoy!
Steven.