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 01/09/2025, à 16:05

Diamant40

Plus de grub après mise à niveau vers 25.4

Bonjour à tous !
Eh oui, sur mon desktop, j'ai voulu faire la mise à niveau de 22.4 vers 25.4 mais je pense avoir fait une erreur: lors de l'installation j'ai répondu "Oui" à "Conserver le Grub" ....
Est-ce à cause de celà que le PC pédale dans la semoule au démarrage?
Le Grub ne trouvant pas sa version d'Ubuntu ? (Simple avis !)
Que faire ? ?
merci d'avance.


Chacun à sa place, chaque chose en son temps, et tout ira bien.

Hors ligne

#2 Le 01/09/2025, à 18:28

Diamant40

Re : Plus de grub après mise à niveau vers 25.4

J'y reviens....
J'ai pu réparer avec "Boot repair" malheureusement je démarre directement sur Ubuntu sans avoir eu le grub...
Depuis Ubuntu 24.04.3 je configure le grub pour démarrer sur Ubuntu en 1 puis Windows en 2 etc...
Je sauvegarde....
Mais le grub n'apparaît pas au démarrage, c'est directement Ubuntu qui est lancé.
J'ai dû louper qqchose !


Chacun à sa place, chaque chose en son temps, et tout ira bien.

Hors ligne

#3 Le 01/09/2025, à 19:00

geole

Re : Plus de grub après mise à niveau vers 25.4

Bonjour
Publie l'URL générée par  un boot-info


Les grilles de l'installateur https://doc.ubuntu-fr.org/tutoriel/inst … _subiquity

Les partitions EXT4 des disques externes => https://forum.ubuntu-fr.org/viewtopic.p … #p22697248

Hors ligne

#4 Le 01/09/2025, à 19:41

Diamant40

Re : Plus de grub après mise à niveau vers 25.4

Voilà: http://paste.ubuntu.com/p/fnGKsryDJY/
Merci d'avance.


Chacun à sa place, chaque chose en son temps, et tout ira bien.

Hors ligne

#5 Le 01/09/2025, à 19:49

xubu1957

Re : Plus de grub après mise à niveau vers 25.4

Bonjour,

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

boot-repair-4ppa125                                              [20250901_1735]

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

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

sda1: __________________________________________________________________________

    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:        /bootmgr /Boot/BCD

sda2: __________________________________________________________________________

    File system:       ntfs
    Boot sector type:  Windows 8/2012: NTFS
    Boot sector info:  No errors found in the Boot Parameter Block.
    Operating System:  Windows 8 or 10
    Boot files:        /bootmgr /Boot/BCD /Windows/System32/winload.exe

sda3: __________________________________________________________________________

    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:        

sda4: __________________________________________________________________________

    File system:       ext4
    Boot sector type:  Grub2 (v1.99-2.00)
    Boot sector info:  Grub2 (v2.00) is installed in the boot sector of sda4 
                       and looks at sector 775120664 of the same hard drive 
                       for core.img. core.img is at this location and looks 
                       for (,msdos4)/boot/grub. It also embeds following 
                       components:
                       
                       modules
                       -------------------------------------------------------
                       fshelp ext2 part_msdos biosdisk
                       -------------------------------------------------------
    Operating System:  Ubuntu 24.04.3 LTS
    Boot files:        /boot/grub/grub.cfg /etc/fstab /etc/default/grub 
                       /boot/grub/i386-pc/core.img

sdb: ___________________________________________________________________________

    File system:       iso9660
    Boot sector type:  Unknown
    Boot sector info: 
    Operating System:  
    Boot files:        /boot/grub/grub.cfg


================================ 3 OS detected =================================

OS#1:   Windows 10 (boot) on sda1
OS#2:   Windows 10 on sda2
OS#3:   Ubuntu 24.04.3 LTS on sda4

============================ Architecture/Host Info ============================

CPU architecture: 64-bit
Live-session OS is Ubuntu 64-bit (Boot-Repair-Disk 64bit 20200604, bionic, x86_64)


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

This live-session is not in EFI-mode.



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

Disks info: ____________________________________________________________________

sda	: notGPT,	no-BIOSboot,	has-noESP, 	not-usb,	not-mmc, has-os,	2048 sectors * 512 bytes

Partitions info (1/3): _________________________________________________________

sda1	: is-os,	32, nopakmgr,	no-docgrub,	nogrub,	nogrubinstall,	no-grubenv,	noupdategrub,	not-far
sda2	: is-os,	32, nopakmgr,	no-docgrub,	nogrub,	nogrubinstall,	no-grubenv,	noupdategrub,	farbios
sda3	: no-os,	32, nopakmgr,	no-docgrub,	nogrub,	nogrubinstall,	no-grubenv,	noupdategrub,	farbios
sda4	: is-os,	64, apt-get,	grub-pc ,	grub2,	grub-install,	grubenv-ok,	update-grub,	farbios

Partitions info (2/3): _________________________________________________________

sda1	: isnotESP,	part-has-no-fstab,	no-nt,	no-winload,	no-recov-nor-hid,	bootmgr,	is-winboot
sda2	: isnotESP,	part-has-no-fstab,	no-nt,	haswinload,	no-recov-nor-hid,	bootmgr,	is-winboot
sda3	: isnotESP,	part-has-no-fstab,	no-nt,	no-winload,	recovery-or-hidden,	no-bmgr,	notwinboot
sda4	: isnotESP,	fstab-without-efi,	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,	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,	with-boot,	fstab-without-boot,	not-sep-usr,	with--usr,	fstab-without-usr,	std-grub.d,	sda

fdisk -l (filtered): ___________________________________________________________

Disk sda: 477 GiB, 512110190592 bytes, 1000215216 sectors
Disk identifier: 0x0730596b
      Boot     Start        End   Sectors   Size Id Type
sda1  *         2048     206847    204800   100M  7 HPFS/NTFS/exFAT
sda2          206848  423852031 423645184   202G  7 HPFS/NTFS/exFAT
sda3       998164480 1000212479   2048000  1000M 27 Hidden NTFS WinRE
sda4       527128576  998163732 471035157 224.6G 83 Linux
Partition table entries are not in disk order.
Disk sdb: 7.2 GiB, 7747928064 bytes, 15132672 sectors
Disk identifier: 0x2c534026
      Boot Start     End Sectors  Size Id Type
sdb1  *        0 1802239 1802240  880M  0 Empty
sdb2         964    5891    4928  2.4M ef EFI (FAT-12/16/32)
Disk zram0: 980 MiB, 1027637248 bytes, 250888 sectors
Disk zram1: 980 MiB, 1027637248 bytes, 250888 sectors
Disk zram2: 980 MiB, 1027637248 bytes, 250888 sectors
Disk zram3: 980 MiB, 1027637248 bytes, 250888 sectors

parted -lm (filtered): _________________________________________________________

sda:512GB:scsi:512:512:msdos:ATA Apacer AS350 512:;
1:1049kB:106MB:105MB:ntfs::boot;
2:106MB:217GB:217GB:ntfs::;
4:270GB:511GB:241GB:ext4::;
3:511GB:512GB:1049MB:ntfs::diag;
sdb:7748MB:scsi:512:512:msdos: USB DISK 2.0:;
2:494kB:3017kB:2523kB:::esp;
zram3:1028MB:unknown:4096:4096:loop:Unknown:;
1:0.00B:1028MB:1028MB:linux-swap(v1)::;
zram1:1028MB:unknown:4096:4096:loop:Unknown:;
1:0.00B:1028MB:1028MB:linux-swap(v1)::;
zram2:1028MB:unknown:4096:4096:loop:Unknown:;
1:0.00B:1028MB:1028MB:linux-swap(v1)::;
zram0:1028MB:unknown:4096:4096:loop:Unknown:;
1:0.00B:1028MB:1028MB:linux-swap(v1)::;

blkid (filtered): ______________________________________________________________

NAME   FSTYPE   UUID                                 PARTUUID                             LABEL                  PARTLABEL
sda                                                                                                              
├─sda1 ntfs     FA7CEA2F7CE9E67B                     0730596b-01                          System                 
├─sda2 ntfs     54B0EA64B0EA4C54                     0730596b-02                          Windows                
├─sda3 ntfs     1AE6EAAFE6EA89F9                     0730596b-03                          Recovery image         
└─sda4 ext4     ed7fbecd-6be7-4fcb-83d4-3ceb247c1ecc 0730596b-04                                                 
sdb    iso9660  2020-06-13-00-42-55-00                                                    Boot-Repair-Disk 64bit 
├─sdb1 iso9660  2020-06-13-00-42-55-00               2c534026-01                          Boot-Repair-Disk 64bit 
└─sdb2 vfat     D055-8513                            2c534026-02                          Boot-Repair-Disk 64bit 
zram0                                                                                                            
zram1                                                                                                            
zram2                                                                                                            
zram3                                                                                                            

df (filtered): _________________________________________________________________

       Avail Use% Mounted on
sda1    73.6M  26% /mnt/boot-sav/sda1
sda2    48.2G  76% /mnt/boot-sav/sda2
sda3     490M  51% /mnt/boot-sav/sda3
sda4    55.1G  70% /mnt/boot-sav/sda4
sdb         0 100% /cdrom

Mount options: __________________________________________________________________

sda1   rw,relatime,user_id=0,group_id=0,allow_other,blksize=4096
sda2   rw,relatime,user_id=0,group_id=0,allow_other,blksize=4096
sda3   rw,relatime,user_id=0,group_id=0,allow_other,blksize=4096
sda4   rw,relatime
sdb    ro,noatime,nojoliet,check=s,map=n,blocksize=2048

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

Ubuntu   ed7fbecd-6be7-4fcb-83d4-3ceb247c1ecc
Ubuntu, with Linux 6.8.0-79-generic   ed7fbecd-6be7-4fcb-83d4-3ceb247c1ecc
Windows 10 (on sda1)   FA7CEA2F7CE9E67B
Windows 10 (on sda2)   54B0EA64B0EA4C54
### END /etc/grub.d/30_os-prober ###
UEFI Firmware Settings   uefi-firmware
### END /etc/grub.d/30_uefi-firmware ###

========================== sda4/etc/fstab (filtered) ===========================

# <file system> <mount point>   <type>  <options>       <dump>  <pass>
# / was on /dev/sda4 during installation
UUID=ed7fbecd-6be7-4fcb-83d4-3ceb247c1ecc /               ext4    errors=remount-ro 0       1

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

GRUB_DEFAULT="0"
GRUB_TIMEOUT_STYLE="hidden"
GRUB_TIMEOUT="10"
GRUB_DISTRIBUTOR="`( . /etc/os-release; echo ${NAME:-Ubuntu} ) 2>/dev/null || echo Ubuntu`"
GRUB_CMDLINE_LINUX_DEFAULT="quiet splash"
GRUB_CMDLINE_LINUX=""
GRUB_SAVEDEFAULT="false"
==================== sda4: Location of files loaded by Grub ====================

           GiB - GB             File                                 Fragment(s)
 443.605167389 = 476.317421568  boot/grub/grub.cfg                             1
 452.827274323 = 486.219583488  boot/grub/i386-pc/core.img                     1
 409.329410553 = 439.514107904  boot/vmlinuz                                   1
 409.329410553 = 439.514107904  boot/vmlinuz-6.8.0-79-generic                  1
 409.329410553 = 439.514107904  boot/vmlinuz.old                               1
 411.873828888 = 442.246156288  boot/initrd.img                                1
 411.873828888 = 442.246156288  boot/initrd.img-6.8.0-79-generic               1
 411.873828888 = 442.246156288  boot/initrd.img.old                            1

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

-rwxr-xr-x 1 root root 18133 mars  17 13:20 10_linux
-rwxr-xr-x 1 root root 43202 mars  17 13:20 10_linux_zfs
-rwxr-xr-x 1 root root 14513 mars  17 13:20 20_linux_xen
-rwxr-xr-x 1 root root   786 mars  17 13:20 25_bli
-rwxr-xr-x 1 root root 13120 mars  17 13:20 30_os-prober
-rwxr-xr-x 1 root root  1174 mars  17 13:20 30_uefi-firmware
-rwxr-xr-x 1 root root   214 mars  17 13:20 40_custom
-rwxr-xr-x 1 root root   215 mars  17 13:20 41_custom
drwxr-xr-x 4 root root  4096 sept.  1 15:56 backup

============================ sda4/etc/grub.d/25_bli ============================

#! /bin/sh
set -e
# grub-mkconfig helper script.
# Copyright (C) 2023  Free Software Foundation, Inc.
#
# GRUB is free software: you can redistribute it and/or modify
# it under the terms of the GNU General Public License as published by
# the Free Software Foundation, either version 3 of the License, or
# (at your option) any later version.
#
# GRUB is distributed in the hope that it will be useful,
# but WITHOUT ANY WARRANTY; without even the implied warranty of
# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
# GNU General Public License for more details.
#
# You should have received a copy of the GNU General Public License
# along with GRUB.  If not, see <http://www.gnu.org/licenses/>.
cat << EOF
if [ "\$grub_platform" = "efi" ]; then
  insmod bli
fi
EOF

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

Boot-Repair-Disk session
Boot-Repair-Disk session (failsafe)

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

           GiB - GB             File                                 Fragment(s)
            ?? = ??             boot/grub/grub.cfg                             1


======================== Unknown MBRs/Boot Sectors/etc =========================

Unknown BootLoader on sdb

00000000  33 ed 90 90 90 90 90 90  90 90 90 90 90 90 90 90  |3...............|
00000010  90 90 90 90 90 90 90 90  90 90 90 90 90 90 90 90  |................|
00000020  33 ed fa 8e d5 bc 00 7c  fb fc 66 31 db 66 31 c9  |3......|..f1.f1.|
00000030  66 53 66 51 06 57 8e dd  8e c5 52 be 00 7c bf 00  |fSfQ.W....R..|..|
00000040  06 b9 00 01 f3 a5 ea 4b  06 00 00 52 b4 41 bb aa  |.......K...R.A..|
00000050  55 31 c9 30 f6 f9 cd 13  72 16 81 fb 55 aa 75 10  |U1.0....r...U.u.|
00000060  83 e1 01 74 0b 66 c7 06  f3 06 b4 42 eb 15 eb 02  |...t.f.....B....|
00000070  31 c9 5a 51 b4 08 cd 13  5b 0f b6 c6 40 50 83 e1  |1.ZQ....[...@P..|
00000080  3f 51 f7 e1 53 52 50 bb  00 7c b9 04 00 66 a1 b0  |?Q..SRP..|...f..|
00000090  07 e8 44 00 0f 82 80 00  66 40 80 c7 02 e2 f2 66  |..D.....f@.....f|
000000a0  81 3e 40 7c fb c0 78 70  75 09 fa bc ec 7b ea 44  |.>@|..xpu....{.D|
000000b0  7c 00 00 e8 83 00 69 73  6f 6c 69 6e 75 78 2e 62  ||.....isolinux.b|
000000c0  69 6e 20 6d 69 73 73 69  6e 67 20 6f 72 20 63 6f  |in missing or co|
000000d0  72 72 75 70 74 2e 0d 0a  66 60 66 31 d2 66 03 06  |rrupt...f`f1.f..|
000000e0  f8 7b 66 13 16 fc 7b 66  52 66 50 06 53 6a 01 6a  |.{f...{fRfP.Sj.j|
000000f0  10 89 e6 66 f7 36 e8 7b  c0 e4 06 88 e1 88 c5 92  |...f.6.{........|
00000100  f6 36 ee 7b 88 c6 08 e1  41 b8 01 02 8a 16 f2 7b  |.6.{....A......{|
00000110  cd 13 8d 64 10 66 61 c3  e8 1e 00 4f 70 65 72 61  |...d.fa....Opera|
00000120  74 69 6e 67 20 73 79 73  74 65 6d 20 6c 6f 61 64  |ting system load|
00000130  20 65 72 72 6f 72 2e 0d  0a 5e ac b4 0e 8a 3e 62  | error...^....>b|
00000140  04 b3 07 cd 10 3c 0a 75  f1 cd 18 f4 eb fd 00 00  |.....<.u........|
00000150  00 00 00 00 00 00 00 00  00 00 00 00 00 00 00 00  |................|
*
000001b0  04 17 00 00 00 00 00 00  26 40 53 2c 00 00 80 00  |........&@S,....|
000001c0  01 00 00 3f e0 6f 00 00  00 00 00 80 1b 00 00 fe  |...?.o..........|
000001d0  ff ff ef fe ff ff c4 03  00 00 40 13 00 00 00 00  |..........@.....|
000001e0  00 00 00 00 00 00 00 00  00 00 00 00 00 00 00 00  |................|
000001f0  00 00 00 00 00 00 00 00  00 00 00 00 00 00 55 aa  |..............U.|
00000200


========= Devices which don't seem to have a corresponding hard drive ==========

sdc 

=============================== StdErr Messages ================================

File descriptor 63 (pipe:[39546]) leaked on lvs invocation. Parent PID 2238: /bin/bash

Suggested repair: ______________________________________________________________

The default repair of the Boot-Repair utility would reinstall the grub2 of
sda4 into the MBR of sda.
Additional repair would be performed: unhide-bootmenu-10s

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

#6 Le 01/09/2025, à 21:29

geole

Re : Plus de grub après mise à niveau vers 25.4

Modifie cette ligne
GRUB_TIMEOUT_STYLE="hidden"
Du fichier /etc/default/grub pour quelle devienne
GRUB_TIMEOUT_STYLE="menu"
Et fait prendre en charge

sudo update-grub

Dernière modification par geole (Le 01/09/2025, à 22:33)


Les grilles de l'installateur https://doc.ubuntu-fr.org/tutoriel/inst … _subiquity

Les partitions EXT4 des disques externes => https://forum.ubuntu-fr.org/viewtopic.p … #p22697248

Hors ligne

#7 Le 01/09/2025, à 22:06

Diamant40

Re : Plus de grub après mise à niveau vers 25.4

Merci geole !
C'est tout bon. Mais attention ! Il y a un tiret entre"update" et "grub" .
(Ne me rappelant plus de la syntaxe exacte j'ai fouillé dans mes archives)
Merci encore


Chacun à sa place, chaque chose en son temps, et tout ira bien.

Hors ligne