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 23/01/2024, à 20:46

michelm

Grub rescue après mise à niveau Ubuntu Mate 22.04 [Résolu]

Bonjour à tous,
C'est un vieux PC HP à un copain, avec un disque (sdb) Windows, et sda avec Ubuntu que j'ai passé à Mate 22.04.
Suite à l'installation Grub ne fonctionne plus.
J'ai essayé avec Boot Repair mais pas mieux, j'ai vu un problème entre windows legacy et UEFI si je comprends bien, sauf que le bios est avec des caractères chinois (je suppose) ce qui ne me facilite pas le travail !
Est-il possible de réparer ça proprement et sans toucher au BIOS ?
Re installer Grub mais je n'ai pas compris :
Une réparation supplémentaire serait effectuée : unhide-bootmenu-10s win-legacy-basic-fix


Bref voici le fichier Boot info

boot-info-4ppa2075                                              [20240123_1810]

============================== 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 (,msdos1)/boot/grub. It also embeds following components:
    
    modules
    ---------------------------------------------------------------------------
    fshelp ext2 part_msdos biosdisk
    ---------------------------------------------------------------------------
 => Windows 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/fbx64.efi /efi/BOOT/mmx64.efi 
                       /efi/ubuntu/grubx64.efi /efi/ubuntu/mmx64.efi 
                       /efi/ubuntu/shimx64.efi /efi/ubuntu/grub.cfg

sda2: __________________________________________________________________________

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

sda5: __________________________________________________________________________

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

sda3: __________________________________________________________________________

    File system:       ext2
    Boot sector type:  -
    Boot sector info: 
    Operating System:  
    Boot files:        

sda4: __________________________________________________________________________

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

sdb1: __________________________________________________________________________

    File system:       ntfs
    Boot sector type:  Windows 7/2008: NTFS
    Boot sector info:  No errors found in the Boot Parameter Block.
    Operating System:  
    Boot files:        /bootmgr /Boot/BCD

sdb2: __________________________________________________________________________

    File system:       ntfs
    Boot sector type:  Windows 7/2008: NTFS
    Boot sector info:  No errors found in the Boot Parameter Block.
    Operating System:  Windows 7
    Boot files:        /Windows/System32/winload.exe

sdb3: __________________________________________________________________________

    File system:       ext3
    Boot sector type:  -
    Boot sector info: 
    Operating System:  
    Boot files:        

sdb4: __________________________________________________________________________

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

sdc: ___________________________________________________________________________

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


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

OS#1:   Ubuntu 22.04.2 LTS on sda4
OS#2:   Windows 7 on sdb2

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

CPU architecture: 64-bit
Video: 2nd Generation Core Processor Family Integrated Graphics Controller from Intel Corporation
Live-session OS is Ubuntu 64-bit (Boot-Repair-Disk 64bit 20200604, bionic, x86_64)

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

BIOS/UEFI firmware: J01 v02.15 from Hewlett-Packard
The firmware is EFI-compatible, and is set in EFI-mode for this live-session.
SecureBoot disabled - This system doesn't support Secure Boot.
BootCurrent: 0008
Timeout: 0 seconds
BootOrder: 0000,0001,0003,0008,0004,0005,0006,0007
Boot0000* ubuntu	HD(1,MBR,0xcb772b89,0x800,0x100000)/File(\EFI\ubuntu\shimx64.efi)
Boot0001* USB Floppy/CD	VenMedia(b6fef66f-1495-4584-a836-3492d1984a8d,0500000001)AMBO
Boot0003* ATAPI CD-ROM Drive	VenMedia(b6fef66f-1495-4584-a836-3492d1984a8d,0300000001)AMBO
Boot0004* CD/DVD Drive 	BBS(CDROM,,0x0)AMGOAMNOY.......+.C.D./.D.V.D. .D.r.i.v.e. .........................rN.D+..,.\.........AMBO
Boot0005* USB Floppy/CD	VenMedia(b6fef66f-1495-4584-a836-3492d1984a8d,0500000000)AMBO
Boot0006* Hard Drive	BBS(HD,,0x0)AMGOAMNO?.........F.a.k.e. .U.s.b. .O.p.t.i.o.n...............AMBOAMNOw.......+.S.a.n.D.i.s.k. .C.r.u.z.e.r. .S.l.i.c.e. . . . .8...0.2.........................rN.D+..,.\.........AMBOAMNOY.......+..0.0.0.0.0.0.0 ..0.0.0.0 .........................rN.D+..,.\.........AMBOAMNOY.......+..0.0.0.0.0.0.0 ..0.0.0.0 .........................rN.D+..,.\.........AMBO
Boot0007* IBA GE Slot 00C8 v1376	BBS(Network,,0x0)AMBO
Boot0008* SanDisk Cruzer Slice 8.02	PciRoot(0x0)/Pci(0x1d,0x0)/USB(1,0)/USB(6,0)/HD(1,MBR,0x2c534026,0x3c4,0x1340)AMBO

a9c517741ac31962d7feb152948ad1ee   sda1/BOOT/fbx64.efi
a660182adef313615746a665966d2ccc   sda1/BOOT/mmx64.efi
a1da253696a304dce6b4668b70151c0e   sda1/ubuntu/grubx64.efi
a660182adef313615746a665966d2ccc   sda1/ubuntu/mmx64.efi
64349b3622c65f495a99dbf6102496e3   sda1/ubuntu/shimx64.efi
64349b3622c65f495a99dbf6102496e3   sda1/BOOT/BOOTX64.efi

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

Disks info: ____________________________________________________________________

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

Partitions info (1/3): _________________________________________________________

sda1	: no-os,	64, nopakmgr,	no-docgrub,	nogrub,	nogrubinstall,	no-grubenv,	noupdategrub,	not-far
sda3	: no-os,	64, nopakmgr,	no-docgrub,	nogrub,	nogrubinstall,	no-grubenv,	noupdategrub,	end-after-100GB
sda4	: is-os,	64, apt-get,	signed grub-pc grub-efi ,	grub1,	grub-install,	grubenv-ok,	update-grub,	end-after-100GB
sdb1	: no-os,	64, nopakmgr,	no-docgrub,	nogrub,	nogrubinstall,	no-grubenv,	noupdategrub,	not-far
sdb2	: is-os,	64, nopakmgr,	no-docgrub,	nogrub,	nogrubinstall,	no-grubenv,	noupdategrub,	end-after-100GB
sdb3	: no-os,	64, nopakmgr,	no-docgrub,	nogrub,	nogrubinstall,	no-grubenv,	noupdategrub,	end-after-100GB
sdb4	: 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,	no-winload,	no-recov-nor-hid,	no-bmgr,	notwinboot
sda4	: isnotESP,	fstab-without-efi,	no-nt,	no-winload,	no-recov-nor-hid,	no-bmgr,	notwinboot
sdb1	: isnotESP,	part-has-no-fstab,	no-nt,	no-winload,	no-recov-nor-hid,	bootmgr,	is-winboot
sdb2	: isnotESP,	part-has-no-fstab,	no-nt,	haswinload,	no-recov-nor-hid,	no-bmgr,	notwinboot
sdb3	: isnotESP,	part-has-no-fstab,	no-nt,	no-winload,	no-recov-nor-hid,	no-bmgr,	notwinboot
sdb4	: 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	: maybesepboot,	no---boot,	part-has-no-fstab,	not-sep-usr,	no---usr,	part-has-no-fstab,	no--grub.d,	sda
sda4	: not--sepboot,	with-boot,	fstab-without-boot,	not-sep-usr,	with--usr,	fstab-without-usr,	std-grub.d,	sda
sdb1	: not--sepboot,	no---boot,	part-has-no-fstab,	not-sep-usr,	no---usr,	part-has-no-fstab,	no--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
sdb3	: maybesepboot,	no---boot,	part-has-no-fstab,	not-sep-usr,	no---usr,	part-has-no-fstab,	no--grub.d,	sdb
sdb4	: 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: 223.6 GiB, 240057409536 bytes, 468862128 sectors
Disk identifier: 0xcb772b89
     Boot     Start       End   Sectors   Size Id Type
sda1  *         2048   1050623   1048576   512M ef EFI (FAT-12/16/32)
sda2       464898046 468860927   3962882   1.9G  5 Extended
sda3       231520256 464895999 233375744 111.3G 83 Linux
sda4         1050624 231520255 230469632 109.9G 83 Linux
sda5       464898048 468860927   3962880   1.9G 82 Linux swap / Solaris
Partition table entries are not in disk order.
Disk sdb: 232.9 GiB, 250059350016 bytes, 488397168 sectors
Disk identifier: 0x84a06d81
     Boot     Start       End   Sectors   Size Id Type
sdb1  *         2048    206847    204800   100M  7 HPFS/NTFS/exFAT
sdb2          206848 316610559 316403712 150.9G  7 HPFS/NTFS/exFAT
sdb3       409802752 485881855  76079104  36.3G 83 Linux
sdb4       316610560 409802751  93192192  44.4G  7 HPFS/NTFS/exFAT
Partition table entries are not in disk order.
Disk sdc: 3.8 GiB, 4022337024 bytes, 7856127 sectors
Disk identifier: 0x2c534026
     Boot Start     End Sectors  Size Id Type
sdc1  *        0 1802239 1802240  880M  0 Empty
sdc2         964    5891    4928  2.4M ef EFI (FAT-12/16/32)
Disk zram0: 452.3 MiB, 474288128 bytes, 115793 sectors
Disk zram1: 452.3 MiB, 474288128 bytes, 115793 sectors

parted -lm (filtered): _________________________________________________________

sda:240GB:scsi:512:512:msdos:ATA KINGSTON SA400S3:;
1:1049kB:538MB:537MB:fat32::boot, esp;
4:538MB:119GB:118GB:ext4::;
3:119GB:238GB:119GB:ext2::;
2:238GB:240GB:2029MB:::;
5:238GB:240GB:2029MB:linux-swap(v1)::;
sdb:250GB:scsi:512:512:msdos:ATA WDC WD2500AAKX-6:;
1:1049kB:106MB:105MB:ntfs::boot;
2:106MB:162GB:162GB:ntfs::;
4:162GB:210GB:47.7GB:ntfs::;
3:210GB:249GB:39.0GB:ext3::;
sdc:4022MB:scsi:512:512:msdos:SanDisk Cruzer Slice:;
2:494kB:3017kB:2523kB:::esp;

Free space >10MiB: ______________________________________________________________

sdb: 237247MiB:238475MiB:1228MiB
sdc: 2.88MiB:3836MiB:3833MiB

blkid (filtered): ______________________________________________________________

NAME   FSTYPE   UUID                                 PARTUUID                             LABEL                  PARTLABEL
sda                                                                                                              
├─sda1 vfat     1823-14AE                            cb772b89-01                                                 
├─sda2                                               cb772b89-02                                                 
├─sda3 ext2     6142ec4c-b7f4-4525-9e04-fdd5f10caf5e cb772b89-03                          D                      
├─sda4 ext4     6220f825-bb93-4e96-a4b6-457d22b492df cb772b89-04                                                 
└─sda5 swap     93800e9a-8b7d-4f7d-8b31-3c3ede30c6fb cb772b89-05                                                 
sdb                                                                                                              
├─sdb1 ntfs     3AF80CC4F80C807D                     84a06d81-01                          SYSTEM                 
├─sdb2 ntfs     4E14E94014E92C21                     84a06d81-02                          OS                     
├─sdb3 ext3     9326d3e0-2846-401a-89fd-818d3fc8a0ab 84a06d81-03                          ImagesCZ               
└─sdb4 ntfs     084C989B3478B7CE                     84a06d81-04                          Travail                
sdc    iso9660  2020-06-13-00-42-55-00                                                    Boot-Repair-Disk 64bit 
├─sdc1 iso9660  2020-06-13-00-42-55-00               2c534026-01                          Boot-Repair-Disk 64bit 
└─sdc2 vfat     D055-8513                            2c534026-02                          Boot-Repair-Disk 64bit 

Mount points (filtered): _______________________________________________________

            Avail Use% Mounted on
/dev/sda1   504.9M   1% /mnt/boot-sav/sda1
/dev/sda3   100.1G   4% /media/lubuntu/D
/dev/sda4    87.8G  13% /media/lubuntu/6220f825-bb93-4e96-a4b6-457d22b492df
/dev/sdb1    75.9M  24% /media/lubuntu/SYSTEM
/dev/sdb2   113.1G  25% /media/lubuntu/OS
/dev/sdb3     2.9G  87% /media/lubuntu/ImagesCZ
/dev/sdb4    44.4G   0% /media/lubuntu/Travail
/dev/sdc         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   ext2            rw,nosuid,nodev,relatime
/dev/sda4   ext4            rw,nosuid,nodev,relatime
/dev/sdb1   fuseblk         rw,nosuid,nodev,relatime,user_id=0,group_id=0,default_permissions,allow_other,blksize=4096
/dev/sdb2   fuseblk         rw,nosuid,nodev,relatime,user_id=0,group_id=0,default_permissions,allow_other,blksize=4096
/dev/sdb3   ext3            rw,nosuid,nodev,relatime
/dev/sdb4   fuseblk         rw,nosuid,nodev,relatime,user_id=0,group_id=0,default_permissions,allow_other,blksize=4096
/dev/sdc    iso9660         ro,noatime,nojoliet,check=s,map=n,blocksize=2048

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

search.fs_uuid 6220f825-bb93-4e96-a4b6-457d22b492df root hd0,msdos4 
set prefix=($root)'/boot/grub'
configfile $prefix/grub.cfg

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

GNU/Linux   6220f825-bb93-4e96-a4b6-457d22b492df
### END /etc/grub.d/30_os-prober ###
### 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=6220f825-bb93-4e96-a4b6-457d22b492df /               ext4    errors=remount-ro 0       1
# /boot/efi was on /dev/sda1 during installation
/swapfile                                 none            swap    sw              0       0

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

           GiB - GB             File                                 Fragment(s)
  31.190452576 = 33.490493440   boot/grub/grub.cfg                             1
  87.146636963 = 93.572988928   boot/vmlinuz                                   1
  46.535892487 = 49.967534080   boot/vmlinuz-5.19.0-32-generic                 2
  87.146636963 = 93.572988928   boot/vmlinuz-6.2.0-36-generic                  1
  46.535892487 = 49.967534080   boot/vmlinuz.old                               2
  89.470161438 = 96.067854336   boot/initrd.img                                1
  88.948074341 = 95.507267584   boot/initrd.img-5.19.0-32-generic              1
  89.470161438 = 96.067854336   boot/initrd.img-6.2.0-36-generic               1
  88.948074341 = 95.507267584   boot/initrd.img.old                            1

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

-rwxr-xr-x 1 root root 18683 Dec  2  2022 10_linux
-rwxr-xr-x 1 root root 43031 Dec  2  2022 10_linux_zfs
-rwxr-xr-x 1 root root 14387 Dec 18  2022 20_linux_xen
-rwxr-xr-x 1 root root 13369 Dec  2  2022 30_os-prober
-rwxr-xr-x 1 root root  1372 Dec  2  2022 30_uefi-firmware
-rwxr-xr-x 1 root root   700 Sep 20  2022 35_fwupd
-rwxr-xr-x 1 root root   214 Dec  2  2022 40_custom
-rwxr-xr-x 1 root root   215 Dec  2  2022 41_custom

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

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

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

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

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

Unknown BootLoader on sdc




Suggested repair: ______________________________________________________________

The default repair of the Boot-Repair utility would purge (in order to remove grub-efi) and reinstall the grub2 of
sda4 into the MBR of sda.
Grub-efi would not be selected by default because legacy Windows detected.
Additional repair would be performed: unhide-bootmenu-10s win-legacy-basic-fix

Confirmation request before suggested repair: __________________________________

LegacyWindows detected. The boot of your PC is in EFI mode. You may want to retry after changing it to BIOS-compatibility/CSM/Legacy mode.
Are you sure you want to continue anyway?

Final advice in case of suggested repair: ______________________________________

Please do not forget to make your BIOS boot on sda (ATA KINGSTON SA400S3) disk!

The boot files of [sda4 (end>100GB)] are far from the start of the disk. Your BIOS may not detect them. You may want to retry after creating a /boot partition (EXT4, >200MB, start of the disk). This can be performed via tools such as gParted. Then select this partition via the [Separate /boot partition:] option of [Boot-Repair]. (https://help.ubuntu.com/community/BootPartition)Please set your BIOS in Legacy mode in order to start your Ubuntu 22.04.2 LTS, then type command [sudo update-grub] in order to add the Windows entry to your GRUB menu.

Si je mest la traduction brute :
Réparation suggérée : ____________________________________________________________________________

La réparation par défaut de l'utilitaire Boot-Repair purgerait (afin de supprimer grub-efi) et réinstallerait le grub2 de
sda4 dans le MBR de sda.
Grub-efi ne serait pas sélectionné par défaut car l'ancien Windows a été détecté.
Une réparation supplémentaire serait effectuée : unhide-bootmenu-10s win-legacy-basic-fix

Demande de confirmation avant suggestion de réparation : __________________________________

LegacyWindows détecté. Le démarrage de votre PC se fait en mode EFI. Vous souhaiterez peut-être réessayer après l'avoir modifié en mode Compatibilité BIOS/CSM/Legacy.
Etes-vous sûr de vouloir continuer quand même ?

Dernier conseil en cas de suggestion de réparation : ______________________________________

N'oubliez pas de faire démarrer votre BIOS sur un disque sda (ATA KINGSTON SA400S3) !

Les fichiers de démarrage de [sda4 (end>100GB)] sont loin du début du disque. Votre BIOS peut ne pas les détecter. Vous souhaiterez peut-être réessayer après avoir créé une partition /boot (EXT4, >200 Mo, démarrage du disque). Cela peut être effectué via des outils tels que gParted. Sélectionnez ensuite cette partition via l'option [Separate /boot partition:] de [Boot-Repair]. (https://help.ubuntu.com/community/BootPartition) Veuillez définir votre BIOS en mode Legacy afin de démarrer votre Ubuntu 22.04.2 LTS, puis tapez la commande [sudo update-grub] afin d'ajouter l'entrée Windows à votre menu GRUB.

Merci par avance

Dernière modification par michelm (Le 24/01/2024, à 20:25)

Hors ligne

#2 Le 24/01/2024, à 20:23

michelm

Re : Grub rescue après mise à niveau Ubuntu Mate 22.04 [Résolu]

Problème résolu sans vraiment savoir pourquoi !

Cette fois j'ai utilisé une clé USB pour avoir une session Ubuntu Mate 22.04 et j'ai installé boot-repair, et bien sûr suivi les instructions et cette fois cela a fonctionné !?
Alors qu'avec la clé USB boot repair ça n'avait pas fonctionné plusieurs fois, pourtant j'avais fait les mises à jour...
Je n'ai pas compris mais ça fonctionne et il y a même Windows dans les choix de Grub, je pensais qu'il ne serait plus présent mais si, donc tout va bien.

Installation de boot repair j'ai donc fait :

sudo add-apt-repository ppa:yannubuntu/boot-repair
sudo apt update
sudo apt install boot-repair

Hors ligne