I would like to have on my HDD a small partition which contains Clonezilla instead using USB stick. Yes, I discover the tutorial how to copy to hdd from zip. But I do not know how to do the clonezilla boot directly. I use on my PC UEFI booting - no grub for OS is presented. So I tried to add new record to NVRAM by efibootmgr and set as default boot.
No error message. But the system not boot to Clonezilla. I think there should be the file EFI\boot\grubx64.efi in ESP partition presented. Now this file is with all other Clonezilla's files located on my small partition reserved only for Clonezilla and it is not correct, I suppose. Is this my opinion right? If I have time, I will test it.
If you would like to refer to this comment somewhere else in this project, copy and paste the following link:
Did you copy the dir /EFI/boot from Clonezilla live to your EFI partition (normally /dev/sda1)?
After you have done that, make sure you assign the correct partition for the boot loader, i.e. if the loader is in /dev/sda1, run efibootmgr like this:
efibootmgr -c -d /dev/sda -p 1 -L "Clonezilla" -l "\EFI\boot\grubx64.efi"
Steven.
If you would like to refer to this comment somewhere else in this project, copy and paste the following link:
SOLVED.
Yes, you are right. I just can add some important information for other people who you want to place Clonezilla to their HDD and boot directly from BIOS throught UEFI.
You need create extra partition on your HDD for Clonezilla (300MB is enough) just FAT32.
Copy all Clonezilla files e.g. from Clonezila USB live to this partition.
Make record in loader NVRAM with efibootmgr -c -d /dev/sda -p X -L "My Clonezilla on HDD" -l "\EFI\boot\grubx64.efi"
where X(e.g. 5) is the number of fartition mentioned in 1. (and of course dev/sda must be your disk)
So it means you need not to use ESP partition. You can directly aim loader on partition with Clonezilla. Bios UEFI loader is not checking whether the target partition is ESP type. As bonus - Colonezilla is completly separated from other system (e.g. complicated Windows and its ESP partition).
All is working and tested. Enjoy Clonezilla!
Thanks
Last edit: Jarda 2016-02-10
If you would like to refer to this comment somewhere else in this project, copy and paste the following link:
I would like to have on my HDD a small partition which contains Clonezilla instead using USB stick. Yes, I discover the tutorial how to copy to hdd from zip. But I do not know how to do the clonezilla boot directly. I use on my PC UEFI booting - no grub for OS is presented. So I tried to add new record to NVRAM by efibootmgr and set as default boot.
*efibootmgr -c -d /dev/sda -p 2 -L "Clonezilla" -l "\EFI\boot\grubx64.efi" *
New record added correctly to NVRAM, but not working.
Is possible to boot from UEFI directly to hdd Clonezilla partition or it is impossible to do? Or is there some mistake in my idea?
Thank for any advice.
"New record added correctly to NVRAM, but not working." -> What was the error message?
Steven.
No error message. But the system not boot to Clonezilla. I think there should be the file EFI\boot\grubx64.efi in ESP partition presented. Now this file is with all other Clonezilla's files located on my small partition reserved only for Clonezilla and it is not correct, I suppose. Is this my opinion right? If I have time, I will test it.
Did you copy the dir /EFI/boot from Clonezilla live to your EFI partition (normally /dev/sda1)?
After you have done that, make sure you assign the correct partition for the boot loader, i.e. if the loader is in /dev/sda1, run efibootmgr like this:
efibootmgr -c -d /dev/sda -p 1 -L "Clonezilla" -l "\EFI\boot\grubx64.efi"
Steven.
SOLVED.
Yes, you are right. I just can add some important information for other people who you want to place Clonezilla to their HDD and boot directly from BIOS throught UEFI.
where X(e.g. 5) is the number of fartition mentioned in 1. (and of course dev/sda must be your disk)
So it means you need not to use ESP partition. You can directly aim loader on partition with Clonezilla. Bios UEFI loader is not checking whether the target partition is ESP type. As bonus - Colonezilla is completly separated from other system (e.g. complicated Windows and its ESP partition).
All is working and tested. Enjoy Clonezilla!
Thanks
Last edit: Jarda 2016-02-10
Cool! Thanks for sharing that.
Steven.