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 07/02/2025, à 20:52

tontondico

Grub rescue s'affiche après Instalation Ubuntu 24 04 [résolu]

Bonjour
J'ai installé Ubuntu 24 04, pour un essai, sur un PC portable Packard Bell d'une dizaine d'années. Il était en dual boot W10 et Mint. J'ai réduit la partition W10 de 40 Go pour mettre Ubuntu. L’installation semble s'être bien déroulé, seulement au redémarrage pas de Ubuntu 24 04 dans le grub, juste W10 et Mint !
J'ai appliqué ces 3 instructions, trouvée  dans le Wiki Ubuntu:

sudo os-prober
sudo update-grub
sudo grub-install /dev/sda

Malheureusement , au redémarrage je me trouve face à ce message: "

error: symbol 'grub_disk_native_sectors' not found. 
Entering rescue mode... 
grub rescue>_ 

J'ai lancé boot repair depuis une session live usb ( en faisant "try Ubuntu" depuis la clé d'intalation) voici le boot info fournit à ce moment: Pastebin boot info
J'ai lancé la réparation automatique proposée, sans succès. 
Si quelqu'un à une idée, je suis preneur.
Yannick

Dernière modification par tontondico (Le 09/02/2025, à 22:51)


HP Pavilion RAM 3.7Go; Intel® Pentium(R) CPU N3540 @ 2.16GHz × 4; SSD 256Go + HDD 1To; Intel® HD Graphics (BYT)
Ubuntu 24.04.2 LTS sur SSD; W10 sur HDD

Hors ligne

#2 Le 07/02/2025, à 21:14

xubu1957

Re : Grub rescue s'affiche après Instalation Ubuntu 24 04 [résolu]

Bonjour,

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

boot-repair-4ppa2081                                              [20250206_1837]

============================== 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
    ---------------------------------------------------------------------------
 => 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 /boot/grub. It also embeds following components:
    
    modules
    ---------------------------------------------------------------------------
    fshelp ext2 part_msdos biosdisk search_fs_uuid
    ---------------------------------------------------------------------------
    
    config script
    ---------------------------------------------------------------------------
    search.fs_uuid a1ad014d-440c-4ba8-935d-ba34a76a24d2 root hd0,msdos4 
    set prefix=($root)'/boot/grub'
    
    ---------------------------------------------------------------------------
 => Grub2 (v2.00) is installed in the MBR of /dev/sdc and looks at sector 1 of 
    the same hard drive for core.img. core.img is at this location and looks 
    for (,msdos2)/grub. It also embeds following components:
    
    modules
    ---------------------------------------------------------------------------
    gettext boot extcmd bufio verifiers crypto terminal normal datetime date 
    mmap drivemap blocklist 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 iso9660 gcry_sha1 udf exfat font ventoy read acpi halt video_fb vbe 
    linux linux16 test true sleep reboot echo bitmap gfxterm bitmap_scale trig 
    video_colors gfxmenu videotest videoinfo diskfilter raid6rec zstd btrfs 
    functional_test videotest_checksum video_cirrus video_bochs vga minicmd 
    help configfile tr biosdisk disk ls archelp 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:       ntfs
    Boot sector type:  NTFS
    Boot sector info:  No errors found in the Boot Parameter Block.
    Operating System:  Windows 10 or 11
    Boot files:        /bootmgr /Boot/BCD /Windows/System32/winload.exe

sda2: __________________________________________________________________________

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

sda3: __________________________________________________________________________

    File system:       ext4
    Boot sector type:  -
    Boot sector info: 
    Operating System:  Ubuntu 24.04.1 LTS
    Boot files:        /boot/grub/grub.cfg /etc/fstab /etc/default/grub 
                       /boot/grub/i386-pc/core.img

sda4: __________________________________________________________________________

    File system:       ext4
    Boot sector type:  -
    Boot sector info: 
    Operating System:  Linux Mint 21.3
    Boot files:        /boot/grub/grub.cfg /etc/fstab /etc/default/grub 
                       /boot/grub/i386-pc/core.img

sdb1: __________________________________________________________________________

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

sdc1: __________________________________________________________________________

    File system:       exfat
    Boot sector type:  -
    Boot sector info: 
    Mounting failed:   mount: /mnt/BootInfo/sdc1: /dev/sdc1 already mounted or mount point busy.
       dmesg(1) may have more information after failed mount system call.

sdc2: __________________________________________________________________________

    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 
                       sdc2 and looks at sector 0 of the same hard drive for 
                       core.img, but core.img can not be found at this 
                       location.
    Operating System:  
    Boot files:        /boot/grub/grub.cfg


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

OS#1 (windows):   Windows 10 on sda1
OS#2 (linux):   Ubuntu 24.04.1 LTS on sda3
OS#3 (linux):   Linux Mint 21.3 Virginia (21.3) on sda4

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

CPU architecture: 64-bit
Video: Wrestler [Radeon HD 6310] from Advanced Micro Devices, Inc. [AMD/ATI]
Live-session OS is Ubuntu 64-bit (Ubuntu 24.04.1 LTS, noble, x86_64)

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

BIOS/UEFI firmware: V1.10(10.240) from Insyde Corp.
This live-session is in Legacy/BIOS/CSM mode (not in EFI mode).



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

Disks info: ____________________________________________________________________

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

Partitions info (1/3): _________________________________________________________

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

Partitions info (2/3): _________________________________________________________

sdb1	: isnotESP,	part-has-no-fstab,	no-nt,	no-winload,	no-recov-nor-hid,	no-bmgr,	notwinboot, ntfs
sdc1	: isnotESP,	part-has-no-fstab,	no-nt,	no-winload,	no-recov-nor-hid,	no-bmgr,	notwinboot, exfat
sda4	: isnotESP,	fstab-without-efi,	no-nt,	no-winload,	no-recov-nor-hid,	no-bmgr,	notwinboot, ext4
sda2	: isnotESP,	part-has-no-fstab,	no-nt,	no-winload,	no-recov-nor-hid,	no-bmgr,	notwinboot, vfat
sda3	: isnotESP,	fstab-without-efi,	no-nt,	no-winload,	no-recov-nor-hid,	no-bmgr,	notwinboot, ext4
sda1	: isnotESP,	part-has-no-fstab,	no-nt,	haswinload,	no-recov-nor-hid,	bootmgr,	is-winboot, ntfs

Partitions info (3/3): _________________________________________________________

sdb1	: not--sepboot,	no---boot,	part-has-no-fstab,	not-sep-usr,	no---usr,	part-has-no-fstab,	no--grub.d,	sdb
sdc1	: maybesepboot,	no---boot,	part-has-no-fstab,	not-sep-usr,	no---usr,	part-has-no-fstab,	no--grub.d,	sdc
sda4	: not--sepboot,	with-boot,	fstab-without-boot,	not-sep-usr,	with--usr,	fstab-without-usr,	std-grub.d,	sda
sda2	: not--sepboot,	no---boot,	part-has-no-fstab,	not-sep-usr,	no---usr,	part-has-no-fstab,	no--grub.d,	sda
sda3	: not--sepboot,	with-boot,	fstab-without-boot,	not-sep-usr,	with--usr,	fstab-without-usr,	std-grub.d,	sda
sda1	: not--sepboot,	no---boot,	part-has-no-fstab,	not-sep-usr,	no---usr,	part-has-no-fstab,	no--grub.d,	sda

fdisk -l (filtered): ___________________________________________________________

Disk sda: 223.57 GiB, 240057409536 bytes, 468862128 sectors
Disk identifier: 0x5f6bde28
     Boot     Start       End   Sectors   Size Id Type
sda1  *      2451456 228296703 225845248 107.7G  7 HPFS/NTFS/exFAT
sda2       306120704 307171327   1050624   513M  b W95 FAT32
sda3       228296704 306120703  77824000  37.1G 83 Linux
sda4       307171328 468860781 161689454  77.1G 83 Linux
Partition table entries are not in disk order.
Disk sdb: 596.17 GiB, 640135028736 bytes, 1250263728 sectors
Disk identifier: 0xfc05e521
     Boot Start        End    Sectors   Size Id Type
sdb1        2048 1250260991 1250258944 596.2G  7 HPFS/NTFS/exFAT
Disk sdc: 58.59 GiB, 62914560000 bytes, 122880000 sectors
Disk identifier: 0xb3034fcd
     Boot     Start       End   Sectors  Size Id Type
sdc1  *         2048 122814463 122812416 58.6G  7 HPFS/NTFS/exFAT
sdc2       122814464 122879999     65536   32M ef EFI (FAT-12/16/32)
Disk mapper/ventoy: 5.78 GiB, 6203355136 bytes, 12115928 sectors
Disk identifier: EED3DE8A-ACD3-4541-BA15-9014C007D874
                      Start      End  Sectors  Size Type
mapper/ventoy-part1       64 12105119 12105056  5.8G Microsoft basic data
mapper/ventoy-part2 12105120 12115263    10144    5M EFI System
mapper/ventoy-part3 12115264 12115863      600  300K Microsoft basic data

parted -lm (filtered): _________________________________________________________

sda:240GB:scsi:512:512:msdos:ATA LDLC F7+240GB:;
1:1255MB:117GB:116GB:ntfs::boot;
3:117GB:157GB:39.8GB:ext4::;
2:157GB:157GB:538MB:fat32::;
4:157GB:240GB:82.8GB:ext4::;
sdb:640GB:scsi:512:4096:msdos:ATA TOSHIBA MK6459GS:;
1:1049kB:640GB:640GB:ntfs::;
sdc:62.9GB:scsi:512:512:msdos:VendorCo ProductCode:;
1:1049kB:62.9GB:62.9GB:::boot;
2:62.9GB:62.9GB:33.6MB:fat16::esp;
mapper/ventoy:6203MB:dm:512:512:gpt:Linux device-mapper (linear):;
1:32.8kB:6198MB:6198MB::ISO9660:hidden, msftdata;
2:6198MB:6203MB:5194kB::Appended2:boot, esp;
3:6203MB:6203MB:307kB::Gap1:hidden, msftdata;

Free space >10MiB: ______________________________________________________________

sda: 0.03MiB:1197MiB:1197MiB

blkid (filtered): ______________________________________________________________

NAME       FSTYPE   UUID                                 PARTUUID                             LABEL  PARTLABEL
sda                                                                                                  
├─sda1     ntfs     1F7A4965342C2492                     5f6bde28-01                                 
├─sda2     vfat     FB51-8B44                            5f6bde28-02                                 
├─sda3     ext4     3b299d73-5395-45f0-b2f6-2888e48d9f6f 5f6bde28-03                                 
└─sda4     ext4     a1ad014d-440c-4ba8-935d-ba34a76a24d2 5f6bde28-04                                 
sdb                                                                                                  
└─sdb1     ntfs     7F757A765F12BD68                     fc05e521-01                                 
sdc                                                                                                  
├─sdc1     exfat    E7C8-4FF7                            b3034fcd-01                          ventoy 
│ └─ventoy                                                                                           
└─sdc2                                                                                               
sdd                                                                                                  

Mount points (filtered): _______________________________________________________

                        Avail Use% Mounted on
/dev/mapper/ventoy          0 100% /cdrom
/dev/sda1               29.6G  72% /mnt/boot-sav/sda1
/dev/sda2              511.9M   0% /mnt/boot-sav/sda2
/dev/sda3                 26G  23% /mnt/boot-sav/sda3
/dev/sda4               16.8G  73% /mnt/boot-sav/sda4
/dev/sdb1               46.1G  92% /mnt/boot-sav/sdb1

Mount options (filtered): ______________________________________________________

/dev/mapper/ventoy     iso9660         ro,noatime,nojoliet,check=s,map=n,blocksize=2048,iocharset=utf8
/dev/sda1              fuseblk         rw,relatime,user_id=0,group_id=0,allow_other,blksize=4096
/dev/sda2              vfat            rw,relatime,fmask=0022,dmask=0022,codepage=437,iocharset=iso8859-1,shortname=mixed,errors=remount-ro
/dev/sda3              ext4            rw,relatime
/dev/sda4              ext4            rw,relatime
/dev/sdb1              fuseblk         rw,relatime,user_id=0,group_id=0,allow_other,blksize=4096

============================== ls -R /dev/mapper/ ==============================

/dev/mapper:
control
ventoy

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

Ubuntu   3b299d73-5395-45f0-b2f6-2888e48d9f6f
Windows 10 (on sda1)   1F7A4965342C2492
Linux Mint 21.3 Virginia (21.3) (on sda4)   a1ad014d-440c-4ba8-935d-ba34a76a24d2
### END /etc/grub.d/30_os-prober ###
UEFI Firmware Settings   uefi-firmware
### END /etc/grub.d/30_uefi-firmware ###

========================== sda3/etc/fstab (filtered) ===========================

# <file system> <mount point>   <type>  <options>       <dump>  <pass>
# / was on /dev/sda3 during curtin installation
/dev/disk/by-uuid/3b299d73-5395-45f0-b2f6-2888e48d9f6f / ext4 defaults 0 1
/swap.img	none	swap	sw	0	0

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

GRUB_DEFAULT=0
GRUB_TIMEOUT_STYLE=hidden
GRUB_TIMEOUT=0
GRUB_DISTRIBUTOR=`( . /etc/os-release; echo ${NAME:-Ubuntu} ) 2>/dev/null || echo Ubuntu`
GRUB_CMDLINE_LINUX_DEFAULT="quiet splash"
GRUB_CMDLINE_LINUX=""

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

           GiB - GB             File                                 Fragment(s)
 122.084003448 = 131.086700544  boot/grub/grub.cfg                             1
 122.083919525 = 131.086610432  boot/grub/i386-pc/core.img                     1
 120.850833893 = 129.762594816  boot/vmlinuz                                   1
 120.850833893 = 129.762594816  boot/vmlinuz-6.8.0-41-generic                  1
 120.850833893 = 129.762594816  boot/vmlinuz.old                               1
 116.610347748 = 125.209407488  boot/initrd.img                                2
 116.610347748 = 125.209407488  boot/initrd.img-6.8.0-41-generic               2
 116.610347748 = 125.209407488  boot/initrd.img.old                            2

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

-rwxr-xr-x 1 root root 18133 Apr  4  2024 10_linux
-rwxr-xr-x 1 root root 43202 Apr  4  2024 10_linux_zfs
-rwxr-xr-x 1 root root 14513 Apr  4  2024 20_linux_xen
-rwxr-xr-x 1 root root   786 Apr  4  2024 25_bli
-rwxr-xr-x 1 root root 13120 Apr  4  2024 30_os-prober
-rwxr-xr-x 1 root root  1174 Apr  4  2024 30_uefi-firmware
-rwxr-xr-x 1 root root   722 Apr  5  2024 35_fwupd
-rwxr-xr-x 1 root root   214 Apr  4  2024 40_custom
-rwxr-xr-x 1 root root   215 Apr  4  2024 41_custom

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

Linux Mint 21.3 MATE   a1ad014d-440c-4ba8-935d-ba34a76a24d2
Windows 10 (on sda1)   1F7A4965342C2492
Ubuntu 24.04.1 LTS (24.04) (on sda3)   3b299d73-5395-45f0-b2f6-2888e48d9f6f
### 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=a1ad014d-440c-4ba8-935d-ba34a76a24d2 /               ext4    errors=remount-ro 0       1
/swapfile                                 none            swap    sw              0       0

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

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

           GiB - GB             File                                 Fragment(s)
 217.094573975 = 233.103523840  boot/grub/grub.cfg                             1
 217.094398499 = 233.103335424  boot/grub/i386-pc/core.img                     1
 162.325363159 = 174.295531520  boot/vmlinuz                                   2
 162.325363159 = 174.295531520  boot/vmlinuz-5.15.0-131-generic                2
 217.684585571 = 233.737043968  boot/vmlinuz-5.15.0-60-generic                 1
 214.184646606 = 229.979013120  boot/vmlinuz-5.15.0-88-generic                 1
 214.184646606 = 229.979013120  boot/vmlinuz.old                               1
 204.049327850 = 219.096297472  boot/initrd.img                                4
 204.049327850 = 219.096297472  boot/initrd.img-5.15.0-131-generic             4
 177.768016815 = 190.876954624  boot/initrd.img-5.15.0-60-generic              1
 178.220699310 = 191.363018752  boot/initrd.img-5.15.0-88-generic              2
 178.220699310 = 191.363018752  boot/initrd.img.old                            2

===================== 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 Feb 21  2022 35_fwupd
-rwxr-xr-x 1 root root   214 Aug 12  2021 40_custom
-rwxr-xr-x 1 root root   215 Dec  2  2022 41_custom

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

Try or Install Ubuntu
Ubuntu (safe graphics)
Boot from next volume
UEFI Firmware Settings
Test memory

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

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

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

Unknown BootLoader on sdb1


================================= User choice ==================================

Is there RAID on this computer? no



Suggested repair: ______________________________________________________________

The default repair of the Boot-Repair utility would reinstall the grub2 of
sda4 into the MBR of sda.
Grub-efi would not be selected by default because no ESP detected.
Additional repair would be performed: unhide-bootmenu-10s

Final advice in case of suggested repair: ______________________________________

Please do not forget to make your BIOS boot on sda (ATA LDLC F7+240GB) 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)

Conseils pour les nouveaux demandeurs et pas qu'eux
Important : Pensez à passer vos sujets en [Réso|u] 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 07/02/2025, à 21:33

geole

Re : Grub rescue s'affiche après Instalation Ubuntu 24 04 [résolu]

Bonsoir.
D'après le contenu de boot-repair.
Mint devrait te proposer de lancer ubuntu.

 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.

sda4: __________________________________________________________________________
    File system:       ext4
    Operating System:  Linux Mint 21.3
    Boot files:        /boot/grub/grub.cfg /etc/fstab /etc/default/grub 
                       /boot/grub/i386-pc

====================== sda4/boot/grub/grub.cfg (filtered) ======================
Linux Mint 21.3 MATE   a1ad014d-440c-4ba8-935d-ba34a76a24d2
Windows 10 (on sda1)   1F7A4965342C2492
Ubuntu 24.04.1 LTS (24.04) (on sda3)   3b299d73-5395-45f0-b2f6-2888e48d9f6f
### END /etc/grub.d/30_os-prober ###

========================== sda3/etc/fstab (filtered) ===========================
# <file system> <mount point>   <type>  <options>       <dump>  <pass>
# / was on /dev/sda3 during curtin installation
/dev/disk/by-uuid/3b299d73-5395-45f0-b2f6-2888e48d9f6f / ext4 defaults 0 1

Alors essaie de mieux décrire la séquence de boot.

Dernière modification par geole (Le 07/02/2025, à 21:43)


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

En ligne

#4 Le 07/02/2025, à 21:53

tontondico

Re : Grub rescue s'affiche après Instalation Ubuntu 24 04 [résolu]

Seulement n'ayant pas accès ( en session normale) à Mint , je ne peux pas vérifier!  Ce qui voudrait dire que le grub "n'est pas au bon endroit" c'est ça ?
Je ne sais pas si ça peut aider, j'ai fait un autre boot info après tentative de réparation : Boot info après réparation


HP Pavilion RAM 3.7Go; Intel® Pentium(R) CPU N3540 @ 2.16GHz × 4; SSD 256Go + HDD 1To; Intel® HD Graphics (BYT)
Ubuntu 24.04.2 LTS sur SSD; W10 sur HDD

Hors ligne

#5 Le 07/02/2025, à 21:56

xubu1957

Re : Grub rescue s'affiche après Instalation Ubuntu 24 04 [résolu]

Essai n°2 :

boot-repair-4ppa2074                                              [20250207_1812]

============================== 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
    ---------------------------------------------------------------------------
 => 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 /boot/grub. It also embeds following components:
    
    modules
    ---------------------------------------------------------------------------
    fshelp ext2 part_msdos biosdisk search_fs_uuid
    ---------------------------------------------------------------------------
    
    config script
    ---------------------------------------------------------------------------
    search.fs_uuid a1ad014d-440c-4ba8-935d-ba34a76a24d2 root hd0,msdos4 
    set prefix=($root)'/boot/grub'
    
    ---------------------------------------------------------------------------
 => Grub2 (v2.00) is installed in the MBR of /dev/sdc and looks at sector 1 of 
    the same hard drive for core.img. core.img is at this location and looks 
    for (,msdos2)/grub. It also embeds following components:
    
    modules
    ---------------------------------------------------------------------------
    gettext boot extcmd bufio verifiers crypto terminal normal datetime date 
    mmap drivemap blocklist 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 iso9660 gcry_sha1 udf exfat font ventoy read acpi halt video_fb vbe 
    linux linux16 test true sleep reboot echo bitmap gfxterm bitmap_scale trig 
    video_colors gfxmenu videotest videoinfo diskfilter raid6rec zstd btrfs 
    functional_test videotest_checksum video_cirrus video_bochs vga minicmd 
    help configfile tr biosdisk disk ls archelp 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:       ntfs
    Boot sector type:  NTFS
    Boot sector info:  No errors found in the Boot Parameter Block.
    Operating System:  Windows 10 or 11
    Boot files:        /bootmgr /Boot/BCD /Windows/System32/winload.exe

sda2: __________________________________________________________________________

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

sda3: __________________________________________________________________________

    File system:       ext4
    Boot sector type:  -
    Boot sector info: 
    Operating System:  Ubuntu 24.04.1 LTS
    Boot files:        /boot/grub/grub.cfg /etc/fstab /etc/default/grub 
                       /boot/grub/i386-pc/core.img

sda4: __________________________________________________________________________

    File system:       ext4
    Boot sector type:  -
    Boot sector info: 
    Operating System:  Linux Mint 21.3
    Boot files:        /boot/grub/grub.cfg /etc/fstab /etc/default/grub 
                       /boot/grub/i386-pc/core.img

sdb1: __________________________________________________________________________

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

sdc1: __________________________________________________________________________

    File system:       exfat
    Boot sector type:  -
    Boot sector info: 
    Mounting failed:   mount: /mnt/BootInfo/sdc1: /dev/sdc1 already mounted or mount point busy.

sdc2: __________________________________________________________________________

    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 on sda1
OS#2:   Ubuntu 24.04.1 LTS on sda3
OS#3:   Linux Mint 21.3 Virginia (21.3) on sda4

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

CPU architecture: 64-bit
Video: Wrestler [Radeon HD 6310] from Advanced Micro Devices, Inc. [AMD/ATI]
Live-session OS is Linuxmint 64-bit (Linux Mint 21.2, victoria, x86_64)

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

BIOS/UEFI firmware: V1.10(10.240) from Insyde Corp.
This live-session is in Legacy/BIOS/CSM mode (not in EFI mode).



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

Disks info: ____________________________________________________________________

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

Partitions info (1/3): _________________________________________________________

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

Partitions info (2/3): _________________________________________________________

sdb1	: 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
sda2	: isnotESP,	part-has-no-fstab,	no-nt,	no-winload,	no-recov-nor-hid,	no-bmgr,	notwinboot
sda3	: isnotESP,	fstab-without-efi,	no-nt,	no-winload,	no-recov-nor-hid,	no-bmgr,	notwinboot
sda1	: isnotESP,	part-has-no-fstab,	no-nt,	haswinload,	no-recov-nor-hid,	bootmgr,	is-winboot

Partitions info (3/3): _________________________________________________________

sdb1	: not--sepboot,	no---boot,	part-has-no-fstab,	not-sep-usr,	no---usr,	part-has-no-fstab,	no--grub.d,	sdb
sda4	: not--sepboot,	with-boot,	fstab-without-boot,	not-sep-usr,	with--usr,	fstab-without-usr,	std-grub.d,	sda
sda2	: not--sepboot,	no---boot,	part-has-no-fstab,	not-sep-usr,	no---usr,	part-has-no-fstab,	no--grub.d,	sda
sda3	: not--sepboot,	with-boot,	fstab-without-boot,	not-sep-usr,	with--usr,	fstab-without-usr,	std-grub.d,	sda
sda1	: not--sepboot,	no---boot,	part-has-no-fstab,	not-sep-usr,	no---usr,	part-has-no-fstab,	no--grub.d,	sda

fdisk -l (filtered): ___________________________________________________________

Disk sda: 223.57 GiB, 240057409536 bytes, 468862128 sectors
Disk identifier: 0x5f6bde28
     Boot     Start       End   Sectors   Size Id Type
sda1  *      2451456 228296703 225845248 107.7G  7 HPFS/NTFS/exFAT
sda2       306120704 307171327   1050624   513M  b W95 FAT32
sda3       228296704 306120703  77824000  37.1G 83 Linux
sda4       307171328 468860781 161689454  77.1G 83 Linux
Partition table entries are not in disk order.
Disk sdb: 596.17 GiB, 640135028736 bytes, 1250263728 sectors
Disk identifier: 0xfc05e521
     Boot Start        End    Sectors   Size Id Type
sdb1        2048 1250260991 1250258944 596.2G  7 HPFS/NTFS/exFAT
Disk sdc: 58.59 GiB, 62914560000 bytes, 122880000 sectors
Disk identifier: 0xb3034fcd
     Boot     Start       End   Sectors  Size Id Type
sdc1  *         2048 122814463 122812416 58.6G  7 HPFS/NTFS/exFAT
sdc2       122814464 122879999     65536   32M ef EFI (FAT-12/16/32)
Disk dm-0: 2.45 GiB, 2630877184 bytes, 5138432 sectors
Disk identifier: 0x14eb2669
      Boot Start     End Sectors  Size Id Type
dm-0p1 *        0 5138431 5138432  2.5G  0 Empty
dm-0p2        572    9067    8496  4.1M ef EFI (FAT-12/16/32)

parted -lm (filtered): _________________________________________________________

sda:240GB:scsi:512:512:msdos:ATA LDLC F7+240GB:;
1:1255MB:117GB:116GB:ntfs::boot;
3:117GB:157GB:39.8GB:ext4::;
2:157GB:157GB:538MB:fat32::;
4:157GB:240GB:82.8GB:ext4::;
sdb:640GB:scsi:512:4096:msdos:ATA TOSHIBA MK6459GS:;
1:1049kB:640GB:640GB:ntfs::;
sdc:62.9GB:scsi:512:512:msdos:VendorCo ProductCode:;
1:1049kB:62.9GB:62.9GB:::boot;
2:62.9GB:62.9GB:33.6MB:fat16::esp;

Free space >10MiB: ______________________________________________________________

sda: 0.03MiB:1197MiB:1197MiB

blkid (filtered): ______________________________________________________________

NAME   FSTYPE   UUID                                 PARTUUID                             LABEL                  PARTLABEL
sda                                                                                                              
├─sda1 ntfs     1F7A4965342C2492                     5f6bde28-01                                                 
├─sda2 vfat     FB51-8B44                            5f6bde28-02                                                 
├─sda3 ext4     3b299d73-5395-45f0-b2f6-2888e48d9f6f 5f6bde28-03                                                 
└─sda4 ext4     a1ad014d-440c-4ba8-935d-ba34a76a24d2 5f6bde28-04                                                 
sdb                                                                                                              
└─sdb1 ntfs     7F757A765F12BD68                     fc05e521-01                                                 
sdc                                                                                                              
├─sdc1 exfat    E7C8-4FF7                            b3034fcd-01                          ventoy                 
└─sdc2 iso9660  2023-12-23-05-05-55-00                                                    Boot-Repair-Disk 64bit 
sdd                                                                                                              

Mount points (filtered): _______________________________________________________

                    Avail Use% Mounted on
/dev/mapper/ventoy      0 100% /cdrom
/dev/sda1           29.6G  72% /mnt/boot-sav/sda1
/dev/sda2          511.9M   0% /mnt/boot-sav/sda2
/dev/sda3             26G  23% /mnt/boot-sav/sda3
/dev/sda4           16.8G  73% /mnt/boot-sav/sda4
/dev/sdb1           46.1G  92% /mnt/boot-sav/sdb1
/dev/sdc2               0 100% /media/mint/Boot-Repair-Disk 64bit

Mount options (filtered): ______________________________________________________

/dev/mapper/ventoy iso9660         ro,noatime,nojoliet,check=s,map=n,blocksize=2048,iocharset=utf8
/dev/sda1          fuseblk         rw,relatime,user_id=0,group_id=0,allow_other,blksize=4096
/dev/sda2          vfat            rw,relatime,fmask=0022,dmask=0022,codepage=437,iocharset=iso8859-1,shortname=mixed,errors=remount-ro
/dev/sda3          ext4            rw,relatime
/dev/sda4          ext4            rw,relatime
/dev/sdb1          fuseblk         rw,relatime,user_id=0,group_id=0,allow_other,blksize=4096
/dev/sdc2          iso9660         ro,nosuid,nodev,relatime,nojoliet,check=s,map=n,blocksize=2048,iocharset=utf8

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

Ubuntu   3b299d73-5395-45f0-b2f6-2888e48d9f6f
Windows 10 (on sda1)   1F7A4965342C2492
Linux Mint 21.3 Virginia (21.3) (on sda4)   a1ad014d-440c-4ba8-935d-ba34a76a24d2
### END /etc/grub.d/30_os-prober ###
UEFI Firmware Settings   uefi-firmware
### END /etc/grub.d/30_uefi-firmware ###

========================== sda3/etc/fstab (filtered) ===========================

# <file system> <mount point>   <type>  <options>       <dump>  <pass>
# / was on /dev/sda3 during curtin installation
/dev/disk/by-uuid/3b299d73-5395-45f0-b2f6-2888e48d9f6f / ext4 defaults 0 1
/swap.img	none	swap	sw	0	0

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

GRUB_DEFAULT=0
GRUB_TIMEOUT_STYLE=hidden
GRUB_TIMEOUT=0
GRUB_DISTRIBUTOR=`( . /etc/os-release; echo ${NAME:-Ubuntu} ) 2>/dev/null || echo Ubuntu`
GRUB_CMDLINE_LINUX_DEFAULT="quiet splash"
GRUB_CMDLINE_LINUX=""

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

           GiB - GB             File                                 Fragment(s)
 122.583019257 = 131.622514688  boot/grub/grub.cfg                             1
 122.083919525 = 131.086610432  boot/grub/i386-pc/core.img                     1
 120.850833893 = 129.762594816  boot/vmlinuz                                   1
 120.850833893 = 129.762594816  boot/vmlinuz-6.8.0-41-generic                  1
 120.850833893 = 129.762594816  boot/vmlinuz.old                               1
 116.610347748 = 125.209407488  boot/initrd.img                                2
 116.610347748 = 125.209407488  boot/initrd.img-6.8.0-41-generic               2
 116.610347748 = 125.209407488  boot/initrd.img.old                            2

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

-rwxr-xr-x 1 root root 18133 Apr  4  2024 10_linux
-rwxr-xr-x 1 root root 43202 Apr  4  2024 10_linux_zfs
-rwxr-xr-x 1 root root 14513 Apr  4  2024 20_linux_xen
-rwxr-xr-x 1 root root   786 Apr  4  2024 25_bli
-rwxr-xr-x 1 root root 13120 Apr  4  2024 30_os-prober
-rwxr-xr-x 1 root root  1174 Apr  4  2024 30_uefi-firmware
-rwxr-xr-x 1 root root   722 Apr  5  2024 35_fwupd
-rwxr-xr-x 1 root root   214 Apr  4  2024 40_custom
-rwxr-xr-x 1 root root   215 Apr  4  2024 41_custom

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

Ubuntu   a1ad014d-440c-4ba8-935d-ba34a76a24d2
Windows 10 (on sda1)   1F7A4965342C2492
Ubuntu 24.04.1 LTS (24.04) (on sda3)   3b299d73-5395-45f0-b2f6-2888e48d9f6f
### 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=a1ad014d-440c-4ba8-935d-ba34a76a24d2 /               ext4    errors=remount-ro 0       1
/swapfile                                 none            swap    sw              0       0

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

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

           GiB - GB             File                                 Fragment(s)
 207.256381989 = 222.539845632  boot/grub/grub.cfg                             1
 207.256355286 = 222.539816960  boot/grub/i386-pc/core.img                     1
 162.325363159 = 174.295531520  boot/vmlinuz                                   2
 162.325363159 = 174.295531520  boot/vmlinuz-5.15.0-131-generic                2
 217.684585571 = 233.737043968  boot/vmlinuz-5.15.0-60-generic                 1
 214.184646606 = 229.979013120  boot/vmlinuz-5.15.0-88-generic                 1
 214.184646606 = 229.979013120  boot/vmlinuz.old                               1
 204.049327850 = 219.096297472  boot/initrd.img                                4
 204.049327850 = 219.096297472  boot/initrd.img-5.15.0-131-generic             4
 177.768016815 = 190.876954624  boot/initrd.img-5.15.0-60-generic              1
 178.220699310 = 191.363018752  boot/initrd.img-5.15.0-88-generic              2
 178.220699310 = 191.363018752  boot/initrd.img.old                            2

===================== 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 Feb 21  2022 35_fwupd
-rwxr-xr-x 1 root root   214 Aug 12  2021 40_custom
-rwxr-xr-x 1 root root   215 Dec  2  2022 41_custom

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


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

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

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

Unknown BootLoader on sdb1

Unknown BootLoader on sdc2




Suggested repair: ______________________________________________________________

The default repair of the Boot-Repair utility would reinstall the grub2 of
sda4 into the MBR of sda.
Grub-efi would not be selected by default because no ESP detected.
Additional repair would be performed: unhide-bootmenu-10s

Final advice in case of suggested repair: ______________________________________

Please do not forget to make your BIOS boot on sda (ATA LDLC F7+240GB) 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)

Conseils pour les nouveaux demandeurs et pas qu'eux
Important : Pensez à passer vos sujets en [Réso|u] 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 07/02/2025, à 22:18

geole

Re : Grub rescue s'affiche après Instalation Ubuntu 24 04 [résolu]

Il n'y a pas de changement visible entre les deux boot-info
Alors, lance boot-repair, Choisis réparation standard  et publie son exécution puisque

The default repair of the Boot-Repair utility would reinstall the grub2 of sda4 into the MBR of sda. 

Dernière modification par geole (Le 07/02/2025, à 22:23)


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

En ligne

#7 Le 07/02/2025, à 22:45

tontondico

Re : Grub rescue s'affiche après Instalation Ubuntu 24 04 [résolu]

Le 2ème boot info est bien différent du premier, tout du moins, ils ont été fait successivement. J'ai dû faire au moins une autre tentative de réparation entre les 2 ! Et  il y a moins de ligne dans le second.
Si il n'y a aucune différence notable, c'est, soit je me suis trompé et le 1er boot info a été enregistré après la réparation, soit il n'y a pas de réparation! Boot repair ne sait pas faire quelque chose de différent entre 2 tentatives !


HP Pavilion RAM 3.7Go; Intel® Pentium(R) CPU N3540 @ 2.16GHz × 4; SSD 256Go + HDD 1To; Intel® HD Graphics (BYT)
Ubuntu 24.04.2 LTS sur SSD; W10 sur HDD

Hors ligne

#8 Le 07/02/2025, à 23:48

tontondico

Re : Grub rescue s'affiche après Instalation Ubuntu 24 04 [résolu]

Comme demandé :

geole a écrit :

Alors, lance boot-repair, Choisis réparation standard  et publie son exécution puisque : The default repair of the Boot-Repair utility would reinstall the grub2 of sda4 into the MBR of sda.

Voici un nouveau boot info après réparation standart : boot info 3


HP Pavilion RAM 3.7Go; Intel® Pentium(R) CPU N3540 @ 2.16GHz × 4; SSD 256Go + HDD 1To; Intel® HD Graphics (BYT)
Ubuntu 24.04.2 LTS sur SSD; W10 sur HDD

Hors ligne

#9 Le 08/02/2025, à 07:49

xubu1957

Re : Grub rescue s'affiche après Instalation Ubuntu 24 04 [résolu]

Bonjour,

Troisième publication :

boot-repair-4ppa2074                                              [20250207_2202]

============================= Boot Repair Summary ==============================






Recommended repair: ____________________________________________________________

The default repair of the Boot-Repair utility will reinstall the grub2 of
sda4 into the MBR of sda.
Grub-efi will not be selected by default because no ESP detected.
Additional repair will be performed: unhide-bootmenu-10s



======================= Reinstall the grub2 of /dev/sda4 =======================

chroot /mnt/boot-sav/sda4 grub-install --version
grub-install (GRUB) 2.06-2ubuntu7.2

==> Reinstall the GRUB of /dev/sda4 into the MBR of /dev/sda

chroot /mnt/boot-sav/sda4 grub-install /dev/sda
Installing for i386-pc platform.
Installation finished. No error reported.

chroot /mnt/boot-sav/sda4 update-grub
Sourcing file `/etc/default/grub'
Sourcing file `/etc/default/grub.d/50_linuxmint.cfg'
Sourcing file `/etc/default/grub.d/init-select.cfg'
Found linux image: /boot/vmlinuz-5.15.0-131-generic
Found initrd image: /boot/initrd.img-5.15.0-131-generic
Found linux image: /boot/vmlinuz-5.15.0-88-generic
Found initrd image: /boot/initrd.img-5.15.0-88-generic
Found linux image: /boot/vmlinuz-5.15.0-60-generic
Found initrd image: /boot/initrd.img-5.15.0-60-generic
grub-probe: error: cannot find a GRUB drive for /dev/sdc2.  Check your device.map.
Found Windows 10 on /dev/sda1
Found Ubuntu 24.04.1 LTS (24.04) on /dev/sda3

Unhide GRUB boot menu in sda4/boot/grub/grub.cfg

Boot successfully repaired.

You can now reboot your computer.
Please do not forget to make your BIOS boot on sda (ATA LDLC F7+240GB) 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)

============================ Boot Info After Repair ============================

 => 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
    ---------------------------------------------------------------------------
 => 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 /boot/grub. It also embeds following components:
    
    modules
    ---------------------------------------------------------------------------
    fshelp ext2 part_msdos biosdisk search_fs_uuid
    ---------------------------------------------------------------------------
    
    config script
    ---------------------------------------------------------------------------
    search.fs_uuid a1ad014d-440c-4ba8-935d-ba34a76a24d2 root hd0,msdos4 
    set prefix=($root)'/boot/grub'
    
    ---------------------------------------------------------------------------
 => Grub2 (v2.00) is installed in the MBR of /dev/sdc and looks at sector 1 of 
    the same hard drive for core.img. core.img is at this location and looks 
    for (,msdos2)/grub. It also embeds following components:
    
    modules
    ---------------------------------------------------------------------------
    gettext boot extcmd bufio verifiers crypto terminal normal datetime date 
    mmap drivemap blocklist 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 iso9660 gcry_sha1 udf exfat font ventoy read acpi halt video_fb vbe 
    linux linux16 test true sleep reboot echo bitmap gfxterm bitmap_scale trig 
    video_colors gfxmenu videotest videoinfo diskfilter raid6rec zstd btrfs 
    functional_test videotest_checksum video_cirrus video_bochs vga minicmd 
    help configfile tr biosdisk disk ls archelp 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:       ntfs
    Boot sector type:  NTFS
    Boot sector info:  No errors found in the Boot Parameter Block.
    Operating System:  Windows 10 or 11
    Boot files:        /bootmgr /Boot/BCD /Windows/System32/winload.exe

sda2: __________________________________________________________________________

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

sda3: __________________________________________________________________________

    File system:       ext4
    Boot sector type:  -
    Boot sector info: 
    Operating System:  Ubuntu 24.04.1 LTS
    Boot files:        /boot/grub/grub.cfg /etc/fstab /etc/default/grub 
                       /boot/grub/i386-pc/core.img

sda4: __________________________________________________________________________

    File system:       ext4
    Boot sector type:  -
    Boot sector info: 
    Operating System:  Linux Mint 21.3
    Boot files:        /boot/grub/grub.cfg /etc/fstab /etc/default/grub 
                       /boot/grub/i386-pc/core.img

sdb1: __________________________________________________________________________

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

sdc1: __________________________________________________________________________

    File system:       exfat
    Boot sector type:  -
    Boot sector info: 
    Mounting failed:   mount: /mnt/BootInfo/sdc1: /dev/sdc1 already mounted or mount point busy.

sdc2: __________________________________________________________________________

    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 on sda1
OS#2:   Ubuntu 24.04.1 LTS on sda3
OS#3:   Linux Mint 21.3 Virginia (21.3) on sda4

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

CPU architecture: 64-bit
Video: Wrestler [Radeon HD 6310] from Advanced Micro Devices, Inc. [AMD/ATI]
Live-session OS is Linuxmint 64-bit (Linux Mint 21.2, victoria, x86_64)

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

BIOS/UEFI firmware: V1.10(10.240) from Insyde Corp.
This live-session is in Legacy/BIOS/CSM mode (not in EFI mode).



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

Disks info: ____________________________________________________________________

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

Partitions info (1/3): _________________________________________________________

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

Partitions info (2/3): _________________________________________________________

sdb1	: 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
sda2	: isnotESP,	part-has-no-fstab,	no-nt,	no-winload,	no-recov-nor-hid,	no-bmgr,	notwinboot
sda3	: isnotESP,	fstab-without-efi,	no-nt,	no-winload,	no-recov-nor-hid,	no-bmgr,	notwinboot
sda1	: isnotESP,	part-has-no-fstab,	no-nt,	haswinload,	no-recov-nor-hid,	bootmgr,	is-winboot

Partitions info (3/3): _________________________________________________________

sdb1	: not--sepboot,	no---boot,	part-has-no-fstab,	not-sep-usr,	no---usr,	part-has-no-fstab,	no--grub.d,	sdb
sda4	: not--sepboot,	with-boot,	fstab-without-boot,	not-sep-usr,	with--usr,	fstab-without-usr,	std-grub.d,	sda
sda2	: not--sepboot,	no---boot,	part-has-no-fstab,	not-sep-usr,	no---usr,	part-has-no-fstab,	no--grub.d,	sda
sda3	: not--sepboot,	with-boot,	fstab-without-boot,	not-sep-usr,	with--usr,	fstab-without-usr,	std-grub.d,	sda
sda1	: not--sepboot,	no---boot,	part-has-no-fstab,	not-sep-usr,	no---usr,	part-has-no-fstab,	no--grub.d,	sda

fdisk -l (filtered): ___________________________________________________________

Disk sda: 223.57 GiB, 240057409536 bytes, 468862128 sectors
Disk identifier: 0x5f6bde28
     Boot     Start       End   Sectors   Size Id Type
sda1  *      2451456 228296703 225845248 107.7G  7 HPFS/NTFS/exFAT
sda2       306120704 307171327   1050624   513M  b W95 FAT32
sda3       228296704 306120703  77824000  37.1G 83 Linux
sda4       307171328 468860781 161689454  77.1G 83 Linux
Partition table entries are not in disk order.
Disk sdb: 596.17 GiB, 640135028736 bytes, 1250263728 sectors
Disk identifier: 0xfc05e521
     Boot Start        End    Sectors   Size Id Type
sdb1        2048 1250260991 1250258944 596.2G  7 HPFS/NTFS/exFAT
Disk sdc: 58.59 GiB, 62914560000 bytes, 122880000 sectors
Disk identifier: 0xb3034fcd
     Boot     Start       End   Sectors  Size Id Type
sdc1  *         2048 122814463 122812416 58.6G  7 HPFS/NTFS/exFAT
sdc2       122814464 122879999     65536   32M ef EFI (FAT-12/16/32)
Disk dm-0: 2.45 GiB, 2630877184 bytes, 5138432 sectors
Disk identifier: 0x14eb2669
      Boot Start     End Sectors  Size Id Type
dm-0p1 *        0 5138431 5138432  2.5G  0 Empty
dm-0p2        572    9067    8496  4.1M ef EFI (FAT-12/16/32)

parted -lm (filtered): _________________________________________________________

sda:240GB:scsi:512:512:msdos:ATA LDLC F7+240GB:;
1:1255MB:117GB:116GB:ntfs::boot;
3:117GB:157GB:39.8GB:ext4::;
2:157GB:157GB:538MB:fat32::;
4:157GB:240GB:82.8GB:ext4::;
sdb:640GB:scsi:512:4096:msdos:ATA TOSHIBA MK6459GS:;
1:1049kB:640GB:640GB:ntfs::;
sdc:62.9GB:scsi:512:512:msdos:VendorCo ProductCode:;
1:1049kB:62.9GB:62.9GB:::boot;
2:62.9GB:62.9GB:33.6MB:fat16::esp;

Free space >10MiB: ______________________________________________________________

sda: 0.03MiB:1197MiB:1197MiB

blkid (filtered): ______________________________________________________________

NAME   FSTYPE   UUID                                 PARTUUID                             LABEL                  PARTLABEL
sda                                                                                                              
├─sda1 ntfs     1F7A4965342C2492                     5f6bde28-01                                                 
├─sda2 vfat     FB51-8B44                            5f6bde28-02                                                 
├─sda3 ext4     3b299d73-5395-45f0-b2f6-2888e48d9f6f 5f6bde28-03                                                 
└─sda4 ext4     a1ad014d-440c-4ba8-935d-ba34a76a24d2 5f6bde28-04                                                 
sdb                                                                                                              
└─sdb1 ntfs     7F757A765F12BD68                     fc05e521-01                                                 
sdc                                                                                                              
├─sdc1 exfat    E7C8-4FF7                            b3034fcd-01                          ventoy                 
└─sdc2 iso9660  2023-12-23-05-05-55-00                                                    Boot-Repair-Disk 64bit 
sdd                                                                                                              

Mount points (filtered): _______________________________________________________

                    Avail Use% Mounted on
/dev/mapper/ventoy      0 100% /cdrom
/dev/sda1           29.6G  72% /mnt/boot-sav/sda1
/dev/sda2          511.9M   0% /mnt/boot-sav/sda2
/dev/sda3             26G  23% /mnt/boot-sav/sda3
/dev/sda4           16.8G  73% /mnt/boot-sav/sda4
/dev/sdb1           46.1G  92% /mnt/boot-sav/sdb1
/dev/sdc2               0 100% /media/mint/Boot-Repair-Disk 64bit

Mount options (filtered): ______________________________________________________

/dev/mapper/ventoy iso9660         ro,noatime,nojoliet,check=s,map=n,blocksize=2048,iocharset=utf8
/dev/sda1          fuseblk         rw,relatime,user_id=0,group_id=0,allow_other,blksize=4096
/dev/sda2          vfat            rw,relatime,fmask=0022,dmask=0022,codepage=437,iocharset=iso8859-1,shortname=mixed,errors=remount-ro
/dev/sda3          ext4            rw,relatime
/dev/sda4          ext4            rw,relatime
/dev/sdb1          fuseblk         rw,relatime,user_id=0,group_id=0,allow_other,blksize=4096
/dev/sdc2          iso9660         ro,nosuid,nodev,relatime,nojoliet,check=s,map=n,blocksize=2048,iocharset=utf8

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

Ubuntu   3b299d73-5395-45f0-b2f6-2888e48d9f6f
Windows 10 (on sda1)   1F7A4965342C2492
Linux Mint 21.3 Virginia (21.3) (on sda4)   a1ad014d-440c-4ba8-935d-ba34a76a24d2
### END /etc/grub.d/30_os-prober ###
UEFI Firmware Settings   uefi-firmware
### END /etc/grub.d/30_uefi-firmware ###

========================== sda3/etc/fstab (filtered) ===========================

# <file system> <mount point>   <type>  <options>       <dump>  <pass>
# / was on /dev/sda3 during curtin installation
/dev/disk/by-uuid/3b299d73-5395-45f0-b2f6-2888e48d9f6f / ext4 defaults 0 1
/swap.img	none	swap	sw	0	0

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

GRUB_DEFAULT=0
GRUB_TIMEOUT_STYLE=hidden
GRUB_TIMEOUT=0
GRUB_DISTRIBUTOR=`( . /etc/os-release; echo ${NAME:-Ubuntu} ) 2>/dev/null || echo Ubuntu`
GRUB_CMDLINE_LINUX_DEFAULT="quiet splash"
GRUB_CMDLINE_LINUX=""

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

           GiB - GB             File                                 Fragment(s)
 122.583019257 = 131.622514688  boot/grub/grub.cfg                             1
 122.083919525 = 131.086610432  boot/grub/i386-pc/core.img                     1
 120.850833893 = 129.762594816  boot/vmlinuz                                   1
 120.850833893 = 129.762594816  boot/vmlinuz-6.8.0-41-generic                  1
 120.850833893 = 129.762594816  boot/vmlinuz.old                               1
 116.610347748 = 125.209407488  boot/initrd.img                                2
 116.610347748 = 125.209407488  boot/initrd.img-6.8.0-41-generic               2
 116.610347748 = 125.209407488  boot/initrd.img.old                            2

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

-rwxr-xr-x 1 root root 18133 Apr  4  2024 10_linux
-rwxr-xr-x 1 root root 43202 Apr  4  2024 10_linux_zfs
-rwxr-xr-x 1 root root 14513 Apr  4  2024 20_linux_xen
-rwxr-xr-x 1 root root   786 Apr  4  2024 25_bli
-rwxr-xr-x 1 root root 13120 Apr  4  2024 30_os-prober
-rwxr-xr-x 1 root root  1174 Apr  4  2024 30_uefi-firmware
-rwxr-xr-x 1 root root   722 Apr  5  2024 35_fwupd
-rwxr-xr-x 1 root root   214 Apr  4  2024 40_custom
-rwxr-xr-x 1 root root   215 Apr  4  2024 41_custom

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

Ubuntu   a1ad014d-440c-4ba8-935d-ba34a76a24d2
Windows 10 (on sda1)   1F7A4965342C2492
Ubuntu 24.04.1 LTS (24.04) (on sda3)   3b299d73-5395-45f0-b2f6-2888e48d9f6f
### 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=a1ad014d-440c-4ba8-935d-ba34a76a24d2 /               ext4    errors=remount-ro 0       1
/swapfile                                 none            swap    sw              0       0

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

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

           GiB - GB             File                                 Fragment(s)
 170.382118225 = 182.946406400  boot/grub/grub.cfg                             1
 170.382072449 = 182.946357248  boot/grub/i386-pc/core.img                     1
 162.325363159 = 174.295531520  boot/vmlinuz                                   2
 162.325363159 = 174.295531520  boot/vmlinuz-5.15.0-131-generic                2
 217.684585571 = 233.737043968  boot/vmlinuz-5.15.0-60-generic                 1
 214.184646606 = 229.979013120  boot/vmlinuz-5.15.0-88-generic                 1
 214.184646606 = 229.979013120  boot/vmlinuz.old                               1
 204.049327850 = 219.096297472  boot/initrd.img                                4
 204.049327850 = 219.096297472  boot/initrd.img-5.15.0-131-generic             4
 177.768016815 = 190.876954624  boot/initrd.img-5.15.0-60-generic              1
 178.220699310 = 191.363018752  boot/initrd.img-5.15.0-88-generic              2
 178.220699310 = 191.363018752  boot/initrd.img.old                            2

===================== 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 Feb 21  2022 35_fwupd
-rwxr-xr-x 1 root root   214 Aug 12  2021 40_custom
-rwxr-xr-x 1 root root   215 Dec  2  2022 41_custom

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


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

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

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

Unknown BootLoader on sdb1

Unknown BootLoader on sdc2

Conseils pour les nouveaux demandeurs et pas qu'eux
Important : Pensez à passer vos sujets en [Réso|u] 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

#10 Le 08/02/2025, à 10:11

tontondico

Re : Grub rescue s'affiche après Instalation Ubuntu 24 04 [résolu]

Bonjour
J'essaie de comprendre le problème, si je dit que grub ne voit pas les Os présents sur le disque, je ne me trompe pas ? Le disque, d'ailleurs, est un SSD qui m'a posé quelques soucis lorsque je l'ai installé en lieu et place du HDD qui lui sert de stockage de données.
Voici une photo du BIOS, avec l'ordre de boot, j'espère que le lien va fonctionner ordre de boot
J'ai inversé l'ordre entre 1 et 2, sans résultat. J'ai remis l'ordre dans l'état où il était avant mes soucis.
Comme vous pouvez voir c'est un BIOS "ancien", "LEGACY" donc, c'est bien ça ? et j'ai vu dans les options avancées  de boot-repair  qu'il y a un onglet LEGACY qui n'est pas coché, dois-je faire une réparation avec cette option cochée ?

Dernière modification par tontondico (Le 08/02/2025, à 10:31)


HP Pavilion RAM 3.7Go; Intel® Pentium(R) CPU N3540 @ 2.16GHz × 4; SSD 256Go + HDD 1To; Intel® HD Graphics (BYT)
Ubuntu 24.04.2 LTS sur SSD; W10 sur HDD

Hors ligne

#11 Le 08/02/2025, à 10:29

geole

Re : Grub rescue s'affiche après Instalation Ubuntu 24 04 [résolu]

Bonjour.
Je commence à regarder le rapport boot-repair,

==> Reinstall the GRUB of /dev/sda4 into the MBR of /dev/sda
chroot /mnt/boot-sav/sda4 grub-install /dev/sda
Installing for i386-pc platform.
Installation finished. No error reported.

Le choix de réparation est donc bien legacy et se termine sans erreur.

Sauf que je me suis lourdement trompé.SDA4 est mint et pas ubuntu!

sda4: __________________________________________________________________________
    File system:       ext4
    Operating System:  Linux Mint 21.3
    Boot files:        /boot/grub/grub.cfg /etc/fstab /etc/default/grub 
                       /boot/grub/i386-pc/core.img

Cependant, le grub mint devrait malgré tout s'afficher et te proposer de booter windows ou ubuntu car

==================== sda4/boot/grub/grub.cfg (filtered) ======================
Ubuntu   a1ad014d-440c-4ba8-935d-ba34a76a24d2
Windows 10 (on sda1)   1F7A4965342C2492
Ubuntu 24.04.1 LTS (24.04) (on sda3)   3b299d73-5395-45f0-b2f6-2888e48d9f6f
### END /etc/grub.d/30_os-prober ##

Les caractéristiques du disque SDA.

sda:240GB:scsi:512:512:msdos:ATA LDLC F7+240GB:;
1:1255MB:117GB:116GB:ntfs::boot;

Donc relance boot-repair, choisis le mode avancé et dis-lui de réparer SDA3.

Dernière modification par geole (Le 08/02/2025, à 10:49)


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

En ligne

#12 Le 08/02/2025, à 10:37

tontondico

Re : Grub rescue s'affiche après Instalation Ubuntu 24 04 [résolu]

Effectivement Boot repair dit que la réparation a bien été effectuée, sans erreur. Malheureusement au redémarrage "grub rescue" s'affiche rapidement , laissant juste le temps de sélectionner le Bios ci nécessaire !


HP Pavilion RAM 3.7Go; Intel® Pentium(R) CPU N3540 @ 2.16GHz × 4; SSD 256Go + HDD 1To; Intel® HD Graphics (BYT)
Ubuntu 24.04.2 LTS sur SSD; W10 sur HDD

Hors ligne

#13 Le 08/02/2025, à 10:45

geole

Re : Grub rescue s'affiche après Instalation Ubuntu 24 04 [résolu]

J'ai ajouté une autre fàçon de réparer.


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

En ligne

#14 Le 08/02/2025, à 11:49

tontondico

Re : Grub rescue s'affiche après Instalation Ubuntu 24 04 [résolu]

Dans "Advanced options" de boot repair j'ai été dans "grub location" et j'ai sélectionné sda3 au lieu de sda4 et j'ai fait "apply". La réparation a été faite, sans problème apparent.
Au redémarrage toujours "grub rescue", j'ai relancé boot repair et je suis retourné dans  "Advanced options" et voilà ce que je vois: Grub location
La modification d'emplacement, de sda4 à sda3 ne semble pas prise en compte. Mais je vois que dans other options on peu modifier les "boot flag" qui ne sont pas coché actuellement, est-ce que ça a une importance?


HP Pavilion RAM 3.7Go; Intel® Pentium(R) CPU N3540 @ 2.16GHz × 4; SSD 256Go + HDD 1To; Intel® HD Graphics (BYT)
Ubuntu 24.04.2 LTS sur SSD; W10 sur HDD

Hors ligne

#15 Le 08/02/2025, à 12:37

geole

Re : Grub rescue s'affiche après Instalation Ubuntu 24 04 [résolu]

Fais un  nouveau boot-info.


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

En ligne

#16 Le 08/02/2025, à 12:38

Lami

Re : Grub rescue s'affiche après Instalation Ubuntu 24 04 [résolu]

Boujour,

Si vous avec accès au mode « Advanced option for... » et que vous sélectionnez une option avec la mention « (recovery mode) », cela devrait vous afficher un écran avec les option suivantes à exécuter dans cet ordre :

network...
clean...
dpkg...
fsck...
grub...

Pour redémarrer, faites les touches Ctrl-Alt-Suppr

Et si cela ne fonctionne pas, avec l'option « root », dans la ligne de commande, entrez :

update-grub

Pour redémarrer, faites les touches Ctrl-Alt-Suppr

Sinon, J'ai souvent réparé un menu grub avec les commandes suivante en « live clé USB », mais vous devrez adapter ces commendes a vos partitionnements :

Pour un système qui n'a pas de grub d'installé ou cassé sur disque SATA :

sudo mount /dev/sda3 /mnt
sudo mount -o bind /dev /mnt/dev
sudo mount -o bind /sys /mnt/sys
sudo mount -o bind /proc /mnt/proc
sudo chroot /mnt
grub-install /dev/sda
update-grub
exit
sudo umount /mnt/dev
sudo umount /mnt/proc
sudo umount /mnt/sys
sudo umount /mnt

Pour redémarrer, faites les touches Ctrl-Alt-Suppr

################################################################################

Pour un système qui n'a pas de grub d'installé ou cassé sur disque SSD :

sudo mount /dev/nvme0n1p3 /mnt
sudo mount /dev/nvme0n1p1 /mnt/boot/efi
sudo mount --bind /dev /mnt/dev
sudo mount --bind /proc /mnt/proc
sudo mount --bind /sys /mnt/sys
sudo mount --bind /run /mnt/run
sudo chroot /mnt
grub-install --target=x86_64-efi --efi-directory=/boot/efi --bootloader-id=GRUB
update-grub
exit
sudo umount /mnt/dev
sudo umount /mnt/proc
sudo umount /mnt/sys
sudo umount /mnt/run
sudo umount /mnt/boot/efi
sudo umount /mnt

Pour redémarrer, faites les touches Ctrl-Alt-Suppr

Cordialement,


L'ami René
Tous pour un et un pour tous !
Linux Kubuntu 24.04.1

Hors ligne

#17 Le 08/02/2025, à 12:55

tontondico

Re : Grub rescue s'affiche après Instalation Ubuntu 24 04 [résolu]

geole a écrit :

Fais un  nouveau boot-info.

le voici: boot info n°4

Lami a écrit :

Si vous avec accès au mode « Advanced option for... » et que vous sélectionnez une option avec la mention « (recovery mode) », cela devrait vous afficher un écran avec les option suivantes à exécuter dans cet ordre :

Malheureusement je n'ai que "grub rescue" pas de recovery possible


HP Pavilion RAM 3.7Go; Intel® Pentium(R) CPU N3540 @ 2.16GHz × 4; SSD 256Go + HDD 1To; Intel® HD Graphics (BYT)
Ubuntu 24.04.2 LTS sur SSD; W10 sur HDD

Hors ligne

#18 Le 08/02/2025, à 14:15

geole

Re : Grub rescue s'affiche après Instalation Ubuntu 24 04 [résolu]

Analyse en cours.

User settings: _________________________________________________________________
The settings chosen by the user will reinstall the grub2 of
sda3 into the MBR of sda.
Grub-efi will not be selected by default because no ESP detected.
Additional repair will be performed: unhide-bootmenu-10s

Le choix a donc été bien fait.
et a bien réparé le MBR qui choisit  maintenant la partition 3 et plus la 4.

=> 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 (,msdos3)/boot/grub. It also embeds following components:
    

Donc cela.

sda3:__________________________________________________________________________
    File system:       ext4
    Operating System:  Ubuntu 24.04.1 LTS
    Boot files:        /boot/grub/grub.cfg /etc/fstab /etc/default/grub 
                       /boot/grub/i386-pc/core.img

core.img est bien présent.
je ne vois pas d'anomalie dans les fichiers d'initialisation.

==================== sda3: Location of files loaded by Grub ====================
           GiB - GB             File                                 Fragment(s)
 140.742195129 = 151.120781312  boot/grub/grub.cfg                             1
 140.744487762 = 151.123243008  boot/grub/i386-pc/core.img                     1
 120.850833893 = 129.762594816  boot/vmlinuz                                   1
 120.850833893 = 129.762594816  boot/vmlinuz-6.8.0-41-generic                  1
 120.850833893 = 129.762594816  boot/vmlinuz.old                               1
 116.610347748 = 125.209407488  boot/initrd.img                                2
 116.610347748 = 125.209407488  boot/initrd.img-6.8.0-41-generic               2
 116.610347748 = 125.209407488  boot/initrd.img.old                            2

et l'affichage du dual boot est bien prévu.

====================== sda3/boot/grub/grub.cfg (filtered) ======================
Ubuntu   3b299d73-5395-45f0-b2f6-2888e48d9f6f
Windows 10 (on sda1)   1F7A4965342C2492
Linux Mint 21.3 Virginia (21.3) (on sda4)   a1ad014d-440c-4ba8-935d-ba34a76a24d2
### END /etc/grub.d/30_os-prober ##

Je ne vois pas pourquoi tu as plantage avant l'affichage de cette grille.
Regarde-bien si tu n'as pas quelques messages qui apparaitraient avant.
Si pas le cas, on va tracer afin que cela bavarde plus en faisant probablement apparaite une piste.
Pour cela, dés le début du boot, Tu forces l'affichage.
Voir la procédure au paragraphe 7.3.1
Tu vas alors remplacer les deux mots quiet splash par l'expression debug ignore_loglevel
Puis tu lanceras le boot et raconteras le mieux possible.

Dernière modification par geole (Le 08/02/2025, à 14:42)


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

En ligne

#19 Le 08/02/2025, à 16:39

tontondico

Re : Grub rescue s'affiche après Instalation Ubuntu 24 04 [résolu]

J'ai essayé de suivre

geole a écrit :

Voir la procédure au paragraphe 7.3.1

malheureusement sans effet, voici les seules images que j'obtiens au démarrage: démarrage PC il en manque une avec un curseur en haut à gauche qui apparait entre le sigle Packard Bell et grub rescue. Mais le temps de chargement est un peu long, pour un curseur !


HP Pavilion RAM 3.7Go; Intel® Pentium(R) CPU N3540 @ 2.16GHz × 4; SSD 256Go + HDD 1To; Intel® HD Graphics (BYT)
Ubuntu 24.04.2 LTS sur SSD; W10 sur HDD

Hors ligne

#20 Le 08/02/2025, à 18:37

geole

Re : Grub rescue s'affiche après Instalation Ubuntu 24 04 [résolu]

Es-tu certain que le bios legacy est bien paramétré pour booter sur SDA?


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

En ligne

#21 Le 08/02/2025, à 21:24

tontondico

Re : Grub rescue s'affiche après Instalation Ubuntu 24 04 [résolu]

jeole a écrit :

Es-tu certain que le bios legacy est bien paramétré pour booter sur SDA?

Le Bios n'a pas été changé lorsque j'ai eu le problème, et ça fonctionnait avant que j'installe Ubuntu 24.04. Au #10 j'ai envoyé une photo de l'ordre de boot, et j'ai fait un essai d'inversion d'ordre de boot, sans résultat ! On voit que le disque est vu comme étant USB, c'est étonnant, mais c'est comme ça depuis l'installation du SSD.

J'ai fait quelques recherches, et je pense avoir trouvé l'origine du problème: tutoriel comment restaurer grub On voit au chapitre 1 la manip que j'ai mentionné au #1, et est noté en jaune, qu'il ne faut pas la faire depuis le support d'installation ! Et je crois bien que c'est ce que j'ai fait ! C'est ballot , n'est-ce pas !
Je ne sais pas si cette info peut éclairer le schmiblick, mais de toute façon j'ai un autre problème ! je ne peux plus faire de manip avec le PC, pour l'instant, je n'ai plus de clavier ! J'utilisais un clavier sans fil, celui d'origine étant HS, le second à laché cet après midi ! Quand on a la poisse !


HP Pavilion RAM 3.7Go; Intel® Pentium(R) CPU N3540 @ 2.16GHz × 4; SSD 256Go + HDD 1To; Intel® HD Graphics (BYT)
Ubuntu 24.04.2 LTS sur SSD; W10 sur HDD

Hors ligne

#22 Le 08/02/2025, à 21:53

geole

Re : Grub rescue s'affiche après Instalation Ubuntu 24 04 [résolu]

Extraits du boot-info

The default repair of the Boot-Repair utility would reinstall the grub2 of sda4 into the MBR of sda.

La liste des disques.

parted -lm (filtered): _________________________________________________________
sda:240GB:scsi:512:512:msdos:ATA LDLC F7+240GB:;
sdb:640GB:scsi:512:4096:msdos:ATA TOSHIBA MK6459GS:;
sdc:62.9GB:scsi:512:512:msdos:VendorCo ProductCode:;

Extrait de ton echange dix montrant que le boot  prévu se fait sur  SDB ( Le cinquième de la liste).
Soit tu rectifies le bios pour dire de booter sur SDA et pas SDB
Soit tu relances un boot-repair personnalisé en disant qu'il faut réparer ubuntu  qui est sur SDA en disant que son boot se fait depuis SDB. C'est possible mais pas logique.

Dernière modification par geole (Le 08/02/2025, à 22:17)


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

En ligne

#23 Le 08/02/2025, à 23:28

tontondico

Re : Grub rescue s'affiche après Instalation Ubuntu 24 04 [résolu]

jeole a écrit :

La liste des disques.

parted -lm (filtered): _________________________________________________________
sda:240GB:scsi:512:512:msdos:ATA LDLC F7+240GB:;
sdb:640GB:scsi:512:4096:msdos:ATA TOSHIBA MK6459GS:;
sdc:62.9GB:scsi:512:512:msdos:VendorCo ProductCode:;

Extrait de ton echange dix montrant que le boot  prévu se fait sur  SDB ( Le cinquième de la liste).

Je ne saisis pas ce qui te fait dire que le boot se fait sur le 5ème élément ( effectivement sdb, (HDD0 : TOSHIBA MK6459GSXP) )? Ce qui expliquerait  le non démarrage du PC !

Pour moi l'ordre de boot va du 1er élément de la liste ( sda (USB HDD)) au dernier, le 6, en l'occurence (Network Boot : Atheros Boot Agent) !

Si j'avais un clavier fonctionnel, avec tes indications sur la démarche pour modifier le Bios, le dépannage serait certainement rapide.


HP Pavilion RAM 3.7Go; Intel® Pentium(R) CPU N3540 @ 2.16GHz × 4; SSD 256Go + HDD 1To; Intel® HD Graphics (BYT)
Ubuntu 24.04.2 LTS sur SSD; W10 sur HDD

Hors ligne

#24 Le 09/02/2025, à 08:14

ikewdu

Re : Grub rescue s'affiche après Instalation Ubuntu 24 04 [résolu]

Salut,

Je n'ai pas voulu intervenir, mais je pense que geole a mis le doigt sur le problème. Ton bios boote sur sdb depuis le début, et non sur sda. Si tu demandes à Boot-Repair de réparer GRUB sur sdb, tu devrais pouvoir démarrer correctement.

Après, savoir pourquoi ton bios ne veut pas lancer le SSD au démarrage est une autre histoire... Moi, dans ta photo du bios, je ne vois pas ce SSD (USB-HDD, c'est plutôt ta clé USB que le SSD).

Dernière modification par ikewdu (Le 09/02/2025, à 08:20)

Hors ligne

#25 Le 09/02/2025, à 10:14

geole

Re : Grub rescue s'affiche après Instalation Ubuntu 24 04 [résolu]

tontondico a écrit :
jeole a écrit :

La liste des disques.

parted -lm (filtered): __________________________________________________
sda:240GB:scsi:512:512:msdos:ATA LDLC F7+240GB:;

Je ne saisis pas ce qui te fait dire que le boot se fait sur le 5ème élément ( effectivement sdb, (HDD0 : TOSHIBA MK6459GSXP) )? Ce qui expliquerait  le non démarrage du PC !

Pour moi l'ordre de boot va du 1er élément de la liste ( sda (USB HDD)) au dernier, le 6, en l'occurence (Network Boot : Atheros Boot Agent) !.

Le premier élément de la liste, n'est pas de  lire comme étant SDA mais comme étant  le disque branché sur support USB ( cet ordre est classique.) et je doute que le disque ATA LDLC F7  de 240 Go 
soit un disque externe. Ubuntu ne le signale pas comme connecté USB mais SCSI.

De plus, Sa photo semble montrer qu'il est plutôt destiné à être monté comme support interne. Peut-être l'as-tu branché via un adaptateur et dans ce cas, il  y a mic-mac: Refais un boot-repair en disant de mettre à jour le MBR de SDB.


Nota, Je me suis servi de la recherche internet en utilisant le message d'erreur de ta seconde photo.
   Comme la structure SDA me semble bonne...
   Mais celle de SDB me semble aussi correcte.

> 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 /boot/grub. It also embeds following components:   
    modules
    ---------------------------------------------------------------------------
    fshelp ext2 part_msdos biosdisk search_fs_uuid
    ---------------------------------------------------------------------------    
    config script
    ---------------------------------------------------------------------------
    search.fs_uuid a1ad014d-440c-4ba8-935d-ba34a76a24d2 root hd0,msdos4 
    set prefix=($root)'/boot/grub'
    

Elle veut continuer le boot sur la parttion 4 du premier disque.
et l'uuid existe.

blkid (filtered): ______________________________________________________________
NAME   FSTYPE   UUID                                 PARTUUID                             LABEL                  PARTLABEL
sda                                                                                                                                                          
└─sda4 ext4     a1ad014d-440c-4ba8-935d-ba34a76a24d2 5f6bde28-04 

Soit

sda4:_________________________________________________________________________
    File system:       ext4
    Operating System:  Linux Mint 21.3
    Boot files:        /boot/grub/grub.cfg /etc/fstab /etc/default/grub 
                       /boot/grub/i386-pc/core.img

qui devrait booter malgré tout.

Dernière modification par geole (Le 09/02/2025, à 10:35)


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

En ligne