This problem occurs on the latest stable release of Clonezilla at this time of posting: That is 'stable - 3.1.0-22'. I am using AMD64 and also booted up into UEFI mode before dropping to the command prompt.
There is a problem with using grub-probe in both chrooted environment and the normal environment. This problem is caused by the OverlayFS that Clonezilla uses for the root filesystem.
In a chrooted environment, you will get the error: "chroot cannot find a device for /".
In the normal environment, you will get the error: " failed to get canonical path of 'overlay'"
Here is my research into this problem so far:
Guide I used for installing GRUB (Answer from cl-netbox): https://askubuntu.com/questions/831216/how-can-i-reinstall-grub-to-the-efi-partition (Though for the chroot environment , I modified the bind mount command by adding '/bin /lib /lib64 /usr /etc/grub.d' paths from Clonezilla's root file system. I also mounted my bootloader partition from within the chroot environment.)
Thanks for your feedback.
"booted up into UEFI mode before dropping to the command prompt." -> What did you mean by this? Did you mean to boot Clonezilla live in your machine? Or there is an issue about restoring a GNU/Linux system which uses grub as boot loader?
Steven
If you would like to refer to this comment somewhere else in this project, copy and paste the following link:
Hello, by that, I mean that I selected UEFI mode of the DVD Clonezilla was on my computer's boot menu. I started up into RAM only mode using GRUB from the disk, Selected my language, Selected my keyboard layout, and then selected 'Enter_shell'.
If you would like to refer to this comment somewhere else in this project, copy and paste the following link:
This problem occurs on the latest stable release of Clonezilla at this time of posting: That is 'stable - 3.1.0-22'. I am using AMD64 and also booted up into UEFI mode before dropping to the command prompt.
There is a problem with using grub-probe in both chrooted environment and the normal environment. This problem is caused by the OverlayFS that Clonezilla uses for the root filesystem.
In a chrooted environment, you will get the error: "chroot cannot find a device for /".
In the normal environment, you will get the error: " failed to get canonical path of 'overlay'"
Here is my research into this problem so far:
Guide I used for installing GRUB (Answer from cl-netbox): https://askubuntu.com/questions/831216/how-can-i-reinstall-grub-to-the-efi-partition (Though for the chroot environment , I modified the bind mount command by adding '/bin /lib /lib64 /usr /etc/grub.d' paths from Clonezilla's root file system. I also mounted my bootloader partition from within the chroot environment.)
Workaround for root error in chroot environment (Answer from mikepurvis): https://serverfault.com/a/549189
Workaround for overlay error outside of chroot environment: https://edoceo.com/notabene/grub-probe-error-cannot-find-device-for-root
Grub2 bug description (Answer by Dustin Kirkland and bug report filed by mikepurvis.): https://serverfault.com/a/550608
The bug report filed for grub2 almost a decade ago. Still not assigned to anyone: https://bugs.launchpad.net/ubuntu/+source/grub2/+bug/1247905
Someone having problems with Overlay on a virtual machine: https://superuser.com/questions/1729200/grub-failed-to-get-canonical-path-of-overlay
Last edit: Jeffrey Ozanne 2023-07-07
Thanks for your feedback.
"booted up into UEFI mode before dropping to the command prompt." -> What did you mean by this? Did you mean to boot Clonezilla live in your machine? Or there is an issue about restoring a GNU/Linux system which uses grub as boot loader?
Steven
Hello, by that, I mean that I selected UEFI mode of the DVD Clonezilla was on my computer's boot menu. I started up into RAM only mode using GRUB from the disk, Selected my language, Selected my keyboard layout, and then selected 'Enter_shell'.
OK, so this is a bug of grub. Got it. Thanks for sharing that.
Steven
You're welcome.