#1 Le 24/11/2022, à 00:34
- lool_lauris
Grub n'apparaît plus - win10 + xubuntu 20.04 [RÉSOLU]
Salut,
L'écran de démarrage n'apparaît plus, le PC démarre systématiquement sur windows sans laisser le choix de l'OS.
Il s'agit d'une machine (Toshiba Satellite Pro C50-A-1C8) sur laquelle, il y a environ 2 ans, j'avais installé Xubuntu 20.04 à côté de windows 10. Le propriétaire du PC n'a pas réussi à me dire s'il y avait eu quelque chose en particulier (après mise à jour par exemple).
J'ai tenté de réparer le GRUB en lançant Ubuntu via Super Grub et lancer les commandes :
sudo grub-install /dev/sda
sudo update-grub
Mais au redémarrage, pas de GRUB, c'est windows qui prend la main.
J'ai également tenté de réparer avec Boot Repair mais pareil, le démarrage se fait sur windows.
Avant toute manip, j'ai pris la précaution de faire un rapport Boot-Info. Puis j'ai fait un rapport Boot-Info après la réparation Boot Repair.
1/ Boot info avant réparation : https://paste.ubuntu.com/p/WJxqzkVXms/
boot-repair-4ppa200 [20221123_2205]
============================== 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 (,2)/grub. It also embeds following components:
modules
---------------------------------------------------------------------------
offsetio extcmd macho elf file setkey gettext boot bufio verifiers crypto
terminal normal datetime date mmap drivemap blocklist regexp archelp newc
vga_text relocator video chain ntldr search_label search_fs_file
search_fs_uuid search keylayouts at_keyboard pci usb usb_keyboard gcry_md5
hashsum gcry_crc gzio xzio lzopio lspci fshelp ext2 xfs acpi iso9660
gcry_sha1 div udf exfat font diskfilter raid6rec zstd btrfs ventoy read
halt video_fb vbe linux linux16 test true sleep reboot echo bitmap
bitmap_scale gfxterm video_colors trig gfxmenu videotest videoinfo
functional_test videotest_checksum video_cirrus video_bochs vga minicmd
help configfile tr biosdisk disk ls tar squash4 pbkdf2 gcry_sha512
password_pbkdf2 all_video png jpeg part_gpt part_msdos fat ntfs loopback
gfxterm_background procfs gfxterm_menu
---------------------------------------------------------------------------
sda1: __________________________________________________________________________
File system: vfat
Boot sector type: Windows 8/10/11/2012: FAT32
Boot sector info: No errors found in the Boot Parameter Block.
Operating System:
Boot files: /efi/Boot/bootx64.efi /efi/Boot/fbx64.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
sda2: __________________________________________________________________________
File system:
Boot sector type: -
Boot sector info:
sda3: __________________________________________________________________________
File system: ntfs
Boot sector type: Windows 8/10/11/2012: NTFS
Boot sector info: No errors found in the Boot Parameter Block.
Operating System: Windows 10 or 11
Boot files: /bootmgr /Windows/System32/winload.exe
sda4: __________________________________________________________________________
File system: ntfs
Boot sector type: Windows 8/10/11/2012: NTFS
Boot sector info: No errors found in the Boot Parameter Block.
Operating System:
Boot files:
sda5: __________________________________________________________________________
File system: ext4
Boot sector type: -
Boot sector info:
Operating System: Ubuntu 20.04.5 LTS
Boot files: /boot/grub/grub.cfg /etc/fstab /etc/default/grub
sdb1: __________________________________________________________________________
File system: exfat
Boot sector type: -
Boot sector info:
Mounting failed: fuse: mount failed: Device or resource busy
sdb2: __________________________________________________________________________
File system: iso9660
Boot sector type: Unknown
Boot sector info:
Operating System:
Boot files: /boot/grub/grub.cfg
================================ 2 OS detected =================================
OS#1: Ubuntu 20.04.5 LTS on sda5
OS#2: Windows 10 or 11 on sda3
================================ Host/Hardware =================================
CPU architecture: 64-bit
Video: 3rd Gen Core processor Graphics Controller from Intel Corporation
Live-session OS is Ubuntu 64-bit (Boot-Repair-Disk 64bit 20200604, bionic, x86_64)
===================================== UEFI =====================================
BIOS/UEFI firmware: 1.20 from Insyde Corp.
The firmware is EFI-compatible, and is set in EFI-mode for this live-session.
SecureBoot disabled - SecureBoot disabled - Please report this message to boot.repair@gmail.com.
BootCurrent: 0005
Timeout: 0 seconds
BootOrder: 2001,0003,0000,0002,2003,2002
Boot0000* ubuntu HD(1,GPT,0598448d-1111-4b2e-b723-960dd2671671,0x800,0x32000)/File(\EFI\ubuntu\shimx64.efi)
Boot0001* EFI Network 0 for IPv6 (0C-54-A5-42-E5-77) PciRoot(0x0)/Pci(0x1c,0x2)/Pci(0x0,0x0)/MAC(0c54a542e577,0)/IPv6([::]:<->[::]:,0,0)RC
Boot0002* Ubuntu HD(1,GPT,0598448d-1111-4b2e-b723-960dd2671671,0x800,0x32000)/File(\EFI\ubuntu\grubx64.efi)RC
Boot0003* Windows Boot Manager HD(1,GPT,0598448d-1111-4b2e-b723-960dd2671671,0x800,0x32000)/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.}...a................
Boot0004* EFI Network 0 for IPv4 (0C-54-A5-42-E5-77) PciRoot(0x0)/Pci(0x1c,0x2)/Pci(0x0,0x0)/MAC(0c54a542e577,0)/IPv4(0.0.0.00.0.0.0,0,0)RC
Boot0005* EFI USB Device (USB DISK 2.0) PciRoot(0x0)/Pci(0x1d,0x0)/USB(0,0)/USB(1,0)/HD(2,MBR,0x4b26eab,0x1cdc000,0x10000)RC
Boot2001* EFI USB Device RC
Boot2002* EFI DVD/CDROM RC
Boot2003* EFI Network RC
728124f6ec8e22fbdbe7034812c81b95 sda1/Boot/bootx64.efi
85fa9d77b929ec4231aba29476574eb6 sda1/Boot/fbx64.efi
469e608783843a701d172242f016c79c sda1/Boot/mmx64.efi
51cfb66bc06dfbc97be2a010ebef52f3 sda1/ubuntu/grubx64.efi
469e608783843a701d172242f016c79c sda1/ubuntu/mmx64.efi
728124f6ec8e22fbdbe7034812c81b95 sda1/ubuntu/shimx64.efi
d1f6c29ed98f2a8102fd87c118371e0b sda1/Microsoft/Boot/bootmgfw.efi
85b10a5efd8419adc616cb2a5a70db30 sda1/Microsoft/Boot/bootmgr.efi
============================= Drive/Partition Info =============================
Disks info: ____________________________________________________________________
sda : is-GPT, no-BIOSboot, has---ESP, not-usb, not-mmc, has-os, has-win, 2048 sectors * 512 bytes
Partitions info (1/3): _________________________________________________________
sda1 : no-os, 32, nopakmgr, no-docgrub, nogrub, nogrubinstall, no-grubenv, noupdategrub, not-far
sda3 : is-os, 32, nopakmgr, no-docgrub, nogrub, nogrubinstall, no-grubenv, noupdategrub, farbios
sda4 : no-os, 32, nopakmgr, no-docgrub, nogrub, nogrubinstall, no-grubenv, noupdategrub, farbios
sda5 : is-os, 64, apt-get, signed grub-pc grub-efi , grub2, grub-install, grubenv-ok, update-grub, farbios
Partitions info (2/3): _________________________________________________________
sda1 : is---ESP, part-has-no-fstab, no-nt, no-winload, no-recov-nor-hid, no-bmgr, notwinboot
sda3 : isnotESP, part-has-no-fstab, no-nt, haswinload, no-recov-nor-hid, bootmgr, notwinboot
sda4 : isnotESP, part-has-no-fstab, no-nt, no-winload, recovery-or-hidden, no-bmgr, notwinboot
sda5 : isnotESP, fstab-has-goodEFI, no-nt, no-winload, no-recov-nor-hid, no-bmgr, notwinboot
Partitions info (3/3): _________________________________________________________
sda1 : not--sepboot, no---boot, part-has-no-fstab, not-sep-usr, no---usr, part-has-no-fstab, no--grub.d, sda
sda3 : not--sepboot, no---boot, part-has-no-fstab, not-sep-usr, no---usr, part-has-no-fstab, no--grub.d, sda
sda4 : not--sepboot, no---boot, part-has-no-fstab, not-sep-usr, no---usr, part-has-no-fstab, no--grub.d, sda
sda5 : not--sepboot, with-boot, fstab-without-boot, not-sep-usr, with--usr, fstab-without-usr, std-grub.d, sda
fdisk -l (filtered): ___________________________________________________________
Disk sda: 465.8 GiB, 500107862016 bytes, 976773168 sectors
Disk identifier: F107CCBF-DEB6-4C08-98AB-9281F1F0A855
Start End Sectors Size Type
sda1 2048 206847 204800 100M EFI System
sda2 206848 239615 32768 16M Microsoft reserved
sda3 239616 396654277 396414662 189G Microsoft basic data
sda4 975427584 976769023 1341440 655M Windows recovery environment
sda5 396654592 975427583 578772992 276G Linux filesystem
Partition table entries are not in disk order.
Disk sdb: 14.5 GiB, 15527313408 bytes, 30326784 sectors
Disk identifier: 0x04b26eab
Boot Start End Sectors Size Id Type
sdb1 * 2048 30261247 30259200 14.4G 7 HPFS/NTFS/exFAT
sdb2 30261248 30326783 65536 32M ef EFI (FAT-12/16/32)
Disk dm-0: 880 MiB, 922746880 bytes, 1802240 sectors
Disk identifier: 0x2c534026
Boot Start End Sectors Size Id Type
dm-0p1 * 0 1802239 1802240 880M 0 Empty
dm-0p2 964 5891 4928 2.4M ef EFI (FAT-12/16/32)
Disk zram0: 952.6 MiB, 998821888 bytes, 243853 sectors
Disk zram1: 952.6 MiB, 998821888 bytes, 243853 sectors
parted -lm (filtered): _________________________________________________________
sda:500GB:scsi:512:512:gpt:ATA TOSHIBA MQ01ABF0:;
1:1049kB:106MB:105MB:fat32:EFI system partition:boot, esp;
2:106MB:123MB:16.8MB::Microsoft reserved partition:msftres;
3:123MB:203GB:203GB:ntfs:Basic data partition:msftdata;
5:203GB:499GB:296GB:ext4::;
4:499GB:500GB:687MB:ntfs::hidden, diag;
sdb:15.5GB:scsi:512:512:msdos: USB DISK 2.0:;
1:1049kB:15.5GB:15.5GB:::boot;
2:15.5GB:15.5GB:33.6MB:fat16::esp;
blkid (filtered): ______________________________________________________________
NAME FSTYPE UUID PARTUUID LABEL PARTLABEL
sda
├─sda1 vfat 243C-CB0B 0598448d-1111-4b2e-b723-960dd2671671 EFI system partition
├─sda2 61ddf36b-e612-4d6a-bf24-1ccdbd1fda89 Microsoft reserved partition
├─sda3 ntfs ACE041D4E041A584 3df76230-bd0a-4cf9-88d0-e5eb665c56d5 Basic data partition
├─sda4 ntfs 1818A16A18A14798 2fe21094-9f38-4819-96ca-302739cd0c9a
└─sda5 ext4 4ce76eb0-cbe6-4ab4-a256-f8b1e6f55483 697275a6-13bc-47c6-85f0-f59ef2e639d5
sdb
├─sdb1 exfat EF30-F2F9 04b26eab-01 Ventoy
└─sdb2 iso9660 2020-06-13-00-42-55-00 Boot-Repair-Disk 64bit
Mount points (filtered): _______________________________________________________
Avail Use% Mounted on
/dev/mapper/ventoy 0 100% /cdrom
/dev/sda1 65.7M 32% /mnt/boot-sav/sda1
/dev/sda3 38.4G 80% /mnt/boot-sav/sda3
/dev/sda4 87.5M 87% /mnt/boot-sav/sda4
/dev/sda5 108.4G 55% /mnt/boot-sav/sda5
/dev/sdb2 0 100% /media/lubuntu/Boot-Repair-Disk 64bit
Mount options (filtered): ______________________________________________________
/dev/mapper/ventoy iso9660 ro,noatime,nojoliet,check=s,map=n,blocksize=2048
/dev/sda1 vfat rw,relatime,fmask=0022,dmask=0022,codepage=437,iocharset=iso8859-1,shortname=mixed,errors=remount-ro
/dev/sda3 fuseblk rw,relatime,user_id=0,group_id=0,allow_other,blksize=4096
/dev/sda4 fuseblk rw,relatime,user_id=0,group_id=0,allow_other,blksize=4096
/dev/sda5 ext4 rw,relatime
/dev/sdb2 iso9660 ro,nosuid,nodev,relatime,nojoliet,check=s,map=n,blocksize=2048
===================== sda1/efi/ubuntu/grub.cfg (filtered) ======================
search.fs_uuid 4ce76eb0-cbe6-4ab4-a256-f8b1e6f55483 root hd0,gpt5
set prefix=($root)'/boot/grub'
configfile $prefix/grub.cfg
====================== sda5/boot/grub/grub.cfg (filtered) ======================
Ubuntu 4ce76eb0-cbe6-4ab4-a256-f8b1e6f55483
Ubuntu, avec Linux 5.4.0-132-generic 4ce76eb0-cbe6-4ab4-a256-f8b1e6f55483
Ubuntu, avec Linux 5.4.0-131-generic 4ce76eb0-cbe6-4ab4-a256-f8b1e6f55483
Windows Boot Manager (sur sda1) osprober-efi-243C-CB0B
### 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=4ce76eb0-cbe6-4ab4-a256-f8b1e6f55483 / ext4 errors=remount-ro 0 1
# /boot/efi was on /dev/sda1 during installation
UUID=243C-CB0B /boot/efi vfat umask=0077 0 1
/swapfile none swap sw 0 0
======================= sda5/etc/default/grub (filtered) =======================
GRUB_DEFAULT=0
GRUB_TIMEOUT_STYLE=menu
GRUB_TIMEOUT=10
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)
394.186634064 = 423.254675456 boot/grub/grub.cfg 2
320.957065582 = 344.625025024 boot/vmlinuz 1
224.363311768 = 240.908271616 boot/vmlinuz-5.4.0-131-generic 2
320.957065582 = 344.625025024 boot/vmlinuz-5.4.0-132-generic 1
224.363311768 = 240.908271616 boot/vmlinuz.old 2
322.774753571 = 346.576752640 boot/initrd.img 5
346.735691071 = 372.304613376 boot/initrd.img-5.4.0-131-generic 1
322.774753571 = 346.576752640 boot/initrd.img-5.4.0-132-generic 5
346.735691071 = 372.304613376 boot/initrd.img.old 1
===================== sda5: ls -l /etc/grub.d/ (filtered) ======================
-rwxr-xr-x 1 root root 18224 Jan 11 2022 10_linux
-rwxr-xr-x 1 root root 42359 Jan 13 2021 10_linux_zfs
-rwxr-xr-x 1 root root 12894 Jan 13 2021 20_linux_xen
-rwxr-xr-x 1 root root 12059 Jan 13 2021 30_os-prober
-rwxr-xr-x 1 root root 1424 Jan 13 2021 30_uefi-firmware
-rwxr-xr-x 1 root root 700 Feb 21 2022 35_fwupd
-rwxr-xr-x 1 root root 214 Jan 13 2021 40_custom
-rwxr-xr-x 1 root root 216 Jan 13 2021 41_custom
=========================== sda5/etc/grub.d/35_fwupd ===========================
#! /bin/sh
# SPDX-License-Identifier: LGPL-2.1+
set -e
[ -d ${pkgdatadir:?} ]
# shellcheck source=/dev/null
. "$pkgdatadir/grub-mkconfig_lib"
if [ -f /var/lib/fwupd/uefi_capsule.conf ] &&
ls /sys/firmware/efi/efivars/fwupd-*-0abba7dc-e516-4167-bbf5-4d9d1c739416 1>/dev/null 2>&1; then
. /var/lib/fwupd/uefi_capsule.conf
if [ "${EFI_PATH}" != "" ] && [ "${ESP}" != "" ]; then
echo "Adding Linux Firmware Updater entry" >&2
cat << EOF
menuentry 'Linux Firmware Updater' \$menuentry_id_option 'fwupd' {
EOF
${grub_probe:?}
prepare_grub_to_access_device '`${grub_probe} --target=device \${ESP}` | sed -e "s/^/\t/"'
cat << EOF
chainloader ${EFI_PATH}
}
EOF
fi
fi
====================== sdb2/boot/grub/grub.cfg (filtered) ======================
==================== sdb2: Location of files loaded by Grub ====================
GiB - GB File Fragment(s)
?? = ?? boot/grub/grub.cfg 1
Suggested repair: ______________________________________________________________
The default repair of the Boot-Repair utility would reinstall the grub-efi 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 Ubuntu 20.04.5 LTS entry (sda1/efi/****/grub****.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\****\grub****.efi (**** will be updated in the final message)
2/ Boot info après réparation : https://paste.ubuntu.com/p/zmnWj8cC5p/
boot-repair-4ppa200 [20221123_2232]
============================= Boot Repair Summary ==============================
Recommended repair: ____________________________________________________________
The default repair of the Boot-Repair utility will reinstall the grub-efi of
sda5,
using the following options: sda1/boot/efi
Additional repair will be performed: unhide-bootmenu-10s use-standard-efi-file restore-efi-backups
rm /mnt/boot-sav/sda1/efi/Boot/bootx64.efi
mv /mnt/boot-sav/sda1/efi/Boot/bkpbootx64.efi /mnt/boot-sav/sda1/efi/Boot/bootx64.efi
Mount sda1 on /mnt/boot-sav/sda5/boot/efi
Unhide GRUB boot menu in sda5/etc/default/grub
======================== Reinstall the grub-efi of sda5 ========================
chroot /mnt/boot-sav/sda5 grub-install --version
grub-install (GRUB) 2.04-1ubuntu26.15
modprobe: FATAL: Module efivars not found in directory /lib/modules/5.3.0-28-generic
chroot /mnt/boot-sav/sda5 modprobe efivars
chroot /mnt/boot-sav/sda5 efibootmgr -v before grub install
BootCurrent: 0005
Timeout: 0 seconds
BootOrder: 2001,0004,0001,0000,2003,2002
Boot0000* Ubuntu HD(1,GPT,0598448d-1111-4b2e-b723-960dd2671671,0x800,0x32000)/File(EFIubuntugrubx64.efi)RC
Boot0001* ubuntu HD(1,GPT,0598448d-1111-4b2e-b723-960dd2671671,0x800,0x32000)/File(EFIubuntushimx64.efi)
Boot0002* EFI Network 0 for IPv6 (0C-54-A5-42-E5-77) PciRoot(0x0)/Pci(0x1c,0x2)/Pci(0x0,0x0)/MAC(0c54a542e577,0)/IPv6([::]:<->[::]:,0,0)RC
Boot0003* EFI Network 0 for IPv4 (0C-54-A5-42-E5-77) PciRoot(0x0)/Pci(0x1c,0x2)/Pci(0x0,0x0)/MAC(0c54a542e577,0)/IPv4(0.0.0.00.0.0.0,0,0)RC
Boot0004* Windows Boot Manager HD(1,GPT,0598448d-1111-4b2e-b723-960dd2671671,0x800,0x32000)/File(EFIMicrosoftBootbootmgfw.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.}...a................
Boot0005* EFI USB Device (USB DISK 2.0) PciRoot(0x0)/Pci(0x1d,0x0)/USB(0,0)/USB(1,0)/HD(2,MBR,0x4b26eab,0x1cdc000,0x10000)RC
Boot2001* EFI USB Device RC
Boot2002* EFI DVD/CDROM RC
Boot2003* EFI Network RC
chroot /mnt/boot-sav/sda5 uname -r
5.3.0-28-generic
chroot /mnt/boot-sav/sda5 grub-install --efi-directory=/boot/efi --target=x86_64-efi
Installing for x86_64-efi platform.
Installation finished. No error reported.
df /dev/sda1
mv /mnt/boot-sav/sda5/boot/efi/EFI/Boot/bootx64.efi /mnt/boot-sav/sda5/boot/efi/EFI/Boot/bkpbootx64.efi
cp /mnt/boot-sav/sda5/boot/efi/efi/ubuntu/grubx64.efi /mnt/boot-sav/sda5/boot/efi/EFI/Boot/bootx64.efi
chroot /mnt/boot-sav/sda5 grub-install --efi-directory=/boot/efi --target=x86_64-efi
Installing for x86_64-efi platform.
Installation finished. No error reported.
chroot /mnt/boot-sav/sda5 efibootmgr -v after grub install
BootCurrent: 0005
Timeout: 0 seconds
BootOrder: 0000,2001,0004,2003,2002
Boot0000* ubuntu HD(1,GPT,0598448d-1111-4b2e-b723-960dd2671671,0x800,0x32000)/File(EFIubuntushimx64.efi)
Boot0002* EFI Network 0 for IPv6 (0C-54-A5-42-E5-77) PciRoot(0x0)/Pci(0x1c,0x2)/Pci(0x0,0x0)/MAC(0c54a542e577,0)/IPv6([::]:<->[::]:,0,0)RC
Boot0003* EFI Network 0 for IPv4 (0C-54-A5-42-E5-77) PciRoot(0x0)/Pci(0x1c,0x2)/Pci(0x0,0x0)/MAC(0c54a542e577,0)/IPv4(0.0.0.00.0.0.0,0,0)RC
Boot0004* Windows Boot Manager HD(1,GPT,0598448d-1111-4b2e-b723-960dd2671671,0x800,0x32000)/File(EFIMicrosoftBootbootmgfw.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.}...a................
Boot0005* EFI USB Device (USB DISK 2.0) PciRoot(0x0)/Pci(0x1d,0x0)/USB(0,0)/USB(1,0)/HD(2,MBR,0x4b26eab,0x1cdc000,0x10000)RC
Boot2001* EFI USB Device RC
Boot2002* EFI DVD/CDROM RC
Boot2003* EFI Network RC
chroot /mnt/boot-sav/sda5 update-grub
Sourcing file `/etc/default/grub'
Sourcing file `/etc/default/grub.d/init-select.cfg'
Generating grub configuration file ...
Found linux image: /boot/vmlinuz-5.4.0-132-generic
Found initrd image: /boot/initrd.img-5.4.0-132-generic
Found linux image: /boot/vmlinuz-5.4.0-131-generic
Found initrd image: /boot/initrd.img-5.4.0-131-generic
grub-probe: error: cannot find a GRUB drive for /dev/sdb2. Check your device.map.
Found Windows Boot Manager on /dev/sda1@/EFI/Microsoft/Boot/bootmgfw.efi
Adding boot menu entry for UEFI Firmware Settings
Unhide GRUB boot menu in sda5/boot/grub/grub.cfg
Boot successfully repaired.
You can now reboot your computer.
Please do not forget to make your UEFI firmware boot on the Ubuntu 20.04.5 LTS entry (sda1/efi/ubuntu/grubx64.efi 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\ubuntu\grubx64.efi
============================ Boot Info After Repair ============================
=> 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 (,2)/grub. It also embeds following components:
modules
---------------------------------------------------------------------------
offsetio extcmd macho elf file setkey gettext boot bufio verifiers crypto
terminal normal datetime date mmap drivemap blocklist regexp archelp newc
vga_text relocator video chain ntldr search_label search_fs_file
search_fs_uuid search keylayouts at_keyboard pci usb usb_keyboard gcry_md5
hashsum gcry_crc gzio xzio lzopio lspci fshelp ext2 xfs acpi iso9660
gcry_sha1 div udf exfat font diskfilter raid6rec zstd btrfs ventoy read
halt video_fb vbe linux linux16 test true sleep reboot echo bitmap
bitmap_scale gfxterm video_colors trig gfxmenu videotest videoinfo
functional_test videotest_checksum video_cirrus video_bochs vga minicmd
help configfile tr biosdisk disk ls tar squash4 pbkdf2 gcry_sha512
password_pbkdf2 all_video png jpeg part_gpt part_msdos fat ntfs loopback
gfxterm_background procfs gfxterm_menu
---------------------------------------------------------------------------
sda1: __________________________________________________________________________
File system: vfat
Boot sector type: Windows 8/10/11/2012: FAT32
Boot sector info: No errors found in the Boot Parameter Block.
Operating System:
Boot files: /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
sda2: __________________________________________________________________________
File system:
Boot sector type: -
Boot sector info:
sda3: __________________________________________________________________________
File system: ntfs
Boot sector type: Windows 8/10/11/2012: NTFS
Boot sector info: No errors found in the Boot Parameter Block.
Operating System: Windows 10 or 11
Boot files: /bootmgr /Windows/System32/winload.exe
sda4: __________________________________________________________________________
File system: ntfs
Boot sector type: Windows 8/10/11/2012: NTFS
Boot sector info: No errors found in the Boot Parameter Block.
Operating System:
Boot files:
sda5: __________________________________________________________________________
File system: ext4
Boot sector type: -
Boot sector info:
Operating System: Ubuntu 20.04.5 LTS
Boot files: /boot/grub/grub.cfg /etc/fstab /etc/default/grub
sdb1: __________________________________________________________________________
File system: exfat
Boot sector type: -
Boot sector info:
Mounting failed: fuse: mount failed: Device or resource busy
sdb2: __________________________________________________________________________
File system: iso9660
Boot sector type: Unknown
Boot sector info:
Operating System:
Boot files: /boot/grub/grub.cfg
================================ 2 OS detected =================================
OS#1: Ubuntu 20.04.5 LTS on sda5
OS#2: Windows 10 or 11 on sda3
================================ Host/Hardware =================================
CPU architecture: 64-bit
Video: 3rd Gen Core processor Graphics Controller from Intel Corporation
Live-session OS is Ubuntu 64-bit (Boot-Repair-Disk 64bit 20200604, bionic, x86_64)
===================================== UEFI =====================================
BIOS/UEFI firmware: 1.20 from Insyde Corp.
The firmware is EFI-compatible, and is set in EFI-mode for this live-session.
SecureBoot disabled - SecureBoot disabled - Please report this message to boot.repair@gmail.com.
BootCurrent: 0005
Timeout: 0 seconds
BootOrder: 0000,2001,0004,2003,2002
Boot0000* ubuntu HD(1,GPT,0598448d-1111-4b2e-b723-960dd2671671,0x800,0x32000)/File(\EFI\ubuntu\shimx64.efi)
Boot0001
728124f6ec8e22fbdbe7034812c81b95 sda1/Boot/bkpbootx64.efi
728124f6ec8e22fbdbe7034812c81b95 sda1/Boot/bootx64.efi
85fa9d77b929ec4231aba29476574eb6 sda1/Boot/fbx64.efi
51cfb66bc06dfbc97be2a010ebef52f3 sda1/Boot/grubx64.efi
469e608783843a701d172242f016c79c sda1/Boot/mmx64.efi
51cfb66bc06dfbc97be2a010ebef52f3 sda1/ubuntu/grubx64.efi
469e608783843a701d172242f016c79c sda1/ubuntu/mmx64.efi
728124f6ec8e22fbdbe7034812c81b95 sda1/ubuntu/shimx64.efi
d1f6c29ed98f2a8102fd87c118371e0b sda1/Microsoft/Boot/bootmgfw.efi
85b10a5efd8419adc616cb2a5a70db30 sda1/Microsoft/Boot/bootmgr.efi
============================= Drive/Partition Info =============================
Disks info: ____________________________________________________________________
sda : is-GPT, no-BIOSboot, has---ESP, not-usb, not-mmc, has-os, has-win, 2048 sectors * 512 bytes
Partitions info (1/3): _________________________________________________________
sda1 : no-os, 32, nopakmgr, no-docgrub, nogrub, nogrubinstall, no-grubenv, noupdategrub, not-far
sda3 : is-os, 32, nopakmgr, no-docgrub, nogrub, nogrubinstall, no-grubenv, noupdategrub, farbios
sda4 : no-os, 32, nopakmgr, no-docgrub, nogrub, nogrubinstall, no-grubenv, noupdategrub, farbios
sda5 : is-os, 64, apt-get, signed grub-pc grub-efi , grub2, grub-install, grubenv-ok, update-grub, farbios
Partitions info (2/3): _________________________________________________________
sda1 : is---ESP, part-has-no-fstab, no-nt, no-winload, no-recov-nor-hid, no-bmgr, notwinboot
sda3 : isnotESP, part-has-no-fstab, no-nt, haswinload, no-recov-nor-hid, bootmgr, notwinboot
sda4 : isnotESP, part-has-no-fstab, no-nt, no-winload, recovery-or-hidden, no-bmgr, notwinboot
sda5 : isnotESP, fstab-has-goodEFI, no-nt, no-winload, no-recov-nor-hid, no-bmgr, notwinboot
Partitions info (3/3): _________________________________________________________
sda1 : not--sepboot, no---boot, part-has-no-fstab, not-sep-usr, no---usr, part-has-no-fstab, no--grub.d, sda
sda3 : not--sepboot, no---boot, part-has-no-fstab, not-sep-usr, no---usr, part-has-no-fstab, no--grub.d, sda
sda4 : not--sepboot, no---boot, part-has-no-fstab, not-sep-usr, no---usr, part-has-no-fstab, no--grub.d, sda
sda5 : not--sepboot, with-boot, fstab-without-boot, not-sep-usr, with--usr, fstab-without-usr, std-grub.d, sda
fdisk -l (filtered): ___________________________________________________________
Disk sda: 465.8 GiB, 500107862016 bytes, 976773168 sectors
Disk identifier: F107CCBF-DEB6-4C08-98AB-9281F1F0A855
Start End Sectors Size Type
sda1 2048 206847 204800 100M EFI System
sda2 206848 239615 32768 16M Microsoft reserved
sda3 239616 396654277 396414662 189G Microsoft basic data
sda4 975427584 976769023 1341440 655M Windows recovery environment
sda5 396654592 975427583 578772992 276G Linux filesystem
Partition table entries are not in disk order.
Disk sdb: 14.5 GiB, 15527313408 bytes, 30326784 sectors
Disk identifier: 0x04b26eab
Boot Start End Sectors Size Id Type
sdb1 * 2048 30261247 30259200 14.4G 7 HPFS/NTFS/exFAT
sdb2 30261248 30326783 65536 32M ef EFI (FAT-12/16/32)
Disk dm-0: 880 MiB, 922746880 bytes, 1802240 sectors
Disk identifier: 0x2c534026
Boot Start End Sectors Size Id Type
dm-0p1 * 0 1802239 1802240 880M 0 Empty
dm-0p2 964 5891 4928 2.4M ef EFI (FAT-12/16/32)
Disk zram0: 952.6 MiB, 998821888 bytes, 243853 sectors
Disk zram1: 952.6 MiB, 998821888 bytes, 243853 sectors
parted -lm (filtered): _________________________________________________________
sda:500GB:scsi:512:512:gpt:ATA TOSHIBA MQ01ABF0:;
1:1049kB:106MB:105MB:fat32:EFI system partition:boot, esp;
2:106MB:123MB:16.8MB::Microsoft reserved partition:msftres;
3:123MB:203GB:203GB:ntfs:Basic data partition:msftdata;
5:203GB:499GB:296GB:ext4::;
4:499GB:500GB:687MB:ntfs::hidden, diag;
sdb:15.5GB:scsi:512:512:msdos: USB DISK 2.0:;
1:1049kB:15.5GB:15.5GB:::boot;
2:15.5GB:15.5GB:33.6MB:fat16::esp;
blkid (filtered): ______________________________________________________________
NAME FSTYPE UUID PARTUUID LABEL PARTLABEL
sda
├─sda1 vfat 243C-CB0B 0598448d-1111-4b2e-b723-960dd2671671 EFI system partition
├─sda2 61ddf36b-e612-4d6a-bf24-1ccdbd1fda89 Microsoft reserved partition
├─sda3 ntfs ACE041D4E041A584 3df76230-bd0a-4cf9-88d0-e5eb665c56d5 Basic data partition
├─sda4 ntfs 1818A16A18A14798 2fe21094-9f38-4819-96ca-302739cd0c9a
└─sda5 ext4 4ce76eb0-cbe6-4ab4-a256-f8b1e6f55483 697275a6-13bc-47c6-85f0-f59ef2e639d5
sdb
├─sdb1 exfat EF30-F2F9 04b26eab-01 Ventoy
└─sdb2 iso9660 2020-06-13-00-42-55-00 Boot-Repair-Disk 64bit
Mount points (filtered): _______________________________________________________
Avail Use% Mounted on
/dev/mapper/ventoy 0 100% /cdrom
/dev/sda1 63.2M 34% /mnt/boot-sav/sda1
/dev/sda3 36.1G 81% /mnt/boot-sav/sda3
/dev/sda4 87.5M 87% /mnt/boot-sav/sda4
/dev/sda5 108.4G 55% /mnt/boot-sav/sda5
/dev/sdb2 0 100% /media/lubuntu/Boot-Repair-Disk 64bit
Mount options (filtered): ______________________________________________________
/dev/mapper/ventoy iso9660 ro,noatime,nojoliet,check=s,map=n,blocksize=2048
/dev/sda1 vfat rw,relatime,fmask=0022,dmask=0022,codepage=437,iocharset=iso8859-1,shortname=mixed,errors=remount-ro
/dev/sda3 fuseblk rw,relatime,user_id=0,group_id=0,allow_other,blksize=4096
/dev/sda4 fuseblk rw,relatime,user_id=0,group_id=0,allow_other,blksize=4096
/dev/sda5 ext4 rw,relatime
/dev/sdb2 iso9660 ro,nosuid,nodev,relatime,nojoliet,check=s,map=n,blocksize=2048
===================== sda1/efi/ubuntu/grub.cfg (filtered) ======================
search.fs_uuid 4ce76eb0-cbe6-4ab4-a256-f8b1e6f55483 root hd0,gpt5
set prefix=($root)'/boot/grub'
configfile $prefix/grub.cfg
====================== sda5/boot/grub/grub.cfg (filtered) ======================
Ubuntu 4ce76eb0-cbe6-4ab4-a256-f8b1e6f55483
Ubuntu, with Linux 5.4.0-132-generic 4ce76eb0-cbe6-4ab4-a256-f8b1e6f55483
Ubuntu, with Linux 5.4.0-131-generic 4ce76eb0-cbe6-4ab4-a256-f8b1e6f55483
Windows Boot Manager (on sda1) osprober-efi-243C-CB0B
### 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=4ce76eb0-cbe6-4ab4-a256-f8b1e6f55483 / ext4 errors=remount-ro 0 1
# /boot/efi was on /dev/sda1 during installation
/swapfile none swap sw 0 0
UUID=243C-CB0B /boot/efi vfat defaults 0 1
======================= sda5/etc/default/grub (filtered) =======================
GRUB_DEFAULT=0
GRUB_TIMEOUT_STYLE=menu
GRUB_TIMEOUT=10
GRUB_DISTRIBUTOR=`lsb_release -i -s 2> /dev/null || echo Debian`
GRUB_CMDLINE_LINUX_DEFAULT="quiet splash"
GRUB_CMDLINE_LINUX=""
GRUB_DISABLE_OS_PROBER=false
==================== sda5: Location of files loaded by Grub ====================
GiB - GB File Fragment(s)
189.139656067 = 203.087159296 boot/grub/grub.cfg 1
320.957065582 = 344.625025024 boot/vmlinuz 1
224.363311768 = 240.908271616 boot/vmlinuz-5.4.0-131-generic 2
320.957065582 = 344.625025024 boot/vmlinuz-5.4.0-132-generic 1
224.363311768 = 240.908271616 boot/vmlinuz.old 2
322.774753571 = 346.576752640 boot/initrd.img 5
346.735691071 = 372.304613376 boot/initrd.img-5.4.0-131-generic 1
322.774753571 = 346.576752640 boot/initrd.img-5.4.0-132-generic 5
346.735691071 = 372.304613376 boot/initrd.img.old 1
===================== sda5: ls -l /etc/grub.d/ (filtered) ======================
-rwxr-xr-x 1 root root 18224 Jan 11 2022 10_linux
-rwxr-xr-x 1 root root 42359 Jan 13 2021 10_linux_zfs
-rwxr-xr-x 1 root root 12894 Jan 13 2021 20_linux_xen
-rwxr-xr-x 1 root root 12059 Jan 13 2021 30_os-prober
-rwxr-xr-x 1 root root 1424 Jan 13 2021 30_uefi-firmware
-rwxr-xr-x 1 root root 700 Feb 21 2022 35_fwupd
-rwxr-xr-x 1 root root 214 Jan 13 2021 40_custom
-rwxr-xr-x 1 root root 216 Jan 13 2021 41_custom
=========================== sda5/etc/grub.d/35_fwupd ===========================
#! /bin/sh
# SPDX-License-Identifier: LGPL-2.1+
set -e
[ -d ${pkgdatadir:?} ]
# shellcheck source=/dev/null
. "$pkgdatadir/grub-mkconfig_lib"
if [ -f /var/lib/fwupd/uefi_capsule.conf ] &&
ls /sys/firmware/efi/efivars/fwupd-*-0abba7dc-e516-4167-bbf5-4d9d1c739416 1>/dev/null 2>&1; then
. /var/lib/fwupd/uefi_capsule.conf
if [ "${EFI_PATH}" != "" ] && [ "${ESP}" != "" ]; then
echo "Adding Linux Firmware Updater entry" >&2
cat << EOF
menuentry 'Linux Firmware Updater' \$menuentry_id_option 'fwupd' {
EOF
${grub_probe:?}
prepare_grub_to_access_device '`${grub_probe} --target=device \${ESP}` | sed -e "s/^/\t/"'
cat << EOF
chainloader ${EFI_PATH}
}
EOF
fi
fi
====================== sdb2/boot/grub/grub.cfg (filtered) ======================
==================== sdb2: Location of files loaded by Grub ====================
GiB - GB File Fragment(s)
?? = ?? boot/grub/grub.cfg 1
Dernière modification par lool_lauris (Le 24/11/2022, à 01:19)
Soutenez le Libre => http://www.april.org/
Hors ligne
#2 Le 24/11/2022, à 00:51
- f.x0
Re : Grub n'apparaît plus - win10 + xubuntu 20.04 [RÉSOLU]
Bonjour lool_lauris,
As-tu essayé ce qui indiqué après boot-repair ?
Please do not forget to make your UEFI firmware boot on the Ubuntu 20.04.5 LTS entry (sda1/efi/ubuntu/grubx64.efi 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\ubuntu\grubx64.efi
Ce qui donne ~ en français
N'oubliez pas de faire démarrer votre firmware UEFI sur l'entrée Ubuntu 20.04.5 LTS (fichier sda1/efi/ubuntu/grubx64.efi) !
Si votre ordinateur redémarre directement dans Windows, essayez de changer l'ordre de démarrage dans votre firmware UEFI.
Si votre firmware UEFI ne permet pas de changer l'ordre de démarrage, changez l'entrée de démarrage par défaut du chargeur de démarrage Windows.
Par exemple, vous pouvez démarrer dans Windows, puis taper la commande suivante dans une invite de commande administrateur :
bcdedit /set {bootmgr} path \EFI\ubuntu\grubx64.efi
SOPI
Hors ligne
#3 Le 24/11/2022, à 00:55
- geole
Re : Grub n'apparaît plus - win10 + xubuntu 20.04 [RÉSOLU]
Bonsoir.
Windows a certainement fait une mise à jour de sa structure de boot.
tente la réparation de dernière chance
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\ubuntu\grubx64.efi
Ne pas oublier d'être en mode administratif.
La bonne écriture est certainement devenue.
bcdedit /set '{bootmgr}' path '\EFI\ubuntu\grubx64.efi'
Les grilles de l'installateur https://doc.ubuntu-fr.org/tutoriel/inst … _subiquity
"gedit admin:///etc/fstab" est proscrit, utilisez "pkexec env DISPLAY=$DISPLAY XAUTHORITY=$XAUTHORITY xdg-open /etc/fstab" Voir https://doc.ubuntu-fr.org/gedit
Les partitions EXT4 des disques externes => https://forum.ubuntu-fr.org/viewtopic.p … #p22697248
Hors ligne
#4 Le 24/11/2022, à 00:57
- lool_lauris
Re : Grub n'apparaît plus - win10 + xubuntu 20.04 [RÉSOLU]
@ f.x0 :
J'ai bien vu ce message en fin de réparation mais je n'ai pas compris ce qu'il fallait faire... ou plutôt, je ne vois pas où faire cette déclaration !?
EDIT : je parlais de ceci :
Please do not forget to make your UEFI firmware boot on the Ubuntu 20.04.5 LTS entry (sda1/efi/ubuntu/grubx64.efi file) !
Dernière modification par lool_lauris (Le 24/11/2022, à 01:03)
Soutenez le Libre => http://www.april.org/
Hors ligne
#5 Le 24/11/2022, à 01:18
- lool_lauris
Re : Grub n'apparaît plus - win10 + xubuntu 20.04 [RÉSOLU]
La bonne commande est :
bcdedit /set {bootmgr} path \EFI\ubuntu\grubx64.efi
celle avec les ' n'est pas reconnue.
Merci pour vos infos.
Soutenez le Libre => http://www.april.org/
Hors ligne
#6 Le 24/11/2022, à 01:29
- f.x0
Re : Grub n'apparaît plus - win10 + xubuntu 20.04 [RÉSOLU]
C'est ok maintenant ?
SOPI
Hors ligne
#7 Le 24/11/2022, à 09:34
- lool_lauris
Re : Grub n'apparaît plus - win10 + xubuntu 20.04 [RÉSOLU]
Oui oui, c'est OK.
Je n'ai peut-être pas été assez précis dans mon précédent message.
Merci bien, ça fonctionne correctement.
Bonne journée.
Soutenez le Libre => http://www.april.org/
Hors ligne
#8 Le 24/11/2022, à 09:49
- malbo
Re : Grub n'apparaît plus - win10 + xubuntu 20.04 [RÉSOLU]
Bonjour,
Pourrais-tu donner le retour complet de la commande :
efibootmgr -v
Afin qu'on puisse voir ce que ça donne ?
Hors ligne
#9 Le 24/11/2022, à 12:47
- lool_lauris
Re : Grub n'apparaît plus - win10 + xubuntu 20.04 [RÉSOLU]
Désolé malbo, le propriétaire du PC a repris sa machine...
Tu penses qu'il peut y avoir un problème résident ? Je ne suis pas sûr de pouvoir récupérer facilement la machine...
Soutenez le Libre => http://www.april.org/
Hors ligne
#10 Le 24/11/2022, à 17:24
- malbo
Re : Grub n'apparaît plus - win10 + xubuntu 20.04 [RÉSOLU]
Tu penses qu'il peut y avoir un problème résident ?
Non, pas de problème. Je demandais ça par curiosité.
D'autre part, comme geole l'a signalé plus haut, le problème devait être dû à une mise à jour de Windows. Donc si ça se reproduit que le démarrage par défaut se fasse sur Windows, il faudra refaire la manip avec bcdedit.
Hors ligne