Bonjour,
Je colle ci-dessous le contenu du Boot-info dont tu as donné le lien (
https://paste.ubuntu.com/p/5CqFwXC3RP/ ) dans le post #1 :
boot-info-4ppa125 [20201101_1231]
============================== Boot Info Summary ===============================
=> No boot loader is installed in the MBR of /dev/sda.
sda1: __________________________________________________________________________
File system:
Boot sector type: -
Boot sector info:
sda2: __________________________________________________________________________
File system: ntfs
Boot sector type: Windows 8/2012: NTFS
Boot sector info: No errors found in the Boot Parameter Block.
Operating System:
Boot files:
sda3: __________________________________________________________________________
File system: vfat
Boot sector type: Windows 8/2012: FAT32
Boot sector info: No errors found in the Boot Parameter Block.
Operating System:
Boot files: /efi/Acronis/bootwiz.efi /efi/Boot/bkpbootx64.efi
/efi/Boot/bootx64.efi /efi/Boot/fbx64.efi
/efi/Boot/grubx64.efi /efi/Boot/mmx64.efi
/efi/ubuntu/grubx64.efi /efi/ubuntu/mmx64.efi
/efi/ubuntu/shimx64.efi /efi/ubuntu/grub.cfg
/efi/Microsoft/Boot/bootmgfw.efi
/efi/Microsoft/Boot/bootmgr.efi
/efi/Microsoft/Boot/memtest.efi
sda4: __________________________________________________________________________
File system: vfat
Boot sector type: Windows 8/2012: FAT32
Boot sector info: No errors found in the Boot Parameter Block.
Operating System:
Boot files: /efi/Boot/bootx64.efi /efi/Microsoft/Boot/bootmgr.efi
/efi/Microsoft/Boot/LrsBootmgr.efi
/efi/Microsoft/Boot/memtest.efi /bootmgr /boot/bcd
sda5: __________________________________________________________________________
File system: ntfs
Boot sector type: Windows 8/2012: NTFS
Boot sector info: No errors found in the Boot Parameter Block.
Operating System: Windows 10
Boot files: /bootmgr /Boot/BCD /Windows/System32/winload.exe
sda6: __________________________________________________________________________
File system: ntfs
Boot sector type: Windows 8/2012: NTFS
Boot sector info: No errors found in the Boot Parameter Block.
Operating System:
Boot files:
sda7: __________________________________________________________________________
File system: ntfs
Boot sector type: Windows 8/2012: NTFS
Boot sector info: No errors found in the Boot Parameter Block.
Operating System:
Boot files:
sda8: __________________________________________________________________________
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
sda9: __________________________________________________________________________
File system: swap
Boot sector type: -
Boot sector info:
sda10: _________________________________________________________________________
File system: ext4
Boot sector type: -
Boot sector info:
Operating System:
Boot files:
================================ 2 OS detected =================================
OS#1: L'OS actuellement utilisé - Ubuntu 20.04.1 LTS CurrentSession on sda8
OS#2: Windows 10 on sda5
============================ Architecture/Host Info ============================
CPU architecture: 64-bit
BOOT_IMAGE of the installed session in use:
/boot/vmlinuz-5.4.0-52-generic root=UUID=f55557db-2ffc-482d-b802-e989b1cf851a ro quiet splash vt.handoff=7
===================================== UEFI =====================================
BIOS is EFI-compatible, and is setup in EFI-mode for this installed-session.
SecureBoot enabled.
efibootmgr -v
BootCurrent: 000D
Timeout: 10 seconds
BootOrder: 000D,0000,0001,000C,0006,000A,0007,0008,000B,0002
Boot0000* Windows Boot Manager HD(3,GPT,7789d206-7ee5-49fc-879e-597bd4514d31,0x234800,0x82000)/File(\EFI\Microsoft\Boot\bootmgfw.efi)WINDOWS.........x...B.C.D.O.B.J.E.C.T.=.{.9.d.e.a.8.6.2.c.-.5.c.d.d.-.4.e.7.0.-.a.c.c.1.-.f.3.2.b.3.4.4.d.4.7.9.5.}....................
Boot0001* Windows Boot Manager (cloned) HD(3,GPT,7789d206-7ee5-49fc-879e-597bd4514d31,0x234800,0x82000)/File(\EFI\Microsoft\Boot\bootmgfw.efi)WINDOWS.........x...B.C.D.O.B.J.E.C.T.=.{.9.d.e.a.8.6.2.c.-.5.c.d.d.-.4.e.7.0.-.a.c.c.1.-.f.3.2.b.3.4.4.d.4.7.9.5.}....................
Boot0002* PCI LAN: EFI Network (IPv6) PciRoot(0x0)/Pci(0x1c,0x3)/Pci(0x0,0x0)/MAC(54ee755da875,0)/IPv6([::]:<->[::]:,0,0)x.J.+*.N.....=8.
Boot0003 Setup FvFile(721c8b66-426c-4e86-8e99-3457c46ab0b9)
Boot0004 Boot Menu FvFile(86488440-41bb-42c7-93ac-450fbf7766bf)
Boot0005 Diagnostic Splash FvFile(a7d8d9a6-6ab0-4aeb-ad9d-163e59a7a380)
Boot0006* USB FDD: VenMsg(bc7838d2-0f82-4d60-8316-c068ee79d25b,6ff015a28830b543a8b8641009461e49)
Boot0007* USB HDD: VenMsg(bc7838d2-0f82-4d60-8316-c068ee79d25b,33e821aaaf33bc4789bd419f88c50803)
Boot0008* USB CD: VenMsg(bc7838d2-0f82-4d60-8316-c068ee79d25b,86701296aa5a7848b66cd49dd3ba6a55)
Boot0009* PCI LAN: EFI Network (IPv6) PciRoot(0x0)/Pci(0x1c,0x3)/Pci(0x0,0x0)/MAC(000000000000,0)/IPv6([::]:<->[::]:,0,0)x.J.+*.N.....=8.
Boot000A* ATA HDD: CT1000MX500SSD1 PciRoot(0x0)/Pci(0x1f,0x2)/Sata(0,0,0)..bYVD.A...O.*..
Boot000B* PCI LAN: EFI Network (IPv4) PciRoot(0x0)/Pci(0x1c,0x3)/Pci(0x0,0x0)/MAC(54ee755da875,0)/IPv4(0.0.0.00.0.0.0,0,0)x.J.+*.N.....=8.
Boot000C* Lenovo Recovery System HD(4,GPT,01724ae9-6aef-4499-9d24-15749ea66fd0,0x2b6800,0x1f2800)/File(\EFI\MICROSOFT\BOOT\LRSBOOTMGR.EFI)
Boot000D* ubuntu HD(3,GPT,7789d206-7ee5-49fc-879e-597bd4514d31,0x234800,0x82000)/File(\EFI\ubuntu\shimx64.efi)
Boot001A* Lenovo Recovery System PciRoot(0x0)/Pci(0x1f,0x2)/Sata(0,0,0)/HD(4,GPT,01724ae9-6aef-4499-9d24-15749ea66fd0,0x2b6800,0x1f2800)/File(\EFI\Microsoft\Boot\lrsBootMgr.efi)
995aaba38227af10bb80f5367a87184b sda3/Acronis/bootwiz.efi
78415fb8fb9b909f8029858113f1335f sda3/Boot/bkpbootx64.efi
78415fb8fb9b909f8029858113f1335f sda3/Boot/bootx64.efi
2895d47544fd587b26c7e29be1295c27 sda3/Boot/fbx64.efi
114bd85eec32e3162958ea034020821d sda3/Boot/grubx64.efi
dc3c47be2f78a78e5e57d097ae6c5c84 sda3/Boot/mmx64.efi
114bd85eec32e3162958ea034020821d sda3/ubuntu/grubx64.efi
dc3c47be2f78a78e5e57d097ae6c5c84 sda3/ubuntu/mmx64.efi
78415fb8fb9b909f8029858113f1335f sda3/ubuntu/shimx64.efi
cb8e4284804d56f058c0e1cf111eeedd sda3/Microsoft/Boot/bootmgfw.efi
3df357ffd0654bb80f2a575485e6e0cc sda3/Microsoft/Boot/bootmgr.efi
ff6d345785671fbcea9561a3cbc47702 sda4/Boot/bootx64.efi
bb971a4a02185961543c7903473a6680 sda4/Microsoft/Boot/bootmgr.efi
bad97e7203aec2bd026403a7f70688b9 sda4/Microsoft/Boot/LrsBootmgr.efi
============================= Drive/Partition Info =============================
Disks info: ____________________________________________________________________
sda : is-GPT, no-BIOSboot, has---ESP, not-usb, not-mmc, has-os, 34 sectors * 512 bytes
Partitions info (1/3): _________________________________________________________
sda8 : is-os, 64, apt-get, signed grub-pc grub-efi , grub2, grub-install, grubenv-ok, update-grub, farbios
sda2 : no-os, 32, nopakmgr, no-docgrub, nogrub, nogrubinstall, no-grubenv, noupdategrub, not-far
sda3 : no-os, 32, nopakmgr, no-docgrub, nogrub, nogrubinstall, no-grubenv, noupdategrub, not-far
sda4 : no-os, 32, nopakmgr, no-docgrub, nogrub, nogrubinstall, no-grubenv, noupdategrub, not-far
sda5 : is-os, 32, nopakmgr, no-docgrub, nogrub, nogrubinstall, no-grubenv, noupdategrub, farbios
sda6 : no-os, 32, nopakmgr, no-docgrub, nogrub, nogrubinstall, no-grubenv, noupdategrub, farbios
sda7 : no-os, 32, nopakmgr, no-docgrub, nogrub, nogrubinstall, no-grubenv, noupdategrub, farbios
sda10 : no-os, 32, nopakmgr, no-docgrub, nogrub, nogrubinstall, no-grubenv, noupdategrub, farbios
Partitions info (2/3): _________________________________________________________
sda8 : isnotESP, fstab-has-goodEFI, no-nt, no-winload, no-recov-nor-hid, no-bmgr, notwinboot
sda2 : isnotESP, part-has-no-fstab, no-nt, no-winload, recovery-or-hidden, no-bmgr, notwinboot
sda3 : is---ESP, part-has-no-fstab, no-nt, no-winload, no-recov-nor-hid, no-bmgr, notwinboot
sda4 : isnotESP, part-has-no-fstab, no-nt, no-winload, no-recov-nor-hid, bootmgr, is-winboot
sda5 : isnotESP, part-has-no-fstab, no-nt, haswinload, no-recov-nor-hid, bootmgr, is-winboot
sda6 : isnotESP, part-has-no-fstab, no-nt, no-winload, no-recov-nor-hid, no-bmgr, notwinboot
sda7 : isnotESP, part-has-no-fstab, no-nt, no-winload, recovery-or-hidden, no-bmgr, notwinboot
sda10 : isnotESP, part-has-no-fstab, no-nt, no-winload, no-recov-nor-hid, no-bmgr, notwinboot
Partitions info (3/3): _________________________________________________________
sda8 : not-sepboot, with-boot, fstab-without-boot, not-sep-usr, with--usr, fstab-without-usr, std-grub.d, sda
sda2 : not-sepboot, no-boot, part-has-no-fstab, not-sep-usr, no---usr, part-has-no-fstab, std-grub.d, sda
sda3 : not-sepboot, no-boot, part-has-no-fstab, not-sep-usr, no---usr, part-has-no-fstab, std-grub.d, sda
sda4 : not-sepboot, no-boot, part-has-no-fstab, not-sep-usr, no---usr, part-has-no-fstab, std-grub.d, sda
sda5 : not-sepboot, no-boot, part-has-no-fstab, not-sep-usr, no---usr, part-has-no-fstab, std-grub.d, sda
sda6 : not-sepboot, no-boot, part-has-no-fstab, not-sep-usr, no---usr, part-has-no-fstab, std-grub.d, sda
sda7 : not-sepboot, no-boot, part-has-no-fstab, not-sep-usr, no---usr, part-has-no-fstab, std-grub.d, sda
sda10 : maybesepboot, no-boot, part-has-no-fstab, not-sep-usr, no---usr, part-has-no-fstab, std-grub.d, sda
fdisk -l (filtered): ___________________________________________________________
Disk sda: 931.53 GiB, 1000204886016 bytes, 1953525168 sectors
Disk identifier: 725289CF-8ED5-4A58-8A97-BEA349976F38
Start End Sectors Size Type
sda1 34 262177 262144 128M Microsoft reserved
sda2 264192 2312191 2048000 1000M Windows recovery environment
sda3 2312192 2844671 532480 260M EFI System
sda4 2844672 4886527 2041856 997M Lenovo boot partition
sda5 4886528 1772791807 1767905280 843G Microsoft basic data
sda6 1875191808 1927612415 52420608 25G Microsoft basic data
sda7 1927612416 1953523711 25911296 12.4G Windows recovery environment
sda8 1772791808 1811853311 39061504 18.6G Linux filesystem
sda9 1811853312 1827477503 15624192 7.5G Linux swap
sda10 1827477504 1875191807 47714304 22.8G Linux filesystem
Partition table entries are not in disk order.
parted -lm (filtered): _________________________________________________________
sda:1000GB:scsi:512:4096:gpt:ATA CT1000MX500SSD1:;
1:17.4kB:134MB:134MB:::msftres;
2:135MB:1184MB:1049MB:ntfs::diag;
3:1184MB:1456MB:273MB:fat32::boot, esp;
4:1456MB:2502MB:1045MB:fat32::;
5:2502MB:908GB:905GB:ntfs::msftdata;
8:908GB:928GB:20.0GB:ext4::;
9:928GB:936GB:8000MB:linux-swap(v1)::swap;
10:936GB:960GB:24.4GB:ext4::;
6:960GB:987GB:26.8GB:ntfs::msftdata;
7:987GB:1000GB:13.3GB:ntfs::diag;
blkid (filtered): ______________________________________________________________
NAME FSTYPE UUID PARTUUID LABEL PARTLABEL
sda
├─sda1 64db4faf-4dfc-4e75-9fdb-da985fc343d3
├─sda2 ntfs C257DB1B35E79DAB 41815812-2867-4a71-b09a-9953ee55b1fb WINRE_DRV
├─sda3 vfat BED8-972C 7789d206-7ee5-49fc-879e-597bd4514d31 SYSTEM_DRV
├─sda4 vfat 8FB3-34DA 01724ae9-6aef-4499-9d24-15749ea66fd0 LRS_ESP
├─sda5 ntfs 07E3A141E853D223 e3f40758-d032-45a2-a84a-6af5d975efd1 Windows8_OS
├─sda6 ntfs A5C886B82582B648 e7c85843-d837-4422-a3d7-6ecf90c2f33a LENOVO
├─sda7 ntfs 0DCC92436F2B35EF 2f1de315-1950-421f-b0a7-6deb491a0df0 PBR_DRV
├─sda8 ext4 f55557db-2ffc-482d-b802-e989b1cf851a 0bebc6f2-4b1f-4638-b1f2-61977c766693
├─sda9 swap eebb2888-aba1-4fa1-80ea-d013708e48f5 6cda0b03-9110-49d7-829f-b65fc58d5141
└─sda10 ext4 197729ab-8c62-47e3-89e2-f4da433180fc 87997ffc-e1a1-4161-a2a3-c3aedd7a3b0d
df (filtered): _________________________________________________________________
Avail Use% Mounted on
sda10 19.3G 8% /home
sda2 613.6M 39% /mnt/boot-sav/sda2
sda4 471.9M 53% /mnt/boot-sav/sda4
sda5 449G 47% /mnt/boot-sav/sda5
sda6 22.9G 9% /mnt/boot-sav/sda6
sda7 3.3G 74% /mnt/boot-sav/sda7
sda8 8.9G 46% /
Mount options: __________________________________________________________________
sda10 rw,relatime
sda2 rw,relatime,user_id=0,group_id=0,allow_other,blksize=4096
sda4 rw,relatime,fmask=0022,dmask=0022,codepage=437,iocharset=iso8859-1,shortname=mixed,errors=remount-ro
sda5 rw,relatime,user_id=0,group_id=0,allow_other,blksize=4096
sda6 rw,relatime,user_id=0,group_id=0,allow_other,blksize=4096
sda7 rw,relatime,user_id=0,group_id=0,allow_other,blksize=4096
sda8 rw,relatime,errors=remount-ro
===================== sda3/efi/ubuntu/grub.cfg (filtered) ======================
search.fs_uuid f55557db-2ffc-482d-b802-e989b1cf851a root hd0,gpt8
set prefix=($root)'/boot/grub'
configfile $prefix/grub.cfg
====================== sda8/boot/grub/grub.cfg (filtered) ======================
Ubuntu f55557db-2ffc-482d-b802-e989b1cf851a
Ubuntu, avec Linux 5.4.0-52-generic f55557db-2ffc-482d-b802-e989b1cf851a
Ubuntu, avec Linux 5.4.0-48-generic f55557db-2ffc-482d-b802-e989b1cf851a
Windows Boot Manager (sur sda3) osprober-efi-BED8-972C
### END /etc/grub.d/30_os-prober ###
UEFI Firmware Settings uefi-firmware
### END /etc/grub.d/30_uefi-firmware ###
========================== sda8/etc/fstab (filtered) ===========================
# <file system> <mount point> <type> <options> <dump> <pass>
# / was on /dev/sda8 during installation
UUID=f55557db-2ffc-482d-b802-e989b1cf851a / ext4 errors=remount-ro 0 1
# /boot/efi was on /dev/sda3 during installation
# /home was on /dev/sda10 during installation
UUID=197729ab-8c62-47e3-89e2-f4da433180fc /home ext4 defaults 0 2
# swap was on /dev/sda9 during installation
UUID=eebb2888-aba1-4fa1-80ea-d013708e48f5 none swap sw 0 0
UUID=BED8-972C /boot/efi vfat defaults 0 1
======================= sda8/etc/default/grub (filtered) =======================
GRUB_DEFAULT=0
GRUB_TIMEOUT_STYLE=hidden
GRUB_TIMEOUT=10
GRUB_DISTRIBUTOR=`lsb_release -i -s 2> /dev/null || echo Debian`
GRUB_CMDLINE_LINUX_DEFAULT="quiet splash"
GRUB_CMDLINE_LINUX=""
==================== sda8: Location of files loaded by Grub ====================
GiB - GB File Fragment(s)
861.856620789 = 925.411500032 boot/grub/grub.cfg 2
852.507946014 = 915.373436928 boot/vmlinuz 1
856.773571014 = 919.953616896 boot/vmlinuz-5.4.0-48-generic 1
852.507946014 = 915.373436928 boot/vmlinuz-5.4.0-52-generic 1
856.773571014 = 919.953616896 boot/vmlinuz.old 1
852.752319336 = 915.635830784 boot/initrd.img 2
847.426246643 = 909.917003776 boot/initrd.img-5.4.0-48-generic 2
852.752319336 = 915.635830784 boot/initrd.img-5.4.0-52-generic 2
847.426246643 = 909.917003776 boot/initrd.img.old 2
===================== sda8: 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
======================== Unknown MBRs/Boot Sectors/etc =========================
Unknown GPT Partiton Type
e7afbfbf4fa38a449a5b6213eb736c22
Suggested repair: ______________________________________________________________
The default repair of the Boot-Repair utility would reinstall the grub-efi-amd64-signed of
sda8,
using the following options: sda3/boot/efi,
Additional repair would be performed: unhide-bootmenu-10s use-standard-efi-file restore-efi-backups
Confirmation request before suggested repair: __________________________________
The boot of your PC is in Secure mode. You may want to retry after changing it to non-Secure mode.
Are you sure you want to continue anyway?
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 (sda3/efi/****/shim****.efi (**** will be updated in the final message) file) !
If your computer reboots directly into Windows, try to change the boot order in your UEFI firmware.
If your UEFI firmware does not allow to change the boot order, change the default boot entry of the Windows bootloader.
For example you can boot into Windows, then type the following command in an admin command prompt:
bcdedit /set {bootmgr} path \EFI\****\shim****.efi (**** will be updated in the final message)
On y voit que le fichier de configuration de Grub contient bien un entrée pour Windows :
====================== sda8/boot/grub/grub.cfg (filtered) ======================
Ubuntu f55557db-2ffc-482d-b802-e989b1cf851a
Ubuntu, avec Linux 5.4.0-52-generic f55557db-2ffc-482d-b802-e989b1cf851a
Ubuntu, avec Linux 5.4.0-48-generic f55557db-2ffc-482d-b802-e989b1cf851a
Windows Boot Manager (sur sda3) osprober-efi-BED8-972C
### END /etc/grub.d/30_os-prober ###
UEFI Firmware Settings uefi-firmware
### END /etc/grub.d/30_uefi-firmware ###
Dans ce cas, le menu Grub aurait dû apparaitre au démarrage puisque Windows est proposé et je pense que ça explique que la modif "GRUB_TIMEOUT_STYLE=menu" au lieu de "GRUB_TIMEOUT_STYLE=hidden" n'ait servi à rien. Le problème est un problème graphique : le menu Grub est là mais il n'est pas visible.
J'ai fait un essai dans une machine virtuelle (avec Ubuntu 20.04.1 installé en mode EFI) pour me convaincre de la chose :
1) configuration de base, c'est à dire avec "#GRUB_TERMINAL=console" dans le fichier /etc/default/grub :

2) avec "GRUB_TERMINAL=console" (le caractère # supprimé) :

On voit que le menu est centré sur l'écran. Il y a bien une action graphique. On peut noter que le menu passe du français à l'anglais : "Options avancées pour Ubuntu" est devenu "Advanced options for Ubuntu".
grub.cfg de base (avec "#GRUB_TERMINAL=console" dans le fichier /etc/default/grub) :
#
# DO NOT EDIT THIS FILE
#
# It is automatically generated by grub-mkconfig using templates
# from /etc/grub.d and settings from /etc/default/grub
#
### BEGIN /etc/grub.d/00_header ###
if [ -s $prefix/grubenv ]; then
set have_grubenv=true
load_env
fi
if [ "${initrdfail}" = 2 ]; then
set initrdfail=
elif [ "${initrdfail}" = 1 ]; then
set next_entry="${prev_entry}"
set prev_entry=
save_env prev_entry
if [ "${next_entry}" ]; then
set initrdfail=2
fi
fi
if [ "${next_entry}" ] ; then
set default="${next_entry}"
set next_entry=
save_env next_entry
set boot_once=true
else
set default="0"
fi
if [ x"${feature_menuentry_id}" = xy ]; then
menuentry_id_option="--id"
else
menuentry_id_option=""
fi
export menuentry_id_option
if [ "${prev_saved_entry}" ]; then
set saved_entry="${prev_saved_entry}"
save_env saved_entry
set prev_saved_entry=
save_env prev_saved_entry
set boot_once=true
fi
function savedefault {
if [ -z "${boot_once}" ]; then
saved_entry="${chosen}"
save_env saved_entry
fi
}
function initrdfail {
if [ -n "${have_grubenv}" ]; then if [ -n "${partuuid}" ]; then
if [ -z "${initrdfail}" ]; then
set initrdfail=1
if [ -n "${boot_once}" ]; then
set prev_entry="${default}"
save_env prev_entry
fi
fi
save_env initrdfail
fi; fi
}
function recordfail {
set recordfail=1
if [ -n "${have_grubenv}" ]; then if [ -z "${boot_once}" ]; then save_env recordfail; fi; fi
}
function load_video {
if [ x$feature_all_video_module = xy ]; then
insmod all_video
else
insmod efi_gop
insmod efi_uga
insmod ieee1275_fb
insmod vbe
insmod vga
insmod video_bochs
insmod video_cirrus
fi
}
if [ x$feature_default_font_path = xy ] ; then
font=unicode
else
insmod part_gpt
insmod ext2
set root='hd0,gpt5'
if [ x$feature_platform_search_hint = xy ]; then
search --no-floppy --fs-uuid --set=root --hint-bios=hd0,gpt5 --hint-efi=hd0,gpt5 --hint-baremetal=ahci0,gpt5 7f77fabb-57c0-4d01-af1b-572d1bd3d99f
else
search --no-floppy --fs-uuid --set=root 7f77fabb-57c0-4d01-af1b-572d1bd3d99f
fi
font="/usr/share/grub/unicode.pf2"
fi
if loadfont $font ; then
set gfxmode=auto
load_video
insmod gfxterm
set locale_dir=$prefix/locale
set lang=fr_FR
insmod gettext
fi
terminal_output gfxterm
if [ "${recordfail}" = 1 ] ; then
set timeout=30
else
if [ x$feature_timeout_style = xy ] ; then
set timeout_style=hidden
set timeout=10
# Fallback hidden-timeout code in case the timeout_style feature is
# unavailable.
elif sleep --interruptible 10 ; then
set timeout=0
fi
fi
### END /etc/grub.d/00_header ###
### BEGIN /etc/grub.d/05_debian_theme ###
set menu_color_normal=white/black
set menu_color_highlight=black/light-gray
### END /etc/grub.d/05_debian_theme ###
### BEGIN /etc/grub.d/10_linux ###
function gfxmode {
set gfxpayload="${1}"
if [ "${1}" = "keep" ]; then
set vt_handoff=vt.handoff=7
else
set vt_handoff=
fi
}
if [ "${recordfail}" != 1 ]; then
if [ -e ${prefix}/gfxblacklist.txt ]; then
if hwmatch ${prefix}/gfxblacklist.txt 3; then
if [ ${match} = 0 ]; then
set linux_gfx_mode=keep
else
set linux_gfx_mode=text
fi
else
set linux_gfx_mode=text
fi
else
set linux_gfx_mode=keep
fi
else
set linux_gfx_mode=text
fi
export linux_gfx_mode
menuentry 'Ubuntu' --class ubuntu --class gnu-linux --class gnu --class os $menuentry_id_option 'gnulinux-simple-7f77fabb-57c0-4d01-af1b-572d1bd3d99f' {
recordfail
load_video
gfxmode $linux_gfx_mode
insmod gzio
if [ x$grub_platform = xxen ]; then insmod xzio; insmod lzopio; fi
insmod part_gpt
insmod ext2
set root='hd0,gpt5'
if [ x$feature_platform_search_hint = xy ]; then
search --no-floppy --fs-uuid --set=root --hint-bios=hd0,gpt5 --hint-efi=hd0,gpt5 --hint-baremetal=ahci0,gpt5 7f77fabb-57c0-4d01-af1b-572d1bd3d99f
else
search --no-floppy --fs-uuid --set=root 7f77fabb-57c0-4d01-af1b-572d1bd3d99f
fi
linux /boot/vmlinuz-5.4.0-52-generic root=UUID=7f77fabb-57c0-4d01-af1b-572d1bd3d99f ro quiet splash $vt_handoff
initrd /boot/initrd.img-5.4.0-52-generic
}
submenu 'Options avancées pour Ubuntu' $menuentry_id_option 'gnulinux-advanced-7f77fabb-57c0-4d01-af1b-572d1bd3d99f' {
menuentry 'Ubuntu, avec Linux 5.4.0-52-generic' --class ubuntu --class gnu-linux --class gnu --class os $menuentry_id_option 'gnulinux-5.4.0-52-generic-advanced-7f77fabb-57c0-4d01-af1b-572d1bd3d99f' {
recordfail
load_video
gfxmode $linux_gfx_mode
insmod gzio
if [ x$grub_platform = xxen ]; then insmod xzio; insmod lzopio; fi
insmod part_gpt
insmod ext2
set root='hd0,gpt5'
if [ x$feature_platform_search_hint = xy ]; then
search --no-floppy --fs-uuid --set=root --hint-bios=hd0,gpt5 --hint-efi=hd0,gpt5 --hint-baremetal=ahci0,gpt5 7f77fabb-57c0-4d01-af1b-572d1bd3d99f
else
search --no-floppy --fs-uuid --set=root 7f77fabb-57c0-4d01-af1b-572d1bd3d99f
fi
echo 'Chargement de Linux 5.4.0-52-generic…'
linux /boot/vmlinuz-5.4.0-52-generic root=UUID=7f77fabb-57c0-4d01-af1b-572d1bd3d99f ro quiet splash $vt_handoff
echo 'Chargement du disque mémoire initial…'
initrd /boot/initrd.img-5.4.0-52-generic
}
menuentry 'Ubuntu, avec Linux 5.4.0-52-generic (recovery mode)' --class ubuntu --class gnu-linux --class gnu --class os $menuentry_id_option 'gnulinux-5.4.0-52-generic-recovery-7f77fabb-57c0-4d01-af1b-572d1bd3d99f' {
recordfail
load_video
insmod gzio
if [ x$grub_platform = xxen ]; then insmod xzio; insmod lzopio; fi
insmod part_gpt
insmod ext2
set root='hd0,gpt5'
if [ x$feature_platform_search_hint = xy ]; then
search --no-floppy --fs-uuid --set=root --hint-bios=hd0,gpt5 --hint-efi=hd0,gpt5 --hint-baremetal=ahci0,gpt5 7f77fabb-57c0-4d01-af1b-572d1bd3d99f
else
search --no-floppy --fs-uuid --set=root 7f77fabb-57c0-4d01-af1b-572d1bd3d99f
fi
echo 'Chargement de Linux 5.4.0-52-generic…'
linux /boot/vmlinuz-5.4.0-52-generic root=UUID=7f77fabb-57c0-4d01-af1b-572d1bd3d99f ro recovery nomodeset dis_ucode_ldr
echo 'Chargement du disque mémoire initial…'
initrd /boot/initrd.img-5.4.0-52-generic
}
menuentry 'Ubuntu, avec Linux 5.4.0-51-generic' --class ubuntu --class gnu-linux --class gnu --class os $menuentry_id_option 'gnulinux-5.4.0-51-generic-advanced-7f77fabb-57c0-4d01-af1b-572d1bd3d99f' {
recordfail
load_video
gfxmode $linux_gfx_mode
insmod gzio
if [ x$grub_platform = xxen ]; then insmod xzio; insmod lzopio; fi
insmod part_gpt
insmod ext2
set root='hd0,gpt5'
if [ x$feature_platform_search_hint = xy ]; then
search --no-floppy --fs-uuid --set=root --hint-bios=hd0,gpt5 --hint-efi=hd0,gpt5 --hint-baremetal=ahci0,gpt5 7f77fabb-57c0-4d01-af1b-572d1bd3d99f
else
search --no-floppy --fs-uuid --set=root 7f77fabb-57c0-4d01-af1b-572d1bd3d99f
fi
echo 'Chargement de Linux 5.4.0-51-generic…'
linux /boot/vmlinuz-5.4.0-51-generic root=UUID=7f77fabb-57c0-4d01-af1b-572d1bd3d99f ro quiet splash $vt_handoff
echo 'Chargement du disque mémoire initial…'
initrd /boot/initrd.img-5.4.0-51-generic
}
menuentry 'Ubuntu, avec Linux 5.4.0-51-generic (recovery mode)' --class ubuntu --class gnu-linux --class gnu --class os $menuentry_id_option 'gnulinux-5.4.0-51-generic-recovery-7f77fabb-57c0-4d01-af1b-572d1bd3d99f' {
recordfail
load_video
insmod gzio
if [ x$grub_platform = xxen ]; then insmod xzio; insmod lzopio; fi
insmod part_gpt
insmod ext2
set root='hd0,gpt5'
if [ x$feature_platform_search_hint = xy ]; then
search --no-floppy --fs-uuid --set=root --hint-bios=hd0,gpt5 --hint-efi=hd0,gpt5 --hint-baremetal=ahci0,gpt5 7f77fabb-57c0-4d01-af1b-572d1bd3d99f
else
search --no-floppy --fs-uuid --set=root 7f77fabb-57c0-4d01-af1b-572d1bd3d99f
fi
echo 'Chargement de Linux 5.4.0-51-generic…'
linux /boot/vmlinuz-5.4.0-51-generic root=UUID=7f77fabb-57c0-4d01-af1b-572d1bd3d99f ro recovery nomodeset dis_ucode_ldr
echo 'Chargement du disque mémoire initial…'
initrd /boot/initrd.img-5.4.0-51-generic
}
}
### END /etc/grub.d/10_linux ###
### BEGIN /etc/grub.d/10_linux_zfs ###
### END /etc/grub.d/10_linux_zfs ###
### BEGIN /etc/grub.d/20_linux_xen ###
### END /etc/grub.d/20_linux_xen ###
### BEGIN /etc/grub.d/20_memtest86+ ###
### END /etc/grub.d/20_memtest86+ ###
### BEGIN /etc/grub.d/30_os-prober ###
menuentry 'Windows Boot Manager (sur /dev/sda2)' --class windows --class os $menuentry_id_option 'osprober-efi-C4D1-8AAE' {
insmod part_gpt
insmod fat
set root='hd0,gpt2'
if [ x$feature_platform_search_hint = xy ]; then
search --no-floppy --fs-uuid --set=root --hint-bios=hd0,gpt2 --hint-efi=hd0,gpt2 --hint-baremetal=ahci0,gpt2 C4D1-8AAE
else
search --no-floppy --fs-uuid --set=root C4D1-8AAE
fi
chainloader /EFI/Microsoft/Boot/bootmgfw.efi
}
set timeout_style=menu
if [ "${timeout}" = 0 ]; then
set timeout=10
fi
### END /etc/grub.d/30_os-prober ###
### BEGIN /etc/grub.d/30_uefi-firmware ###
menuentry 'UEFI Firmware Settings' $menuentry_id_option 'uefi-firmware' {
fwsetup
}
### END /etc/grub.d/30_uefi-firmware ###
### BEGIN /etc/grub.d/40_custom ###
# This file provides an easy way to add custom menu entries. Simply type the
# menu entries you want to add after this comment. Be careful not to change
# the 'exec tail' line above.
### END /etc/grub.d/40_custom ###
### BEGIN /etc/grub.d/41_custom ###
if [ -f ${config_directory}/custom.cfg ]; then
source ${config_directory}/custom.cfg
elif [ -z "${config_directory}" -a -f $prefix/custom.cfg ]; then
source $prefix/custom.cfg;
fi
### END /etc/grub.d/41_custom ###
grub.cfg après modif, c'est à dire avec "GRUB_TERMINAL=console" (le caractère # supprimé) :
#
# DO NOT EDIT THIS FILE
#
# It is automatically generated by grub-mkconfig using templates
# from /etc/grub.d and settings from /etc/default/grub
#
### BEGIN /etc/grub.d/00_header ###
if [ -s $prefix/grubenv ]; then
set have_grubenv=true
load_env
fi
if [ "${initrdfail}" = 2 ]; then
set initrdfail=
elif [ "${initrdfail}" = 1 ]; then
set next_entry="${prev_entry}"
set prev_entry=
save_env prev_entry
if [ "${next_entry}" ]; then
set initrdfail=2
fi
fi
if [ "${next_entry}" ] ; then
set default="${next_entry}"
set next_entry=
save_env next_entry
set boot_once=true
else
set default="0"
fi
if [ x"${feature_menuentry_id}" = xy ]; then
menuentry_id_option="--id"
else
menuentry_id_option=""
fi
export menuentry_id_option
if [ "${prev_saved_entry}" ]; then
set saved_entry="${prev_saved_entry}"
save_env saved_entry
set prev_saved_entry=
save_env prev_saved_entry
set boot_once=true
fi
function savedefault {
if [ -z "${boot_once}" ]; then
saved_entry="${chosen}"
save_env saved_entry
fi
}
function initrdfail {
if [ -n "${have_grubenv}" ]; then if [ -n "${partuuid}" ]; then
if [ -z "${initrdfail}" ]; then
set initrdfail=1
if [ -n "${boot_once}" ]; then
set prev_entry="${default}"
save_env prev_entry
fi
fi
save_env initrdfail
fi; fi
}
function recordfail {
set recordfail=1
if [ -n "${have_grubenv}" ]; then if [ -z "${boot_once}" ]; then save_env recordfail; fi; fi
}
function load_video {
if [ x$feature_all_video_module = xy ]; then
insmod all_video
else
insmod efi_gop
insmod efi_uga
insmod ieee1275_fb
insmod vbe
insmod vga
insmod video_bochs
insmod video_cirrus
fi
}
terminal_input console
terminal_output console
if [ "${recordfail}" = 1 ] ; then
set timeout=30
else
if [ x$feature_timeout_style = xy ] ; then
set timeout_style=hidden
set timeout=10
# Fallback hidden-timeout code in case the timeout_style feature is
# unavailable.
elif sleep --interruptible 10 ; then
set timeout=0
fi
fi
### END /etc/grub.d/00_header ###
### BEGIN /etc/grub.d/05_debian_theme ###
set menu_color_normal=white/black
set menu_color_highlight=black/light-gray
### END /etc/grub.d/05_debian_theme ###
### BEGIN /etc/grub.d/10_linux ###
function gfxmode {
set gfxpayload="${1}"
if [ "${1}" = "keep" ]; then
set vt_handoff=vt.handoff=7
else
set vt_handoff=
fi
}
if [ "${recordfail}" != 1 ]; then
if [ -e ${prefix}/gfxblacklist.txt ]; then
if hwmatch ${prefix}/gfxblacklist.txt 3; then
if [ ${match} = 0 ]; then
set linux_gfx_mode=keep
else
set linux_gfx_mode=text
fi
else
set linux_gfx_mode=text
fi
else
set linux_gfx_mode=keep
fi
else
set linux_gfx_mode=text
fi
export linux_gfx_mode
menuentry 'Ubuntu' --class ubuntu --class gnu-linux --class gnu --class os $menuentry_id_option 'gnulinux-simple-7f77fabb-57c0-4d01-af1b-572d1bd3d99f' {
recordfail
load_video
gfxmode $linux_gfx_mode
insmod gzio
if [ x$grub_platform = xxen ]; then insmod xzio; insmod lzopio; fi
insmod part_gpt
insmod ext2
set root='hd0,gpt5'
if [ x$feature_platform_search_hint = xy ]; then
search --no-floppy --fs-uuid --set=root --hint-bios=hd0,gpt5 --hint-efi=hd0,gpt5 --hint-baremetal=ahci0,gpt5 7f77fabb-57c0-4d01-af1b-572d1bd3d99f
else
search --no-floppy --fs-uuid --set=root 7f77fabb-57c0-4d01-af1b-572d1bd3d99f
fi
linux /boot/vmlinuz-5.4.0-52-generic root=UUID=7f77fabb-57c0-4d01-af1b-572d1bd3d99f ro quiet splash $vt_handoff
initrd /boot/initrd.img-5.4.0-52-generic
}
submenu 'Advanced options for Ubuntu' $menuentry_id_option 'gnulinux-advanced-7f77fabb-57c0-4d01-af1b-572d1bd3d99f' {
menuentry 'Ubuntu, with Linux 5.4.0-52-generic' --class ubuntu --class gnu-linux --class gnu --class os $menuentry_id_option 'gnulinux-5.4.0-52-generic-advanced-7f77fabb-57c0-4d01-af1b-572d1bd3d99f' {
recordfail
load_video
gfxmode $linux_gfx_mode
insmod gzio
if [ x$grub_platform = xxen ]; then insmod xzio; insmod lzopio; fi
insmod part_gpt
insmod ext2
set root='hd0,gpt5'
if [ x$feature_platform_search_hint = xy ]; then
search --no-floppy --fs-uuid --set=root --hint-bios=hd0,gpt5 --hint-efi=hd0,gpt5 --hint-baremetal=ahci0,gpt5 7f77fabb-57c0-4d01-af1b-572d1bd3d99f
else
search --no-floppy --fs-uuid --set=root 7f77fabb-57c0-4d01-af1b-572d1bd3d99f
fi
echo 'Loading Linux 5.4.0-52-generic ...'
linux /boot/vmlinuz-5.4.0-52-generic root=UUID=7f77fabb-57c0-4d01-af1b-572d1bd3d99f ro quiet splash $vt_handoff
echo 'Loading initial ramdisk ...'
initrd /boot/initrd.img-5.4.0-52-generic
}
menuentry 'Ubuntu, with Linux 5.4.0-52-generic (recovery mode)' --class ubuntu --class gnu-linux --class gnu --class os $menuentry_id_option 'gnulinux-5.4.0-52-generic-recovery-7f77fabb-57c0-4d01-af1b-572d1bd3d99f' {
recordfail
load_video
insmod gzio
if [ x$grub_platform = xxen ]; then insmod xzio; insmod lzopio; fi
insmod part_gpt
insmod ext2
set root='hd0,gpt5'
if [ x$feature_platform_search_hint = xy ]; then
search --no-floppy --fs-uuid --set=root --hint-bios=hd0,gpt5 --hint-efi=hd0,gpt5 --hint-baremetal=ahci0,gpt5 7f77fabb-57c0-4d01-af1b-572d1bd3d99f
else
search --no-floppy --fs-uuid --set=root 7f77fabb-57c0-4d01-af1b-572d1bd3d99f
fi
echo 'Loading Linux 5.4.0-52-generic ...'
linux /boot/vmlinuz-5.4.0-52-generic root=UUID=7f77fabb-57c0-4d01-af1b-572d1bd3d99f ro recovery nomodeset dis_ucode_ldr
echo 'Loading initial ramdisk ...'
initrd /boot/initrd.img-5.4.0-52-generic
}
menuentry 'Ubuntu, with Linux 5.4.0-51-generic' --class ubuntu --class gnu-linux --class gnu --class os $menuentry_id_option 'gnulinux-5.4.0-51-generic-advanced-7f77fabb-57c0-4d01-af1b-572d1bd3d99f' {
recordfail
load_video
gfxmode $linux_gfx_mode
insmod gzio
if [ x$grub_platform = xxen ]; then insmod xzio; insmod lzopio; fi
insmod part_gpt
insmod ext2
set root='hd0,gpt5'
if [ x$feature_platform_search_hint = xy ]; then
search --no-floppy --fs-uuid --set=root --hint-bios=hd0,gpt5 --hint-efi=hd0,gpt5 --hint-baremetal=ahci0,gpt5 7f77fabb-57c0-4d01-af1b-572d1bd3d99f
else
search --no-floppy --fs-uuid --set=root 7f77fabb-57c0-4d01-af1b-572d1bd3d99f
fi
echo 'Loading Linux 5.4.0-51-generic ...'
linux /boot/vmlinuz-5.4.0-51-generic root=UUID=7f77fabb-57c0-4d01-af1b-572d1bd3d99f ro quiet splash $vt_handoff
echo 'Loading initial ramdisk ...'
initrd /boot/initrd.img-5.4.0-51-generic
}
menuentry 'Ubuntu, with Linux 5.4.0-51-generic (recovery mode)' --class ubuntu --class gnu-linux --class gnu --class os $menuentry_id_option 'gnulinux-5.4.0-51-generic-recovery-7f77fabb-57c0-4d01-af1b-572d1bd3d99f' {
recordfail
load_video
insmod gzio
if [ x$grub_platform = xxen ]; then insmod xzio; insmod lzopio; fi
insmod part_gpt
insmod ext2
set root='hd0,gpt5'
if [ x$feature_platform_search_hint = xy ]; then
search --no-floppy --fs-uuid --set=root --hint-bios=hd0,gpt5 --hint-efi=hd0,gpt5 --hint-baremetal=ahci0,gpt5 7f77fabb-57c0-4d01-af1b-572d1bd3d99f
else
search --no-floppy --fs-uuid --set=root 7f77fabb-57c0-4d01-af1b-572d1bd3d99f
fi
echo 'Loading Linux 5.4.0-51-generic ...'
linux /boot/vmlinuz-5.4.0-51-generic root=UUID=7f77fabb-57c0-4d01-af1b-572d1bd3d99f ro recovery nomodeset dis_ucode_ldr
echo 'Loading initial ramdisk ...'
initrd /boot/initrd.img-5.4.0-51-generic
}
}
### END /etc/grub.d/10_linux ###
### BEGIN /etc/grub.d/10_linux_zfs ###
### END /etc/grub.d/10_linux_zfs ###
### BEGIN /etc/grub.d/20_linux_xen ###
### END /etc/grub.d/20_linux_xen ###
### BEGIN /etc/grub.d/20_memtest86+ ###
### END /etc/grub.d/20_memtest86+ ###
### BEGIN /etc/grub.d/30_os-prober ###
menuentry 'Windows Boot Manager (on /dev/sda2)' --class windows --class os $menuentry_id_option 'osprober-efi-C4D1-8AAE' {
insmod part_gpt
insmod fat
set root='hd0,gpt2'
if [ x$feature_platform_search_hint = xy ]; then
search --no-floppy --fs-uuid --set=root --hint-bios=hd0,gpt2 --hint-efi=hd0,gpt2 --hint-baremetal=ahci0,gpt2 C4D1-8AAE
else
search --no-floppy --fs-uuid --set=root C4D1-8AAE
fi
chainloader /EFI/Microsoft/Boot/bootmgfw.efi
}
set timeout_style=menu
if [ "${timeout}" = 0 ]; then
set timeout=10
fi
### END /etc/grub.d/30_os-prober ###
### BEGIN /etc/grub.d/30_uefi-firmware ###
menuentry 'UEFI Firmware Settings' $menuentry_id_option 'uefi-firmware' {
fwsetup
}
### END /etc/grub.d/30_uefi-firmware ###
### BEGIN /etc/grub.d/40_custom ###
# This file provides an easy way to add custom menu entries. Simply type the
# menu entries you want to add after this comment. Be careful not to change
# the 'exec tail' line above.
### END /etc/grub.d/40_custom ###
### BEGIN /etc/grub.d/41_custom ###
if [ -f ${config_directory}/custom.cfg ]; then
source ${config_directory}/custom.cfg
elif [ -z "${config_directory}" -a -f $prefix/custom.cfg ]; then
source $prefix/custom.cfg;
fi
### END /etc/grub.d/41_custom ###
On peut voir qu'il y a une vingtaine de lignes supprimées dans la partie "/etc/grub.d/00_header" du fichier grub.cfg. Cela correspond à la simplification de l'affichage.
Les lignes supprimées sont les suivantes :
if [ x$feature_default_font_path = xy ] ; then
font=unicode
else
insmod part_gpt
insmod ext2
set root='hd0,gpt5'
if [ x$feature_platform_search_hint = xy ]; then
search --no-floppy --fs-uuid --set=root --hint-bios=hd0,gpt5 --hint-efi=hd0,gpt5 --hint-baremetal=ahci0,gpt5 7f77fabb-57c0-4d01-af1b-572d1bd3d99f
else
search --no-floppy --fs-uuid --set=root 7f77fabb-57c0-4d01-af1b-572d1bd3d99f
fi
font="/usr/share/grub/unicode.pf2"
fi
if loadfont $font ; then
set gfxmode=auto
load_video
insmod gfxterm
set locale_dir=$prefix/locale
set lang=fr_FR
insmod gettext
fi
Autre différence notoire, c'est la ligne suivante dans le grub.cfg de base :
terminal_output gfxterm
qui est remplacée par ces deux lignes dans le grub.cfg après modif :
terminal_input console
terminal_output console