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 10/12/2023, à 20:03

chamalow

[Résolu] Grub perdu

Bonjour

Sur mon Laptop HP, j'ai Ubuntu 22.04 installé, qui fonctionne très bien. J'ai voulu installer Windows 11 et j'ai, via Gparted, réduit la partition Ubuntu de manière à pouvoir installer Windows 11. Tout s'est parfairement déroulé, sauf que...
Au démarrage, l'ordinateur démarre directement sur Windows. Je suis allé dans le Bios et j'ai modifié l'ordre de démarrage, afin de sélectionner Ubuntu en premier. Tout fonctionne et Ubuntu démarre désormais automatiquement. Si, au démarrage, j'appuie sur F9, je peux sélectionner Ubuntu ou Windows et tout fonctionne également très bien, sauf que...

J'aimerais bien retrouver Grub au démarrage, de manière à pouvoir sélectionner l'OS que je veux sans avoir à appuyer sur F9.

Je joins l'URL de mon boot-info que j'ai obtenue en démarrant sur une live USB de la version 22.04: https://paste.ubuntu.com/p/r24b8TdWGm/

Si quelqu'un peut m'aider à retrouver Grub...

Je vous remercie par avance

Dernière modification par chamalow (Le 10/12/2023, à 22:03)

Hors ligne

#2 Le 10/12/2023, à 20:39

iznobe

Re : [Résolu] Grub perdu

Bonjour , il faut lancer boot-repair et demander de lancer la repartion recommandéée a partir d' une session live .

Windobz ( et ceux qui le develloppe surtout ) , il s' en bat l' oeuf des autres , il a tout simplement viré GRUB .




C ' est la meme problematique que dans cette discussion : https://forum.ubuntu-fr.org/viewtopic.php?id=2082569

Dernière modification par iznobe (Le 10/12/2023, à 20:43)


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

En ligne

#3 Le 10/12/2023, à 20:41

xubu1957

Re : [Résolu] Grub perdu

Bonjour,

Collage du Boot-info, pour les spécialistes :

boot-info-4ppa2059                                              [20231210_1748]

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

 => No boot loader is installed in the MBR of /dev/nvme0n1.

nvme0n1p1: _____________________________________________________________________

    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 
                       /efi/HP/BIOSUpdate/BiosMgmt32.efi 
                       /efi/HP/BIOSUpdate/BiosMgmt.efi 
                       /efi/HP/BIOSUpdate/CryptRSA32.efi 
                       /efi/HP/BIOSUpdate/CryptRSA.efi 
                       /efi/HP/BIOSUpdate/HpBiosMgmt.efi 
                       /efi/HP/BIOSUpdate/HpBiosUpdate32.efi 
                       /efi/HP/BIOSUpdate/HpBiosUpdate.efi 
                       /efi/Microsoft/Boot/bootmgfw.efi 
                       /efi/Microsoft/Boot/bootmgr.efi

nvme0n1p2: _____________________________________________________________________

    File system:       ext4
    Boot sector type:  -
    Boot sector info: 
    Operating System:  Ubuntu 22.04.3 LTS
    Boot files:        /boot/grub/grub.cfg /etc/fstab /etc/default/grub

nvme0n1p3: _____________________________________________________________________

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

nvme0n1p4: _____________________________________________________________________

    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 8 or 10
    Boot files:        /Windows/System32/winload.exe

sda: ___________________________________________________________________________

    File system:       iso9660
    Boot sector type:  Grub2 (v1.99-2.00)
    Boot sector info:  Grub2 (v1.99-2.00) is installed in the boot sector of 
                       sda and looks at sector 0 of the same hard drive for 
                       core.img, but core.img can not be found at this 
                       location.
    Mounting failed:   mount: /mnt/BootInfo/FD/sda: /dev/sda déjà monté ou point de montage actif.


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

OS#1:   Ubuntu 22.04.3 LTS on nvme0n1p2
OS#2:   Windows 8 or 10 on nvme0n1p4

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

CPU architecture: 64-bit
Video: TigerLake-LP GT2 [Iris Xe Graphics] from Intel Corporation
Live-session OS is Ubuntu 64-bit (Ubuntu 22.04 LTS, jammy, x86_64)

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

BIOS/UEFI firmware: F.27(15.27) from AMI
The firmware is EFI-compatible, and is set in EFI-mode for this live-session.
SecureBoot disabled (confirmed by mokutil).
BootCurrent: 0003
Timeout: 0 seconds
BootOrder: 0003,0000,0001,0002
Boot0000* ubuntu	HD(1,GPT,e80860e1-96ce-41e7-8db5-6a674771d679,0x800,0x100000)/File(\EFI\ubuntu\shimx64.efi)
Boot0001* Windows Boot Manager	HD(1,GPT,e80860e1-96ce-41e7-8db5-6a674771d679,0x800,0x100000)/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................
Boot0002* Internal Hard Disk	PciRoot(0x0)/Pci(0xe,0x0)/NVMe(0x1,00-25-38-A4-11-C8-41-61)/HD(1,GPT,e80860e1-96ce-41e7-8db5-6a674771d679,0x800,0x100000)..BO
Boot0003* USB Drive (UEFI) - JetFlashTranscend 4GB 8.07	PciRoot(0x0)/Pci(0x14,0x0)/USB(1,0)/HD(2,GPT,a09db2b8-b5f6-43ae-afb1-91e0a90189a1,0x6cc954,0x2130)..BO

a9c517741ac31962d7feb152948ad1ee   nvme0n1p1/BOOT/fbx64.efi
a660182adef313615746a665966d2ccc   nvme0n1p1/BOOT/mmx64.efi
a1da253696a304dce6b4668b70151c0e   nvme0n1p1/ubuntu/grubx64.efi
a660182adef313615746a665966d2ccc   nvme0n1p1/ubuntu/mmx64.efi
64349b3622c65f495a99dbf6102496e3   nvme0n1p1/ubuntu/shimx64.efi
2c00d2225d10820a2b8fe32bd9dccbc7   nvme0n1p1/HP/BIOSUpdate/BiosMgmt32.efi
09a4d4a2f9d161cf7a23755439eed58d   nvme0n1p1/HP/BIOSUpdate/BiosMgmt.efi
1b8c0684ede8539ccc205cf7a750eca3   nvme0n1p1/HP/BIOSUpdate/CryptRSA32.efi
6488d391f74263c9da3c3d47dffa6212   nvme0n1p1/HP/BIOSUpdate/CryptRSA.efi
f1da416271b4843f519102cb1e0bc46e   nvme0n1p1/HP/BIOSUpdate/HpBiosMgmt.efi
57df6fc43cef8f70afbc26411d58f6c7   nvme0n1p1/HP/BIOSUpdate/HpBiosUpdate32.efi
165f37486045a66fde96743e1f5780c6   nvme0n1p1/HP/BIOSUpdate/HpBiosUpdate.efi
2a3bd52fec672a1f1364ca9b41553f4d   nvme0n1p1/Microsoft/Boot/bootmgfw.efi
219a45fc0b91c22521a72dffdcbac5d4   nvme0n1p1/Microsoft/Boot/bootmgr.efi
64349b3622c65f495a99dbf6102496e3   nvme0n1p1/BOOT/BOOTX64.efi

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

Disks info: ____________________________________________________________________

nvme0n1	: is-GPT,	no-BIOSboot,	has---ESP, 	not-usb,	not-mmc, has-os,	has-win,	2048 sectors * 512 bytes

Partitions info (1/3): _________________________________________________________

nvme0n1p1	: no-os,	64, nopakmgr,	no-docgrub,	nogrub,	nogrubinstall,	no-grubenv,	noupdategrub,	not-far
nvme0n1p2	: is-os,	64, apt-get,	signed grub-pc grub-efi ,	grub2,	grub-install,	grubenv-ok,	update-grub,	end-after-100GB
nvme0n1p4	: is-os,	64, nopakmgr,	no-docgrub,	nogrub,	nogrubinstall,	no-grubenv,	noupdategrub,	end-after-100GB

Partitions info (2/3): _________________________________________________________

nvme0n1p1	: is---ESP,	part-has-no-fstab,	no-nt,	no-winload,	no-recov-nor-hid,	no-bmgr,	notwinboot
nvme0n1p2	: isnotESP,	fstab-has-goodEFI,	no-nt,	no-winload,	no-recov-nor-hid,	no-bmgr,	notwinboot
nvme0n1p4	: isnotESP,	part-has-no-fstab,	no-nt,	haswinload,	no-recov-nor-hid,	no-bmgr,	notwinboot

Partitions info (3/3): _________________________________________________________

nvme0n1p1	: not--sepboot,	no---boot,	part-has-no-fstab,	not-sep-usr,	no---usr,	part-has-no-fstab,	no--grub.d,	nvme0n1
nvme0n1p2	: not--sepboot,	with-boot,	fstab-without-boot,	not-sep-usr,	with--usr,	fstab-without-usr,	std-grub.d,	nvme0n1
nvme0n1p4	: not--sepboot,	no---boot,	part-has-no-fstab,	not-sep-usr,	no---usr,	part-has-no-fstab,	no--grub.d,	nvme0n1

fdisk -l (filtered): ___________________________________________________________

Disk nvme0n1: 476.94 GiB, 512110190592 bytes, 1000215216 sectors
Disk identifier: 2F73A2E9-9173-4F8D-974D-609EFA11FF1C
              Start        End   Sectors   Size Type
nvme0n1p1      2048    1050623   1048576   512M EFI System
nvme0n1p2   1050624  795414527 794363904 378.8G Linux filesystem
nvme0n1p3 795414528  795447295     32768    16M Microsoft reserved
nvme0n1p4 795447296 1000214527 204767232  97.6G Microsoft basic data
Disk sda: 3.64 GiB, 3904897024 bytes, 7626752 sectors
Disk identifier: A09DB2B8-B5F6-43AE-AFB3-91E0A90189A1
        Start     End Sectors  Size Type
sda1       64 7129427 7129364  3.4G Microsoft basic data
sda2  7129428 7137923    8496  4.1M EFI System
sda3  7137924 7138523     600  300K Microsoft basic data
sda4  7139328 7626688  487361  238M Linux filesystem

parted -lm (filtered): _________________________________________________________

sda:3905MB:scsi:512:512:gpt:JetFlash Transcend 4GB:;
1:32.8kB:3650MB:3650MB::ISO9660:hidden, msftdata;
2:3650MB:3655MB:4350kB::Appended2:boot, esp;
3:3655MB:3655MB:307kB::Gap1:hidden, msftdata;
4:3655MB:3905MB:250MB:ext4::;
nvme0n1:512GB:nvme:512:512:gpt:SAMSUNG MZVLQ512HALU-000H1:;
1:1049kB:538MB:537MB:fat32:EFI System Partition:boot, esp;
2:538MB:407GB:407GB:ext4:Ubuntu:;
3:407GB:407GB:16.8MB::Microsoft reserved partition:msftres;
4:407GB:512GB:105GB:ntfs::msftdata;

blkid (filtered): ______________________________________________________________

NAME        FSTYPE   UUID                                 PARTUUID                             LABEL                  PARTLABEL
sda         iso9660  2022-04-19-10-23-19-00                                                    Ubuntu 22.04 LTS amd64 
├─sda1      iso9660  2022-04-19-10-23-19-00               a09db2b8-b5f6-43ae-afb2-91e0a90189a1 Ubuntu 22.04 LTS amd64 ISO9660
├─sda2      vfat     8D6C-A9F8                            a09db2b8-b5f6-43ae-afb1-91e0a90189a1 ESP                    Appended2
├─sda3                                                    a09db2b8-b5f6-43ae-afb0-91e0a90189a1                        Gap1
└─sda4      ext4     35c15e82-cd1c-4a1d-82d6-201bc81ae354 5e854f76-77d0-744c-a1f5-5a6fb72d76ba writable               
nvme0n1                                                                                                               
├─nvme0n1p1 vfat     364A-9744                            e80860e1-96ce-41e7-8db5-6a674771d679                        EFI System Partition
├─nvme0n1p2 ext4     931a78a2-b57a-4c88-9a80-bb582161d6c8 89cd5654-6842-4dc5-8f1a-968785eef6ce                        Ubuntu
├─nvme0n1p3                                               a12d9f15-c6b0-4e87-8e3a-a01180e60efe                        Microsoft reserved partition
└─nvme0n1p4 ntfs     3CDA37C0DA3774EC                     8e228f3d-6c9f-46b3-8ff6-4f286f2abc36                        Windows

Mount points (filtered): _______________________________________________________

                                                               Avail Use% Mounted on
/dev/disk/by-label/writable[/install-logs-2023-12-10.1/crash] 133.1M  28% /var/crash
/dev/disk/by-label/writable[/install-logs-2023-12-10.1/log]   133.1M  28% /var/log
/dev/nvme0n1p1                                                449.6M  12% /mnt/boot-sav/nvme0n1p1
/dev/nvme0n1p2                                                183.7G  45% /mnt/boot-sav/nvme0n1p2
/dev/nvme0n1p4                                                 53.7G  45% /mnt/boot-sav/nvme0n1p4
/dev/sda1                                                          0 100% /cdrom

Mount options (filtered): ______________________________________________________


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

search.fs_uuid 931a78a2-b57a-4c88-9a80-bb582161d6c8 root 
set prefix=($root)'/boot/grub'
configfile $prefix/grub.cfg

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

Ubuntu   931a78a2-b57a-4c88-9a80-bb582161d6c8
Ubuntu, with Linux 6.2.0-37-generic   931a78a2-b57a-4c88-9a80-bb582161d6c8
Ubuntu, with Linux 6.2.0-36-generic   931a78a2-b57a-4c88-9a80-bb582161d6c8
### END /etc/grub.d/30_os-prober ###
UEFI Firmware Settings   uefi-firmware
### END /etc/grub.d/30_uefi-firmware ###

======================== nvme0n1p2/etc/fstab (filtered) ========================

# <file system> <mount point>   <type>  <options>       <dump>  <pass>
# / was on /dev/nvme0n1p2 during installation
UUID=931a78a2-b57a-4c88-9a80-bb582161d6c8 /               ext4    errors=remount-ro 0       1
# /boot/efi was on /dev/nvme0n1p1 during installation
UUID=364A-9744  /boot/efi       vfat    umask=0077      0       1
/swapfile                                 none            swap    sw              0       0

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

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

           GiB - GB             File                                 Fragment(s)
 335,303813934 = 360,029728768  boot/grub/grub.cfg                             1
 285,138824463 = 306,165481472  boot/vmlinuz                                   1
 288,771636963 = 310,066184192  boot/vmlinuz-6.2.0-36-generic                  1
 285,138824463 = 306,165481472  boot/vmlinuz-6.2.0-37-generic                  1
 288,771636963 = 310,066184192  boot/vmlinuz.old                               1
  19,808876038 = 21,269618688   boot/initrd.img                                1
  16,974987030 = 18,226753536   boot/initrd.img-6.2.0-36-generic               1
  19,808876038 = 21,269618688   boot/initrd.img-6.2.0-37-generic               1
  16,974987030 = 18,226753536   boot/initrd.img.old                            1

=================== nvme0n1p2: 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 14387 Dec 18  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



Suggested repair: ______________________________________________________________

The default repair of the Boot-Repair utility would reinstall the grub-efi of
nvme0n1p2,
using the following options:  nvme0n1p1/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 22.04.3 LTS entry (nvme0n1p1/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)

Conseils pour les nouveaux demandeurs et pas qu'eux
Important : Pensez à passer vos sujets en [Résolu] lorsque ceux-ci le sont, au début du titre en cliquant sur Modifier sous le premier message, et un bref récapitulatif de la solution à la fin de celui-ci. Merci.                   Membre de Linux-Azur

Hors ligne

#4 Le 10/12/2023, à 21:19

nany

Re : [Résolu] Grub perdu

Bonjour,



chamalow a écrit :

J'aimerais bien retrouver Grub au démarrage, de manière à pouvoir sélectionner l'OS que je veux sans avoir à appuyer sur F9.

Il faut ajouter la ligne « GRUB_DISABLE_OS_PROBER=false » au fichier /etc/default/grub par exemple avec cette commande :

sudo sed -i '/GRUB_CMDLINE_LINUX=/a\GRUB_DISABLE_OS_PROBER=false' /etc/default/grub

Puis reconstruire le GRUB :

sudo apdate-grub

Dernière modification par nany (Le 10/12/2023, à 21:20)

Hors ligne

#5 Le 10/12/2023, à 22:02

chamalow

Re : [Résolu] Grub perdu

Merci @nany

Tu as solutionné mon souci et j'ai enfin retrouvé le Grub !  Pour info, j'ai légèrement modifié ta seconde commande et j'ai saisi "sudo update-grub au lieu de sudo aptade-grub". Sans doute une erreur de frappe !!!

Merci également à tous ceux qui ont essayé de m'aider.

Bonne soirée à tous.

Hors ligne

#6 Le 10/12/2023, à 22:04

nany

Re : [Résolu] Grub perdu

chamalow a écrit :

Sans doute une erreur de frappe !!!

Oui, en effet. Bien vu !

Hors ligne