#1 Le 14/01/2020, à 11:22
- Kate2
Problème au démarrage grub rescue
Bonjour,
Depuis ce matin je rencontre un problème avec mon ordi portable. Hier soir encore il fonctionnait parfaitement bien et maintenant il refuse de démarrer. Lorsqu'il s'allume, il affiche:
error: attempt to read or write outside of disk 'hd0'
Entering rescue mode...
grub rescue>
J'ai donc consulté plusieurs sites pour trouver une solution à mon problème et j'ai essayée d'appliquer une solution qui était souvent décrite dans plusieurs sites.
Je vous met en lien ci-dessous l'un de ses sites:
https://forum.ubuntu-fr.org/viewtopic.php?id=1234451
En entrant
grub rescue> ls (hd0,msdos3)
J'obtiens:
./../ lost+found/ .Trash-1000/ Sauvegarde
Mais en cherchant à accéder aux modules qui sont proposés mon ordi aboutit à des messages d'erreur comme quoi les fichiers n'ont pas étés trouvés:
error: file '/boot/grub' not found
error: file '/usr/lib/grub/i386-pc' not found
J'aimerais donc savoir si vous pouviez m'apporter de l'aide pour résoudre mon problème, comment savoir par exemple quel module utiliser?
Je vous remercie d'avance pour le temps accordé à ma question.
Hors ligne
#2 Le 14/01/2020, à 11:27
- Kate2
Re : Problème au démarrage grub rescue
Et par ailleurs les touches de mon ordi se comportent depuis comme celles d'un clavier qwerty depuis que mon ordi ne s'annule plus. Ce n'est pas extrêmement gênant mais j'aimerais aussi savoir pourquoi et comment remédier à ce soucis.
Hors ligne
#3 Le 14/01/2020, à 11:37
- malbo
Re : Problème au démarrage grub rescue
En entrant
grub rescue> ls (hd0,msdos3)
Passe seulement la commande ls :
grub rescue> ls
et dis-nous ce que ça donne
Pour info : parmi tous les tutos qui existent, je viens de trouver celui-ci (il s'occupe du problème du clavier en QWERTY) : https://forum.ubuntu-fr.org/viewtopic.php?id=2045608
Dernière modification par malbo (Le 14/01/2020, à 11:41)
Hors ligne
#4 Le 14/01/2020, à 11:48
- Kate2
Re : Problème au démarrage grub rescue
J'obtenais (hd0) (hd0,msdos5) (hd0,msdos4) (hd0,msdos3) (hd0,msdos1) mais seul le (hd0,msdos3) me renvoye des modules ensuite
Hors ligne
#5 Le 14/01/2020, à 11:51
- Kate2
Re : Problème au démarrage grub rescue
J'obtiens unknown filesystem avec les autres et aucun message pour le (hd0,msdos1)
Hors ligne
#6 Le 14/01/2020, à 12:46
- malbo
Re : Problème au démarrage grub rescue
J'ai du mal à interpréter tout ça. Je te prie de faire un Boot-Info et de donner l'URL de ce Boot-info dans ta réponse.
D'autre part, quel est le nom complet du modèle de ton portable et son fabricant ?
Hors ligne
#7 Le 15/01/2020, à 17:53
- Kate2
Re : Problème au démarrage grub rescue
Je te prie de faire un Boot-Info et de donner l'URL de ce Boot-info dans ta réponse.
D'autre part, quel est le nom complet du modèle de ton portable et son fabricant ?
Concernant mon ordinateur il s'agit d'un Toshiba Satellite L50-B-1DL
Pour le boot-info j'essaierai de le transmettre dans les plus bref délais (le temps d'avoir accès à un autre ordi pour créer une live USB et procéder par boot-repair Disk).
Et concernant mon problème je m'étais un peu trompé la dernière fois:
En entrant grub rescue> ls (hd0,1)/
J'obtiens (ça prenais du temps à charger):
./../lost+found/etc/media/var/bin/boot/dev/home/lib/lib64/mnt/opt/proc/root/run/sbin/snap/srv/sys/tmp/usr/vmlinuz initrd.img cdrom/ 0 non existing/ initrd.img.old vmlinuz.old lib32/
J'entre ensuite les commandes qui m'ont été indiquées
grub rescue> set prefix=(hd0,1)/boot/grub
grub rescue> set root=(hd0,1)
grub rescue> insmod normal
Mais après une petite éternité à charger l'ordi renvoie le message d'erreur du début:
error: attempt to read or write outside of disk 'hd0'
Entering rescue mode...
grub rescue>
Et j'obtiens en tapant normal:
unknown command 'normal' (pareil avec insmod linux, insmod loopback, insmod...)
Désolé pour la longueur du message
Hors ligne
#8 Le 24/01/2022, à 00:09
- dego
Re : Problème au démarrage grub rescue
Bonjour, après installation Ubuntu 20.04 sur un SSD démarrage impec. Ensuite j'ai reconnecté deux DD en interne et la redémarrage impossible message erreur Grub rescue. Avant j'avais la version 16.04 et aucun probleme pour la reconnaissance des dd en esclaves et le ssd de l'Os. je comprends pas et suis débutante..... merci d'avance
https://paste.ubuntu.com/p/WkHht4DXF4/
Dernière modification par dego (Le 24/01/2022, à 00:10)
Hors ligne
#9 Le 24/01/2022, à 00:55
- geole
Re : Problème au démarrage grub rescue
Bonsoir
Je ne comprends pas ton problème disant qu'il est impossible de booter.
Tu as du te tromper de boot-info, car dans celui-ci, on voit que tout est parfait.
=============================== 1 OS detected =================================
OS#1: L'OS actuellement utilisé - Ubuntu 20.04.3 LTS CurrentSession on sda5
================================ Host/Hardware =================================
CPU architecture: 64-bit
Video: Oland XT [Radeon HD 8670 / R7 250/350] from Advanced Micro Devices, Inc. [AMD/ATI]
BOOT_IMAGE of the installed session in use:
/boot/vmlinuz-5.13.0-27-generic root=UUID=b2729d44-76b3-47a3-91fd-9263d1b56a63 ro quiet splash vt.handoff=7
df -Th / : /dev/sda5 ext4 457G 20G 415G 5% /
===================================== UEFI =====================================
This installed-session is in Legacy/BIOS/CSM mode (not in EFI mode).
=> 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 (,msdos5)/boot/grub. It also embeds following components:
sda5: __________________________________________________________________________
Operating System: Ubuntu 20.04.3 LTS
Boot files: /boot/grub/grub.cfg /etc/fstab /etc/default/grub
/boot/grub/i386-pc/core.img
Dernière modification par geole (Le 24/01/2022, à 00:56)
Les grilles de l'installateur https://doc.ubuntu-fr.org/tutoriel/inst … _subiquity
Je défie QUICONQUE de trouver une discussion où j'aurais suggéré de remplacer un SSD par un disque dur.
Les partitions EXT4 des disques externes => https://forum.ubuntu-fr.org/viewtopic.p … #p22697248
Hors ligne
#10 Le 24/01/2022, à 11:45
- ar barzh paour
Re : Problème au démarrage grub rescue
@geole
dego s'est immiscé dans la discussion
le boot info du post #8 n'a rien à voir avec celui de Kate2 je pense !!!!!
PC : B760M DS3H DDR4, 12th Gen Intel(R) Core(TM) i3-12100, RAM DDR4 8GiB -2400 Ubuntu 20.04, 22.04, 24.04 (en test )
Portable1 : ThinkPad P50 I7-6820HQ, 16G0 Ram Ubuntu 22.04 Ubuntu 24.04 , W10-PRO( en voyage )
Portable2 : T5750 @ 2.00GHz RAM 1GiB DDR2 667 Mhz Ubuntu 20.04 ( batterie HS )
stourm a ran war bep tachenn (Angela Duval) ( Je combats sur tous les fronts )
Hors ligne
#11 Le 07/06/2022, à 18:31
- xubu1957
Re : Problème au démarrage grub rescue
Bonjour,
Collage tardif :
boot-info-4ppa171 [20220123_2255]
============================== 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 (,msdos5)/boot/grub. It also embeds following components:
modules
---------------------------------------------------------------------------
fshelp ext2 part_msdos biosdisk
---------------------------------------------------------------------------
=> Grub2 (v2.00) is installed in the MBR of /dev/sdd 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 d33ac2ff-569e-4d4c-9cf7-cc9bf24040d4 root hd1,msdos1
set prefix=($root)'/boot/grub'
---------------------------------------------------------------------------
=> Grub2 (v2.00) is installed in the MBR of /dev/sde 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 d33ac2ff-569e-4d4c-9cf7-cc9bf24040d4 root hd1,msdos1
set prefix=($root)'/boot/grub'
---------------------------------------------------------------------------
sda1: __________________________________________________________________________
File system: vfat
Boot sector type: FAT32
Boot sector info: No errors found in the Boot Parameter Block.
Operating System:
Boot files:
sda2: __________________________________________________________________________
File system: Extended Partition
Boot sector type: -
Boot sector info:
sda5: __________________________________________________________________________
File system: ext4
Boot sector type: -
Boot sector info:
Operating System: Ubuntu 20.04.3 LTS
Boot files: /boot/grub/grub.cfg /etc/fstab /etc/default/grub
/boot/grub/i386-pc/core.img
sdd1: __________________________________________________________________________
File system: ntfs
Boot sector type: Windows Vista: NTFS
Boot sector info: No errors found in the Boot Parameter Block.
Operating System:
Boot files:
sde1: __________________________________________________________________________
File system: ext4
Boot sector type: -
Boot sector info:
Operating System:
Boot files:
sdb: ___________________________________________________________________________
File system: ext4
Boot sector type: -
Boot sector info:
Operating System:
Boot files:
================================ 1 OS detected =================================
OS#1: L'OS actuellement utilisé - Ubuntu 20.04.3 LTS CurrentSession on sda5
================================ Host/Hardware =================================
CPU architecture: 64-bit
Video: Oland XT [Radeon HD 8670 / R7 250/350] from Advanced Micro Devices, Inc. [AMD/ATI]
BOOT_IMAGE of the installed session in use:
/boot/vmlinuz-5.13.0-27-generic root=UUID=b2729d44-76b3-47a3-91fd-9263d1b56a63 ro quiet splash vt.handoff=7
df -Th / : /dev/sda5 ext4 457G 20G 415G 5% /
===================================== UEFI =====================================
This installed-session is in Legacy/BIOS/CSM mode (not in EFI mode).
============================= Drive/Partition Info =============================
Disks info: ____________________________________________________________________
sda : notGPT, no-BIOSboot, has---ESP, not-usb, not-mmc, has-os, no-wind, 2048 sectors * 512 bytes
sdd : notGPT, no-BIOSboot, has-noESP, not-usb, not-mmc, no-os, no-wind, 63 sectors * 512 bytes
sde : notGPT, no-BIOSboot, has-noESP, not-usb, not-mmc, no-os, no-wind, 63 sectors * 512 bytes
Partitions info (1/3): _________________________________________________________
sda5 : is-os, 64, apt-get, grub-pc , grub2, grub-install, grubenv-ok, update-grub, farbios
sda1 : no-os, 32, nopakmgr, no-docgrub, nogrub, nogrubinstall, no-grubenv, noupdategrub, not-far
sdd1 : no-os, 32, nopakmgr, no-docgrub, nogrub, nogrubinstall, no-grubenv, noupdategrub, farbios
sde1 : no-os, 32, nopakmgr, no-docgrub, nogrub, nogrubinstall, no-grubenv, noupdategrub, farbios
Partitions info (2/3): _________________________________________________________
sda5 : isnotESP, fstab-has-goodEFI, no-nt, no-winload, no-recov-nor-hid, no-bmgr, notwinboot
sda1 : is---ESP, part-has-no-fstab, no-nt, no-winload, no-recov-nor-hid, no-bmgr, notwinboot
sdd1 : isnotESP, part-has-no-fstab, no-nt, no-winload, no-recov-nor-hid, no-bmgr, notwinboot
sde1 : isnotESP, part-has-no-fstab, no-nt, no-winload, no-recov-nor-hid, no-bmgr, notwinboot
Partitions info (3/3): _________________________________________________________
sda5 : 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, std-grub.d, sda
sdd1 : not-sepboot, no-boot, part-has-no-fstab, not-sep-usr, no---usr, part-has-no-fstab, std-grub.d, sdd
sde1 : maybesepboot, no-boot, part-has-no-fstab, not-sep-usr, no---usr, part-has-no-fstab, std-grub.d, sde
fdisk -l (filtered): ___________________________________________________________
Disk sda: 465.78 GiB, 500107862016 bytes, 976773168 sectors
Disk identifier: 0x3a3f42be
Boot Start End Sectors Size Id Type
sda1 * 2048 1050623 1048576 512M b W95 FAT32
sda2 1052670 976771071 975718402 465.3G 5 Extended
sda5 1052672 976771071 975718400 465.3G 83 Linux
Disk sdb: 931.53 GiB, 1000204886016 bytes, 1953525168 sectors
Disk sdd: 465.78 GiB, 500106780160 bytes, 976771055 sectors
Disk identifier: 0x4f0bdefd
Boot Start End Sectors Size Id Type
sdd1 * 63 976768064 976768002 465.8G 7 HPFS/NTFS/exFAT
Disk sde: 931.53 GiB, 1000204886016 bytes, 1953525168 sectors
Disk identifier: 0x5d7a15ca
Boot Start End Sectors Size Id Type
sde1 63 1953520479 1953520417 931.5G 83 Linux
parted -lm (filtered): _________________________________________________________
sda:500GB:scsi:512:4096:msdos:ATA CT500MX500SSD1:;
1:1049kB:538MB:537MB:fat32::boot;
2:539MB:500GB:500GB:::;
5:539MB:500GB:500GB:ext4::;
sdb:1000GB:scsi:512:4096:loop:ATA WDC WD10EZEX-08W:;
1:0.00B:1000GB:1000GB:ext4::;
sdd:500GB:scsi:512:512:msdos:ATA ST3500320AS:;
1:32.3kB:500GB:500GB:ntfs::boot;
sde:1000GB:scsi:512:4096:msdos:ATA WDC WD10EARS-00M:;
1:32.3kB:1000GB:1000GB:ext4::;
Free space (filtered): _________________________________________________________
sda:476940MiB:scsi:512:4096:msdos:ATA CT500MX500SSD1:;
1:0.00MiB:1.00MiB:1.00MiB:free;
1:513MiB:514MiB:1.00MiB:free;
1:476939MiB:476940MiB:1.02MiB:free;
sdb:953870MiB:scsi:512:4096:loop:ATA WDC WD10EZEX-08W:;
sdd:476939MiB:scsi:512:512:msdos:ATA ST3500320AS:;
1:476938MiB:476939MiB:1.46MiB:free;
sde:953870MiB:scsi:512:4096:msdos:ATA WDC WD10EARS-00M:;
1:0.00MiB:0.03MiB:0.03MiB:free;
1:953867MiB:953870MiB:2.29MiB:free;
blkid (filtered): ______________________________________________________________
NAME FSTYPE UUID PARTUUID LABEL PARTLABEL
sda
├─sda1 vfat 77B0-7608 3a3f42be-01
├─sda2 3a3f42be-02
└─sda5 ext4 b2729d44-76b3-47a3-91fd-9263d1b56a63 3a3f42be-05
sdb ext4 feccf3f8-e5af-43d4-ad39-a23a78884ede WD Orion
sdd
└─sdd1 ntfs 7A267761024AA7EC 4f0bdefd-01 500 GB
sde
└─sde1 ext4 2c751068-8467-4776-9632-047ee692f900 5d7a15ca-01 ALICE
Mount points (filtered): _________________________________________________________________
Avail Use% Mounted on
/dev/sda1 511M 0% /mnt/boot-sav/sda1
/dev/sda5 414.5G 4% /
/dev/sdd1 318.1G 32% /mnt/boot-sav/sdd1
/dev/sde1 150.6G 78% /mnt/boot-sav/sde1
Mount options (filtered): ________________________________________________________________
/dev/sda1 rw,relatime,fmask=0022,dmask=0022,codepage=437,iocharset=iso8859-1,shortname=mixed,errors=remount-ro
/dev/sda5 rw,relatime,errors=remount-ro
/dev/sdd1 rw,relatime,user_id=0,group_id=0,allow_other,blksize=4096
/dev/sde1 rw,relatime
====================== sda5/boot/grub/grub.cfg (filtered) ======================
Ubuntu b2729d44-76b3-47a3-91fd-9263d1b56a63
Ubuntu, avec Linux 5.13.0-27-generic b2729d44-76b3-47a3-91fd-9263d1b56a63
Ubuntu, avec Linux 5.11.0-27-generic b2729d44-76b3-47a3-91fd-9263d1b56a63
### END /etc/grub.d/30_os-prober ###
### END /etc/grub.d/30_uefi-firmware ###
========================== sda5/etc/fstab (filtered) ===========================
# <file system> <mount point> <type> <options> <dump> <pass>
# / was on /dev/sda5 during installation
UUID=b2729d44-76b3-47a3-91fd-9263d1b56a63 / ext4 errors=remount-ro 0 1
# /boot/efi was on /dev/sda1 during installation
UUID=77B0-7608 /boot/efi vfat umask=0077 0 1
/swapfile none swap sw 0 0
======================= sda5/etc/default/grub (filtered) =======================
GRUB_DEFAULT=0
GRUB_TIMEOUT_STYLE=hidden
GRUB_TIMEOUT=0
GRUB_DISTRIBUTOR=`lsb_release -i -s 2> /dev/null || echo Debian`
GRUB_CMDLINE_LINUX_DEFAULT="quiet splash"
GRUB_CMDLINE_LINUX=""
==================== sda5: Location of files loaded by Grub ====================
GiB - GB File Fragment(s)
117,959407806 = 126,657949696 boot/grub/grub.cfg 1
136,639373779 = 146,715410432 boot/grub/i386-pc/core.img 1
113,714538574 = 122,100056064 boot/vmlinuz 1
5,470699310 = 5,874118656 boot/vmlinuz-5.11.0-27-generic 2
113,714538574 = 122,100056064 boot/vmlinuz-5.13.0-27-generic 1
5,470699310 = 5,874118656 boot/vmlinuz.old 2
116,393283844 = 124,976336896 boot/initrd.img 2
116,270092010 = 124,844060672 boot/initrd.img-5.11.0-27-generic 2
116,393283844 = 124,976336896 boot/initrd.img-5.13.0-27-generic 2
116,270092010 = 124,844060672 boot/initrd.img.old 2
===================== sda5: ls -l /etc/grub.d/ (filtered) ======================
-rwxr-xr-x 1 root root 18151 août 12 11:18 10_linux
-rwxr-xr-x 1 root root 42359 août 12 11:18 10_linux_zfs
-rwxr-xr-x 1 root root 12894 août 12 11:18 20_linux_xen
-rwxr-xr-x 1 root root 12059 août 12 11:18 30_os-prober
-rwxr-xr-x 1 root root 1424 août 12 11:18 30_uefi-firmware
-rwxr-xr-x 1 root root 214 août 12 11:18 40_custom
-rwxr-xr-x 1 root root 216 août 12 11:18 41_custom
Suggested repair: ______________________________________________________________
The default repair of the Boot-Repair utility would purge (in order to fix packages) and reinstall the grub-efi of
sda5,
using the following options: sda1/boot/efi
Additional repair would be performed: unhide-bootmenu-10s use-standard-efi-file
Blockers in case of suggested repair: __________________________________________
The current session is in BIOS-compatibility mode. Please disable BIOS-compatibility/CSM/Legacy mode in your UEFI firmware, and use this software from a live-CD (or live-USB) that is compatible with UEFI booting mode. For example, use a live-USB of Boot-Repair-Disk-64bit (www.sourceforge.net/p/boot-repair-cd), after making sure your BIOS is set up to boot USB in EFI mode. This will enable this feature.
Final advice in case of suggested repair: ______________________________________
Please do not forget to make your UEFI firmware boot on the L'OS actuellement utilisé - Ubuntu 20.04.3 LTS CurrentSession entry (sda1/efi/****/grub****.efi (**** will be updated in the final message) file) !
The boot of your PC is in BIOS-compatibility/CSM/Legacy mode. You may want to retry after changing it to UEFI mode.
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
En ligne