Résolu le 21-06-20 BOOT REPAIR (GRUB HS)

Vos petites astuces, répertoire des tutoriels et astuces
Répondre
LMDE60
Messages : 215
Enregistré le : ven. 3 avr. 2020 18:08
Localisation : Nulle part

BOOT REPAIR (GRUB HS)

Message par LMDE60 »

Je vais vous parler du logiciel "boot repair", suite a un Grub non fonctionnel,

Image

Je suis en multiboot avec LMDE4 et Windows 10 car au travail nous n'utilisons que Windows 10, donc je met a jour Windows 10 en 20.04 qui a besoin de redémarrer plusieurs fois et au deuxième démarrage du pc, plus de grub et a la place un écran noir juste un prompt sur grub rescue :? :shock: et me voila planté mon grub HS. :evil: :evil:

Je boot avec la clé usb-live de Mint et une fois sur le bureau en live dans Administration je lance boot-repair, il me répare le grub et tous revient a la normal. :l :geek: :D

Image

Par sécurité une fois le grub opérationnel, je demarre sur linux et effectue cette commande :

Code : Tout sélectionner

sudo update-grub
Aprés un peu de recherche sur internet je remarque que c'est un outils remarquable, et qui pourra sortir plusieurs personnes de la galère.

Je partage cela avec vous en anglais:

https://linuxhint.com/linux_mint_boot_repair/

en francais :

http://translate.google.com/translate?h ... _repair%2F

Donc si votre grub est explosé, une solution pour le réparé est de lancer Mint en Live-cd et d'utiliser "boot repair" :B 8-) ca m'a bien dépanné. :mrgreen: :mrgreen: :mrgreen:

Cela fonctionne sur LMDE4, mais aussi sur Mint 19 ou 20 car a la base ce logiciel vient de Ubuntu.
Modifié en dernier par LMDE60 le dim. 21 juin 2020 00:22, modifié 1 fois.

ryry331
Messages : 485
Enregistré le : jeu. 24 oct. 2019 23:44

Re: BOOT REPAIR (GRUB HS)

Message par ryry331 »

Bonjour,

Oui..et non seulement ça peut réparer grub mais aussi le démarrage de Windows quand on supprime linux par exemple
ça permet aussi de faire un boot-info tres pratique pour les aidants en cas de probleme

Par exemple

Code : Tout sélectionner

boot-repair-4ppa125                                              [20200620_2359]

============================== 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 (,msdos2)/boot/grub. It also embeds following components:
    
    modules
    ---------------------------------------------------------------------------
    fshelp ext2 part_msdos biosdisk
    ---------------------------------------------------------------------------
 => libparted MBR boot code is installed in the MBR of /dev/sdb.

sda1: __________________________________________________________________________

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

sda2: __________________________________________________________________________

    File system:       ext4
    Boot sector type:  -
    Boot sector info: 
    Operating System:  LMDE 4 (debbie)
    Boot files:        /boot/grub/grub.cfg /etc/fstab /etc/default/grub 
                       /boot/grub/i386-pc/core.img

sda3: __________________________________________________________________________

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

sda4: __________________________________________________________________________

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

sda5: __________________________________________________________________________

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

sda6: __________________________________________________________________________

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

sdb1: __________________________________________________________________________

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

sdb2: __________________________________________________________________________

    File system:       vfat
    Boot sector type:  FAT32
    Boot sector info:  According to the info in the boot sector, sdb2 starts 
                       at sector 73850880. But according to the info from 
                       fdisk, sdb2 starts at sector 203868160.
    Operating System:  
    Boot files:        

sdb3: __________________________________________________________________________

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

sdb4: __________________________________________________________________________

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


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

OS#1:   L'OS actuellement utilisé - Ubuntu 20.04 LTS CurrentSession on sda1
OS#2:   LMDE 4 Debbie (4) on sda2
OS#3:   Deepin 20 Beta (20) on sda5

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

CPU architecture: 64-bit
BOOT_IMAGE of the installed session in use:
/boot/vmlinuz-5.4.0-37-generic root=UUID=15ac14f6-76af-45c4-be0f-188a3fc7c843 ro quiet splash


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

This installed-session is not in EFI-mode.
EFI in dmesg.
[    0.013919] ACPI: UEFI 0x0000000087B89F18 000042 (v01                 00000000      00000000)



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

Disks info: ____________________________________________________________________

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

Partitions info (1/3): _________________________________________________________

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

Partitions info (2/3): _________________________________________________________

sda1	: isnotESP,	fstab-without-efi,	no-nt,	no-winload,	no-recov-nor-hid,	no-bmgr,	notwinboot
sda2	: isnotESP,	fstab-without-efi,	no-nt,	no-winload,	no-recov-nor-hid,	no-bmgr,	notwinboot
sda3	: isnotESP,	part-has-no-fstab,	no-nt,	no-winload,	no-recov-nor-hid,	no-bmgr,	notwinboot
sda5	: isnotESP,	fstab-without-efi,	no-nt,	no-winload,	no-recov-nor-hid,	no-bmgr,	notwinboot
sdb1	: isnotESP,	part-has-no-fstab,	no-nt,	no-winload,	no-recov-nor-hid,	no-bmgr,	notwinboot
sdb2	: isnotESP,	part-has-no-fstab,	no-nt,	no-winload,	no-recov-nor-hid,	no-bmgr,	notwinboot
sdb3	: isnotESP,	part-has-no-fstab,	no-nt,	no-winload,	no-recov-nor-hid,	no-bmgr,	notwinboot
sdb4	: isnotESP,	part-has-no-fstab,	no-nt,	no-winload,	no-recov-nor-hid,	no-bmgr,	notwinboot

Partitions info (3/3): _________________________________________________________

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

fdisk -l (filtered): ___________________________________________________________

Disk sda: 119.25 GiB, 128035676160 bytes, 250069680 sectors
Disk identifier: 0xfabf0d01
      Boot     Start       End   Sectors  Size Id Type
sda1            2048  60794879  60792832   29G 83 Linux
sda2       169289728 208574884  39285157 18.8G 83 Linux
sda3        60794880 169289727 108494848 51.8G 83 Linux
sda4       208576510 250068862  41492353 19.8G  5 Extended
sda5  *    212627456 250068862  37441407 17.9G 83 Linux
sda6       208576512 212625407   4048896    2G 82 Linux swap / Solaris
Partition table entries are not in disk order.
Disk sdb: 298.9 GiB, 320072931328 bytes, 625142444 sectors
Disk identifier: 0xcf57a05c
      Boot     Start       End   Sectors  Size Id Type
sdb1            2048 203868159 203866112 97.2G  c W95 FAT32 (LBA)
sdb2       203868160 325388287 121520128   58G  b W95 FAT32
sdb3       325388288 512995327 187607040 89.5G 83 Linux
sdb4       590370816 625141759  34770944 16.6G 83 Linux

parted -lm (filtered): _________________________________________________________

sda:128GB:scsi:512:512:msdos:ATA LDLC:;
1:1049kB:31.1GB:31.1GB:ext4::;
3:31.1GB:86.7GB:55.5GB:ext4::;
2:86.7GB:107GB:20.1GB:ext4::;
4:107GB:128GB:21.2GB:::;
6:107GB:109GB:2073MB:linux-swap(v1)::;
5:109GB:128GB:19.2GB:ext4::boot;
sdb:320GB:scsi:512:512:msdos:Hitachi HTS543232A7A:;
1:1049kB:104GB:104GB:fat32::lba;
2:104GB:167GB:62.2GB:fat32::;
3:167GB:263GB:96.1GB:ext4::;
4:302GB:320GB:17.8GB:ext4::;

blkid (filtered): ______________________________________________________________

NAME   FSTYPE   UUID                                 PARTUUID                             LABEL       PARTLABEL
sda                                                                                                   
├─sda1 ext4     15ac14f6-76af-45c4-be0f-188a3fc7c843 fabf0d01-01                                      
├─sda2 ext4     abed0522-8331-4bd9-b3c4-ee9d2ec51f27 fabf0d01-02                                      
├─sda3 ext4     b1f2075f-13d8-402c-a2e0-e139ac1ab414 fabf0d01-03                          fichiers    
├─sda4                                               fabf0d01-04                                      
├─sda5 ext4     75c91263-bb7c-4d86-84d1-1c4a58f5a445 fabf0d01-05                                      
└─sda6 swap     4b6d0113-de7f-45d6-b540-6005f1421a5c fabf0d01-06                                      
sdb                                                                                                   
├─sdb1 vfat     15F5-1213                            cf57a05c-01                          VERBATIM HD 
├─sdb2 vfat     C8BA-1A87                            cf57a05c-02                          ARCHIVES    
├─sdb3 ext4     941b962a-ecf1-40ec-a674-ba69f4f0b8e8 cf57a05c-03                          sauvegardes 
└─sdb4 ext4     fc4b52cd-c612-45e0-a90c-b745058f292a cf57a05c-04                          isos        

df (filtered): _________________________________________________________________

        Avail Use% Mounted on
sda1     2.9G  85% /
sda2     7.4G  54% /mnt/boot-sav/sda2
sda3     2.7G  90% /fichiers
sda5     7.9G  49% /mnt/boot-sav/sda5
sdb1    25.2G  74% /mnt/boot-sav/sdb1
sdb2     9.4G  84% /media/ryry/ARCHIVES
sdb3    20.6G  71% /media/ryry/sauvegardes
sdb4       9G  40% /media/ryry/isos

Mount options: __________________________________________________________________

sda1   rw,relatime,errors=remount-ro
sda2   rw,relatime
sda3   rw,relatime,stripe=32730
sda5   rw,relatime
sdb1   rw,relatime,fmask=0022,dmask=0022,codepage=437,iocharset=iso8859-1,shortname=mixed,errors=remount-ro
sdb2   rw,nosuid,nodev,relatime,uid=1000,gid=1000,fmask=0022,dmask=0022,codepage=437,iocharset=iso8859-1,shortname=mixed,showexec,utf8,flush,errors=remount-ro
sdb3   rw,nosuid,nodev,relatime
sdb4   rw,nosuid,nodev,relatime

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

Ubuntu   15ac14f6-76af-45c4-be0f-188a3fc7c843
Ubuntu, avec Linux 5.4.0-37-generic   15ac14f6-76af-45c4-be0f-188a3fc7c843
Ubuntu, avec Linux 5.4.0-33-generic   15ac14f6-76af-45c4-be0f-188a3fc7c843
Manjaro Linux (20.0.3) (sur sda2)   d546dd2c-c995-4ee2-96a0-5aeed03af9a6
Manjaro Linux (sur sda2)   d546dd2c-c995-4ee2-96a0-5aeed03af9a6
Manjaro Linux (Kernel 5.6.15-1-MANJARO x64) (sur sda2)   d546dd2c-c995-4ee2-96a0-5aeed03af9a6
Manjaro Linux (Kernel 5.6.15-1-MANJARO x64 - fallback initramfs) (sur sda2)   d546dd2c-c995-4ee2-96a0-5aeed03af9a6
Deepin 20 Beta (20) (sur sda5)   75c91263-bb7c-4d86-84d1-1c4a58f5a445
Deepin 20 Beta GNU/Linux (sur sda5)   75c91263-bb7c-4d86-84d1-1c4a58f5a445
Deepin 20 Beta GNU/Linux, with Linux 5.3.0-3-amd64 (sur sda5)   75c91263-bb7c-4d86-84d1-1c4a58f5a445
### END /etc/grub.d/30_os-prober ###
### END /etc/grub.d/30_uefi-firmware ###
Grml Rescue System (ubuntu-mate-20.04-beta-desktop-amd64.iso)

========================== sda1/etc/fstab (filtered) ===========================

# <file system> <mount point> <type> <options> <dump> <pass>
UUID=15ac14f6-76af-45c4-be0f-188a3fc7c843	/	ext4	errors=remount-ro	0	1
UUID=b1f2075f-13d8-402c-a2e0-e139ac1ab414	/fichiers	ext4	defaults	0	2
tmpfs                                     /tmp           tmpfs   defaults,noatime,mode=1777 0 0
UUID=4b6d0113-de7f-45d6-b540-6005f1421a5c	none	swap	sw	0	0

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

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

           GiB - GB             File                                 Fragment(s)
  19.438644409 = 20.872085504   boot/grub/grub.cfg                             3
   2.680515289 = 2.878181376    boot/grub/i386-pc/core.img                     1
  25.186012268 = 27.043274752   boot/vmlinuz                                   1
   4.915836334 = 5.278339072    boot/vmlinuz-5.4.0-33-generic                  3
  25.186012268 = 27.043274752   boot/vmlinuz-5.4.0-37-generic                  1
   4.915836334 = 5.278339072    boot/vmlinuz.old                               3
  26.869098663 = 28.850475008   boot/initrd.img                               26
  13.363887787 = 14.349365248   boot/initrd.img-5.4.0-33-generic              45
  26.869098663 = 28.850475008   boot/initrd.img-5.4.0-37-generic              26
  13.363887787 = 14.349365248   boot/initrd.img.old                           45

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

-rwxr-xr-x 1 root root 17123 déc.  15  2019 10_linux
-rwxr-xr-x 1 root root 42128 avril 13 15:17 10_linux_zfs
-rwxr-xr-x 1 root root 12894 déc.  15  2019 20_linux_xen
-rwxr-xr-x 1 root root 12059 déc.  15  2019 30_os-prober
-rwxr-xr-x 1 root root  1424 févr. 26 09:59 30_uefi-firmware
-rwxr-xr-x 1 root root   214 déc.  15  2019 40_custom
-rwxr-xr-x 1 root root   216 déc.  15  2019 41_custom
-rwxr-xr-x 1 root root  3280 juil. 22  2018 42_grml

=========================== sda1/etc/grub.d/42_grml ============================

#!/bin/sh
# Filename:      42_grml
# Purpose:       grub-mkconfig helper script for Grml rescue systems
# Authors:       Grml team (grml.org), (c) Andreas Gredler <jimmy@grml.org>, Michael Prokop <mika@grml.org>
# License:       This file is licensed under the GPL v2+.
################################################################################
set -e
prefix=/usr
exec_prefix=${prefix}
bindir=${exec_prefix}/bin
libdir=${exec_prefix}/lib
if [ -r ${libdir}/grub/grub-mkconfig_lib ] ; then
  . ${libdir}/grub/grub-mkconfig_lib
elif [ -r /usr/share/grub/grub-mkconfig_lib ] ; then # fallback for e.g. Fedora
  . /usr/share/grub/grub-mkconfig_lib
else
  echo "Could not locate file grub-mkconfig_lib, please report a bug." >&2
fi
# default unless configured otherwise:
ISO_LOCATION="/boot/grml"
if [ -r /etc/default/grml-rescueboot ] ; then
  . /etc/default/grml-rescueboot
fi
resolve_dm_name() {
  retval="$1"
  base=${1##*/}
  for block in /sys/block /sys/class/block ; do
    [ ! -d ${block}/${base}/dm ] && continue
    retval="/dev/mapper/$(cat ${block}/${base}/dm/name)"
    break
  done
  case "$retval" in
    /dev/dm-*)
    minor=${retval##*-}
   retval="/dev/mapper/$(dmsetup info -C --noheadings -o name -j 253 -m $minor)"
    ;;
  esac
  echo "$retval"
}
get_dependencies() {
  device=${1}
  if [ -z ${device} ] ; then
    return
  fi
  device=$(readlink -f ${device})
  case "$device" in
    /dev/mapper/*)
    device="/dev/dm-$(dmsetup info -C --noheadings -o minor "$device")"
    ;;
  esac
  base=${device##*/}
  dependencies=""
  additional_dependencies=""
  for block in /sys/block /sys/class/block ; do
    [ ! -d ${block}/${base}/slaves ] && continue
    for file in  ${block}/${base}/slaves/* ; do
      dep_name="/dev/${file##*/}"
      dep_name=$(resolve_dm_name ${dep_name})
      # resolve recursively all dependencies
      additional_dependencies=$(get_dependencies ${dep_name})
      dependencies="$dependencies $additional_dependencies $dep_name"
    done
    break
  done
  echo $dependencies
}
iso_list=""
for file in "${ISO_LOCATION}"/*.iso ; do
     if grub_file_is_not_garbage "$file" ; then
       iso_list="$iso_list $file "
     fi
done
for grmliso in $iso_list ; do
  rel_dirname="$(dirname $(make_system_path_relative_to_its_root $grmliso))"
  grml="$(basename $grmliso)"
  device="$(${grub_probe} -t device ${grmliso})"
  additional_param=""
  case "$device" in
    /dev/mapper*|/dev/md*)
      dependencies=$(get_dependencies ${device})
      dep_string=""
      for dep in $dependencies $device ; do
        dep_string="$dep_string,$dep"
      done
      dep_string=${dep_string#,}
      additional_param="live-media=$dep_string"
    ;;
  esac
  echo "Found Grml ISO image: $grmliso" >&2
  title="Grml Rescue System ($grml)"
  grub_prep=$(prepare_grub_to_access_device "$device" | sed -e "s/^/        /")
  cat << EOF
menuentry "${title}" {
${grub_prep}
        iso_path="${rel_dirname%/}/${grml}"
        export iso_path
        kernelopts=" $CUSTOM_BOOTOPTIONS $additional_param "
        export kernelopts
        loopback loop "${rel_dirname%/}/$grml"
        set root=(loop)
        configfile /boot/grub/loopback.cfg
}
EOF
done
## END OF FILE #################################################################

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

LMDE 4 Debbie   abed0522-8331-4bd9-b3c4-ee9d2ec51f27
LMDE 4 Debbie, avec Linux 4.19.0-9-amd64   abed0522-8331-4bd9-b3c4-ee9d2ec51f27
LMDE 4 Debbie, avec Linux 4.19.0-8-amd64   abed0522-8331-4bd9-b3c4-ee9d2ec51f27
Ubuntu 20.04 LTS (20.04) (sur sda1)   15ac14f6-76af-45c4-be0f-188a3fc7c843
Ubuntu (sur sda1)   15ac14f6-76af-45c4-be0f-188a3fc7c843
Ubuntu, avec Linux 5.4.0-37-generic (sur sda1)   15ac14f6-76af-45c4-be0f-188a3fc7c843
Ubuntu, avec Linux 5.4.0-33-generic (sur sda1)   15ac14f6-76af-45c4-be0f-188a3fc7c843
Deepin 20 Beta (20) (sur sda5)   75c91263-bb7c-4d86-84d1-1c4a58f5a445
Deepin 20 Beta GNU/Linux (sur sda5)   75c91263-bb7c-4d86-84d1-1c4a58f5a445
Deepin 20 Beta GNU/Linux, with Linux 5.3.0-3-amd64 (sur sda5)   75c91263-bb7c-4d86-84d1-1c4a58f5a445
### END /etc/grub.d/30_os-prober ###
### END /etc/grub.d/30_uefi-firmware ###

========================== sda2/etc/fstab (filtered) ===========================

proc	/proc	proc	defaults	0	0
UUID=b1f2075f-13d8-402c-a2e0-e139ac1ab414	/fichiers	ext4	rw,errors=remount-ro	0	0
UUID=abed0522-8331-4bd9-b3c4-ee9d2ec51f27	/	ext4	rw,errors=remount-ro	0	1
UUID=4b6d0113-de7f-45d6-b540-6005f1421a5c	swap	swap	sw	0	0

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

GRUB_DEFAULT=saved
GRUB_TIMEOUT=5
GRUB_DISTRIBUTOR=`lsb_release -i -s 2> /dev/null || echo Debian`
GRUB_CMDLINE_LINUX_DEFAULT="quiet splash"
GRUB_CMDLINE_LINUX=""
GRUB_SAVEDEFAULT=true

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

           GiB - GB             File                                 Fragment(s)
  89.285224915 = 95.869280256   boot/grub/grub.cfg                             1
  95.363071442 = 102.395318272  boot/grub/i386-pc/core.img                     1
  84.654323578 = 90.896887808   boot/vmlinuz-4.19.0-8-amd64                    1
  85.345729828 = 91.639279616   boot/vmlinuz-4.19.0-9-amd64                    1
  85.345729828 = 91.639279616   vmlinuz                                        1
  84.654323578 = 90.896887808   vmlinuz.old                                    1
  85.869270325 = 92.201426944   boot/initrd.img-4.19.0-8-amd64                 2
  88.353691101 = 94.869053440   boot/initrd.img-4.19.0-9-amd64                 2
  88.353691101 = 94.869053440   initrd.img                                     2
  85.869270325 = 92.201426944   initrd.img.old                                 2

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

-rwxr-xr-x 1 root root 12444 juin  25  2019 10_linux
-rwxr-xr-x 1 root root 11497 juin  25  2019 20_linux_xen
-rwxr-xr-x 1 root root 12059 juin  25  2019 30_os-prober
-rwxr-xr-x 1 root root  1418 juin  25  2019 30_uefi-firmware
-rwxr-xr-x 1 root root   214 juin  25  2019 40_custom
-rwxr-xr-x 1 root root   216 juin  25  2019 41_custom

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

Deepin 20 Beta GNU/Linux   75c91263-bb7c-4d86-84d1-1c4a58f5a445
Deepin 20 Beta GNU/Linux, with Linux 5.3.0-3-amd64   75c91263-bb7c-4d86-84d1-1c4a58f5a445
Ubuntu 20.04 LTS (20.04) (on sda1)   15ac14f6-76af-45c4-be0f-188a3fc7c843
Ubuntu (on sda1)   15ac14f6-76af-45c4-be0f-188a3fc7c843
Ubuntu, avec Linux 5.4.0-26-generic (on sda1)   15ac14f6-76af-45c4-be0f-188a3fc7c843
Ubuntu, avec Linux 5.4.0-25-generic (on sda1)   15ac14f6-76af-45c4-be0f-188a3fc7c843
Ubuntu, avec Linux 5.4.0-9-generic (on sda1)   15ac14f6-76af-45c4-be0f-188a3fc7c843
Ubuntu Focal Fossa (development branch) (20.04) (on sda2)   2e30cf3c-4334-4d24-a76d-07cad647fdf2
Ubuntu (on sda2)   2e30cf3c-4334-4d24-a76d-07cad647fdf2
Ubuntu, with Linux 5.4.0-21-generic (on sda2)   2e30cf3c-4334-4d24-a76d-07cad647fdf2
### END /etc/grub.d/30_os-prober ###
### END /etc/grub.d/30_uefi-firmware ###

========================== sda5/etc/fstab (filtered) ===========================

UUID=75c91263-bb7c-4d86-84d1-1c4a58f5a445	/         	ext4      	rw,relatime	0 1
UUID=b1f2075f-13d8-402c-a2e0-e139ac1ab414	/fichiers	ext4	defaults	0	2
UUID=4b6d0113-de7f-45d6-b540-6005f1421a5c	none      	swap      	defaults,pri=-2	0 0

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

DEEPIN_GFXMODE_DETECT=2
GRUB_BACKGROUND=/boot/grub/themes/deepin-fallback/background.jpg
GRUB_CMDLINE_LINUX=""
GRUB_CMDLINE_LINUX_DEFAULT="splash quiet "
GRUB_DEFAULT=2
GRUB_DISTRIBUTOR="`/usr/bin/lsb_release -d -s 2>/dev/null || echo Deepin`"
GRUB_GFXMODE=1366x768,1360x768,1280x720,1024x768,auto
GRUB_THEME=/boot/grub/themes/deepin-fallback/theme.txt
GRUB_TIMEOUT=5

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

           GiB - GB             File                                 Fragment(s)
 116.501995087 = 125.093064704  boot/grub/grub.cfg                             4
 113.990798950 = 122.396688384  boot/grub/i386-pc/core.img                     1
 115.525890350 = 124.044980224  boot/vmlinuz-5.3.0-3-amd64                     1
 115.525890350 = 124.044980224  vmlinuz                                        1
 115.525890350 = 124.044980224  vmlinuz.old                                    1
 101.535049438 = 109.022429184  boot/initrd.img-4.19.0-6-amd64                 1
 108.675735474 = 116.689682432  boot/initrd.img-5.3.0-3-amd64                  3
 108.675735474 = 116.689682432  initrd.img                                     3
 108.675735474 = 116.689682432  initrd.img.old                                 3

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

-rwxr-xr-x 1 root root 13631 avril 17 21:55 10_linux
-rwxr-xr-x 1 root root  5595 avril 17 21:55 11_deepin_ab_recovery
-rwxr-xr-x 1 root root 11497 avril 17 21:55 20_linux_xen
-rwxr-xr-x 1 root root 12902 avril 17 21:55 30_os-prober
-rwxr-xr-x 1 root root  1418 avril 17 21:55 30_uefi-firmware
-rwxr-xr-x 1 root root    62 avril 17 21:55 35_deepin_gfxmode
-rwxr-xr-x 1 root root   214 avril 17 21:55 40_custom
-rwxr-xr-x 1 root root   216 avril 17 21:55 41_custom

==================== sda5/etc/grub.d/11_deepin_ab_recovery =====================

#!/bin/sh
quiet_boot="0"
. "$pkgdatadir/grub-mkconfig_lib"
export TEXTDOMAIN=grub
export TEXTDOMAINDIR="${datarootdir}/locale"
CLASS="--class gnu-linux --class gnu --class os"
ab_recovery_cfg=/etc/default/grub.d/11_deepin_ab_recovery.cfg
if [ -f $ab_recovery_cfg ]; then
    . $ab_recovery_cfg
else
    exit 0
fi
if [ -z "$DEEPIN_AB_RECOVERY_BACKUP_UUID" ]; then
    exit 0
fi
GRUB_DEVICE=$DEEPIN_AB_RECOVERY_BACKUP_DEVICE
GRUB_DEVICE_UUID=$DEEPIN_AB_RECOVERY_BACKUP_UUID
boot_device_id=$GRUB_DEVICE_UUID
LINUX_ROOT_DEVICE=UUID=${GRUB_DEVICE_UUID}
linux_entry ()
{
  title="$1"
  version="$2"
  args="$3"
  if [ -z "$boot_device_id" ]; then
      boot_device_id="$(grub_get_device_id "${GRUB_DEVICE}")"
  fi
  echo "menuentry '$(echo "$title" | grub_quote)' ${CLASS} \$menuentry_id_option 'gnulinux-simple-$boot_device_id' {" | sed "s/^/$submenu_indentation/"
  if [ "$quick_boot" = 1 ]; then
      echo "	recordfail" | sed "s/^/$submenu_indentation/"
  fi
  # Use ELILO's generic "efifb" when it's known to be available.
  # FIXME: We need an interface to select vesafb in case efifb can't be used.
  arch=`uname -m`
  if [ x"$arch" = x"mips64" ]; then
      need_boot=1
  fi
  if [ "x$GRUB_GFXPAYLOAD_LINUX" = x ] && [ "$arch" != "aarch64" ] ; then
      echo "	load_video" | sed "s/^/$submenu_indentation/"
  else
      if [ "x$GRUB_GFXPAYLOAD_LINUX" != xtext ] && [ "$arch" != "aarch64" ] ; then
	  echo "	load_video" | sed "s/^/$submenu_indentation/"
      fi
  fi
  if ([ "x$GRUB_GFXPAYLOAD_LINUX" != x ] || [ "$gfxpayload_dynamic" = 1 ]); then
      echo "	gfxmode \$linux_gfx_mode" | sed "s/^/$submenu_indentation/"
  fi
  echo "	insmod gzio" | sed "s/^/$submenu_indentation/"
  echo "	if [ x\$grub_platform = xxen ]; then insmod xzio; insmod lzopio; fi" | sed "s/^/$submenu_indentation/"
  if [ x$dirname = x/ ]; then
    if [ -z "${prepare_root_cache}" ]; then
      prepare_root_cache="$(prepare_grub_to_access_device ${GRUB_DEVICE} | grub_add_tab)"
    fi
    printf '%s\n' "${prepare_root_cache}" | sed "s/^/$submenu_indentation/"
  else
    if [ -z "${prepare_boot_cache}" ]; then
      prepare_boot_cache="$(prepare_grub_to_access_device ${GRUB_DEVICE_BOOT} | grub_add_tab)"
    fi
    printf '%s\n' "${prepare_boot_cache}" | sed "s/^/$submenu_indentation/"
  fi
  if [ x"$quiet_boot" = x0 ]; then
    message="$(gettext_printf "Loading Linux %s ..." ${version})"
    sed "s/^/$submenu_indentation/" << EOF
	echo	'$(echo "$message" | grub_quote)'
EOF
  fi
  if test -d /sys/firmware/efi && test -e "${linux}.efi.signed"; then
    sed "s/^/$submenu_indentation/" << EOF
	linux	${rel_dirname}/${basename}.efi.signed root=${linux_root_device_thisversion} ro ${args}
EOF
  else
    sed "s/^/$submenu_indentation/" << EOF
	linux	${rel_dirname}/${basename} root=${linux_root_device_thisversion} ro ${args}
EOF
  fi
  if test -n "${initrd}" ; then
    # TRANSLATORS: ramdisk isn't identifier. Should be translated.
    if [ x"$quiet_boot" = x0 ]; then
      message="$(gettext_printf "Loading initial ramdisk ...")"
      sed "s/^/$submenu_indentation/" << EOF
	echo	'$(echo "$message" | grub_quote)'
EOF
    fi
    sed "s/^/$submenu_indentation/" << EOF
	initrd	${rel_dirname}/${initrd}
EOF
  fi
  if [ x"$dtbo" = x1 ]; then
    if [ x"$quiet_boot" = x0 ]; then
      message="$(gettext_printf "Loading device tree image ...")"
      sed "s/^/$submenu_indentation/" << EOF
	echo	'$(echo "$message" | grub_quote)'
EOF
    fi
    sed "s/^/$submenu_indentation/" << EOF
	devicetree ${dtbo_rel_dirname}/dtbo.img
EOF
  fi
  if [ x"$need_boot" = x1 ]; then
    echo "	boot" |sed "s/^/$submenu_indentation/"
  fi
  sed "s/^/$submenu_indentation/" << EOF
}
EOF
}
machine=`uname -m`
case "x$machine" in
    xi?86 | xx86_64)
	list=
	for i in /boot/vmlinuz-* /vmlinuz-* /boot/kernel-* ; do
	    if grub_file_is_not_garbage "$i" ; then list="$list $i" ; fi
	done ;;
    *)
	list=
	for i in /boot/vmlinuz-* /boot/vmlinux-* /vmlinuz-* /vmlinux-* /boot/kernel-* ; do
                  if grub_file_is_not_garbage "$i" ; then list="$list $i" ; fi
	done ;;
esac
prepare_boot_cache=
prepare_root_cache=
title_correction_code=
linux="$DEEPIN_AB_RECOVERY_LINUX"
initrd="$DEEPIN_AB_RECOVERY_INITRD"
basename=`basename $linux`
dirname=`dirname $linux`
boot_dirname=`dirname $dirname`
version=`echo $basename | sed -e "s,^[^0-9]*-,,g"`
alt_version=`echo $version | sed -e "s,\.old$,,g"`
linux_root_device_thisversion="${LINUX_ROOT_DEVICE}"
config=
for i in "${boot_dirname}/config-${version}" "${boot_dirname}/config-${alt_version}" "/etc/kernels/kernel-config-${version}" ; do
  if test -e "${i}" ; then
    config="${i}"
    break
  fi
done
initramfs=
if test -n "${config}" ; then
    initramfs=`grep CONFIG_INITRAMFS_SOURCE= "${config}" | cut -f2 -d= | tr -d \"`
fi
if test -n "${initrd}" ; then
  gettext_printf "Found initrd image: %s\n" "${dirname}/${initrd}" >&2
elif test -z "${initramfs}" ; then
  # "UUID=" and "ZFS=" magic is parsed by initrd or initramfs.  Since there's
  # no initrd or builtin initramfs, it can't work here.
  linux_root_device_thisversion=${GRUB_DEVICE}
fi
dtbo_dirname=`dirname $dirname`
rel_dirname=`make_system_path_relative_to_its_root $dirname`
dtbo_rel_dirname=`make_system_path_relative_to_its_root $dtbo_dirname`
backup_time=$(date +%c -d @$DEEPIN_AB_RECOVERY_BACKUP_TIME)
menu_entry=$(printf "$(gettext -d deepin-ab-recovery 'Roll back to %s (%s)')" "$DEEPIN_AB_RECOVERY_OS_DESC" "$backup_time")
if test -e "$dtbo_dirname/dtbo.img"; then
	dtbo=1
fi
linux_entry "$menu_entry" "${version}" "${GRUB_CMDLINE_LINUX} ${GRUB_CMDLINE_LINUX_DEFAULT}"

====================== sda5/etc/grub.d/35_deepin_gfxmode =======================

#!/bin/sh
cat << EOF
insmod deepin_gfxmode
deepin_gfxmode
EOF


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

Unknown BootLoader on sda4

00000000  61 70 e3 fb 5d 59 a8 36  d0 02 0d ec 0a da d4 7f  |ap..]Y.6........|
00000010  05 33 5c 29 22 76 48 7b  f4 4e 0c 6e 73 d8 91 14  |.3\)"vH{.N.ns...|
00000020  6d 5f 6a 0d b5 b6 72 0d  5d 70 9c 21 79 33 4f b9  |m_j...r.]p.!y3O.|
00000030  d7 09 28 51 16 67 99 81  57 4f 8d c7 a3 8e f1 4a  |..(Q.g..WO.....J|
00000040  15 f2 e1 29 cc 45 dd 3e  fb 69 dc 92 18 ef 3e 0b  |...).E.>.i....>.|
00000050  b0 aa 21 73 07 0e 46 20  58 25 40 62 26 5e f6 53  |..!s..F X%@b&^.S|
00000060  9a 63 c7 72 89 dd 96 62  06 be 40 15 51 f2 6f 25  |.c.r...b..@.Q.o%|
00000070  2f 3e 67 36 d6 e6 47 b7  c0 ae ac 91 3a ad f5 20  |/>g6..G.....:.. |
00000080  56 18 9a ab 31 09 6c 5a  30 36 47 a3 52 6d e1 8b  |V...1.lZ06G.Rm..|
00000090  10 49 ad 84 0d 46 86 c5  f4 30 c7 08 d9 b9 3b cd  |.I...F...0....;.|
000000a0  3d 52 d8 9a cf fd 7d b5  f3 27 74 04 f5 03 c9 27  |=R....}..'t....'|
000000b0  43 b5 56 fa b4 1d aa fe  9e 04 7f b8 9e ac 97 cd  |C.V.............|
000000c0  98 8e fa e5 60 b6 f0 64  64 69 6d f5 87 5f 0a b0  |....`..ddim.._..|
000000d0  86 14 9f cd 11 24 f5 de  cb e4 1e a0 1b 7c f3 c1  |.....$.......|..|
000000e0  d3 1d 10 54 b0 9d 30 bd  ff 4f e3 61 26 d8 fb a2  |...T..0..O.a&...|
000000f0  23 8f f7 84 58 84 f0 d1  8c 5e ec 10 1b f8 46 0e  |#...X....^....F.|
00000100  7c 00 07 08 f4 3f 4b cd  0c c9 8b 43 79 95 2f 9a  ||....?K....Cy./.|
00000110  49 17 d5 3d ea 53 3f a5  f9 66 84 d3 0d 22 15 87  |I..=.S?..f..."..|
00000120  28 20 44 b1 71 06 92 82  6d 76 4e 97 57 a0 82 04  |( D.q...mvN.W...|
00000130  36 a8 c5 47 bd 10 cd 77  c0 ca 70 aa e8 1a 86 d0  |6..G...w..p.....|
00000140  54 59 e1 c4 ac 06 9e 2f  bb ad 18 11 bf a3 80 5e  |TY...../.......^|
00000150  84 d1 a7 e5 6d 3a 24 18  1f 91 a5 39 66 5e 52 80  |....m:$....9f^R.|
00000160  d9 45 98 4b 66 db 42 9a  23 b8 3d 70 39 df 85 05  |.E.Kf.B.#.=p9...|
00000170  4d 2d fc 27 d9 6c ea 86  50 e0 48 83 02 8a 0d a2  |M-.'.l..P.H.....|
00000180  2b a5 d4 d2 fc dd 5e 21  5b e0 f5 36 81 1a d0 99  |+.....^![..6....|
00000190  aa d8 a7 8d a4 d9 87 02  21 9e 8c 18 3f f7 c2 3f  |........!...?..?|
000001a0  c0 38 e9 e9 25 0e 51 d5  5a 1a a6 e9 99 92 fb b4  |.8..%.Q.Z.......|
000001b0  f7 50 c9 8f a5 15 9d 26  c3 ce 2e 1c bf eb 80 fe  |.P.....&........|
000001c0  ff ff 83 fe ff ff 02 d0  3d 00 7f 4f 3b 02 00 fe  |........=..O;...|
000001d0  ff ff 05 fe ff ff 01 00  00 00 01 c8 3d 00 00 00  |............=...|
000001e0  00 00 00 00 00 00 00 00  00 00 00 00 00 00 00 00  |................|
000001f0  00 00 00 00 00 00 00 00  00 00 00 00 00 00 55 aa  |..............U.|
00000200


Unmount sdb1 from /media/ryry/VERBATIM HD/ to avoid special characters (& or \ or space) incompatibilities

Suggested repair: ______________________________________________________________

The default repair of the Boot-Repair utility would reinstall the grub2 of
sda1 into the MBRs of all disks (except live-disks and removable disks without OS).
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) disk!
Portable 1 : Intel® Pentium(R) CPU 4405U @ 2.10GHz × 4 - Intel® HD Graphics 510 - 4 go de RAM ¦ Ubuntu 20.04 ¦ LMDE 4 ¦ Deepin 20.0 avec partition de données commune
Portable 2 : Toshiba A100-187 - Intel Celeron 1,60 GHz - ATI Radeon XPRESS 200M ¦ Lubuntu 18.04 ¦ Debian 10 Buster Lxde

zeb
Messages : 16473
Enregistré le : ven. 19 juin 2015 22:13
Localisation : plus ici

Re: BOOT REPAIR (GRUB HS)

Message par zeb »

Actu mint→Assistance

Avatar du membre
thyam
modérateur
Messages : 8033
Enregistré le : mar. 14 juil. 2015 10:33
Localisation : Lille - Hauts de France

Re: BOOT REPAIR (GRUB HS)

Message par thyam »

si besoin de rouvrir => mp à un membre de l'équipe ;)
pc principal : hp pavilion dv6 - core i5 - 8go ram - dd 1 to - CG dual Intel HD graphics 3000 / Amd Radeon HD 7400m
dual boot W$ (taf oblige) / LMDE 6 'Faye' et Cinnamon

« Seul, on va plus vite... Ensemble, on va plus loin ;) »

Répondre