Contenu | Rechercher | Menus

Annonce

Si vous avez des soucis pour rester connecté, déconnectez-vous puis reconnectez-vous depuis ce lien en cochant la case
Me connecter automatiquement lors de mes prochaines visites.

À propos de l'équipe du forum.

#1 Le 25/01/2023, à 19:29

franzala

[résolu] Bios UEFI demandé pour une session en mode Legacy

Bonjour,

j’ai fait un boot-info qui me demande de passer mon bios en UEFI alors qu’actuellement il est en mode Legacy.   (à l’adresse https://paste.ubuntu.com/p/Shkv4644cN/)
Mais je n’ai pas trouvé de commande dans le bios pour choisir entre UEFI ou Legacy, ni pour changer de mode.
Par ailleurs je vois qu’il y a 3 partitions sdb 1, 2 et 3 de 512 ou 513M dont 2 sont du type W95 FAT 32 et la 3ème (sdb2) qui est du type EFI ce qui signifie peut-être UEFI.
Je ne sais pas quand ces partitions ont été créées, si elles sont fonctionnelles et si elles sont utilisées lors du démarrage, ou si elles sont inutiles et qu’il est préférable de les supprimer.

Dernière modification par franzala (Le 27/01/2023, à 00:21)

Hors ligne

#2 Le 25/01/2023, à 20:30

iznobe

Re : [résolu] Bios UEFI demandé pour une session en mode Legacy

ou si elles sont inutiles et qu’il est préférable de les supprimer.

Bonjour , supprimer une ou des partitions est un TRES mauvaise idée sauf quand on est absolument sûr et certain de ce que l' on fait . le moindre doute et il vaut mieux s ' abstenir .

le lien de ton bootinfo est invalide .

U EFI et EFI c ' est la meme chose .

Et la question qui tue ( 2 en fait big_smile ) , quel est le soucis ? qu ' est ce qui t ' a amené a faire un boot-info ?

Dernière modification par iznobe (Le 25/01/2023, à 20:32)


retour utilisable de commande
MSI Z490A-pro , i7 10700 , 32 GB RAM .

Hors ligne

#3 Le 25/01/2023, à 21:02

malbo

Re : [résolu] Bios UEFI demandé pour une session en mode Legacy

Bonjour,
Ne modifie rien. La "Suggested repair" du Boot-info n'a aucun intérêt à mon avis.
Je colle ci-dessous le contenu de ton Boot-info :

boot-info-4ppa203                                              [20230125_1906]

============================== Boot Info Summary ===============================

 => No boot loader is installed in the MBR of /dev/sda.
 => Grub2 (v2.00) is installed in the MBR of /dev/sdb and looks at sector 1 of 
    the same hard drive for core.img. core.img is at this location and looks 
    for (,msdos6)/boot/grub. It also embeds following components:
    
    modules
    ---------------------------------------------------------------------------
    fshelp ext2 part_msdos biosdisk
    ---------------------------------------------------------------------------

sda1: __________________________________________________________________________

    File system:       ext4
    Boot sector type:  -
    Boot sector info: 
    Operating System:  
    Boot files:        

sdb1: __________________________________________________________________________

    File system:       vfat
    Boot sector type:  FAT32
    Boot sector info:  No errors found in the Boot Parameter Block.
    Operating System:  
    Boot files:        

sdb2: __________________________________________________________________________

    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

sdb3: __________________________________________________________________________

    File system:       vfat
    Boot sector type:  FAT32
    Boot sector info:  No errors found in the Boot Parameter Block.
    Operating System:  
    Boot files:        

sdb4: __________________________________________________________________________

    File system:       Extended Partition
    Boot sector type:  -
    Boot sector info: 

sdb5: __________________________________________________________________________

    File system:       ext4
    Boot sector type:  -
    Boot sector info: 
    Operating System:  Ubuntu 22.04.1 LTS
    Boot files:        /boot/grub/grub.cfg /etc/fstab /etc/default/grub 
                       /boot/grub/i386-pc/core.img

sdb6: __________________________________________________________________________

    File system:       ext4
    Boot sector type:  -
    Boot sector info: 
    Operating System:  Debian GNU/Linux 11 (bullseye)
    Boot files:        /boot/grub/grub.cfg /etc/fstab /etc/default/grub 
                       /boot/grub/i386-pc/core.img

sdb7: __________________________________________________________________________

    File system:       swap
    Boot sector type:  -
    Boot sector info: 


================================ 2 OS detected =================================

OS#1:   Debian GNU/Linux 11 (bullseye) on sdb6
OS#2:   Ubuntu 22.04.1 LTS on sdb5

================================ Host/Hardware =================================

CPU architecture: 64-bit
Video: GK208B [GeForce GT 710] from NVIDIA Corporation
BOOT_IMAGE of the installed session in use:
/boot/vmlinuz-5.15.0-58-generic root=UUID=bebcf2cb-ed09-4b2a-825e-f2c891d7a1ce ro quiet splash
df -Th / : /dev/sdb5        ext4   113G     38G   70G  36% /

===================================== UEFI =====================================

BIOS/UEFI firmware: 0409(5.13) from American Megatrends Inc.
The firmware seems EFI-compatible, but this installed-session is in Legacy/BIOS/CSM mode (not in EFI mode).



============================= Drive/Partition Info =============================

Disks info: ____________________________________________________________________

sdb	: notGPT,	no-BIOSboot,	has---ESP, 	not-usb,	not-mmc, has-os,	no-wind,	2048 sectors * 512 bytes
sda	: is-GPT,	no-BIOSboot,	has-noESP, 	not-usb,	not-mmc, no-os,	no-wind,	2048 sectors * 512 bytes

Partitions info (1/3): _________________________________________________________

sdb5	: is-os,	64, apt-get,	signed grub-pc grub-efi ,	grub2,	grub-install,	grubenv-ok,	update-grub,	farbios
sdb2	: no-os,	64, nopakmgr,	no-docgrub,	nogrub,	nogrubinstall,	no-grubenv,	noupdategrub,	not-far
sdb3	: no-os,	64, nopakmgr,	no-docgrub,	nogrub,	nogrubinstall,	no-grubenv,	noupdategrub,	not-far
sdb1	: no-os,	64, nopakmgr,	no-docgrub,	nogrub,	nogrubinstall,	no-grubenv,	noupdategrub,	not-far
sdb6	: is-os,	64, apt-get,	grub-pc ,	grub2,	grub-install,	grubenv-ok,	update-grub,	farbios
sda1	: no-os,	64, nopakmgr,	no-docgrub,	nogrub,	nogrubinstall,	no-grubenv,	noupdategrub,	farbios

Partitions info (2/3): _________________________________________________________

sdb5	: isnotESP,	fstab-has-goodEFI,	no-nt,	no-winload,	no-recov-nor-hid,	no-bmgr,	notwinboot
sdb2	: is---ESP,	part-has-no-fstab,	no-nt,	no-winload,	no-recov-nor-hid,	no-bmgr,	notwinboot
sdb3	: isnotESP,	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
sdb6	: isnotESP,	fstab-without-efi,	no-nt,	no-winload,	no-recov-nor-hid,	no-bmgr,	notwinboot
sda1	: isnotESP,	part-has-no-fstab,	no-nt,	no-winload,	no-recov-nor-hid,	no-bmgr,	notwinboot

Partitions info (3/3): _________________________________________________________

sdb5	: not--sepboot,	with-boot,	fstab-without-boot,	not-sep-usr,	with--usr,	fstab-without-usr,	std-grub.d,	sdb
sdb2	: not--sepboot,	no---boot,	part-has-no-fstab,	not-sep-usr,	no---usr,	part-has-no-fstab,	no--grub.d,	sdb
sdb3	: not--sepboot,	no---boot,	part-has-no-fstab,	not-sep-usr,	no---usr,	part-has-no-fstab,	no--grub.d,	sdb
sdb1	: not--sepboot,	no---boot,	part-has-no-fstab,	not-sep-usr,	no---usr,	part-has-no-fstab,	no--grub.d,	sdb
sdb6	: not--sepboot,	with-boot,	fstab-without-boot,	not-sep-usr,	with--usr,	fstab-without-usr,	std-grub.d,	sdb
sda1	: maybesepboot,	no---boot,	part-has-no-fstab,	not-sep-usr,	no---usr,	part-has-no-fstab,	no--grub.d,	sda

fdisk -l (filtered): ___________________________________________________________

Disk sda: 931.51 GiB, 1000204886016 bytes, 1953525168 sectors
Disk identifier: EBD233BC-6667-4EAD-BD90-5F73CB22354C
      Start        End    Sectors   Size Type
sda1   2048 1953523711 1953521664 931.5G Linux filesystem
Disk sdb: 232.89 GiB, 250059350016 bytes, 488397168 sectors
Disk identifier: 0x68a75e43
      Boot     Start       End   Sectors   Size Id Type
sdb1            2048   1050623   1048576   512M  b W95 FAT32
sdb2  *      1050624   2101247   1050624   513M ef EFI (FAT-12/16/32)
sdb3         2101248   3151871   1050624   513M  b W95 FAT32
sdb4         3153918 488396799 485242882 231.4G  5 Extended
sdb5         3153920 245775013 242621094 115.7G 83 Linux
sdb6       245776384 486395903 240619520 114.7G 83 Linux
sdb7       486397952 488396799   1998848   976M 82 Linux swap / Solaris

parted -lm (filtered): _________________________________________________________

sda:1000GB:scsi:512:512:gpt:ATA SAMSUNG HD103SJ:;
1:1049kB:1000GB:1000GB:ext4:sam:;
sdb:250GB:scsi:512:4096:msdos:ATA CT250MX500SSD1:;
1:1049kB:538MB:537MB:fat32::;
2:538MB:1076MB:538MB:fat32::boot, esp;
3:1076MB:1614MB:538MB:fat32::;
4:1615MB:250GB:248GB:::;
5:1615MB:126GB:124GB:ext4::;
6:126GB:249GB:123GB:ext4::;
7:249GB:250GB:1023MB:linux-swap(v1)::;

blkid (filtered): ______________________________________________________________

NAME   FSTYPE   UUID                                 PARTUUID                             LABEL PARTLABEL
sda                                                                                             
└─sda1 ext4     3ad4b50c-55ef-49dc-8d71-d69421569b80 6adf515f-0a76-4ac9-869f-1e3f920d1388 s1    sam
sdb                                                                                             
├─sdb1 vfat     3F11-F496                            68a75e43-01                                
├─sdb2 vfat     20DD-9EBD                            68a75e43-02                                
├─sdb3 vfat     E326-34CE                            68a75e43-03                                
├─sdb4                                               68a75e43-04                                
├─sdb5 ext4     bebcf2cb-ed09-4b2a-825e-f2c891d7a1ce 68a75e43-05                                
├─sdb6 ext4     8a98d897-987c-4caf-958e-6a20b4b910d5 68a75e43-06                                
└─sdb7 swap     89089787-aa66-4f98-8fe6-84f21774e6d4 68a75e43-07                                

Mount points (filtered): _______________________________________________________

                        Avail Use% Mounted on
/dev/sda1              610.7G  28% /mnt/3ad4b50c-55ef-49dc-8d71-d69421569b80
/dev/sdb1                511M   0% /mnt/boot-sav/sdb1
/dev/sdb3                512M   0% /mnt/boot-sav/sdb3
/dev/sdb5               69.2G  34% /
/dev/sdb6                101G   5% /mnt/boot-sav/sdb6

Mount options (filtered): ______________________________________________________


===================== sdb2/efi/ubuntu/grub.cfg (filtered) ======================

search.fs_uuid bebcf2cb-ed09-4b2a-825e-f2c891d7a1ce root hd0,msdos5 
set prefix=($root)'/boot/grub'
configfile $prefix/grub.cfg

====================== sdb5/boot/grub/grub.cfg (filtered) ======================

Ubuntu   bebcf2cb-ed09-4b2a-825e-f2c891d7a1ce
Ubuntu, with Linux 5.15.0-58-generic   bebcf2cb-ed09-4b2a-825e-f2c891d7a1ce
Ubuntu, with Linux 5.15.0-43-generic   bebcf2cb-ed09-4b2a-825e-f2c891d7a1ce
### END /etc/grub.d/30_os-prober ###
### END /etc/grub.d/30_uefi-firmware ###

========================== sdb5/etc/fstab (filtered) ===========================

# <file system> <mount point>   <type>  <options>       <dump>  <pass>
# / was on /dev/sda5 during installation
UUID=bebcf2cb-ed09-4b2a-825e-f2c891d7a1ce /               ext4    errors=remount-ro 0       1
# /boot/efi was on /dev/sda2 during installation
UUID=20DD-9EBD  /boot/efi       vfat    umask=0077      0       1
/swapfile                                 none            swap    sw              0       0
/dev/disk/by-uuid/3ad4b50c-55ef-49dc-8d71-d69421569b80 /mnt/3ad4b50c-55ef-49dc-8d71-d69421569b80 auto defaults 0 0

======================= sdb5/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=""

==================== sdb5: Location of files loaded by Grub ====================

           GiB - GB             File                                 Fragment(s)
  22,039325714 = 23,664545792   boot/grub/grub.cfg                             1
  17,227382660 = 18,497761280   boot/grub/i386-pc/core.img                     1
  18,662826538 = 20,039057408   boot/vmlinuz                                   1
  29,464141846 = 31,636881408   boot/vmlinuz-5.15.0-43-generic                 2
  18,662826538 = 20,039057408   boot/vmlinuz-5.15.0-58-generic                 1
  29,464141846 = 31,636881408   boot/vmlinuz.old                               2
  24,255657196 = 26,044313600   boot/initrd.img                                1
  23,468711853 = 25,199337472   boot/initrd.img-5.15.0-43-generic              1
  24,255657196 = 26,044313600   boot/initrd.img-5.15.0-58-generic              1
  23,468711853 = 25,199337472   boot/initrd.img.old                            1

===================== sdb5: ls -l /etc/grub.d/ (filtered) ======================

-rwxr-xr-x 1 root root 18683 Apr 15  2022 10_linux
-rwxr-xr-x 1 root root 43031 Apr 15  2022 10_linux_zfs
-rwxr-xr-x 1 root root 14180 Apr 15  2022 20_linux_xen
-rwxr-xr-x 1 root root 13369 Apr 15  2022 30_os-prober
-rwxr-xr-x 1 root root  1372 Apr 15  2022 30_uefi-firmware
-rwxr-xr-x 1 root root   700 Feb 19  2022 35_fwupd
-rwxr-xr-x 1 root root   214 Apr 15  2022 40_custom
-rwxr-xr-x 1 root root   215 Apr 15  2022 41_custom

====================== sdb6/boot/grub/grub.cfg (filtered) ======================

Debian GNU/Linux   8a98d897-987c-4caf-958e-6a20b4b910d5
Debian GNU/Linux, with Linux 5.10.0-20-amd64   8a98d897-987c-4caf-958e-6a20b4b910d5
Ubuntu 22.04.1 LTS (22.04) (on sdb5)   bebcf2cb-ed09-4b2a-825e-f2c891d7a1ce
Ubuntu (on sdb5)   bebcf2cb-ed09-4b2a-825e-f2c891d7a1ce
Ubuntu, with Linux 5.15.0-58-generic (on sdb5)   bebcf2cb-ed09-4b2a-825e-f2c891d7a1ce
Ubuntu, with Linux 5.15.0-43-generic (on sdb5)   bebcf2cb-ed09-4b2a-825e-f2c891d7a1ce
### END /etc/grub.d/30_os-prober ###
### END /etc/grub.d/30_uefi-firmware ###

========================== sdb6/etc/fstab (filtered) ===========================

# <file system> <mount point>   <type>  <options>       <dump>  <pass>
# / was on /dev/sdb6 during installation
UUID=8a98d897-987c-4caf-958e-6a20b4b910d5 /               ext4    errors=remount-ro 0       1
# swap was on /dev/sdb7 during installation
UUID=89089787-aa66-4f98-8fe6-84f21774e6d4 none            swap    sw              0       0
/dev/sr0        /media/cdrom0   udf,iso9660 user,noauto     0       0

======================= sdb6/etc/default/grub (filtered) =======================

GRUB_DEFAULT=0
GRUB_TIMEOUT=5
GRUB_DISTRIBUTOR=`lsb_release -i -s 2> /dev/null || echo Debian`
GRUB_CMDLINE_LINUX_DEFAULT="quiet"
GRUB_CMDLINE_LINUX=""

==================== sdb6: Location of files loaded by Grub ====================

           GiB - GB             File                                 Fragment(s)
 189,322551727 = 203,283542016  boot/grub/grub.cfg                             1
 221,793704987 = 238,149177344  boot/grub/i386-pc/core.img                     1
 117,514339447 = 126,180061184  boot/vmlinuz-5.10.0-20-amd64                   1
 117,514339447 = 126,180061184  vmlinuz                                        1
 117,514339447 = 126,180061184  vmlinuz.old                                    1
 223,446262360 = 239,923597312  boot/initrd.img-5.10.0-20-amd64                1
 223,446262360 = 239,923597312  initrd.img                                     1
 223,446262360 = 239,923597312  initrd.img.old                                 1

===================== sdb6: ls -l /etc/grub.d/ (filtered) ======================

-rwxr-xr-x 1 root root 14123 Nov  8 18:29 10_linux
-rwxr-xr-x 1 root root 14180 Nov  8 18:29 20_linux_xen
-rwxr-xr-x 1 root root 12910 Nov  8 18:29 30_os-prober
-rwxr-xr-x 1 root root  1372 Nov  8 18:29 30_uefi-firmware
-rwxr-xr-x 1 root root   214 Nov  8 18:29 40_custom
-rwxr-xr-x 1 root root   215 Nov  8 18:29 41_custom



Suggested repair: ______________________________________________________________

The default repair of the Boot-Repair utility would reinstall the grub-efi of
sdb5,
using the following options:  sdb2/boot/efi
Additional repair would be performed: unhide-bootmenu-10s use-standard-efi-file

Blockers in case of suggested repair: __________________________________________

 The current session is in BIOS-compatibility mode. Please disable BIOS-compatibility/CSM/Legacy mode in your UEFI firmware, and use this software from a live-CD (or live-USB) that is compatible with UEFI booting mode. For example, use a live-USB of Boot-Repair-Disk-64bit (www.sourceforge.net/p/boot-repair-cd), after making sure your BIOS is set up to boot USB in EFI mode. This will enable this feature.

Final advice in case of suggested repair: ______________________________________

Please do not forget to make your UEFI firmware boot on the Ubuntu 22.04.1 LTS entry (sdb2/efi/****/grub****.efi (**** will be updated in the final message) file) !
The boot of your PC is in BIOS-compatibility/CSM/Legacy mode. You may want to retry after changing it to UEFI mode.

Hors ligne

#4 Le 25/01/2023, à 22:29

franzala

Re : [résolu] Bios UEFI demandé pour une session en mode Legacy

Bonsoir,

@malbo: je m'en doutais un peu, mais c'est  la première fois que je voyais une préconisation aussi nette. Je ne vais donc pas la suivre.

@iznobe: j'avais d'abord mis à niveau la 20.04 vers 22.04 et j'ai rencontré plusieurs difficultés et des crashs d'ubuntu un peu trop fréquents.
J'ai alors décidé de refaire une installation complète à partir d'une image ISO et auparavant j'ai regardé mon disque avec Disques; c'est là que j'ai constaté la présence de ces partitions dont je n'ai pas compris ni l'utilité, ni la raison de leur présence.
Après ré-installation, j'ai encore eu assez rapidement un crash d'ubuntu avant même d'avoir installé tous les logiciels que j'avais auparavant.
J’ai constaté que les 3 partitions étaient toujours là et je ne les ai évidemment pas supprimées, car je suis bien conscient du risque que cela représente.
Mais le fait même que cela soir risqué de supprimer une partition, implique qu'elle puisse avoir un impact (positif ou négatif) sur le fonctionnement du PC.
Avant de demander conseil dans ce forum, j'ai fait un boot-info pour pouvoir fournir toutes les infos sur mon installation et c'est dans le rapport du boot-info qu'est apparu cette préconisation de passer en UEFI, alors qu'une des 3 partitions peut-être parasites, était qualifiée EFI.

Hors ligne

#5 Le 26/01/2023, à 07:18

malbo

Re : [résolu] Bios UEFI demandé pour une session en mode Legacy

Bonjour,
Je donne quelques explications complémentaires :
La partition sdb2 a été créée automatiquement lors de l'installation. Cette partition ne sert à rien actuellement pour le démarrage de ton Ubuntu (et pour son fonctionnement) du fait que le Bios est configuré pour le mode de démarrage LEGACY (mode Bios classique). Cependant, tu ne peux pas supprimer purement et simplement cette partition parce qu'il y a une instruction de montage de cette partition dans le fichier fstab :

========================== sdb5/etc/fstab (filtered) ===========================

# <file system> <mount point>   <type>  <options>       <dump>  <pass>
# / was on /dev/sda5 during installation
UUID=bebcf2cb-ed09-4b2a-825e-f2c891d7a1ce /               ext4    errors=remount-ro 0       1
# /boot/efi was on /dev/sda2 during installation
UUID=20DD-9EBD  /boot/efi       vfat    umask=0077      0       1
/swapfile                                 none            swap    sw              0       0
/dev/disk/by-uuid/3ad4b50c-55ef-49dc-8d71-d69421569b80 /mnt/3ad4b50c-55ef-49dc-8d71-d69421569b80 auto defaults 0 0

Elle apparaît sous la désignation sda2 dans le commentaire mais "20DD-9EBD" est bien l'UUID de la partition sdb2 comme on peut voir dans la partie "blkid (filtered)" du Boot-info.
Si tu voulais supprimer sdb2, il faudrait supprimer d'abord la ligne :

UUID=20DD-9EBD  /boot/efi       vfat    umask=0077      0       1

Mais c'est sans intérêt à mon avis. C'est pourquoi je t'ai recommandé de ne rien modifier.
Quant aux partitions sdb1 et sdb3, elles sont vides et pourraient être supprimées mais comme elles ont une taille minuscule, ça ne permettrait pas de gagner de la place. Autant les laisser en place.

Dernière modification par malbo (Le 26/01/2023, à 07:42)

Hors ligne