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 21/02/2024, à 17:28

PrettyJuice

Grub qui disparait

Bonjour smile ,

Tout d'abord, mon boot-info

Mon PC possède 2 SSD : sda et sdb.

J'ai dans un premier temps installé Windows sur sda.
Ensuite, j'ai installé Linux (Kubuntu 22.04.3) sur une partition sur sdb.

Au démarrage, j'avais bien accès au grub me permettant de faire du multi-boot.

Mais au bout de quelques jours, lors d'un démarrage : plus de grub, mon PC boot automatiquement sur Windows.
Dans les paramètres de priorité de boot dans mon bios, je n'ai plus Linux. J'ai uniquement "Windows Boot Manager".

J'ai alors booté sur une clé live, utilisé Boot Repair : ça n'a pas fonctionné.
J'ai tenté avec des paramètres avancées, purge, etc.. (sans trop savoir ce que je faisais) : ça n'a pas fonctionné.

Je me suis alors résigné à ré-installer Linux, et j'ai retrouvé mon grub.
Mais, cela n'a pas duré longtemps, quelques jours plus tard (aujourd'hui), rebelote !

J'ai de nouveau tenté un Boot Repair, en vain, impossible de booter sur le grub hmm

J'ai fouillé un peu plus profondémment et je suis tombé sur la petite note sur cette page :

"[...]En outre le fichier \EFI\ubuntu\grub.cfg du premier disque se fait couramment écraser et renvoie lors d'un boot ultérieur[...]"

Mes compétences à ce niveau son limités, mais j'ai l'impression que ça ressemble un peu à mon soucis ; au bout d'un moment, mon grub est écrasé.
Cependant, a la fin, il est indiqué :

"Pour éviter ce désagrément, il est nécessaire de faire une installation par la technique « Autre chose » et de faire le montage de la bonne partition de boot EFI afin qu'elle ne soit pas automatiquement choisie."

Je n'ai pas bien compris ce qu'il faut que je fasse exactement...

Est-ce que vous auriez une piste à mon problème ?

Merci beaucoup smile

Pour infos, quelques informations sur mon PC (fixe) :
CM : STRIX Z2701 GAMING
ASUS UEFI BIOS Utility (v0704)
Intel Core i7-7700
16Go DDR4

Hors ligne

#2 Le 21/02/2024, à 17:35

xubu1957

Re : Grub qui disparait

Bonjour,

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

boot-repair-4ppa2075                                              [20240221_1504]

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

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

sda1: __________________________________________________________________________

    File system:       vfat
    Boot sector type:  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:  NTFS
    Boot sector info:  No errors found in the Boot Parameter Block.
    Operating System:  Windows 10 or 11
    Boot files:        /Windows/System32/winload.exe

sda4: __________________________________________________________________________

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

sdb1: __________________________________________________________________________

    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

sdb2: __________________________________________________________________________

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

sdc: ___________________________________________________________________________

    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 
                       sdc 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/sdc: /dev/sdc already mounted or mount point busy.


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

OS#1:   Ubuntu 22.04.3 LTS on sdb1
OS#2:   Windows 10 or 11 on sda3

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

CPU architecture: 64-bit
Video: GA104 [GeForce RTX 3070 Lite Hash Rate] EFI VGA from NVIDIA Corporation
Live-session OS is Ubuntu 64-bit (Ubuntu 22.04.3 LTS, jammy, x86_64)

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

BIOS/UEFI firmware: 0704(5.12) from American Megatrends Inc.
The firmware is EFI-compatible, and is set in EFI-mode for this live-session.
SecureBoot disabled (confirmed by mokutil).
BootCurrent: 0002
Timeout: 1 seconds
BootOrder: 0002,0000
Boot0000* Windows Boot Manager	HD(1,GPT,dc48d9c1-68bf-4a03-8959-15964f0f8ca0,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................
Boot0002* UEFI:  USB DISK 2.0 PMAP, Partition 2	PciRoot(0x0)/Pci(0x14,0x0)/USB(1,0)/HD(2,GPT,ed3ea5d2-f2b2-48ca-a515-2e98bbbf0bbe,0x7ea320,0x2754)..BO

64349b3622c65f495a99dbf6102496e3   sda1/Boot/bkpbootx64.efi
64349b3622c65f495a99dbf6102496e3   sda1/Boot/bootx64.efi
925029921cfc9e40f54f55d4cffbdd49   sda1/Boot/fbx64.efi
8ce1afc1d49ea0dfa38a46054c96457d   sda1/Boot/grubx64.efi
857e495f63f23c842e2b074e692b6e3a   sda1/Boot/mmx64.efi
8ce1afc1d49ea0dfa38a46054c96457d   sda1/ubuntu/grubx64.efi
857e495f63f23c842e2b074e692b6e3a   sda1/ubuntu/mmx64.efi
64349b3622c65f495a99dbf6102496e3   sda1/ubuntu/shimx64.efi
df480f092e56b632513b4616bdeade95   sda1/Microsoft/Boot/bootmgfw.efi
0a70ebdfe73694eb6188f70e81b47a79   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
sdb	: is-GPT,	no-BIOSboot,	has-noESP, 	not-usb,	not-mmc, has-os,	no-wind,	2048 sectors * 512 bytes

Partitions info (1/3): _________________________________________________________

sda1	: no-os,	64, nopakmgr,	no-docgrub,	nogrub,	nogrubinstall,	no-grubenv,	noupdategrub,	not-far
sda3	: is-os,	64, nopakmgr,	no-docgrub,	nogrub,	nogrubinstall,	no-grubenv,	noupdategrub,	end-after-100GB
sda4	: no-os,	64, nopakmgr,	no-docgrub,	nogrub,	nogrubinstall,	no-grubenv,	noupdategrub,	end-after-100GB
sdb1	: is-os,	64, apt-get,	signed grub-efi ,	grub2,	grub-install,	grubenv-ok,	update-grub,	end-after-100GB
sdb2	: no-os,	64, nopakmgr,	no-docgrub,	nogrub,	nogrubinstall,	no-grubenv,	noupdategrub,	end-after-100GB

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,	no-bmgr,	notwinboot
sda4	: isnotESP,	part-has-no-fstab,	no-nt,	no-winload,	recovery-or-hidden,	no-bmgr,	notwinboot
sdb1	: isnotESP,	fstab-has-goodEFI,	no-nt,	no-winload,	no-recov-nor-hid,	no-bmgr,	notwinboot
sdb2	: isnotESP,	part-has-no-fstab,	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
sdb1	: 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

fdisk -l (filtered): ___________________________________________________________

Disk sda: 238.47 GiB, 256060514304 bytes, 500118192 sectors
Disk identifier: 22958A1F-ECB6-41B8-BAFF-6C026EA0596D
         Start       End   Sectors   Size Type
sda1       2048    206847    204800   100M EFI System
sda2     206848    239615     32768    16M Microsoft reserved
sda3     239616 498968306 498728691 237.8G Microsoft basic data
sda4  498968576 500115455   1146880   560M Windows recovery environment
Disk sdb: 931.51 GiB, 1000204886016 bytes, 1953525168 sectors
Disk identifier: BB1E1EAA-556D-43A3-8691-E3C7CBD9B4A6
         Start        End    Sectors   Size Type
sdb1       2048  195311615  195309568  93.1G Linux filesystem
sdb2  195311616 1953521663 1758210048 838.4G Microsoft basic data
Disk sdc: 7.22 GiB, 7752450048 bytes, 15141504 sectors
Disk identifier: ED3EA5D2-F2B2-48CA-A517-2E98BBBF0BBE
       Start      End Sectors  Size Type
sdc1       64  8299295 8299232    4G Microsoft basic data
sdc2  8299296  8309363   10068  4.9M EFI System
sdc3  8309364  8309963     600  300K Microsoft basic data
sdc4  8310784 15141440 6830657  3.3G Linux filesystem

parted -lm (filtered): _________________________________________________________

sda:256GB:scsi:512:4096:gpt:ATA Crucial_CT256MX1:;
1:1049kB:106MB:105MB:fat32:EFI system partition:boot, esp;
2:106MB:123MB:16.8MB::Microsoft reserved partition:msftres;
3:123MB:255GB:255GB:ntfs:Basic data partition:msftdata;
4:255GB:256GB:587MB:ntfs::hidden, diag;
sdb:1000GB:scsi:512:512:gpt:ATA Samsung SSD 870:;
1:1049kB:100GB:100GB:ext4::;
2:100GB:1000GB:900GB:ntfs:Basic data partition:msftdata;
sdc:7752MB:scsi:512:512:gpt: USB DISK 2.0:;
1:32.8kB:4249MB:4249MB::ISO9660:hidden, msftdata;
2:4249MB:4254MB:5155kB::Appended2:boot, esp;
3:4254MB:4255MB:307kB::Gap1:hidden, msftdata;
4:4255MB:7752MB:3497MB:ext4::;

blkid (filtered): ______________________________________________________________

NAME   FSTYPE   UUID                                 PARTUUID                             LABEL                     PARTLABEL
sda                                                                                                                 
├─sda1 vfat     7034-B59C                            dc48d9c1-68bf-4a03-8959-15964f0f8ca0                           EFI system partition
├─sda2                                               c21348b4-262d-4926-b1da-a46c96a8e622                           Microsoft reserved partition
├─sda3 ntfs     88EE3DA6EE3D8E06                     a3ead18b-19a3-4623-8d46-6ddc2e1ff03e                           Basic data partition
└─sda4 ntfs     6446FD4246FD1590                     9d201716-bdfb-44ed-ad8c-5a1d1242de7c                           
sdb                                                                                                                 
├─sdb1 ext4     0645fc15-67d2-49a6-8f24-75f789b6e6e1 9dedcdc0-b969-4343-bb3d-f1fa4bea041d                           
└─sdb2 ntfs     5030BD9030BD7D92                     73b35d6c-c8fd-4f4d-843d-edce3128c126 Stockage                  Basic data partition
sdc    iso9660  2023-08-07-15-45-02-00                                                    Kubuntu 22.04.3 LTS amd64 
├─sdc1 iso9660  2023-08-07-15-45-02-00               ed3ea5d2-f2b2-48ca-a516-2e98bbbf0bbe Kubuntu 22.04.3 LTS amd64 ISO9660
├─sdc2 vfat     F7DB-4D56                            ed3ea5d2-f2b2-48ca-a515-2e98bbbf0bbe ESP                       Appended2
├─sdc3                                               ed3ea5d2-f2b2-48ca-a514-2e98bbbf0bbe                           Gap1
└─sdc4 ext4     2751b660-82c8-4b77-a82c-e2b2149911e0 3f178884-6551-fe4d-bef2-49d51c52a2ec writable                  

Mount points (filtered): _______________________________________________________

                                                               Avail Use% Mounted on
/dev/sda1                                                      61.4M  36% /mnt/boot-sav/sda1
/dev/sda3                                                     189.1G  20% /mnt/boot-sav/sda3
/dev/sda4                                                      88.8M  84% /mnt/boot-sav/sda4
/dev/sdb1                                                      59.1G  30% /mnt/boot-sav/sdb1
/dev/sdb2                                                     529.8G  37% /mnt/boot-sav/sdb2
/dev/sdc1                                                          0 100% /cdrom

Mount options (filtered): ______________________________________________________

/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/sdb1                                                     ext4        rw,relatime
/dev/sdb2                                                     fuseblk     rw,relatime,user_id=0,group_id=0,allow_other,blksize=4096
/dev/sdc1                                                     iso9660     ro,noatime,nojoliet,check=s,map=n,blocksize=2048,iocharset=utf8

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

search.fs_uuid 0645fc15-67d2-49a6-8f24-75f789b6e6e1 root hd1,gpt1 
set prefix=($root)'/boot/grub'
configfile $prefix/grub.cfg

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

Ubuntu   0645fc15-67d2-49a6-8f24-75f789b6e6e1
Windows Boot Manager (on sda1)   osprober-efi-7034-B59C
### END /etc/grub.d/30_os-prober ###
UEFI Firmware Settings   uefi-firmware
### END /etc/grub.d/30_uefi-firmware ###

========================== sdb1/etc/fstab (filtered) ===========================

# <file system> <mount point>   <type>  <options>       <dump>  <pass>
# / was on /dev/sdb1 during installation
UUID=0645fc15-67d2-49a6-8f24-75f789b6e6e1 /               ext4    errors=remount-ro 0       1
# /boot/efi was on /dev/sda1 during installation
UUID=7034-B59C  /boot/efi       vfat    umask=0077      0       1

======================= sdb1/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

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

           GiB - GB             File                                 Fragment(s)
  12.645706177 = 13.578223616   boot/grub/grub.cfg                             1
  16.732975006 = 17.966895104   boot/vmlinuz                                   1
  87.068485260 = 93.489074176   boot/vmlinuz-6.2.0-26-generic                  1
  16.732975006 = 17.966895104   boot/vmlinuz-6.5.0-18-generic                  1
  87.068485260 = 93.489074176   boot/vmlinuz.old                               1
  11.750972748 = 12.617510912   boot/initrd.img                                2
  12.375972748 = 13.288599552   boot/initrd.img-6.2.0-26-generic               2
  11.750972748 = 12.617510912   boot/initrd.img-6.5.0-18-generic               2
  12.375972748 = 13.288599552   boot/initrd.img.old                            2

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

-rwxr-xr-x 1 root root 18133 Feb 14 09:19 10_linux
-rwxr-xr-x 1 root root 43202 Feb 14 09:19 10_linux_zfs
-rwxr-xr-x 1 root root 14513 Feb 14 09:19 20_linux_xen
-rwxr-xr-x 1 root root   786 Feb 14 09:19 25_bli
-rwxr-xr-x 1 root root 13120 Feb 14 09:19 30_os-prober
-rwxr-xr-x 1 root root  1174 Feb 14 09:19 30_uefi-firmware
-rwxr-xr-x 1 root root   214 Feb 14 09:19 40_custom
-rwxr-xr-x 1 root root   215 Feb 14 09:19 41_custom



Suggested repair: ______________________________________________________________

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

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 (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)

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

#3 Le 22/02/2024, à 02:06

geole

Re : Grub qui disparait

Bonsoir.
Lance un boot-repair. Fais la réparation recommandée.
Il est probable que windows ait viré l'intrus lors d'une mise à jour.


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