Normalement, il faudrait un disque ayant une table de partition GPT pour y installer Ubuntu en mode EFI. Mais de temps en temps, on voit des install assez bizarres comme dans
ce fil de francjacb. J'ai fait ce test pour essayer de comprendre.
J'en retire que pour réussir cette installation non-conventionnelle, il faut 3 conditions :
1) le disque doit avoir une table de partition MSDOS
2) il faut démarrer sur le support d'installation en mode EFI
3) A l'étape "Type d'installation", il faut sélectionner "Autre chose". Et là, il faut créer manuellement les partitions avec impérativement une partition EFI qu'on peut créer avec l'installateur (voir capture d'écran ci-dessous) et bien sûr une partition racine (et éventuellement d'autres partitions)

Voici à quoi ça ressemble après installation. C'est un
Boot-info réalisé depuis une session du Ubuntu installé (ne pas considérer sdb qui n'intervient pas dans la manip. Tout se passe sur sda) :
boot-info-4ppa125 [20200925_1246]
============================== Boot Info Summary ===============================
=> Grub2 (v2.00) is installed in the MBR of /dev/sda and looks at sector 1 of
the same hard drive for core.img. core.img is at this location and looks
for (,msdos1)/boot/grub. It also embeds following components:
modules
---------------------------------------------------------------------------
fshelp ext2 part_msdos biosdisk
---------------------------------------------------------------------------
=> libparted MBR boot code is installed in the MBR of /dev/sdb.
sda1: __________________________________________________________________________
File system: vfat
Boot sector type: FAT32
Boot sector info: No errors found in the Boot Parameter Block.
Operating System:
Boot files: /efi/BOOT/fbx64.efi /efi/BOOT/mmx64.efi
/efi/ubuntu/grubx64.efi /efi/ubuntu/mmx64.efi
/efi/ubuntu/shimx64.efi /efi/ubuntu/grub.cfg
sda2: __________________________________________________________________________
File system: Extended Partition
Boot sector type: -
Boot sector info:
sda5: __________________________________________________________________________
File system: ext4
Boot sector type: -
Boot sector info:
Operating System: Ubuntu 20.04.1 LTS
Boot files: /boot/grub/grub.cfg /etc/fstab /etc/default/grub
sdb1: __________________________________________________________________________
File system: ext4
Boot sector type: -
Boot sector info:
Operating System:
Boot files:
================================ 1 OS detected =================================
OS#1: L'OS actuellement utilisé - Ubuntu 20.04.1 LTS CurrentSession on sda5
============================ Architecture/Host Info ============================
CPU architecture: 64-bit
BOOT_IMAGE of the installed session in use:
/boot/vmlinuz-5.4.0-48-generic root=UUID=8a14964c-7725-4530-b9d0-171887f8cf74 ro quiet splash vt.handoff=7
===================================== UEFI =====================================
BIOS is EFI-compatible, and is setup in EFI-mode for this installed-session.
efibootmgr -v
BootCurrent: 0004
BootOrder: 0004,0000,0001,0002,0003
Boot0000* EFI DVD/CDROM PciRoot(0x0)/Pci(0x1,0x1)/Ata(1,0,0)
Boot0001* EFI Hard Drive PciRoot(0x0)/Pci(0xd,0x0)/Sata(0,0,0)
Boot0002* EFI Hard Drive 1 PciRoot(0x0)/Pci(0xd,0x0)/Sata(1,0,0)
Boot0003* EFI Internal Shell MemoryMapped(11,0x2100000,0x28fffff)/FvFile(7c04a583-9e3e-4f1c-ad65-e05268d0b4d1)
Boot0004* ubuntu HD(1,MBR,0x18d7ff46,0x800,0x124000)/File(\EFI\ubuntu\shimx64.efi)
2895d47544fd587b26c7e29be1295c27 sda1/BOOT/fbx64.efi
dc3c47be2f78a78e5e57d097ae6c5c84 sda1/BOOT/mmx64.efi
114bd85eec32e3162958ea034020821d sda1/ubuntu/grubx64.efi
dc3c47be2f78a78e5e57d097ae6c5c84 sda1/ubuntu/mmx64.efi
78415fb8fb9b909f8029858113f1335f sda1/ubuntu/shimx64.efi
78415fb8fb9b909f8029858113f1335f sda1/BOOT/BOOTX64.efi
============================= Drive/Partition Info =============================
Disks info: ____________________________________________________________________
sda : notGPT, no-BIOSboot, has---ESP, not-usb, not-mmc, has-os, 2048 sectors * 512 bytes
sdb : notGPT, no-BIOSboot, has-noESP, not-usb, not-mmc, no-os, 2048 sectors * 512 bytes
Partitions info (1/3): _________________________________________________________
sda5 : is-os, 64, apt-get, signed grub-pc grub-efi , grub2, grub-install, grubenv-ok, update-grub, not-far
sda1 : no-os, 32, nopakmgr, no-docgrub, nogrub, nogrubinstall, no-grubenv, noupdategrub, not-far
sdb1 : no-os, 32, nopakmgr, no-docgrub, nogrub, nogrubinstall, no-grubenv, noupdategrub, not-far
Partitions info (2/3): _________________________________________________________
sda5 : isnotESP, fstab-has-goodEFI, no-nt, no-winload, no-recov-nor-hid, no-bmgr, notwinboot
sda1 : is---ESP, part-has-no-fstab, no-nt, no-winload, no-recov-nor-hid, no-bmgr, notwinboot
sdb1 : isnotESP, part-has-no-fstab, no-nt, no-winload, no-recov-nor-hid, no-bmgr, notwinboot
Partitions info (3/3): _________________________________________________________
sda5 : not-sepboot, with-boot, fstab-without-boot, not-sep-usr, with--usr, fstab-without-usr, std-grub.d, sda
sda1 : not-sepboot, no-boot, part-has-no-fstab, not-sep-usr, no---usr, part-has-no-fstab, std-grub.d, sda
sdb1 : maybesepboot, no-boot, part-has-no-fstab, not-sep-usr, no---usr, part-has-no-fstab, std-grub.d, sdb
fdisk -l (filtered): ___________________________________________________________
Disk sda: 20.13 GiB, 21613379584 bytes, 42213632 sectors
Disk identifier: 0x18d7ff46
Boot Start End Sectors Size Id Type
sda1 * 2048 1198079 1196032 584M ef EFI (FAT-12/16/32)
sda2 1200126 42213375 41013250 19.6G 5 Extended
sda5 1200128 42213375 41013248 19.6G 83 Linux
Disk sdb: 61.25 GiB, 65763082240 bytes, 128443520 sectors
Disk identifier: 0xd8be4c12
Boot Start End Sectors Size Id Type
sdb1 2048 128442367 128440320 61.3G 83 Linux
parted -lm (filtered): _________________________________________________________
sda:21.6GB:scsi:512:512:msdos:ATA VBOX HARDDISK:;
1:1049kB:613MB:612MB:fat32::boot, esp;
2:614MB:21.6GB:21.0GB:::;
5:614MB:21.6GB:21.0GB:ext4::;
sdb:65.8GB:scsi:512:512:msdos:ATA VBOX HARDDISK:;
1:1049kB:65.8GB:65.8GB:ext4::;
blkid (filtered): ______________________________________________________________
NAME FSTYPE UUID PARTUUID LABEL PARTLABEL
sda
├─sda1 vfat 41D2-7634 18d7ff46-01
├─sda2 18d7ff46-02
└─sda5 ext4 8a14964c-7725-4530-b9d0-171887f8cf74 18d7ff46-05
sdb
└─sdb1 ext4 11efb032-65f4-4ffb-83a9-19b2579e0138 d8be4c12-01 img_clonezilla
df (filtered): _________________________________________________________________
Avail Use% Mounted on
sda5 11.4G 35% /
sdb1 42.4G 24% /mnt/boot-sav/sdb1
Mount options: __________________________________________________________________
sda5 rw,relatime,errors=remount-ro
sdb1 rw,relatime
===================== sda1/efi/ubuntu/grub.cfg (filtered) ======================
search.fs_uuid 8a14964c-7725-4530-b9d0-171887f8cf74 root hd0,msdos5
set prefix=($root)'/boot/grub'
configfile $prefix/grub.cfg
====================== sda5/boot/grub/grub.cfg (filtered) ======================
Ubuntu 8a14964c-7725-4530-b9d0-171887f8cf74
Ubuntu, avec Linux 5.4.0-48-generic 8a14964c-7725-4530-b9d0-171887f8cf74
Ubuntu, avec Linux 5.4.0-42-generic 8a14964c-7725-4530-b9d0-171887f8cf74
### END /etc/grub.d/30_os-prober ###
UEFI Firmware Settings uefi-firmware
### END /etc/grub.d/30_uefi-firmware ###
========================== sda5/etc/fstab (filtered) ===========================
# <file system> <mount point> <type> <options> <dump> <pass>
# / was on /dev/sda5 during installation
UUID=8a14964c-7725-4530-b9d0-171887f8cf74 / ext4 errors=remount-ro 0 1
# /boot/efi was on /dev/sda1 during installation
UUID=41D2-7634 /boot/efi vfat umask=0077 0 1
/swapfile none swap sw 0 0
======================= sda5/etc/default/grub (filtered) =======================
GRUB_DEFAULT=0
GRUB_TIMEOUT_STYLE=hidden
GRUB_TIMEOUT=0
GRUB_DISTRIBUTOR=`lsb_release -i -s 2> /dev/null || echo Debian`
GRUB_CMDLINE_LINUX_DEFAULT="quiet splash"
GRUB_CMDLINE_LINUX=""
==================== sda5: Location of files loaded by Grub ====================
GiB - GB File Fragment(s)
13,965976715 = 14,995853312 boot/grub/grub.cfg 2
5,489391327 = 5,894189056 boot/vmlinuz 1
4,294063568 = 4,610715648 boot/vmlinuz-5.4.0-42-generic 1
5,489391327 = 5,894189056 boot/vmlinuz-5.4.0-48-generic 1
4,294063568 = 4,610715648 boot/vmlinuz.old 1
5,829338074 = 6,259204096 boot/initrd.img 4
5,352008820 = 5,746675712 boot/initrd.img-5.4.0-42-generic 3
5,829338074 = 6,259204096 boot/initrd.img-5.4.0-48-generic 4
5,352008820 = 5,746675712 boot/initrd.img.old 3
===================== sda5: ls -l /etc/grub.d/ (filtered) ======================
-rwxr-xr-x 1 root root 17622 sept. 8 12:24 10_linux
-rwxr-xr-x 1 root root 42359 sept. 8 12:24 10_linux_zfs
-rwxr-xr-x 1 root root 12894 juil. 31 02:34 20_linux_xen
-rwxr-xr-x 1 root root 12059 juil. 31 02:34 30_os-prober
-rwxr-xr-x 1 root root 1424 juil. 31 02:34 30_uefi-firmware
-rwxr-xr-x 1 root root 214 juil. 31 02:34 40_custom
-rwxr-xr-x 1 root root 216 juil. 31 02:34 41_custom
Suggested repair: ______________________________________________________________
The default repair of the Boot-Repair utility would reinstall the grub-efi-amd64-signed of
sda5,
using the following options: sda1/boot/efi,
Additional repair would be performed: unhide-bootmenu-10s use-standard-efi-file
Final advice in case of suggested repair: ______________________________________
Please do not forget to make your UEFI firmware boot on the L'OS actuellement utilisé - Ubuntu 20.04.1 LTS CurrentSession entry (sda1/efi/****/shim****.efi (**** will be updated in the final message) file) !
Il s'agit bien d'une installation en mode EFI comme on peut voir noté en clair dans le Boot-info :
===================================== UEFI =====================================
BIOS is EFI-compatible, and is setup in EFI-mode for this installed-session.
Et on peut voir le type de partitionnement MSDOS du disque sda dans cet extrait :
parted -lm (filtered): _________________________________________________________
sda:21.6GB:scsi:512:512:msdos:ATA VBOX HARDDISK:;
1:1049kB:613MB:612MB:fat32::boot, esp;
2:614MB:21.6GB:21.0GB:::;
5:614MB:21.6GB:21.0GB:ext4::;
La mention concernant Grub dans le MBR est due à une précédente installation de Ubuntu dans ce disque :
============================== Boot Info Summary ===============================
=> Grub2 (v2.00) is installed in the MBR of /dev/sda and looks at sector 1 of
the same hard drive for core.img. core.img is at this location and looks
for (,msdos1)/boot/grub. It also embeds following components:
Evidemment, ce chargeur d'amorçage en mode BIOS ne peut pas fonctionner. Ce qui fonctionne, c'est l'amorcage en mode EFI sur la partition EFI (sda1). L'extrait suivant donne les détails :
===================================== UEFI =====================================
BIOS is EFI-compatible, and is setup in EFI-mode for this installed-session.
efibootmgr -v
BootCurrent: 0004
BootOrder: 0004,0000,0001,0002,0003
Boot0000* EFI DVD/CDROM PciRoot(0x0)/Pci(0x1,0x1)/Ata(1,0,0)
Boot0001* EFI Hard Drive PciRoot(0x0)/Pci(0xd,0x0)/Sata(0,0,0)
Boot0002* EFI Hard Drive 1 PciRoot(0x0)/Pci(0xd,0x0)/Sata(1,0,0)
Boot0003* EFI Internal Shell MemoryMapped(11,0x2100000,0x28fffff)/FvFile(7c04a583-9e3e-4f1c-ad65-e05268d0b4d1)
Boot0004* ubuntu HD(1,MBR,0x18d7ff46,0x800,0x124000)/File(\EFI\ubuntu\shimx64.efi)
La ligne BootCurrent indique que le démarrage courant s'est fait sur l'entrée 0004. Et la ligne correspondante Boot0004 révèle que le fichier utilisé pour ce démarrage est le fichier \EFI\ubuntu\shimx64.efi qui se trouve sur la partition sda1 (
0x18d7ff46 est l'identifiant du disque sda,
0x800 est le début de la partition en hexadécimal qui correspond à 2048 secteurs,
0x124000 est la fin de la partition exprimée en hexadécimal qui correspond à 1196032 secteurs)
EDIT : il est à noter que l'installateur n'affiche aucun message pour signaler que le type de partitionnement MSDOS n'est pas convenable. Mais les gens ne comprennent pas les alertes (dixit le grand comique de l'Etat pour Lubrizol)