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 12/05/2024, à 00:33

Shan88

Grub rescue après dépalcement de grub

Bonjour à tous,

Mon problème a démarré il y a quelques mois lorsque je n'arrivais plus à atteindre W10 avec grub. Ma cession bootait sur ubuntu 22.04 LTS, je n'avais plus besoin de W10 donc pas de soucis..
Sauf que GRUB a commencé à faire des siennes et j'ai eu l'écran GRUB RESCUE. J'ai donc démarré mes cessions en mode sans échec en me disant qu'il fallait réparer cela.
J'ai donc fait une manip qui à surpprimé ou déplacé mon GRUB et bref depuis j'ai GRUB RESCUE NO FILES...
Je vous écris ces lignes depuis une clé bootable ubuntu 22.04 LTS, J'ai essayé BOOT-REPAIR mais j'ai le message suivant : La cession suivante est en mode de compartibilité BIOS, veuillez desactiver ce mode etc..
J'ai fais un boot-info :

boot-repair-4ppa2075                                              [20240511_2126]

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

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

sda1: __________________________________________________________________________

    File system:       vfat
    Boot sector type:  FAT32
    Boot sector info:  According to the info in the boot sector, sda1 has 
                       -387940396 sectors.. But according to the info from 
                       the partition table, it has 3907026943 sectors.
    Operating System:  
    Boot files:        

sdb1: __________________________________________________________________________

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

sdb2: __________________________________________________________________________

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

sdb5: __________________________________________________________________________

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

sdb6: __________________________________________________________________________

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

sdc: ___________________________________________________________________________

    File system:       iso9660
    Boot sector type:  Grub2 (v1.99-2.00)
    Boot sector info:  Grub2 (v1.99-2.00) is installed in the boot sector of 
                       sdc and looks at sector 0 of the same hard drive for 
                       core.img, but core.img can not be found at this 
                       location.
    Mounting failed:   mount: /mnt/BootInfo/FD/sdc: /dev/sdc déjà monté ou point de montage actif.


================================ 1 OS detected =================================

OS#1:   Ubuntu 22.04.4 LTS on sdb5

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

CPU architecture: 64-bit
Video: GM204 [GeForce GTX 980] from NVIDIA Corporation
Live-session OS is Ubuntu 64-bit (Ubuntu 22.04.4 LTS, jammy, x86_64)

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

BIOS/UEFI firmware: EM0411-M8(4.6) from American Megatrends Inc.
This live-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, no-os,	no-wind,	2048 sectors * 512 bytes
sdb	: notGPT,	no-BIOSboot,	has-noESP, 	not-usb,	not-mmc, has-os,	no-wind,	2048 sectors * 512 bytes

Partitions info (1/3): _________________________________________________________

sda1	: no-os,	64, nopakmgr,	no-docgrub,	nogrub,	nogrubinstall,	no-grubenv,	noupdategrub,	end-after-100GB
sdb1	: no-os,	64, nopakmgr,	no-docgrub,	nogrub,	nogrubinstall,	no-grubenv,	noupdategrub,	not-far
sdb5	: is-os,	64, apt-get,	grub-pc ,	grub2,	grub-install,	grubenv-ng,	update-grub,	end-after-100GB
sdb6	: no-os,	64, nopakmgr,	no-docgrub,	nogrub,	nogrubinstall,	no-grubenv,	noupdategrub,	end-after-100GB

Partitions info (2/3): _________________________________________________________

sda1	: is---ESP,	part-has-no-fstab,	no-nt,	no-winload,	no-recov-nor-hid,	no-bmgr,	notwinboot
sdb1	: isnotESP,	part-has-no-fstab,	no-nt,	no-winload,	no-recov-nor-hid,	no-bmgr,	notwinboot
sdb5	: isnotESP,	fstab-without-efi,	no-nt,	no-winload,	no-recov-nor-hid,	no-bmgr,	notwinboot
sdb6	: isnotESP,	part-has-no-fstab,	no-nt,	no-winload,	no-recov-nor-hid,	no-bmgr,	notwinboot

Partitions info (3/3): _________________________________________________________

sda1	: not--sepboot,	no---boot,	part-has-no-fstab,	not-sep-usr,	no---usr,	part-has-no-fstab,	no--grub.d,	sda
sdb1	: is---sepboot,	no---boot,	part-has-no-fstab,	not-sep-usr,	no---usr,	part-has-no-fstab,	no--grub.d,	sdb
sdb5	: not--sepboot,	with-boot,	fstab-has-goodBOOT,	not-sep-usr,	with--usr,	fstab-without-usr,	std-grub.d,	sdb
sdb6	: maybesepboot,	no---boot,	part-has-no-fstab,	not-sep-usr,	no---usr,	part-has-no-fstab,	no--grub.d,	sdb

fdisk -l (filtered): ___________________________________________________________

Disk sda: 1.82 TiB, 2000398934016 bytes, 3907029168 sectors
Disk identifier: 0xd1056d11
     Boot Start        End    Sectors  Size Id Type
sda1  *     2048 3907028991 3907026944  1.8T ea Linux extended boot
Disk sdb: 447.13 GiB, 480103981056 bytes, 937703088 sectors
Disk identifier: 0xcd190f00
     Boot     Start       End   Sectors   Size Id Type
sdb1  *         2048  31999999  31997952  15.3G 82 Linux swap / Solaris
sdb2        32002046 937701375 905699330 431.9G  5 Extended
sdb5        32002048 331999231 299997184   143G 83 Linux
sdb6       332001280 937701375 605700096 288.8G 83 Linux
Disk sdc: 28.91 GiB, 31042043904 bytes, 60628992 sectors
Disk identifier: ABBD44C4-640C-4CEA-ACCB-CA38273F602E
       Start      End  Sectors  Size Type
sdc1       64  9788791  9788728  4.7G Microsoft basic data
sdc2  9788792  9798859    10068  4.9M EFI System
sdc3  9798860  9799459      600  300K Microsoft basic data
sdc4  9801728 60628928 50827201 24.2G Linux filesystem

parted -lm (filtered): _________________________________________________________

sda:2000GB:scsi:512:4096:msdos:ATA ST2000DL003-9VT1:;
1:1049kB:2000GB:2000GB:fat32::boot, bls_boot;
sdb:480GB:scsi:512:512:msdos:ATA CT480BX500SSD1:;
1:1049kB:16.4GB:16.4GB:ext4::boot;
2:16.4GB:480GB:464GB:::;
5:16.4GB:170GB:154GB:ext4::;
6:170GB:480GB:310GB:ext4::;
sdc:31.0GB:scsi:512:512:gpt:Philips USB Flash Drive:;
1:32.8kB:5012MB:5012MB::ISO9660:hidden, msftdata;
2:5012MB:5017MB:5155kB::Appended2:boot, esp;
3:5017MB:5017MB:307kB::Gap1:hidden, msftdata;
4:5018MB:31.0GB:26.0GB:ext4::;

blkid (filtered): ______________________________________________________________

NAME   FSTYPE   UUID                                 PARTUUID                             LABEL                    PARTLABEL
sda                                                                                                                
└─sda1 vfat     1E20-47DE                            d1056d11-01                                                   
sdb                                                                                                                
├─sdb1 ext4     eb590758-1d04-44f6-904c-622c03a662b2 cd190f00-01                          /dev/sdb1                
├─sdb2                                               cd190f00-02                                                   
├─sdb5 ext4     42c85480-f1db-4ddb-a2f4-c40dcca5b294 cd190f00-05                                                   
└─sdb6 ext4     a15fb6a1-a73a-4fcd-89ff-f7441c1ec686 cd190f00-06                                                   
sdc    iso9660  2024-02-20-19-39-27-00                                                    Ubuntu 22.04.4 LTS amd64 
├─sdc1 iso9660  2024-02-20-19-39-27-00               abbd44c4-640c-4cea-acca-ca38273f602e Ubuntu 22.04.4 LTS amd64 ISO9660
├─sdc2 vfat     927C-33D8                            abbd44c4-640c-4cea-acc9-ca38273f602e ESP                      Appended2
├─sdc3                                               abbd44c4-640c-4cea-acc8-ca38273f602e                          Gap1
└─sdc4 ext4     48314586-e257-4313-becb-60310d7c5c53 a449bf1f-5fd0-5b4a-b188-a382506abe28 writable                 

Mount points (filtered): _______________________________________________________

                                                               Avail Use% Mounted on
/dev/sda1                                                     790.1G  58% /media/ubuntu/1E20-47DE
/dev/sdb1                                                      14.1G   1% /media/ubuntu/_dev_sdb1
/dev/sdb5                                                     107.1G  18% /media/ubuntu/42c85480-f1db-4ddb-a2f4-c40dcca5b294
/dev/sdb6                                                        49G  78% /media/ubuntu/a15fb6a1-a73a-4fcd-89ff-f7441c1ec686
/dev/sdc1                                                          0 100% /cdrom

Mount options (filtered): ______________________________________________________

/dev/sda1                                                     vfat            rw,nosuid,nodev,relatime,uid=999,gid=999,fmask=0022,dmask=0022,codepage=437,iocharset=iso8859-1,shortname=mixed,showexec,utf8,flush,errors=remount-ro
/dev/sdb1                                                     ext4            rw,nosuid,nodev,relatime,errors=remount-ro
/dev/sdb5                                                     ext4            rw,nosuid,nodev,relatime,errors=remount-ro
/dev/sdb6                                                     ext4            rw,nosuid,nodev,relatime,errors=remount-ro
/dev/sdc1                                                     iso9660         ro,noatime,nojoliet,check=s,map=n,blocksize=2048,iocharset=utf8

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

           GiB - GB             File                                 Fragment(s)
  15,144672394 = 16,261468160   vmlinuz                                        1
  15,144672394 = 16,261468160   vmlinuz-5.15.0-111-generic                     1
  15,144672394 = 16,261468160   vmlinuz.old                                    1
  15,210716248 = 16,332382208   initrd.img                                     1
  15,210716248 = 16,332382208   initrd.img-5.15.0-111-generic                  1
  15,210716248 = 16,332382208   initrd.img.old                                 1

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

Ubuntu   42c85480-f1db-4ddb-a2f4-c40dcca5b294
### END /etc/grub.d/30_os-prober ###
### END /etc/grub.d/30_uefi-firmware ###

========================== sdb5/etc/fstab (filtered) ===========================

# <file system> <mount point>   <type>  <options>       <dump>  <pass>
# / was on /dev/sdb5 during installation
UUID=42c85480-f1db-4ddb-a2f4-c40dcca5b294 /               ext4    errors=remount-ro 0       1
# /home was on /dev/sdb6 during installation
UUID=a15fb6a1-a73a-4fcd-89ff-f7441c1ec686 /home           ext4    defaults        0       2
# swap was on /dev/sdb1 during installation
UUID=42f232bc-982b-4da3-b96c-a35d9059988c none            swap    sw              0       0
UUID=eb590758-1d04-44f6-904c-622c03a662b2  /boot       ext4    defaults      0       2

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

GRUB_DEFAULT=0
GRUB_TIMEOUT_STYLE=hidden
GRUB_TIMEOUT=10
GRUB_DISTRIBUTOR=`lsb_release -i -s 2> /dev/null || echo Debian`
GRUB_CMDLINE_LINUX_DEFAULT="quiet splash"
GRUB_CMDLINE_LINUX=""

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

           GiB - GB             File                                 Fragment(s)
  25,965087891 = 27,879800832   boot/grub/grub.cfg                             1
  27,926376343 = 29,985718272   boot/grub/i386-pc/core.img                     1
 154,291011810 = 165,668712448  boot/vmlinuz                                   2
 154,291011810 = 165,668712448  boot/vmlinuz-5.15.0-106-generic                2
 144,601146698 = 155,264299008  boot/vmlinuz-6.5.0-28-generic                  2
  21,851184845 = 23,462531072   boot/vmlinuz-6.5.0-34-generic                  2
  21,851184845 = 23,462531072   boot/vmlinuz.old                               2
 134,876949310 = 144,823021568  boot/initrd.img                                5
 134,876949310 = 144,823021568  boot/initrd.img-5.15.0-106-generic             5
 134,134761810 = 144,026103808  boot/initrd.img-6.5.0-28-generic               2
 136,494136810 = 146,559463424  boot/initrd.img-6.5.0-34-generic               5
 136,494136810 = 146,559463424  boot/initrd.img.old                            5

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

-rwxr-xr-x 1 root root 18683 Apr 15  2022 10_linux
-rwxr-xr-x 1 root root 43031 Apr 15  2022 10_linux_zfs
-rwxr-xr-x 1 root root 14387 Dec 18  2022 20_linux_xen
-rwxr-xr-x 1 root root 13369 Apr 15  2022 30_os-prober
-rwxr-xr-x 1 root root  1372 Apr 15  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 Apr 15  2022 41_custom



Suggested repair: ______________________________________________________________

Normalement je crois que mon Grub devrait être sur /dev/sdb1  mais je le trouve dans sdb5, j'avous que je suis perdu... J'ai essayé plusieurs fois de réinstaller GRUB sur SDB1 Mes en vains vous vous en doutez..
Bien-sur ce serait facile de tout réinstaller mais je ne souhaite pas perdre mon ''HOME''
Merci beaucoup pour vos réponses

Dernière modification par Shan88 (Le 12/05/2024, à 10:13)

Hors ligne

#2 Le 12/05/2024, à 11:58

geole

Re : Grub rescue après dépalcement de grub

Bonjour.
Pour l'instant, je vois grosse anomalie.

Disk sdb: 447.13 GiB, 480103981056 bytes, 937703088 sectors
Disk identifier: 0xcd190f00
     Boot     Start       End   Sectors   Size Id Type
sdb1  *         2048  31999999  31997952  15.3G 82 Linux swap / Solaris
                                                                                                             
├─sdb1 ext4     eb590758-1d04-44f6-904c-622c03a662b2 cd190f00-01                          /dev/sdb1                

================== sdb1: Location of files loaded by Grub ====================
          GiB - GB             File                                 Fragment(s)
  15,144672394 = 16,261468160   vmlinuz                                        1
  15,144672394 = 16,261468160   vmlinuz-5.15.0-111-generic                     1
  15,144672394 = 16,261468160   vmlinuz.old                                    1
  15,210716248 = 16,332382208   initrd.img                                     1
  15,210716248 = 16,332382208   initrd.img-5.15.0-111-generic                  1
  15,210716248 = 16,332382208   initrd.img.old                                 1

Donc en premier reformater cette partition au format swap.
Je ne pense pas que tu aies besoin d'une partition EXT4 de boot.

De plus, le début du boot est correct.

=> 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 (,msdos5)/boot/grub.

Cela pointe bien sur SDB5.
Et les fichiers de boot sont bien présents.

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

           GiB - GB             File                                 Fragment(s)
  25,965087891 = 27,879800832   boot/grub/grub.cfg                             1
  27,926376343 = 29,985718272   boot/grub/i386-pc/core.img                     1
 154,291011810 = 165,668712448  boot/vmlinuz                                   2
 154,291011810 = 165,668712448  boot/vmlinuz-5.15.0-106-generic                2
 144,601146698 = 155,264299008  boot/vmlinuz-6.5.0-28-generic                  2
  21,851184845 = 23,462531072   boot/vmlinuz-6.5.0-34-generic                  2
  21,851184845 = 23,462531072   boot/vmlinuz.old                               2
 134,876949310 = 144,823021568  boot/initrd.img                                5
 134,876949310 = 144,823021568  boot/initrd.img-5.15.0-106-generic             5
 134,134761810 = 144,026103808  boot/initrd.img-6.5.0-28-generic               2
 136,494136810 = 146,559463424  boot/initrd.img-6.5.0-34-generic               5
 136,494136810 = 146,559463424  boot/initrd.img.old                            5
=====================

As-tu essayé de booter en recovery avec un ancien noyau?

Dommages que ton copier/coller se termine avec cette ligne.

Suggested repair: _____

Dernière modification par geole (Le 12/05/2024, à 12:16)


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

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

Hors ligne

#3 Le 12/05/2024, à 12:25

Shan88

Re : Grub rescue après dépalcement de grub

Bonjour geole,

Merci de ta réponse, alors je viens de me rendre compte avec utilitaire de disque, que la partition /dev/SDB5 n'est pas swap bootable.
Je devrais la rendre bootable non ?

Booter sur un ancien noyau ? Non ce n'est pas dans mes compétences big_smile

Hors ligne

#4 Le 12/05/2024, à 12:27

xubu1957

Re : Grub rescue après dépalcement de grub

Bonjour,

Le 29/05/2017, moko138 a écrit :

Démarrer sur un noyau précédent

- redémarre en tapotant les touches Majuscules ou Echap
- à l'apparition du menu de grub, descends avec la flèche bas, sur la ligne :

Linux previous versions

ou

Advanced options for Ubuntu

- valide
- choisis un noyau autre que le plus récent.
- valide et laisse le pc poursuivre son démarrage.

Le 03/12/2022, nany a écrit :

Quand on a réussi à afficher le menu de GRUB, il faut alors aller sur la deuxième ligne (Advanced options for Ubuntu ou Options avancées pour Ubuntu en français) puis valider pour faire apparaître un sous-menu où il est alors possible de choisir une autre version de noyau.

Doc recovery_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

Hors ligne

#5 Le 12/05/2024, à 12:55

Shan88

Re : Grub rescue après dépalcement de grub

Bonjour xubu1957

Merci pour ta réponse, en fait en appuyant Echap , je n'accède plus au Grub, je peux seulement accéder au Bios

Hors ligne

#6 Le 12/05/2024, à 13:00

xubu1957

Re : Grub rescue après dépalcement de grub

Vu au #1 :

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

CPU architecture: 64-bit
Video: GM204 [GeForce GTX 980] from NVIDIA Corporation

et linux-hardware.org/?id=pci:10de-13c0-3842-2983

Je laisse répondre les aidants chevronnés.


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

#7 Le 12/05/2024, à 14:33

geole

Re : Grub rescue après dépalcement de grub

Shan88 a écrit :

je viens de me rendre compte avec utilitaire de disque, que la partition /dev/SDB5 n'est pas swap bootable.
Je devrais la rendre bootable non ?

J'ai parlé de la partition UNE et pas de la CINQ Je propose de la reformater au format swap-linux

Shan88 a écrit :

Booter sur un ancien noyau ? Non ce n'est pas dans mes compétences big_smile

Je n'arrive pas comprendre pourquoi ubuntu continue de masquer la structure de boot lorsqu'on est mono O.S.
Tu arrives dans le bios car tu fais cette action une ou deux secondes trop tôt...

Dernière modification par geole (Le 12/05/2024, à 18:08)


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

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

Hors ligne

#8 Le 12/05/2024, à 18:06

jplemoine

Re : Grub rescue après dépalcement de grub

geole a écrit :

Je n'arrive pas comprendre pourquoi ubuntu continue de masquer la structure de boot lorsqu'on est mono O.S.

Parce que dans la plupart des cas pour la plupart des gens, tu n'en as pas besoin.
Après, ce n'est pas dur de changer ce comportement. Je ne souviens plus exactement mais de mémoire :
- il faut changer un ou 2 paramètres dans /etc/default/grub
- faire un update-grub ou grub-update, je ne me souviens jamais mais seul l'un des deux existe.


Ce compte ne servira plus : vous pouvez le supprimer si le coeur vous en dit...
Laissé par l'auteur pour historique.

Hors ligne