URL: https://linuxfr.org/forums/linux-debutant/posts/creation-d-une-cle-usb-multiboot-bios-efi Title: Création d'une clé USB multiboot BIOS + EFI Authors: electro575 Date: 2016年11月07日T07:39:10+01:00 License: CC By-SA Tags: Score: 2 Bonjour à tous. Je cherche à créer une clé USB multiboot. Voici les étapes que j'ai déjà réalisées : 1-formater ma clé en GPT 2-créer plusieurs partitions avec cfdisk : *1 : 1M = bios *2 : 50M = EFI en FAT32 *3 : 25G = DATA en FAT32 *4 : 32G = DISTRIBUTIONS en ext4 J'utilise l'utilitaire DISK pour formater la partition 3 et 4 en FAT32 et EXT4 puis la 2ème en FAT32. J'arrive à monter la 3ème partition mais non la 2ème qui est de type EFI ! Après j'utiliserais cette ligne de commande : sudo grub2-install --target=x86_64-efi --efi-directory=/mnt/EFI --boot-directory=/mnt/DISTRI/boot --removable --recheck && sync J'ai suivi le tutoriel présent sur cette page : [Hybrid UEFI GPT + BIOS GPT/MBR boot](https://wiki.archlinux.org/index.php/Multiboot_USB_drive#Hybrid_UEFI_GPT_.2B_BIOS_GPT.2FMBR_boot) J'avais également fait ceci : GDISK : [jo@localhost ~]$ sudo gdisk /dev/sdd [sudo] Mot de passe de jo : GPT fdisk (gdisk) version 1.0.1 Partition table scan: MBR: protective BSD: not present APM: not present GPT: present Found valid GPT with protective MBR; using GPT. Command (? for help): r Recovery/transformation command (? for help): h WARNING! Hybrid MBRs are flaky and dangerous! If you decide not to use one, just hit the Enter key at the below prompt and your MBR partition table will be untouched. Type from one to three GPT partition numbers, separated by spaces, to be added to the hybrid MBR, in sequence: 1 2 3 Place EFI GPT (0xEE) partition first in MBR (good for GRUB)? (Y/N): N Creating entry for GPT partition #1 (MBR partition #1) Enter an MBR hex code (default EF): Set the bootable flag? (Y/N): N Creating entry for GPT partition #2 (MBR partition #2) Enter an MBR hex code (default EF): Set the bootable flag? (Y/N): N Creating entry for GPT partition #3 (MBR partition #3) Enter an MBR hex code (default 07): 83 Set the bootable flag? (Y/N): N Recovery/transformation command (? for help): x Expert command (? for help): h Expert command (? for help): w Final checks complete. About to write GPT data. THIS WILL OVERWRITE EXISTING PARTITIONS!! Do you want to proceed? (Y/N): Y OK; writing new GUID partition table (GPT) to /dev/sdd. The operation has completed successfully. J'ai réussi ce matin à monter la partition EFI formaté en FAT32 avec la commande : mount -t vfat /dev/sdx2 /mnt/boot Puis je cherchais à faire la commande suivante mais je ne connais pas bien grub2-install. grub-install --target=x86_64-efi --efi-directory=/EFI_MOUNTPOINT --boot-directory=/DATA_MOUNTPOINT/boot --removable --recheck Du coup j'avais fait ceci : sudo grub2-install --target=x86_64-efi --efi-directory=/mnt/EFI --boot-directory=/mnt/DISTRI/boot --removable --recheck && sync Ca ne doit pas être correct au niveau de efi-directory et du boot-directory. QUelqu'un connait un peu la "logique"? Merci d'avance et bonne semaine.