clonezilla icon indicating copy to clipboard operation
clonezilla copied to clipboard

[Question] About restoring from an image

Open rado84-github opened this issue 1 year ago • 3 comments

I'm curious why mkinitcpio -P has to be run after a system has been restored to a storage. Older version of Clonezilla didn't do that and I never had any boot problems, mostly because dkms runs that command automatically when the linux kernel and/or the nvidia drivers get updated. I always make the backups after nvidia and linux kernel have been updated and rebooted once which means the vmlinuz images were already created. Hence I don't see the logic or the sense behind running mkinitcpio -P right after restoring from an image.

I'd appreciate it if you can explain the logic in that whenever you have the time to respond.

rado84-github avatar Dec 28 '24 03:12 rado84-github

Since some of the GNU/Linux distribution will detect the hardware and put only the required drivers/modules in the initrd. Hence if you deploy the image to different type of hardware, you might fail to boot due to the required driver is missing. You have a chance to disable it when using Clonezilla expert mode, i.e., check the option "-iui": https://clonezilla.org//clonezilla-live/doc/02_Restore_disk_image/images/ocs-09-advanced-param-extra.png

Steven

stevenshiau avatar Dec 29 '24 01:12 stevenshiau

Since some of the GNU/Linux distribution will detect the hardware and put only the required drivers/modules in the initrd. Hence if you deploy the image to different type of hardware, you might fail to boot due to the required driver is missing. You have a chance to disable it when using Clonezilla expert mode, i.e., check the option "-iui": https://clonezilla.org//clonezilla-live/doc/02_Restore_disk_image/images/ocs-09-advanced-param-extra.png

Steven

I know about that, I just had to use it because mkinitcpio -P had created some kind of log error and the filesystem wouldn't mount. But I wonder: when clonezilla is installed in the system, is there any config file to edit in order to make iui permanent? Currently I'm using clonezilla from a Live DVD of Debian (running CZ in Debian's terminal).

Edit: NVM, I found what I have to edit in order to make it permanent: ocs-onthefly and then overwrite in /usr/bin.

rado84-github avatar Jan 08 '25 05:01 rado84-github

Actually another approach is you can do that using the boot parameters. Please refer to: https://clonezilla.org//fine-print-live-doc.php?path=./clonezilla-live/doc/99_Misc/00_live-boot-parameters.doc#00_live-boot-parameters.doc

https://clonezilla.org//fine-print-live-doc.php?path=clonezilla-live/doc/05_Preseed_options_to_do_job_after_booting

Steven

stevenshiau avatar Jan 15 '25 12:01 stevenshiau