Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

EFI boot file in partition /dev/mmcblk01 was _NOT_ found #14

Closed
quozl opened this issue Oct 24, 2015 · 1 comment
Closed

EFI boot file in partition /dev/mmcblk01 was _NOT_ found #14

quozl opened this issue Oct 24, 2015 · 1 comment

Comments

@quozl
Copy link

quozl commented Oct 24, 2015

update-efi-nvram-boot-entry does not work with some disk device names.

On clonezilla-live-20151012-wily-amd64.iso, I had used to savedisk then restoredisk on a laptop on which Ubuntu Trusty 14.04.3 had been installed. This laptop uses eMMC, so the disk name is /dev/mmcblk0 and the first partition is /dev/mmcblk0p1.

efi_system_part="${disk_}${esp_no}"

might be changed to

case "${disk_}" in
    *mmcblk*)
        efi_system_part="${disk_}p${esp_no}"
        ;;
    *)
        efi_system_part="${disk_}${esp_no}"
        ;;
esac

The log of restoredisk is:

*****************************************************.
Running: update-efi-nvram-boot-entry -r /home/partimag/2015-10-24-03-img/efi-nvram.dat -f /tmp/efi_info.9uGznz /dev/mmcblk0
Updating boot entry of EFI NVRAM...
EFI system partition: /dev/mmcblk01
The EFI system partition UUID 279e53d1-5423-46eb-a9b3-520de59eecbf in EFI NVRAM does _NOT_ match the one on partition /dev/mmcblk01. UUID of /dev/mmcblk01 is: 
Removing the stale boot entry 0000 by command:
efibootmgr -B -b 0000
BootCurrent: 0016
Timeout: 2 seconds
BootOrder: 0013,0014,0015,0016,0017,0018,0019
Boot0010  Setup
Boot0011  Boot Menu
Boot0012  Diagnostic Splash
Boot0013* ATA HDD0:
Boot0014* eMMC Card0:
Boot0015* ATA HDD1:
Boot0016* USB HDD:
Boot0017* USB CD:
Boot0018* USB FDD:
Boot0019* PCI LAN:
*****************************************************.
EFI boot file in partition /dev/mmcblk01 was _NOT_ found.
Program terminated!!
End of restoreparts job for image 2015-10-24-03-img.
End of restoredisk job for image 2015-10-24-03-img.
Checking if udevd rules have to be restored...
‘/lib/udev/rules.d/85-lvm2.rules.drblsave’ -> ‘/lib/udev/rules.d/85-lvm2.rules’
Running 'udevadm control --reload-rules' to reload udevd rules...
This program is not started by Clonezilla server, so skip notifying it the job is done.
Finished!
Now syncing - flush filesystem buffers...

Workaround was to boot from Ubuntu Trusty 14.04.3 installation media and then;

mount /dev/mmcblk0p2 /mnt
mount /dev/mmcblk0p1 /mnt/boot/efi
mount -t sysfs sysfs /mnt/sys
mount -t proc proc /mnt/proc
mount -t devtmpfs devfs /mnt/dev
mount -t devpts devpts /mnt/dev/pts
chroot /mnt grub-install --bootloader-id ubuntu /dev/mmcblk0
umount /mnt/dev/pts
umount /mnt/dev
umount /mnt/proc
umount /mnt/sys
umount /mnt/boot/efi
umount /mnt
stevenshiau added a commit that referenced this issue Nov 3, 2015
Bug fixed: Failed to deal with partition name with extra "p", like:
*cciss*, *mmcblk*, *md*, *rd*, *ida*, *nvme*,
Thanks to quozl for reporting this bug.
(#14)
@stevenshiau
Copy link
Owner

Thanks. This patch has been applied.
Please give Clonezilla live >= 2.4.2-66 or 20151103-* a try.
Closing this bug and feel free to re-open it if you still have problem to use it.

Steven.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants