Scheduled Maintenance: We are aware of an issue with Google, AOL, and Yahoo services as email providers which are blocking new registrations. We are trying to fix the issue and we have several internal and external support tickets in process to resolve the issue. Please see: viewtopic.php?t=158230

 

 

 

[BUG ? / SOLVED]Debian install on removable media - grub makes 2 efi entries - unable to boot efi

Ask for help with issues regarding the Installations of the Debian O/S.
Post Reply
Message
Author
badmin
Posts: 2
Joined: 2022-12-21 20:43

[BUG ? / SOLVED]Debian install on removable media - grub makes 2 efi entries - unable to boot efi

#1 Post by badmin »

So I'm trying to install debian on a 64GB USB so i can move it anywhere.

My problem is that i installed debian normally, then chrooted into it , installed both grub-pc for bios booting and then formatted the efi partition and installed efi manually with --removable flag, that should make booting possible from any pc, but it creates two efi entries and neither one of them is bootable. The bios - booting works.


Here's the efibootmgr output :

Code: Select all

Boot0009* UEFI: SanDisk PciRoot(0x0)/Pci(0x1d,0x0)/USB(0,0)/USB(3,0)/HD(1,GPT,85231161-1ef9-47e4-9ed1-8050dfef85a6,0x800,0xb2c800)0000424f
Boot000A* UEFI: SanDisk PciRoot(0x0)/Pci(0x1d,0x0)/USB(0,0)/USB(3,0)/HD(4,GPT,95891a20-98ac-4278-bdb7-db05d238a165,0xd0b800,0x8f000)0000424f
My partition layout:

Code: Select all

Disk model: Ultra USB 3.0   
Units: sectors of 1 * 512 = 512 bytes
Sector size (logical/physical): 512 bytes / 512 bytes
I/O size (minimum/optimal): 512 bytes / 512 bytes
Disklabel type: gpt
Disk identifier: BDC6AD14-48B9-48D3-B26E-95A84C9DDDAB

Device        Start       End   Sectors  Size Type
/dev/sdc1      2048  11718655  11716608  5.6G Microsoft basic data
/dev/sdc2  11718656  11724799      6144    3M BIOS boot
/dev/sdc3  11724800  13678591   1953792  954M Linux filesystem
/dev/sdc4  13678592  14264319    585728  286M EFI System
/dev/sdc5  14264320 120174591 105910272 50.5G Linux filesystem
To install grub i used :

Code: Select all

# grub-install --target=i386-pc /dev/sdX --recheck
# grub-install --target=x86_64-efi --efi-directory=esp --removable --recheck

PS: Yes i removed the previous efi boot entry with `efibootmgr -b num -B` before formatting the esp.



[SOLUTIION]
I've found the solution... I have deleted the first partition, which was formatted as fat32 and reformated it to exfat, reinstalled grub and now somehow works

I think this is a bug because the first partition was marked as basic data, not efi so i don't know why it made the system unbootable..
Last edited by badmin on 2022-12-23 16:19, edited 2 times in total.

Post Reply