Menu

#167 Restore windows BCD windows boot manager after clonezilla finished backup or restore

open
nobody
None
5
2022-11-07
2022-11-06
Dominik
No

Hello,

we are using an automated backup and restore script for Clonezilla.

First, we start modifying the windows boot manager under windows, and after a restart, it will auto-run Clonezilla (backup or restore process) - then everything is automated.

But after reboot, there is still in windows boot manager as default Clonezilla to boot as it was set in windows before starting backup/restore.

That means... it will go in a LOOP after restart (still booting Clonezilla)

Our target is now. With these commands, we can export the original setting of windows boot manager before starting the process.

1, bcdedit /export d:\originalbackup.bcd # this will make a complete backup of boot manager
2, bcdedit /import d:\restore.bcd # this will completly restore boot manager to original state. This we need apply on final script in clonezilla as final step.

With this "command," bcdedit /import d:\restore.BCD, we will be able, after backup/restore, to go direct to windows, and Clonezilla will not be available anymore for boot as option.

With this solution we will be have 100% fully automated backup or restore system.

Any idea/help?

Many thanks !!!! :)

Discussion

  • Steven Shiau

    Steven Shiau - 2022-11-07

    Forgot to mention, this only works for MBR, not EFI mode.

    Steven

     

Log in to post a comment.

Want the latest updates on software, tech news, and AI?
Get latest updates about software, tech news, and AI from SourceForge directly in your inbox once a month.