#1 Le 24/03/2020, à 17:45
- malbo
Conversion Legacy vers UEFI avec Boot-repair version 4ppa75
1) Etat de départ : une installation merdique de Ubuntu 20.04 en mode Legacy (non-EFI) alors que Windows 10 est préinstallé en mode EFI. Pour réparer cela, il est impératif de le faire depuis une session live de Ubuntu démarrée en mode EFI. Je choisis d'utiliser une session live de Ubuntu 20.04 mais il doit être possible de faire cette réparation depuis une 18.04.4
Boot-info depuis une session live de Ubuntu 20.04 démarrée en mode EFI : http://paste.ubuntu.com/p/yjRDXzM3B7/
Je colle ci-dessous ce Boot-info :
Boot Info Script 71f6c5c + Boot-Repair extra info [Boot-Info 16mar2020]
============================= Boot Info Summary: ===============================
=> Grub2 (v2.00) is installed in the MBR of /dev/sda and looks at sector
76562768 of the same hard drive for core.img. core.img is at this location
and looks for (,gpt5)/boot/grub. It also embeds following components:
modules
---------------------------------------------------------------------------
fshelp ext2 part_gpt biosdisk
---------------------------------------------------------------------------
=> libparted MBR boot code is installed in the MBR of /dev/sdb.
sda1: __________________________________________________________________________
File system: ntfs
Boot sector type: Windows 8/2012: NTFS
Boot sector info: No errors found in the Boot Parameter Block.
Operating System:
Boot files:
sda2: __________________________________________________________________________
File system: vfat
Boot sector type: Windows 8/2012: FAT32
Boot sector info: No errors found in the Boot Parameter Block.
Operating System:
Boot files: /EFI/ubuntu/grub.cfg /efi/BOOT/bkpbootx64.efi
/efi/BOOT/bootx64.efi /efi/BOOT/fbx64.efi
/efi/BOOT/grubx64.efi /efi/BOOT/mmx64.efi
/efi/ubuntu/fwupx64.efi /efi/ubuntu/grubx64.efi
/efi/ubuntu/mmx64.efi /efi/ubuntu/shimx64.efi
/efi/ubuntu/grub.cfg /efi/Microsoft/Boot/bootmgfw.efi
/efi/Microsoft/Boot/bootmgr.efi
/efi/Microsoft/Boot/memtest.efi
sda3: __________________________________________________________________________
File system:
Boot sector type: -
Boot sector info:
sda4: __________________________________________________________________________
File system: ntfs
Boot sector type: Windows 8/2012: NTFS
Boot sector info: No errors found in the Boot Parameter Block.
Operating System:
Boot files: /bootmgr /Windows/System32/winload.exe
sda5: __________________________________________________________________________
File system: ext4
Boot sector type: -
Boot sector info:
Operating System: Ubuntu Focal Fossa (development branch)
Boot files: /boot/grub/grub.cfg /etc/fstab
/boot/grub/i386-pc/core.img
sdb1: __________________________________________________________________________
File system: ext4
Boot sector type: -
Boot sector info:
Operating System:
Boot files:
============================ Drive/Partition Info: =============================
Drive: sda _____________________________________________________________________
Disk /dev/sda: 40.33 GiB, 43294556160 bytes, 84559680 sectors
Disk model: VBOX HARDDISK
Units: sectors of 1 * 512 = 512 bytes
Sector size (logical/physical): 512 bytes / 512 bytes
I/O size (minimum/optimal): 512 bytes / 512 bytes
Partition Boot Start Sector End Sector # of Sectors Id System
/dev/sda1 1 84,559,679 84,559,679 ee GPT
GUID Partition Table detected.
Partition Attrs Start Sector End Sector # of Sectors System
/dev/sda1 2,048 923,647 921,600 Windows Recovery Environment (Windows)
/dev/sda2 923,648 1,126,399 202,752 EFI System partition
/dev/sda3 1,126,400 1,159,167 32,768 EFI System partition
/dev/sda4 1,159,168 50,636,799 49,477,632 Data partition (Windows/Linux)
/dev/sda5 50,636,800 84,557,823 33,921,024 Data partition (Linux)
Attributes: R=Required, N=No Block IO, B=Legacy BIOS Bootable, +=More bits set
Drive: sdb _____________________________________________________________________
Disk /dev/sdb: 32 GiB, 34359738368 bytes, 67108864 sectors
Disk model: VBOX HARDDISK
Units: sectors of 1 * 512 = 512 bytes
Sector size (logical/physical): 512 bytes / 512 bytes
I/O size (minimum/optimal): 512 bytes / 512 bytes
Partition Boot Start Sector End Sector # of Sectors Id System
/dev/sdb1 2,048 67,108,863 67,106,816 83 Linux
"blkid" output: ________________________________________________________________
Device UUID TYPE LABEL
/dev/loop0 squashfs
/dev/sda1 72E8CBBEE8CB7EBB ntfs Récupération
/dev/sda2 C4D1-8AAE vfat
/dev/sda3
/dev/sda4 B606ECD606EC989F ntfs
/dev/sda5 6ed2f53a-c172-4eff-9038-491af9c7457b ext4
/dev/sdb1 6c14aa5c-a67b-4211-afd2-42ff350e60b0 ext4 images_win10_EFI
/dev/sr0 2020-02-20-07-51-12-00 iso9660 Ubuntu 20.04 LTS amd64
========================= "ls -l /dev/disk/by-id" output: ======================
total 0
lrwxrwxrwx 1 root root 9 Mar 24 2020 ata-VBOX_CD-ROM_VB1-1a2b3c4d -> ../../sr0
lrwxrwxrwx 1 root root 9 Mar 24 14:12 ata-VBOX_HARDDISK_VB2db79605-645acf7a -> ../../sda
lrwxrwxrwx 1 root root 10 Mar 24 14:19 ata-VBOX_HARDDISK_VB2db79605-645acf7a-part1 -> ../../sda1
lrwxrwxrwx 1 root root 10 Mar 24 14:12 ata-VBOX_HARDDISK_VB2db79605-645acf7a-part2 -> ../../sda2
lrwxrwxrwx 1 root root 10 Mar 24 14:12 ata-VBOX_HARDDISK_VB2db79605-645acf7a-part3 -> ../../sda3
lrwxrwxrwx 1 root root 10 Mar 24 14:19 ata-VBOX_HARDDISK_VB2db79605-645acf7a-part4 -> ../../sda4
lrwxrwxrwx 1 root root 10 Mar 24 14:12 ata-VBOX_HARDDISK_VB2db79605-645acf7a-part5 -> ../../sda5
lrwxrwxrwx 1 root root 9 Mar 24 14:12 ata-VBOX_HARDDISK_VB8e816ea2-fefc916f -> ../../sdb
lrwxrwxrwx 1 root root 10 Mar 24 14:12 ata-VBOX_HARDDISK_VB8e816ea2-fefc916f-part1 -> ../../sdb1
================================ Mount points: =================================
Device Mount_Point Type Options
/dev/fuse /run/user/999/doc fuse (rw,nosuid,nodev,relatime,user_id=999,group_id=999)
/dev/loop0 /rofs squashfs (ro,noatime)
/dev/sr0 /cdrom iso9660 (ro,noatime,nojoliet,check=s,map=n,blocksize=2048)
========================== sda2/EFI/ubuntu/grub.cfg: ===========================
--------------------------------------------------------------------------------
search.fs_uuid 7867687a-23dd-4ba9-a158-f3781c9d569e root hd0,gpt5
set prefix=($root)'/boot/grub'
configfile $prefix/grub.cfg
--------------------------------------------------------------------------------
========================== sda2/efi/ubuntu/grub.cfg: ===========================
--------------------------------------------------------------------------------
search.fs_uuid 7867687a-23dd-4ba9-a158-f3781c9d569e root hd0,gpt5
set prefix=($root)'/boot/grub'
configfile $prefix/grub.cfg
--------------------------------------------------------------------------------
=========================== sda5/boot/grub/grub.cfg: ===========================
--------------------------------------------------------------------------------
#
# DO NOT EDIT THIS FILE
#
# It is automatically generated by grub-mkconfig using templates
# from /etc/grub.d and settings from /etc/default/grub
#
### BEGIN /etc/grub.d/00_header ###
if [ -s $prefix/grubenv ]; then
set have_grubenv=true
load_env
fi
if [ "${initrdfail}" = 2 ]; then
set initrdfail=
elif [ "${initrdfail}" = 1 ]; then
set next_entry="${prev_entry}"
set prev_entry=
save_env prev_entry
if [ "${next_entry}" ]; then
set initrdfail=2
fi
fi
if [ "${next_entry}" ] ; then
set default="${next_entry}"
set next_entry=
save_env next_entry
set boot_once=true
else
set default="0"
fi
if [ x"${feature_menuentry_id}" = xy ]; then
menuentry_id_option="--id"
else
menuentry_id_option=""
fi
export menuentry_id_option
if [ "${prev_saved_entry}" ]; then
set saved_entry="${prev_saved_entry}"
save_env saved_entry
set prev_saved_entry=
save_env prev_saved_entry
set boot_once=true
fi
function savedefault {
if [ -z "${boot_once}" ]; then
saved_entry="${chosen}"
save_env saved_entry
fi
}
function initrdfail {
if [ -n "${have_grubenv}" ]; then if [ -n "${partuuid}" ]; then
if [ -z "${initrdfail}" ]; then
set initrdfail=1
if [ -n "${boot_once}" ]; then
set prev_entry="${default}"
save_env prev_entry
fi
fi
save_env initrdfail
fi; fi
}
function recordfail {
set recordfail=1
if [ -n "${have_grubenv}" ]; then if [ -z "${boot_once}" ]; then save_env recordfail; fi; fi
}
function load_video {
if [ x$feature_all_video_module = xy ]; then
insmod all_video
else
insmod efi_gop
insmod efi_uga
insmod ieee1275_fb
insmod vbe
insmod vga
insmod video_bochs
insmod video_cirrus
fi
}
if [ x$feature_default_font_path = xy ] ; then
font=unicode
else
insmod part_gpt
insmod ext2
set root='hd0,gpt5'
if [ x$feature_platform_search_hint = xy ]; then
search --no-floppy --fs-uuid --set=root --hint-bios=hd0,gpt5 --hint-efi=hd0,gpt5 --hint-baremetal=ahci0,gpt5 6ed2f53a-c172-4eff-9038-491af9c7457b
else
search --no-floppy --fs-uuid --set=root 6ed2f53a-c172-4eff-9038-491af9c7457b
fi
font="/usr/share/grub/unicode.pf2"
fi
if loadfont $font ; then
set gfxmode=auto
load_video
insmod gfxterm
set locale_dir=$prefix/locale
set lang=fr_FR
insmod gettext
fi
terminal_output gfxterm
if [ "${recordfail}" = 1 ] ; then
set timeout=30
else
if [ x$feature_timeout_style = xy ] ; then
set timeout_style=hidden
set timeout=0
# Fallback hidden-timeout code in case the timeout_style feature is
# unavailable.
elif sleep --interruptible 0 ; then
set timeout=0
fi
fi
### END /etc/grub.d/00_header ###
### BEGIN /etc/grub.d/05_debian_theme ###
set menu_color_normal=white/black
set menu_color_highlight=black/light-gray
### END /etc/grub.d/05_debian_theme ###
### BEGIN /etc/grub.d/10_linux ###
function gfxmode {
set gfxpayload="${1}"
if [ "${1}" = "keep" ]; then
set vt_handoff=vt.handoff=7
else
set vt_handoff=
fi
}
if [ "${recordfail}" != 1 ]; then
if [ -e ${prefix}/gfxblacklist.txt ]; then
if hwmatch ${prefix}/gfxblacklist.txt 3; then
if [ ${match} = 0 ]; then
set linux_gfx_mode=keep
else
set linux_gfx_mode=text
fi
else
set linux_gfx_mode=text
fi
else
set linux_gfx_mode=keep
fi
else
set linux_gfx_mode=text
fi
export linux_gfx_mode
menuentry 'Ubuntu' --class ubuntu --class gnu-linux --class gnu --class os $menuentry_id_option 'gnulinux-simple-6ed2f53a-c172-4eff-9038-491af9c7457b' {
recordfail
load_video
gfxmode $linux_gfx_mode
insmod gzio
if [ x$grub_platform = xxen ]; then insmod xzio; insmod lzopio; fi
insmod part_gpt
insmod ext2
set root='hd0,gpt5'
if [ x$feature_platform_search_hint = xy ]; then
search --no-floppy --fs-uuid --set=root --hint-bios=hd0,gpt5 --hint-efi=hd0,gpt5 --hint-baremetal=ahci0,gpt5 6ed2f53a-c172-4eff-9038-491af9c7457b
else
search --no-floppy --fs-uuid --set=root 6ed2f53a-c172-4eff-9038-491af9c7457b
fi
linux /boot/vmlinuz-5.4.0-18-generic root=UUID=6ed2f53a-c172-4eff-9038-491af9c7457b ro quiet splash $vt_handoff
initrd /boot/initrd.img-5.4.0-18-generic
}
submenu 'Advanced options for Ubuntu' $menuentry_id_option 'gnulinux-advanced-6ed2f53a-c172-4eff-9038-491af9c7457b' {
menuentry 'Ubuntu, with Linux 5.4.0-18-generic' --class ubuntu --class gnu-linux --class gnu --class os $menuentry_id_option 'gnulinux-5.4.0-18-generic-advanced-6ed2f53a-c172-4eff-9038-491af9c7457b' {
recordfail
load_video
gfxmode $linux_gfx_mode
insmod gzio
if [ x$grub_platform = xxen ]; then insmod xzio; insmod lzopio; fi
insmod part_gpt
insmod ext2
set root='hd0,gpt5'
if [ x$feature_platform_search_hint = xy ]; then
search --no-floppy --fs-uuid --set=root --hint-bios=hd0,gpt5 --hint-efi=hd0,gpt5 --hint-baremetal=ahci0,gpt5 6ed2f53a-c172-4eff-9038-491af9c7457b
else
search --no-floppy --fs-uuid --set=root 6ed2f53a-c172-4eff-9038-491af9c7457b
fi
echo 'Loading Linux 5.4.0-18-generic ...'
linux /boot/vmlinuz-5.4.0-18-generic root=UUID=6ed2f53a-c172-4eff-9038-491af9c7457b ro quiet splash $vt_handoff
echo 'Loading initial ramdisk ...'
initrd /boot/initrd.img-5.4.0-18-generic
}
menuentry 'Ubuntu, with Linux 5.4.0-18-generic (recovery mode)' --class ubuntu --class gnu-linux --class gnu --class os $menuentry_id_option 'gnulinux-5.4.0-18-generic-recovery-6ed2f53a-c172-4eff-9038-491af9c7457b' {
recordfail
load_video
insmod gzio
if [ x$grub_platform = xxen ]; then insmod xzio; insmod lzopio; fi
insmod part_gpt
insmod ext2
set root='hd0,gpt5'
if [ x$feature_platform_search_hint = xy ]; then
search --no-floppy --fs-uuid --set=root --hint-bios=hd0,gpt5 --hint-efi=hd0,gpt5 --hint-baremetal=ahci0,gpt5 6ed2f53a-c172-4eff-9038-491af9c7457b
else
search --no-floppy --fs-uuid --set=root 6ed2f53a-c172-4eff-9038-491af9c7457b
fi
echo 'Loading Linux 5.4.0-18-generic ...'
linux /boot/vmlinuz-5.4.0-18-generic root=UUID=6ed2f53a-c172-4eff-9038-491af9c7457b ro recovery nomodeset
echo 'Loading initial ramdisk ...'
initrd /boot/initrd.img-5.4.0-18-generic
}
menuentry 'Ubuntu, with Linux 5.4.0-14-generic' --class ubuntu --class gnu-linux --class gnu --class os $menuentry_id_option 'gnulinux-5.4.0-14-generic-advanced-6ed2f53a-c172-4eff-9038-491af9c7457b' {
recordfail
load_video
gfxmode $linux_gfx_mode
insmod gzio
if [ x$grub_platform = xxen ]; then insmod xzio; insmod lzopio; fi
insmod part_gpt
insmod ext2
set root='hd0,gpt5'
if [ x$feature_platform_search_hint = xy ]; then
search --no-floppy --fs-uuid --set=root --hint-bios=hd0,gpt5 --hint-efi=hd0,gpt5 --hint-baremetal=ahci0,gpt5 6ed2f53a-c172-4eff-9038-491af9c7457b
else
search --no-floppy --fs-uuid --set=root 6ed2f53a-c172-4eff-9038-491af9c7457b
fi
echo 'Loading Linux 5.4.0-14-generic ...'
linux /boot/vmlinuz-5.4.0-14-generic root=UUID=6ed2f53a-c172-4eff-9038-491af9c7457b ro quiet splash $vt_handoff
echo 'Loading initial ramdisk ...'
initrd /boot/initrd.img-5.4.0-14-generic
}
menuentry 'Ubuntu, with Linux 5.4.0-14-generic (recovery mode)' --class ubuntu --class gnu-linux --class gnu --class os $menuentry_id_option 'gnulinux-5.4.0-14-generic-recovery-6ed2f53a-c172-4eff-9038-491af9c7457b' {
recordfail
load_video
insmod gzio
if [ x$grub_platform = xxen ]; then insmod xzio; insmod lzopio; fi
insmod part_gpt
insmod ext2
set root='hd0,gpt5'
if [ x$feature_platform_search_hint = xy ]; then
search --no-floppy --fs-uuid --set=root --hint-bios=hd0,gpt5 --hint-efi=hd0,gpt5 --hint-baremetal=ahci0,gpt5 6ed2f53a-c172-4eff-9038-491af9c7457b
else
search --no-floppy --fs-uuid --set=root 6ed2f53a-c172-4eff-9038-491af9c7457b
fi
echo 'Loading Linux 5.4.0-14-generic ...'
linux /boot/vmlinuz-5.4.0-14-generic root=UUID=6ed2f53a-c172-4eff-9038-491af9c7457b ro recovery nomodeset
echo 'Loading initial ramdisk ...'
initrd /boot/initrd.img-5.4.0-14-generic
}
}
### END /etc/grub.d/10_linux ###
### BEGIN /etc/grub.d/10_linux_zfs ###
### END /etc/grub.d/10_linux_zfs ###
### BEGIN /etc/grub.d/20_linux_xen ###
### END /etc/grub.d/20_linux_xen ###
### BEGIN /etc/grub.d/20_memtest86+ ###
menuentry 'Memory test (memtest86+)' {
insmod part_gpt
insmod ext2
set root='hd0,gpt5'
if [ x$feature_platform_search_hint = xy ]; then
search --no-floppy --fs-uuid --set=root --hint-bios=hd0,gpt5 --hint-efi=hd0,gpt5 --hint-baremetal=ahci0,gpt5 6ed2f53a-c172-4eff-9038-491af9c7457b
else
search --no-floppy --fs-uuid --set=root 6ed2f53a-c172-4eff-9038-491af9c7457b
fi
knetbsd /boot/memtest86+.elf
}
menuentry 'Memory test (memtest86+, serial console 115200)' {
insmod part_gpt
insmod ext2
set root='hd0,gpt5'
if [ x$feature_platform_search_hint = xy ]; then
search --no-floppy --fs-uuid --set=root --hint-bios=hd0,gpt5 --hint-efi=hd0,gpt5 --hint-baremetal=ahci0,gpt5 6ed2f53a-c172-4eff-9038-491af9c7457b
else
search --no-floppy --fs-uuid --set=root 6ed2f53a-c172-4eff-9038-491af9c7457b
fi
linux16 /boot/memtest86+.bin console=ttyS0,115200n8
}
### END /etc/grub.d/20_memtest86+ ###
### BEGIN /etc/grub.d/30_os-prober ###
### END /etc/grub.d/30_os-prober ###
### BEGIN /etc/grub.d/30_uefi-firmware ###
### END /etc/grub.d/30_uefi-firmware ###
### BEGIN /etc/grub.d/40_custom ###
# This file provides an easy way to add custom menu entries. Simply type the
# menu entries you want to add after this comment. Be careful not to change
# the 'exec tail' line above.
### END /etc/grub.d/40_custom ###
### BEGIN /etc/grub.d/41_custom ###
if [ -f ${config_directory}/custom.cfg ]; then
source ${config_directory}/custom.cfg
elif [ -z "${config_directory}" -a -f $prefix/custom.cfg ]; then
source $prefix/custom.cfg;
fi
### END /etc/grub.d/41_custom ###
--------------------------------------------------------------------------------
=============================== sda5/etc/fstab: ================================
--------------------------------------------------------------------------------
# /etc/fstab: static file system information.
#
# Use 'blkid' to print the universally unique identifier for a
# device; this may be used with UUID= as a more robust way to name devices
# that works even if disks are added and removed. See fstab(5).
#
# <file system> <mount point> <type> <options> <dump> <pass>
# / was on /dev/sda5 during installation
UUID=6ed2f53a-c172-4eff-9038-491af9c7457b / ext4 errors=remount-ro 0 1
/swapfile none swap sw 0 0
--------------------------------------------------------------------------------
=================== sda5: Location of files loaded by Grub: ====================
GiB - GB File Fragment(s)
36.508068085 = 39.200239616 boot/grub/grub.cfg 3
36.507995605 = 39.200161792 boot/grub/i386-pc/core.img 1
30.789169312 = 33.059618816 boot/vmlinuz 2
27.387691498 = 29.407309824 boot/vmlinuz-5.4.0-14-generic 2
30.789169312 = 33.059618816 boot/vmlinuz-5.4.0-18-generic 2
27.387691498 = 29.407309824 boot/vmlinuz.old 2
31.236404419 = 33.539833856 boot/initrd.img 1
31.188690186 = 33.488601088 boot/initrd.img-5.4.0-14-generic 3
31.236404419 = 33.539833856 boot/initrd.img-5.4.0-18-generic 1
31.188690186 = 33.488601088 boot/initrd.img.old 3
=============================== StdErr Messages: ===============================
File descriptor 9 (/proc/5441/mountinfo) leaked on lvs invocation. Parent PID 16661: bash
ADDITIONAL INFORMATION :
=================== log of boot-repair 20200324_1411 ===================
boot-repair version : 4ppa75
boot-sav version : 4ppa75
boot-sav-extra version : 4ppa75
glade2script version : 3.2.4~ppa6
Warning: Unable to open /dev/sr0 read-write (Read-only file system). /dev/sr0 has been opened read-only.
boot-repair is executed in live-session (Ubuntu Focal Fossa (development branch), focal, Ubuntu, x86_64)
CPU op-mode(s): 32-bit, 64-bit
Address sizes: 48 bits physical, 48 bits virtual
BOOT_IMAGE=/casper/vmlinuz file=/cdrom/preseed/ubuntu.seed quiet splash ---
=================== os-prober:
/dev/sda2@/efi/Microsoft/Boot/bootmgfw.efi:Windows Boot Manager:Windows:efi
/dev/sda5:Ubuntu Focal Fossa (development branch) (20.04):Ubuntu:linux
=================== blkid:
/dev/sda1: LABEL="RM-CM-)cupM-CM-)ration" UUID="72E8CBBEE8CB7EBB" TYPE="ntfs" PARTLABEL="Basic data partition" PARTUUID="07380664-6dd4-4925-aeac-a435b34ad9f5"
/dev/sda2: UUID="C4D1-8AAE" TYPE="vfat" PARTLABEL="EFI system partition" PARTUUID="1ab7abb3-31e4-4289-9a3a-587ac6546242"
/dev/sda4: UUID="B606ECD606EC989F" TYPE="ntfs" PARTLABEL="Basic data partition" PARTUUID="63728c63-f8c6-4f3b-8882-3688c4f80734"
/dev/sda5: UUID="6ed2f53a-c172-4eff-9038-491af9c7457b" TYPE="ext4" PARTUUID="54392d5d-1996-4c62-8842-d91f4a33b602"
/dev/sdb1: LABEL="images_win10_EFI" UUID="6c14aa5c-a67b-4211-afd2-42ff350e60b0" TYPE="ext4" PARTUUID="52caac94-01"
/dev/sr0: UUID="2020-02-20-07-51-12-00" LABEL="Ubuntu 20.04 LTS amd64" TYPE="iso9660" PTUUID="72b2b8e0" PTTYPE="dos"
/dev/loop0: TYPE="squashfs"
/dev/sda3: PARTLABEL="Microsoft reserved partition" PARTUUID="c21c3b27-c875-4428-a0d8-0c431338197b"
1 disks with OS, 2 OS : 1 Linux, 0 MacOS, 1 Windows, 0 unknown type OS.
Windows not detected by os-prober on sda4.
Presence of EFI/Microsoft file detected: /mnt/boot-sav/sda2/EFI/Microsoft/Boot/bootmgfw.efi
Presence of EFI/Boot file detected: /mnt/boot-sav/sda2/EFI/Boot/bkpbootx64.efi
Presence of EFI/Boot file detected: /mnt/boot-sav/sda2/EFI/Boot/bootx64.efi
Presence of EFI/Boot file detected: /mnt/boot-sav/sda2/EFI/Boot/fbx64.efi
Presence of EFI/Boot file detected: /mnt/boot-sav/sda2/EFI/Boot/grubx64.efi
Presence of EFI/Boot file detected: /mnt/boot-sav/sda2/EFI/Boot/mmx64.efi
Presence of bkp file detected: /mnt/boot-sav/sda2/EFI/BOOT/bkpbootx64.efi
=================== sda5/etc/grub.d/ :
drwxr-xr-x 2 root root 4096 Mar 24 13:33 grub.d
total 128
-rwxr-xr-x 1 root root 10627 Feb 6 17:37 00_header
-rwxr-xr-x 1 root root 6258 Feb 6 17:20 05_debian_theme
-rwxr-xr-x 1 root root 17123 Feb 6 17:37 10_linux
-rwxr-xr-x 1 root root 38596 Mar 11 16:46 10_linux_zfs
-rwxr-xr-x 1 root root 12894 Feb 6 17:37 20_linux_xen
-rwxr-xr-x 1 root root 1992 Feb 13 23:09 20_memtest86+
-rwxr-xr-x 1 root root 12059 Feb 6 17:37 30_os-prober
-rwxr-xr-x 1 root root 1424 Mar 11 16:46 30_uefi-firmware
-rwxr-xr-x 1 root root 214 Feb 6 17:37 40_custom
-rwxr-xr-x 1 root root 216 Feb 6 17:37 41_custom
-rw-r--r-- 1 root root 483 Feb 6 17:37 README
=================== sda5/etc/default/grub :
# If you change this file, run 'update-grub' afterwards to update
# /boot/grub/grub.cfg.
# For full documentation of the options in this file, see:
# info -f grub -n 'Simple configuration'
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=""
# Uncomment to enable BadRAM filtering, modify to suit your needs
# This works with Linux (no patch required) and with any kernel that obtains
# the memory map information from GRUB (GNU Mach, kernel of FreeBSD ...)
#GRUB_BADRAM="0x01234567,0xfefefefe,0x89abcdef,0xefefefef"
# Uncomment to disable graphical terminal (grub-pc only)
#GRUB_TERMINAL=console
# The resolution used on graphical terminal
# note that you can use only modes which your graphic card supports via VBE
# you can see them in real GRUB with the command `vbeinfo'
#GRUB_GFXMODE=640x480
# Uncomment if you don't want GRUB to pass "root=UUID=xxx" parameter to Linux
#GRUB_DISABLE_LINUX_UUID=true
# Uncomment to disable generation of recovery mode menu entries
#GRUB_DISABLE_RECOVERY="true"
# Uncomment to get a beep at grub start
#GRUB_INIT_TUNE="480 440 1"
ls /sys/firmware/efi/vars : new_var,del_var,boot-args-7c436110-ab2a-4bbb-a880-fe41995c9f82,Test1-e660597e-b94d-4209-9c80-1805b5d19b69,Test0-e660597e-b94d-4209-9c80-1805b5d19b69,RTC-378d7b65-8da9-4773-b6e4-a47826a833e1,PlatformLangCodes-8be4df61-93ca-11d2-aa0d-00e098032b8c,PlatformLang-8be4df61-93ca-11d2-aa0d-00e098032b8c,OsIndicationsSupported-8be4df61-93ca-11d2-aa0d-00e098032b8c,MemoryTypeInformation-4c19049f-4137-4dd3-9c10-8b97a83ffdfa,MTC-eb704011-1402-11d3-8e77-00a0c969723b,LangCodes-8be4df61-93ca-11d2-aa0d-00e098032b8c,Lang-8be4df61-93ca-11d2-aa0d-00e098032b8c,FirmwareFeaturesMask-4d1ede05-38c7-4a6a-9cc6-4bcca8b38c14,FirmwareFeatures-4d1ede05-38c7-4a6a-9cc6-4bcca8b38c14,ConOutDev-8be4df61-93ca-11d2-aa0d-00e098032b8c,ConOut-8be4df61-93ca-11d2-aa0d-00e098032b8c,ConInDev-8be4df61-93ca-11d2-aa0d-00e098032b8c,ConIn-8be4df61-93ca-11d2-aa0d-00e098032b8c,BootOrder-8be4df61-93ca-11d2-aa0d-00e098032b8c,BootOptionSupport-8be4df61-93ca-11d2-aa0d-00e098032b8c,BootCurrent-8be4df61-93ca-11d2-aa0d-00e098032b8c,Boot0003-8be4df61-93ca-11d2-aa0d-00e098032b8c,Boot0002-8be4df61-93ca-11d2-aa0d-00e098032b8c,Boot0001-8be4df61-93ca-11d2-aa0d-00e098032b8c,Boot0000-8be4df61-93ca-11d2-aa0d-00e098032b8c,BackgroundClear-4d1ede05-38c7-4a6a-9cc6-4bcca8b38c14,
Please report this message to boot.repair@gmail.com
=================== efibootmgr -v
BootCurrent: 0000
BootOrder: 0000,0001,0002,0003
Boot0000* EFI DVD/CDROM PciRoot(0x0)/Pci(0xd,0x0)/Sata(1,0,0)
Boot0001* EFI Hard Drive PciRoot(0x0)/Pci(0xd,0x0)/Sata(0,0,0)
Boot0002* EFI Hard Drive 1 PciRoot(0x0)/Pci(0xd,0x0)/Sata(2,0,0)
Boot0003* EFI Internal Shell MemoryMapped(11,0x2100000,0x28fffff)/FvFile(7c04a583-9e3e-4f1c-ad65-e05268d0b4d1)
=================== UEFI/Legacy mode:
BIOS is EFI-compatible, and is setup in EFI-mode for this live-session.
SecureBoot maybe enabled. (maybe sec-boot, Please report this message to boot.repair@gmail.com)
=================== PARTITIONS & DISKS:
sda1 : sda, not-sepboot, no-grubenv nogrub, no-docgrub, no-update-grub, 32, no-boot, no-os, not--efi--part, part-has-no-fstab, part-has-no-fstab, no-nt, no-winload, recovery-or-hidden, no-bmgr, notwinboot, nopakmgr, nogrubinstall, no---usr, part-has-no-fstab, not-sep-usr, standard, not-far, notbiosboot, /mnt/boot-sav/sda1.
sda2 : sda, not-sepboot, no-grubenv nogrub, no-docgrub, no-update-grub, 32, no-boot, is-os, is-correct-EFI, part-has-no-fstab, part-has-no-fstab, no-nt, no-winload, no-recov-nor-hid, no-bmgr, notwinboot, nopakmgr, nogrubinstall, no---usr, part-has-no-fstab, not-sep-usr, standard, not-far, notbiosboot, /mnt/boot-sav/sda2.
sda4 : sda, not-sepboot, no-grubenv nogrub, no-docgrub, no-update-grub, 32, no-boot, is-os, not--efi--part, part-has-no-fstab, part-has-no-fstab, no-nt, haswinload, no-recov-nor-hid, bootmgr, notwinboot, nopakmgr, nogrubinstall, no---usr, part-has-no-fstab, not-sep-usr, standard, not-far, notbiosboot, /mnt/boot-sav/sda4.
sda5 : sda, not-sepboot, grubenv-ok grub2, grub-pc , update-grub, 64, with-boot, is-os, not--efi--part, fstab-without-boot, fstab-without-efi, no-nt, no-winload, no-recov-nor-hid, no-bmgr, notwinboot, apt-get, grub-install, with--usr, fstab-without-usr, not-sep-usr, standard, not-far, notbiosboot, /mnt/boot-sav/sda5.
sdb1 : sdb, maybesepboot, no-grubenv nogrub, no-docgrub, no-update-grub, 32, no-boot, no-os, not--efi--part, part-has-no-fstab, part-has-no-fstab, no-nt, no-winload, no-recov-nor-hid, no-bmgr, notwinboot, nopakmgr, nogrubinstall, no---usr, part-has-no-fstab, not-sep-usr, standard, not-far, notbiosboot, /mnt/boot-sav/sdb1.
sda : GPT, no-BIOS_boot, has-correctEFI, not-usb, not-mmc, has-os, 2048 sectors * 512 bytes
sdb : not-GPT, BIOSboot-not-needed, has-no-EFIpart, not-usb, not-mmc, no-os, 2048 sectors * 512 bytes
=================== parted -lm:
BYT;
/dev/sda:43.3GB:scsi:512:512:gpt:ATA VBOX HARDDISK:;
1:1049kB:473MB:472MB:ntfs:Basic data partition:diag;
2:473MB:577MB:104MB:fat32:EFI system partition:boot, esp;
3:577MB:593MB:16.8MB::Microsoft reserved partition:boot, esp;
4:593MB:25.9GB:25.3GB:ntfs:Basic data partition:msftdata;
5:25.9GB:43.3GB:17.4GB:ext4::;
BYT;
/dev/sdb:34.4GB:scsi:512:512:msdos:ATA VBOX HARDDISK:;
1:1049kB:34.4GB:34.4GB:ext4::;
BYT;
/dev/sr0:2743MB:scsi:2048:2048:mac:VBOX CD-ROM:;
1:2048B:6143B:4096B::Apple:;
2:2299MB:2303MB:4063kB::EFI:;
=================== lsblk:
KNAME TYPE FSTYPE SIZE LABEL
loop0 loop squashfs 2G
sda disk 40.3G
sda1 part ntfs 450M Récupération
sda2 part vfat 99M
sda3 part 16M
sda4 part ntfs 23.6G
sda5 part ext4 16.2G
sdb disk 32G
sdb1 part ext4 32G images_win10_EFI
sr0 rom iso9660 2.6G Ubuntu 20.04 LTS amd64
KNAME ROTA RO RM STATE MOUNTPOINT
loop0 1 1 0 /rofs
sda 1 0 0 running
sda1 1 0 0 /mnt/boot-sav/sda1
sda2 1 0 0 /mnt/boot-sav/sda2
sda3 1 0 0
sda4 1 0 0 /mnt/boot-sav/sda4
sda5 1 0 0 /mnt/boot-sav/sda5
sdb 1 0 0 running
sdb1 1 0 0 /mnt/boot-sav/sdb1
sr0 1 0 1 running /cdrom
=================== mount:
sysfs on /sys type sysfs (rw,nosuid,nodev,noexec,relatime)
proc on /proc type proc (rw,nosuid,nodev,noexec,relatime)
udev on /dev type devtmpfs (rw,nosuid,noexec,relatime,size=969560k,nr_inodes=242390,mode=755)
devpts on /dev/pts type devpts (rw,nosuid,noexec,relatime,gid=5,mode=620,ptmxmode=000)
tmpfs on /run type tmpfs (rw,nosuid,nodev,noexec,relatime,size=203424k,mode=755)
/dev/sr0 on /cdrom type iso9660 (ro,noatime,nojoliet,check=s,map=n,blocksize=2048)
/dev/loop0 on /rofs type squashfs (ro,noatime)
/cow on / type overlay (rw,relatime,lowerdir=/filesystem.squashfs,upperdir=/cow/upper,workdir=/cow/work)
securityfs on /sys/kernel/security type securityfs (rw,nosuid,nodev,noexec,relatime)
tmpfs on /dev/shm type tmpfs (rw,nosuid,nodev)
tmpfs on /run/lock type tmpfs (rw,nosuid,nodev,noexec,relatime,size=5120k)
tmpfs on /sys/fs/cgroup type tmpfs (ro,nosuid,nodev,noexec,mode=755)
cgroup2 on /sys/fs/cgroup/unified type cgroup2 (rw,nosuid,nodev,noexec,relatime,nsdelegate)
cgroup on /sys/fs/cgroup/systemd type cgroup (rw,nosuid,nodev,noexec,relatime,xattr,name=systemd)
pstore on /sys/fs/pstore type pstore (rw,nosuid,nodev,noexec,relatime)
efivarfs on /sys/firmware/efi/efivars type efivarfs (rw,nosuid,nodev,noexec,relatime)
none on /sys/fs/bpf type bpf (rw,nosuid,nodev,noexec,relatime,mode=700)
cgroup on /sys/fs/cgroup/pids type cgroup (rw,nosuid,nodev,noexec,relatime,pids)
cgroup on /sys/fs/cgroup/net_cls,net_prio type cgroup (rw,nosuid,nodev,noexec,relatime,net_cls,net_prio)
cgroup on /sys/fs/cgroup/cpuset type cgroup (rw,nosuid,nodev,noexec,relatime,cpuset)
cgroup on /sys/fs/cgroup/hugetlb type cgroup (rw,nosuid,nodev,noexec,relatime,hugetlb)
cgroup on /sys/fs/cgroup/rdma type cgroup (rw,nosuid,nodev,noexec,relatime,rdma)
cgroup on /sys/fs/cgroup/memory type cgroup (rw,nosuid,nodev,noexec,relatime,memory)
cgroup on /sys/fs/cgroup/perf_event type cgroup (rw,nosuid,nodev,noexec,relatime,perf_event)
cgroup on /sys/fs/cgroup/freezer type cgroup (rw,nosuid,nodev,noexec,relatime,freezer)
cgroup on /sys/fs/cgroup/cpu,cpuacct type cgroup (rw,nosuid,nodev,noexec,relatime,cpu,cpuacct)
cgroup on /sys/fs/cgroup/devices type cgroup (rw,nosuid,nodev,noexec,relatime,devices)
cgroup on /sys/fs/cgroup/blkio type cgroup (rw,nosuid,nodev,noexec,relatime,blkio)
systemd-1 on /proc/sys/fs/binfmt_misc type autofs (rw,relatime,fd=27,pgrp=1,timeout=0,minproto=5,maxproto=5,direct,pipe_ino=16550)
hugetlbfs on /dev/hugepages type hugetlbfs (rw,relatime,pagesize=2M)
mqueue on /dev/mqueue type mqueue (rw,nosuid,nodev,noexec,relatime)
debugfs on /sys/kernel/debug type debugfs (rw,nosuid,nodev,noexec,relatime)
fusectl on /sys/fs/fuse/connections type fusectl (rw,nosuid,nodev,noexec,relatime)
configfs on /sys/kernel/config type configfs (rw,nosuid,nodev,noexec,relatime)
tmpfs on /tmp type tmpfs (rw,nosuid,nodev,relatime)
tmpfs on /run/user/999 type tmpfs (rw,nosuid,nodev,relatime,size=203420k,mode=700,uid=999,gid=999)
gvfsd-fuse on /run/user/999/gvfs type fuse.gvfsd-fuse (rw,nosuid,nodev,relatime,user_id=999,group_id=999)
/dev/fuse on /run/user/999/doc type fuse (rw,nosuid,nodev,relatime,user_id=999,group_id=999)
/dev/sda1 on /mnt/boot-sav/sda1 type fuseblk (rw,relatime,user_id=0,group_id=0,allow_other,blksize=4096)
/dev/sda2 on /mnt/boot-sav/sda2 type vfat (rw,relatime,fmask=0022,dmask=0022,codepage=437,iocharset=iso8859-1,shortname=mixed,errors=remount-ro)
/dev/sda4 on /mnt/boot-sav/sda4 type fuseblk (rw,relatime,user_id=0,group_id=0,allow_other,blksize=4096)
/dev/sda5 on /mnt/boot-sav/sda5 type ext4 (rw,relatime)
/dev/sdb1 on /mnt/boot-sav/sdb1 type ext4 (rw,relatime)
=================== ls:
/sys/block/sda (filtered): alignment_offset bdi capability dev device discard_alignment events events_async events_poll_msecs ext_range hidden holders inflight integrity mq power queue range removable ro sda1 sda2 sda3 sda4 sda5 size slaves stat subsystem trace uevent
/sys/block/sdb (filtered): alignment_offset bdi capability dev device discard_alignment events events_async events_poll_msecs ext_range hidden holders inflight integrity mq power queue range removable ro sdb1 size slaves stat subsystem trace uevent
/sys/block/sr0 (filtered): alignment_offset bdi capability dev device discard_alignment events events_async events_poll_msecs ext_range hidden holders inflight integrity mq power queue range removable ro size slaves stat subsystem trace uevent
/dev (filtered): autofs block bsg btrfs-control bus cdrom char console core cpu_dma_latency cuse disk dri dvd ecryptfs fb0 fd full fuse hidraw0 hpet hugepages hwrng i2c-0 initctl input kmsg lightnvm log mapper mcelog mem mqueue net null port ppp psaux ptmx pts random rfkill rtc rtc0 sda sda1 sda2 sda3 sda4 sda5 sdb sdb1 sg0 sg1 sg2 shm snapshot snd sr0 stderr stdin stdout udmabuf uhid uinput urandom userio vboxguest vboxuser vfio vga_arbiter vhci vhost-net vhost-vsock zero zfs
ls /dev/mapper: control
=================== hexdump -n512 -C /dev/sda1
00000000 eb 52 90 4e 54 46 53 20 20 20 20 00 02 08 00 00 |.R.NTFS .....|
00000010 00 00 00 00 00 f8 00 00 3f 00 ff 00 00 08 00 00 |........?.......|
00000020 00 00 00 00 80 00 80 00 ff 0f 0e 00 00 00 00 00 |................|
00000030 00 96 00 00 00 00 00 00 02 00 00 00 00 00 00 00 |................|
00000040 f6 00 00 00 01 00 00 00 bb 7e cb e8 be cb e8 72 |.........~.....r|
00000050 00 00 00 00 fa 33 c0 8e d0 bc 00 7c fb 68 c0 07 |.....3.....|.h..|
00000060 1f 1e 68 66 00 cb 88 16 0e 00 66 81 3e 03 00 4e |..hf......f.>..N|
00000070 54 46 53 75 15 b4 41 bb aa 55 cd 13 72 0c 81 fb |TFSu..A..U..r...|
00000080 55 aa 75 06 f7 c1 01 00 75 03 e9 dd 00 1e 83 ec |U.u.....u.......|
00000090 18 68 1a 00 b4 48 8a 16 0e 00 8b f4 16 1f cd 13 |.h...H..........|
000000a0 9f 83 c4 18 9e 58 1f 72 e1 3b 06 0b 00 75 db a3 |.....X.r.;...u..|
000000b0 0f 00 c1 2e 0f 00 04 1e 5a 33 db b9 00 20 2b c8 |........Z3... +.|
000000c0 66 ff 06 11 00 03 16 0f 00 8e c2 ff 06 16 00 e8 |f...............|
000000d0 4b 00 2b c8 77 ef b8 00 bb cd 1a 66 23 c0 75 2d |K.+.w......f#.u-|
000000e0 66 81 fb 54 43 50 41 75 24 81 f9 02 01 72 1e 16 |f..TCPAu$....r..|
000000f0 68 07 bb 16 68 52 11 16 68 09 00 66 53 66 53 66 |h...hR..h..fSfSf|
00000100 55 16 16 16 68 b8 01 66 61 0e 07 cd 1a 33 c0 bf |U...h..fa....3..|
00000110 0a 13 b9 f6 0c fc f3 aa e9 fe 01 90 90 66 60 1e |.............f`.|
00000120 06 66 a1 11 00 66 03 06 1c 00 1e 66 68 00 00 00 |.f...f.....fh...|
00000130 00 66 50 06 53 68 01 00 68 10 00 b4 42 8a 16 0e |.fP.Sh..h...B...|
00000140 00 16 1f 8b f4 cd 13 66 59 5b 5a 66 59 66 59 1f |.......fY[ZfYfY.|
00000150 0f 82 16 00 66 ff 06 11 00 03 16 0f 00 8e c2 ff |....f...........|
00000160 0e 16 00 75 bc 07 1f 66 61 c3 a1 f6 01 e8 09 00 |...u...fa.......|
00000170 a1 fa 01 e8 03 00 f4 eb fd 8b f0 ac 3c 00 74 09 |............<.t.|
00000180 b4 0e bb 07 00 cd 10 eb f2 c3 0d 0a 45 72 72 65 |............Erre|
00000190 75 72 20 6c 65 63 74 75 72 65 20 64 69 73 71 75 |ur lecture disqu|
000001a0 65 00 0d 0a 42 4f 4f 54 4d 47 52 20 63 6f 6d 70 |e...BOOTMGR comp|
000001b0 72 65 73 73 82 00 0d 0a 43 74 72 6c 2b 41 6c 74 |ress....Ctrl+Alt|
000001c0 2b 53 75 70 70 72 20 70 6f 75 72 20 72 65 64 82 |+Suppr pour red.|
000001d0 6d 61 72 72 65 72 0d 0a 00 73 74 61 72 74 0d 0a |marrer...start..|
000001e0 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 |................|
000001f0 00 00 00 00 00 00 8a 01 a2 01 b6 01 00 00 55 aa |..............U.|
00000200
=================== hexdump -n512 -C /dev/sda2
00000000 eb 58 90 4d 53 44 4f 53 35 2e 30 00 02 02 0e 1a |.X.MSDOS5.0.....|
00000010 02 00 00 00 00 f8 00 00 3f 00 ff 00 00 18 0e 00 |........?.......|
00000020 00 18 03 00 f9 02 00 00 00 00 00 00 02 00 00 00 |................|
00000030 01 00 06 00 00 00 00 00 00 00 00 00 00 00 00 00 |................|
00000040 80 01 29 ae 8a d1 c4 4e 4f 20 4e 41 4d 45 20 20 |..)....NO NAME |
00000050 20 20 46 41 54 33 32 20 20 20 33 c9 8e d1 bc f4 | FAT32 3.....|
00000060 7b 8e c1 8e d9 bd 00 7c 88 56 40 88 4e 02 8a 56 |{......|.V@.N..V|
00000070 40 b4 41 bb aa 55 cd 13 72 10 81 fb 55 aa 75 0a |@.A..U..r...U.u.|
00000080 f6 c1 01 74 05 fe 46 02 eb 2d 8a 56 40 b4 08 cd |...t..F..-.V@...|
00000090 13 73 05 b9 ff ff 8a f1 66 0f b6 c6 40 66 0f b6 |.s......f...@f..|
000000a0 d1 80 e2 3f f7 e2 86 cd c0 ed 06 41 66 0f b7 c9 |...?.......Af...|
000000b0 66 f7 e1 66 89 46 f8 83 7e 16 00 75 39 83 7e 2a |f..f.F..~..u9.~*|
000000c0 00 77 33 66 8b 46 1c 66 83 c0 0c bb 00 80 b9 01 |.w3f.F.f........|
000000d0 00 e8 2c 00 e9 a8 03 a1 f8 7d 80 c4 7c 8b f0 ac |..,......}..|...|
000000e0 84 c0 74 17 3c ff 74 09 b4 0e bb 07 00 cd 10 eb |..t.<.t.........|
000000f0 ee a1 fa 7d eb e4 a1 7d 80 eb df 98 cd 16 cd 19 |...}...}........|
00000100 66 60 80 7e 02 00 0f 84 20 00 66 6a 00 66 50 06 |f`.~.... .fj.fP.|
00000110 53 66 68 10 00 01 00 b4 42 8a 56 40 8b f4 cd 13 |Sfh.....B.V@....|
00000120 66 58 66 58 66 58 66 58 eb 33 66 3b 46 f8 72 03 |fXfXfXfX.3f;F.r.|
00000130 f9 eb 2a 66 33 d2 66 0f b7 4e 18 66 f7 f1 fe c2 |..*f3.f..N.f....|
00000140 8a ca 66 8b d0 66 c1 ea 10 f7 76 1a 86 d6 8a 56 |..f..f....v....V|
00000150 40 8a e8 c0 e4 06 0a cc b8 01 02 cd 13 66 61 0f |@............fa.|
00000160 82 74 ff 81 c3 00 02 66 40 49 75 94 c3 42 4f 4f |.t.....f@Iu..BOO|
00000170 54 4d 47 52 20 20 20 20 00 00 00 00 00 00 00 00 |TMGR ........|
00000180 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 |................|
*
000001a0 00 00 00 00 00 00 00 00 00 00 00 00 0d 0a 45 72 |..............Er|
000001b0 72 2e 20 64 69 73 71 75 65 ff 0d 0a 50 72 65 73 |r. disque...Pres|
000001c0 73 65 7a 20 75 6e 65 20 74 6f 75 63 68 65 20 70 |sez une touche p|
000001d0 6f 75 72 20 72 65 64 82 6d 61 72 72 65 72 0d 0a |our red.marrer..|
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 ac 01 ba 01 00 00 55 aa |..............U.|
00000200
=================== hexdump -n512 -C /dev/sda4
00000000 eb 52 90 4e 54 46 53 20 20 20 20 00 02 08 00 00 |.R.NTFS .....|
00000010 00 00 00 00 00 f8 00 00 3f 00 ff 00 00 b0 11 00 |........?.......|
00000020 00 00 00 00 80 00 80 00 ff f7 f2 02 00 00 00 00 |................|
00000030 00 00 0c 00 00 00 00 00 02 00 00 00 00 00 00 00 |................|
00000040 f6 00 00 00 01 00 00 00 9f 98 ec 06 d6 ec 06 b6 |................|
00000050 00 00 00 00 fa 33 c0 8e d0 bc 00 7c fb 68 c0 07 |.....3.....|.h..|
00000060 1f 1e 68 66 00 cb 88 16 0e 00 66 81 3e 03 00 4e |..hf......f.>..N|
00000070 54 46 53 75 15 b4 41 bb aa 55 cd 13 72 0c 81 fb |TFSu..A..U..r...|
00000080 55 aa 75 06 f7 c1 01 00 75 03 e9 dd 00 1e 83 ec |U.u.....u.......|
00000090 18 68 1a 00 b4 48 8a 16 0e 00 8b f4 16 1f cd 13 |.h...H..........|
000000a0 9f 83 c4 18 9e 58 1f 72 e1 3b 06 0b 00 75 db a3 |.....X.r.;...u..|
000000b0 0f 00 c1 2e 0f 00 04 1e 5a 33 db b9 00 20 2b c8 |........Z3... +.|
000000c0 66 ff 06 11 00 03 16 0f 00 8e c2 ff 06 16 00 e8 |f...............|
000000d0 4b 00 2b c8 77 ef b8 00 bb cd 1a 66 23 c0 75 2d |K.+.w......f#.u-|
000000e0 66 81 fb 54 43 50 41 75 24 81 f9 02 01 72 1e 16 |f..TCPAu$....r..|
000000f0 68 07 bb 16 68 52 11 16 68 09 00 66 53 66 53 66 |h...hR..h..fSfSf|
00000100 55 16 16 16 68 b8 01 66 61 0e 07 cd 1a 33 c0 bf |U...h..fa....3..|
00000110 0a 13 b9 f6 0c fc f3 aa e9 fe 01 90 90 66 60 1e |.............f`.|
00000120 06 66 a1 11 00 66 03 06 1c 00 1e 66 68 00 00 00 |.f...f.....fh...|
00000130 00 66 50 06 53 68 01 00 68 10 00 b4 42 8a 16 0e |.fP.Sh..h...B...|
00000140 00 16 1f 8b f4 cd 13 66 59 5b 5a 66 59 66 59 1f |.......fY[ZfYfY.|
00000150 0f 82 16 00 66 ff 06 11 00 03 16 0f 00 8e c2 ff |....f...........|
00000160 0e 16 00 75 bc 07 1f 66 61 c3 a1 f6 01 e8 09 00 |...u...fa.......|
00000170 a1 fa 01 e8 03 00 f4 eb fd 8b f0 ac 3c 00 74 09 |............<.t.|
00000180 b4 0e bb 07 00 cd 10 eb f2 c3 0d 0a 45 72 72 65 |............Erre|
00000190 75 72 20 6c 65 63 74 75 72 65 20 64 69 73 71 75 |ur lecture disqu|
000001a0 65 00 0d 0a 42 4f 4f 54 4d 47 52 20 63 6f 6d 70 |e...BOOTMGR comp|
000001b0 72 65 73 73 82 00 0d 0a 43 74 72 6c 2b 41 6c 74 |ress....Ctrl+Alt|
000001c0 2b 53 75 70 70 72 20 70 6f 75 72 20 72 65 64 82 |+Suppr pour red.|
000001d0 6d 61 72 72 65 72 0d 0a 00 73 74 61 72 74 0d 0a |marrer...start..|
000001e0 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 |................|
000001f0 00 00 00 00 00 00 8a 01 a2 01 b6 01 00 00 55 aa |..............U.|
00000200
=================== df -Th:
Filesystem Type Size Used Avail Use% Mounted on
udev devtmpfs 947M 0 947M 0% /dev
tmpfs tmpfs 199M 1.4M 198M 1% /run
/dev/sr0 iso9660 2.6G 2.6G 0 100% /cdrom
/dev/loop0 squashfs 2.0G 2.0G 0 100% /rofs
/cow overlay 994M 325M 669M 33% /
tmpfs tmpfs 994M 16M 978M 2% /dev/shm
tmpfs tmpfs 5.0M 4.0K 5.0M 1% /run/lock
tmpfs tmpfs 994M 0 994M 0% /sys/fs/cgroup
tmpfs tmpfs 994M 508K 993M 1% /tmp
tmpfs tmpfs 199M 52K 199M 1% /run/user/999
/dev/sda1 fuseblk 450M 389M 62M 87% /mnt/boot-sav/sda1
/dev/sda2 vfat 95M 70M 26M 74% /mnt/boot-sav/sda2
/dev/sda4 fuseblk 24G 17G 7.3G 70% /mnt/boot-sav/sda4
/dev/sda5 ext4 16G 6.7G 8.4G 45% /mnt/boot-sav/sda5
/dev/sdb1 ext4 32G 16G 15G 53% /mnt/boot-sav/sdb1
=================== fdisk -l:
Disk /dev/loop0: 1.97 GiB, 2090962944 bytes, 4083912 sectors
Units: sectors of 1 * 512 = 512 bytes
Sector size (logical/physical): 512 bytes / 512 bytes
I/O size (minimum/optimal): 512 bytes / 512 bytes
Disk /dev/sda: 40.33 GiB, 43294556160 bytes, 84559680 sectors
Disk model: VBOX HARDDISK
Units: sectors of 1 * 512 = 512 bytes
Sector size (logical/physical): 512 bytes / 512 bytes
I/O size (minimum/optimal): 512 bytes / 512 bytes
Disklabel type: gpt
Disk identifier: 2530EA09-698D-4322-B791-29F4A072F62E
Device Start End Sectors Size Type
/dev/sda1 2048 923647 921600 450M Windows recovery environment
/dev/sda2 923648 1126399 202752 99M EFI System
/dev/sda3 1126400 1159167 32768 16M EFI System
/dev/sda4 1159168 50636799 49477632 23.6G Microsoft basic data
/dev/sda5 50636800 84557823 33921024 16.2G Linux filesystem
Disk /dev/sdb: 32 GiB, 34359738368 bytes, 67108864 sectors
Disk model: VBOX HARDDISK
Units: sectors of 1 * 512 = 512 bytes
Sector size (logical/physical): 512 bytes / 512 bytes
I/O size (minimum/optimal): 512 bytes / 512 bytes
Disklabel type: dos
Disk identifier: 0x52caac94
Device Boot Start End Sectors Size Id Type
/dev/sdb1 2048 67108863 67106816 32G 83 Linux
=================== Suggested repair
The default repair of the Boot-Repair utility would purge (in order to fix packages) and reinstall the grub-efi-amd64-signed of sda5, using the following options: sda2/boot/efi,
Additional repair would be performed: unhide-bootmenu-10s fix-windows-boot use-standard-efi-file restore-efi-backups
=================== Final advice in case of suggested repair
Please do not forget to make your BIOS boot on sda2/efi/.../grub*.efi file!
If your computer reboots directly into Windows, try to change the boot order in your BIOS.
If your BIOS does not allow to change the boot order, change the default boot entry of the Windows bootloader.
For example you can boot into Windows, then type the following command in an admin command prompt:
bcdedit /set {bootmgr} path \EFI\...\grub*.efi
=================== User settings
The settings chosen by the user will not act on the boot.
2) Réparation recommandée de Boot-repair :
Elle est faite depuis la même session live de Ubuntu 20.04 démarrée en mode EFI en relançant Boot-repair.
Boot-info obtenu en fin de réparation : http://paste.ubuntu.com/p/c67wWrkkg8/
Je le colle ci-dessous :
Boot Info Script 71f6c5c + Boot-Repair extra info [Boot-Info 16mar2020]
============================= Boot Info Summary: ===============================
=> Grub2 (v2.00) is installed in the MBR of /dev/sda and looks at sector
76562768 of the same hard drive for core.img. core.img is at this location
and looks for (,gpt5)/boot/grub. It also embeds following components:
modules
---------------------------------------------------------------------------
fshelp ext2 part_gpt biosdisk
---------------------------------------------------------------------------
=> libparted MBR boot code is installed in the MBR of /dev/sdb.
sda1: __________________________________________________________________________
File system: ntfs
Boot sector type: Windows 8/2012: NTFS
Boot sector info: No errors found in the Boot Parameter Block.
Operating System:
Boot files:
sda2: __________________________________________________________________________
File system: vfat
Boot sector type: Windows 8/2012: FAT32
Boot sector info: No errors found in the Boot Parameter Block.
Operating System:
Boot files: /EFI/ubuntu/grub.cfg /efi/BOOT/bkpbootx64.efi
/efi/BOOT/bootx64.efi /efi/BOOT/fbx64.efi
/efi/BOOT/grubx64.efi /efi/BOOT/mmx64.efi
/efi/ubuntu/fwupx64.efi /efi/ubuntu/grubx64.efi
/efi/ubuntu/mmx64.efi /efi/ubuntu/shimx64.efi
/efi/ubuntu/grub.cfg /efi/Microsoft/Boot/bootmgfw.efi
/efi/Microsoft/Boot/bootmgr.efi
/efi/Microsoft/Boot/memtest.efi
sda3: __________________________________________________________________________
File system:
Boot sector type: -
Boot sector info:
sda4: __________________________________________________________________________
File system: ntfs
Boot sector type: Windows 8/2012: NTFS
Boot sector info: No errors found in the Boot Parameter Block.
Operating System:
Boot files: /bootmgr /Windows/System32/winload.exe
sda5: __________________________________________________________________________
File system: ext4
Boot sector type: -
Boot sector info:
Operating System: Ubuntu Focal Fossa (development branch)
Boot files: /boot/grub/grub.cfg /etc/fstab
sdb1: __________________________________________________________________________
File system: ext4
Boot sector type: -
Boot sector info:
Operating System:
Boot files:
============================ Drive/Partition Info: =============================
Drive: sda _____________________________________________________________________
Disk /dev/sda: 40.33 GiB, 43294556160 bytes, 84559680 sectors
Disk model: VBOX HARDDISK
Units: sectors of 1 * 512 = 512 bytes
Sector size (logical/physical): 512 bytes / 512 bytes
I/O size (minimum/optimal): 512 bytes / 512 bytes
Partition Boot Start Sector End Sector # of Sectors Id System
/dev/sda1 1 84,559,679 84,559,679 ee GPT
GUID Partition Table detected.
Partition Attrs Start Sector End Sector # of Sectors System
/dev/sda1 2,048 923,647 921,600 Windows Recovery Environment (Windows)
/dev/sda2 923,648 1,126,399 202,752 EFI System partition
/dev/sda3 1,126,400 1,159,167 32,768 EFI System partition
/dev/sda4 1,159,168 50,636,799 49,477,632 Data partition (Windows/Linux)
/dev/sda5 50,636,800 84,557,823 33,921,024 Data partition (Linux)
Attributes: R=Required, N=No Block IO, B=Legacy BIOS Bootable, +=More bits set
Drive: sdb _____________________________________________________________________
Disk /dev/sdb: 32 GiB, 34359738368 bytes, 67108864 sectors
Disk model: VBOX HARDDISK
Units: sectors of 1 * 512 = 512 bytes
Sector size (logical/physical): 512 bytes / 512 bytes
I/O size (minimum/optimal): 512 bytes / 512 bytes
Partition Boot Start Sector End Sector # of Sectors Id System
/dev/sdb1 2,048 67,108,863 67,106,816 83 Linux
"blkid" output: ________________________________________________________________
Device UUID TYPE LABEL
/dev/loop0 squashfs
/dev/sda1 72E8CBBEE8CB7EBB ntfs Récupération
/dev/sda2 C4D1-8AAE vfat
/dev/sda3
/dev/sda4 B606ECD606EC989F ntfs
/dev/sda5 6ed2f53a-c172-4eff-9038-491af9c7457b ext4
/dev/sdb1 6c14aa5c-a67b-4211-afd2-42ff350e60b0 ext4 images_win10_EFI
/dev/sr0 2020-02-20-07-51-12-00 iso9660 Ubuntu 20.04 LTS amd64
========================= "ls -l /dev/disk/by-id" output: ======================
total 0
lrwxrwxrwx 1 root root 9 Mar 24 14:46 ata-VBOX_CD-ROM_VB1-1a2b3c4d -> ../../sr0
lrwxrwxrwx 1 root root 9 Mar 24 14:48 ata-VBOX_HARDDISK_VB2db79605-645acf7a -> ../../sda
lrwxrwxrwx 1 root root 10 Mar 24 15:28 ata-VBOX_HARDDISK_VB2db79605-645acf7a-part1 -> ../../sda1
lrwxrwxrwx 1 root root 10 Mar 24 14:48 ata-VBOX_HARDDISK_VB2db79605-645acf7a-part2 -> ../../sda2
lrwxrwxrwx 1 root root 10 Mar 24 14:48 ata-VBOX_HARDDISK_VB2db79605-645acf7a-part3 -> ../../sda3
lrwxrwxrwx 1 root root 10 Mar 24 15:28 ata-VBOX_HARDDISK_VB2db79605-645acf7a-part4 -> ../../sda4
lrwxrwxrwx 1 root root 10 Mar 24 14:48 ata-VBOX_HARDDISK_VB2db79605-645acf7a-part5 -> ../../sda5
lrwxrwxrwx 1 root root 9 Mar 24 14:48 ata-VBOX_HARDDISK_VB8e816ea2-fefc916f -> ../../sdb
lrwxrwxrwx 1 root root 10 Mar 24 14:48 ata-VBOX_HARDDISK_VB8e816ea2-fefc916f-part1 -> ../../sdb1
================================ Mount points: =================================
Device Mount_Point Type Options
/dev/fuse /run/user/999/doc fuse (rw,nosuid,nodev,relatime,user_id=999,group_id=999)
/dev/loop0 /rofs squashfs (ro,noatime)
/dev/sr0 /cdrom iso9660 (ro,noatime,nojoliet,check=s,map=n,blocksize=2048)
========================== sda2/EFI/ubuntu/grub.cfg: ===========================
--------------------------------------------------------------------------------
search.fs_uuid 6ed2f53a-c172-4eff-9038-491af9c7457b root hd0,gpt5
set prefix=($root)'/boot/grub'
configfile $prefix/grub.cfg
--------------------------------------------------------------------------------
========================== sda2/efi/ubuntu/grub.cfg: ===========================
--------------------------------------------------------------------------------
search.fs_uuid 6ed2f53a-c172-4eff-9038-491af9c7457b root hd0,gpt5
set prefix=($root)'/boot/grub'
configfile $prefix/grub.cfg
--------------------------------------------------------------------------------
=========================== sda5/boot/grub/grub.cfg: ===========================
--------------------------------------------------------------------------------
#
# DO NOT EDIT THIS FILE
#
# It is automatically generated by grub-mkconfig using templates
# from /etc/grub.d and settings from /etc/default/grub
#
### BEGIN /etc/grub.d/00_header ###
if [ -s $prefix/grubenv ]; then
set have_grubenv=true
load_env
fi
if [ "${initrdfail}" = 2 ]; then
set initrdfail=
elif [ "${initrdfail}" = 1 ]; then
set next_entry="${prev_entry}"
set prev_entry=
save_env prev_entry
if [ "${next_entry}" ]; then
set initrdfail=2
fi
fi
if [ "${next_entry}" ] ; then
set default="${next_entry}"
set next_entry=
save_env next_entry
set boot_once=true
else
set default="0"
fi
if [ x"${feature_menuentry_id}" = xy ]; then
menuentry_id_option="--id"
else
menuentry_id_option=""
fi
export menuentry_id_option
if [ "${prev_saved_entry}" ]; then
set saved_entry="${prev_saved_entry}"
save_env saved_entry
set prev_saved_entry=
save_env prev_saved_entry
set boot_once=true
fi
function savedefault {
if [ -z "${boot_once}" ]; then
saved_entry="${chosen}"
save_env saved_entry
fi
}
function initrdfail {
if [ -n "${have_grubenv}" ]; then if [ -n "${partuuid}" ]; then
if [ -z "${initrdfail}" ]; then
set initrdfail=1
if [ -n "${boot_once}" ]; then
set prev_entry="${default}"
save_env prev_entry
fi
fi
save_env initrdfail
fi; fi
}
function recordfail {
set recordfail=1
if [ -n "${have_grubenv}" ]; then if [ -z "${boot_once}" ]; then save_env recordfail; fi; fi
}
function load_video {
if [ x$feature_all_video_module = xy ]; then
insmod all_video
else
insmod efi_gop
insmod efi_uga
insmod ieee1275_fb
insmod vbe
insmod vga
insmod video_bochs
insmod video_cirrus
fi
}
if [ x$feature_default_font_path = xy ] ; then
font=unicode
else
insmod part_gpt
insmod ext2
set root='hd0,gpt5'
if [ x$feature_platform_search_hint = xy ]; then
search --no-floppy --fs-uuid --set=root --hint-bios=hd0,gpt5 --hint-efi=hd0,gpt5 --hint-baremetal=ahci0,gpt5 6ed2f53a-c172-4eff-9038-491af9c7457b
else
search --no-floppy --fs-uuid --set=root 6ed2f53a-c172-4eff-9038-491af9c7457b
fi
font="/usr/share/grub/unicode.pf2"
fi
if loadfont $font ; then
set gfxmode=auto
load_video
insmod gfxterm
set locale_dir=$prefix/locale
set lang=C
insmod gettext
fi
terminal_output gfxterm
if [ "${recordfail}" = 1 ] ; then
set timeout=10
else
if [ x$feature_timeout_style = xy ] ; then
set timeout_style=hidden
set timeout=10
# Fallback hidden-timeout code in case the timeout_style feature is
# unavailable.
elif sleep --interruptible 10 ; then
set timeout=10
fi
fi
### END /etc/grub.d/00_header ###
### BEGIN /etc/grub.d/05_debian_theme ###
set menu_color_normal=white/black
set menu_color_highlight=black/light-gray
### END /etc/grub.d/05_debian_theme ###
### BEGIN /etc/grub.d/10_linux ###
function gfxmode {
set gfxpayload="${1}"
if [ "${1}" = "keep" ]; then
set vt_handoff=vt.handoff=7
else
set vt_handoff=
fi
}
if [ "${recordfail}" != 1 ]; then
if [ -e ${prefix}/gfxblacklist.txt ]; then
if hwmatch ${prefix}/gfxblacklist.txt 3; then
if [ ${match} = 0 ]; then
set linux_gfx_mode=keep
else
set linux_gfx_mode=text
fi
else
set linux_gfx_mode=text
fi
else
set linux_gfx_mode=keep
fi
else
set linux_gfx_mode=text
fi
export linux_gfx_mode
menuentry 'Ubuntu' --class ubuntu --class gnu-linux --class gnu --class os $menuentry_id_option 'gnulinux-simple-6ed2f53a-c172-4eff-9038-491af9c7457b' {
recordfail
load_video
gfxmode $linux_gfx_mode
insmod gzio
if [ x$grub_platform = xxen ]; then insmod xzio; insmod lzopio; fi
insmod part_gpt
insmod ext2
set root='hd0,gpt5'
if [ x$feature_platform_search_hint = xy ]; then
search --no-floppy --fs-uuid --set=root --hint-bios=hd0,gpt5 --hint-efi=hd0,gpt5 --hint-baremetal=ahci0,gpt5 6ed2f53a-c172-4eff-9038-491af9c7457b
else
search --no-floppy --fs-uuid --set=root 6ed2f53a-c172-4eff-9038-491af9c7457b
fi
linux /boot/vmlinuz-5.4.0-18-generic root=UUID=6ed2f53a-c172-4eff-9038-491af9c7457b ro quiet splash $vt_handoff
initrd /boot/initrd.img-5.4.0-18-generic
}
submenu 'Advanced options for Ubuntu' $menuentry_id_option 'gnulinux-advanced-6ed2f53a-c172-4eff-9038-491af9c7457b' {
menuentry 'Ubuntu, with Linux 5.4.0-18-generic' --class ubuntu --class gnu-linux --class gnu --class os $menuentry_id_option 'gnulinux-5.4.0-18-generic-advanced-6ed2f53a-c172-4eff-9038-491af9c7457b' {
recordfail
load_video
gfxmode $linux_gfx_mode
insmod gzio
if [ x$grub_platform = xxen ]; then insmod xzio; insmod lzopio; fi
insmod part_gpt
insmod ext2
set root='hd0,gpt5'
if [ x$feature_platform_search_hint = xy ]; then
search --no-floppy --fs-uuid --set=root --hint-bios=hd0,gpt5 --hint-efi=hd0,gpt5 --hint-baremetal=ahci0,gpt5 6ed2f53a-c172-4eff-9038-491af9c7457b
else
search --no-floppy --fs-uuid --set=root 6ed2f53a-c172-4eff-9038-491af9c7457b
fi
echo 'Loading Linux 5.4.0-18-generic ...'
linux /boot/vmlinuz-5.4.0-18-generic root=UUID=6ed2f53a-c172-4eff-9038-491af9c7457b ro quiet splash $vt_handoff
echo 'Loading initial ramdisk ...'
initrd /boot/initrd.img-5.4.0-18-generic
}
menuentry 'Ubuntu, with Linux 5.4.0-18-generic (recovery mode)' --class ubuntu --class gnu-linux --class gnu --class os $menuentry_id_option 'gnulinux-5.4.0-18-generic-recovery-6ed2f53a-c172-4eff-9038-491af9c7457b' {
recordfail
load_video
insmod gzio
if [ x$grub_platform = xxen ]; then insmod xzio; insmod lzopio; fi
insmod part_gpt
insmod ext2
set root='hd0,gpt5'
if [ x$feature_platform_search_hint = xy ]; then
search --no-floppy --fs-uuid --set=root --hint-bios=hd0,gpt5 --hint-efi=hd0,gpt5 --hint-baremetal=ahci0,gpt5 6ed2f53a-c172-4eff-9038-491af9c7457b
else
search --no-floppy --fs-uuid --set=root 6ed2f53a-c172-4eff-9038-491af9c7457b
fi
echo 'Loading Linux 5.4.0-18-generic ...'
linux /boot/vmlinuz-5.4.0-18-generic root=UUID=6ed2f53a-c172-4eff-9038-491af9c7457b ro recovery nomodeset
echo 'Loading initial ramdisk ...'
initrd /boot/initrd.img-5.4.0-18-generic
}
menuentry 'Ubuntu, with Linux 5.4.0-14-generic' --class ubuntu --class gnu-linux --class gnu --class os $menuentry_id_option 'gnulinux-5.4.0-14-generic-advanced-6ed2f53a-c172-4eff-9038-491af9c7457b' {
recordfail
load_video
gfxmode $linux_gfx_mode
insmod gzio
if [ x$grub_platform = xxen ]; then insmod xzio; insmod lzopio; fi
insmod part_gpt
insmod ext2
set root='hd0,gpt5'
if [ x$feature_platform_search_hint = xy ]; then
search --no-floppy --fs-uuid --set=root --hint-bios=hd0,gpt5 --hint-efi=hd0,gpt5 --hint-baremetal=ahci0,gpt5 6ed2f53a-c172-4eff-9038-491af9c7457b
else
search --no-floppy --fs-uuid --set=root 6ed2f53a-c172-4eff-9038-491af9c7457b
fi
echo 'Loading Linux 5.4.0-14-generic ...'
linux /boot/vmlinuz-5.4.0-14-generic root=UUID=6ed2f53a-c172-4eff-9038-491af9c7457b ro quiet splash $vt_handoff
echo 'Loading initial ramdisk ...'
initrd /boot/initrd.img-5.4.0-14-generic
}
menuentry 'Ubuntu, with Linux 5.4.0-14-generic (recovery mode)' --class ubuntu --class gnu-linux --class gnu --class os $menuentry_id_option 'gnulinux-5.4.0-14-generic-recovery-6ed2f53a-c172-4eff-9038-491af9c7457b' {
recordfail
load_video
insmod gzio
if [ x$grub_platform = xxen ]; then insmod xzio; insmod lzopio; fi
insmod part_gpt
insmod ext2
set root='hd0,gpt5'
if [ x$feature_platform_search_hint = xy ]; then
search --no-floppy --fs-uuid --set=root --hint-bios=hd0,gpt5 --hint-efi=hd0,gpt5 --hint-baremetal=ahci0,gpt5 6ed2f53a-c172-4eff-9038-491af9c7457b
else
search --no-floppy --fs-uuid --set=root 6ed2f53a-c172-4eff-9038-491af9c7457b
fi
echo 'Loading Linux 5.4.0-14-generic ...'
linux /boot/vmlinuz-5.4.0-14-generic root=UUID=6ed2f53a-c172-4eff-9038-491af9c7457b ro recovery nomodeset
echo 'Loading initial ramdisk ...'
initrd /boot/initrd.img-5.4.0-14-generic
}
}
### END /etc/grub.d/10_linux ###
### BEGIN /etc/grub.d/10_linux_zfs ###
### END /etc/grub.d/10_linux_zfs ###
### BEGIN /etc/grub.d/20_linux_xen ###
### END /etc/grub.d/20_linux_xen ###
### BEGIN /etc/grub.d/25_custom ###
menuentry "Windows UEFI bootmgfw.efi" {
search --fs-uuid --no-floppy --set=root C4D1-8AAE
chainloader (${root})/EFI/Microsoft/Boot/bootmgfw.efi
}
menuentry "EFI/BOOT/bkpbootx64.efi" {
search --fs-uuid --no-floppy --set=root C4D1-8AAE
chainloader (${root})/EFI/BOOT/bkpbootx64.efi
}
menuentry "EFI/BOOT/fbx64.efi" {
search --fs-uuid --no-floppy --set=root C4D1-8AAE
chainloader (${root})/EFI/BOOT/fbx64.efi
}
menuentry "EFI/BOOT/mmx64.efi" {
search --fs-uuid --no-floppy --set=root C4D1-8AAE
chainloader (${root})/EFI/BOOT/mmx64.efi
}
menuentry "EFI/ubuntu/fwupx64.efi" {
search --fs-uuid --no-floppy --set=root C4D1-8AAE
chainloader (${root})/EFI/ubuntu/fwupx64.efi
}
menuentry "EFI/ubuntu/mmx64.efi" {
search --fs-uuid --no-floppy --set=root C4D1-8AAE
chainloader (${root})/EFI/ubuntu/mmx64.efi
}
### END /etc/grub.d/25_custom ###
### BEGIN /etc/grub.d/30_os-prober ###
menuentry 'Windows Boot Manager (on /dev/sda2)' --class windows --class os $menuentry_id_option 'osprober-efi-C4D1-8AAE' {
insmod part_gpt
insmod fat
set root='hd0,gpt2'
if [ x$feature_platform_search_hint = xy ]; then
search --no-floppy --fs-uuid --set=root --hint-bios=hd0,gpt2 --hint-efi=hd0,gpt2 --hint-baremetal=ahci0,gpt2 C4D1-8AAE
else
search --no-floppy --fs-uuid --set=root C4D1-8AAE
fi
chainloader /EFI/Microsoft/Boot/bootmgfw.efi
}
set timeout_style=menu
if [ "${timeout}" = 0 ]; then
set timeout=10
fi
### END /etc/grub.d/30_os-prober ###
### BEGIN /etc/grub.d/30_uefi-firmware ###
menuentry 'UEFI Firmware Settings' $menuentry_id_option 'uefi-firmware' {
fwsetup
}
### END /etc/grub.d/30_uefi-firmware ###
### BEGIN /etc/grub.d/40_custom ###
# This file provides an easy way to add custom menu entries. Simply type the
# menu entries you want to add after this comment. Be careful not to change
# the 'exec tail' line above.
### END /etc/grub.d/40_custom ###
### BEGIN /etc/grub.d/41_custom ###
if [ -f ${config_directory}/custom.cfg ]; then
source ${config_directory}/custom.cfg
elif [ -z "${config_directory}" -a -f $prefix/custom.cfg ]; then
source $prefix/custom.cfg;
fi
### END /etc/grub.d/41_custom ###
--------------------------------------------------------------------------------
=============================== sda5/etc/fstab: ================================
--------------------------------------------------------------------------------
# /etc/fstab: static file system information.
#
# Use 'blkid' to print the universally unique identifier for a
# device; this may be used with UUID= as a more robust way to name devices
# that works even if disks are added and removed. See fstab(5).
#
# <file system> <mount point> <type> <options> <dump> <pass>
# / was on /dev/sda5 during installation
UUID=6ed2f53a-c172-4eff-9038-491af9c7457b / ext4 errors=remount-ro 0 1
/swapfile none swap sw 0 0
UUID=C4D1-8AAE /boot/efi vfat defaults 0 1
--------------------------------------------------------------------------------
=================== sda5: Location of files loaded by Grub: ====================
GiB - GB File Fragment(s)
28.284156799 = 30.369882112 boot/grub/grub.cfg 1
30.789169312 = 33.059618816 boot/vmlinuz 2
27.387691498 = 29.407309824 boot/vmlinuz-5.4.0-14-generic 2
30.789169312 = 33.059618816 boot/vmlinuz-5.4.0-18-generic 2
27.387691498 = 29.407309824 boot/vmlinuz.old 2
31.236404419 = 33.539833856 boot/initrd.img 1
31.188690186 = 33.488601088 boot/initrd.img-5.4.0-14-generic 3
31.236404419 = 33.539833856 boot/initrd.img-5.4.0-18-generic 1
31.188690186 = 33.488601088 boot/initrd.img.old 3
=============================== StdErr Messages: ===============================
File descriptor 9 (/proc/19030/mountinfo) leaked on lvs invocation. Parent PID 42191: bash
ADDITIONAL INFORMATION :
=================== log of boot-repair 20200324_1448 ===================
boot-repair version : 4ppa75
boot-sav version : 4ppa75
boot-sav-extra version : 4ppa75
glade2script version : 3.2.4~ppa6
Warning: Unable to open /dev/sr0 read-write (Read-only file system). /dev/sr0 has been opened read-only.
boot-repair is executed in live-session (Ubuntu Focal Fossa (development branch), focal, Ubuntu, x86_64)
CPU op-mode(s): 32-bit, 64-bit
Address sizes: 48 bits physical, 48 bits virtual
BOOT_IMAGE=/casper/vmlinuz file=/cdrom/preseed/ubuntu.seed quiet splash ---
=================== os-prober:
/dev/sda2@/efi/Microsoft/Boot/bootmgfw.efi:Windows Boot Manager:Windows:efi
/dev/sda5:Ubuntu Focal Fossa (development branch) (20.04):Ubuntu:linux
=================== blkid:
/dev/sda1: LABEL="RM-CM-)cupM-CM-)ration" UUID="72E8CBBEE8CB7EBB" TYPE="ntfs" PARTLABEL="Basic data partition" PARTUUID="07380664-6dd4-4925-aeac-a435b34ad9f5"
/dev/sda2: UUID="C4D1-8AAE" TYPE="vfat" PARTLABEL="EFI system partition" PARTUUID="1ab7abb3-31e4-4289-9a3a-587ac6546242"
/dev/sda4: UUID="B606ECD606EC989F" TYPE="ntfs" PARTLABEL="Basic data partition" PARTUUID="63728c63-f8c6-4f3b-8882-3688c4f80734"
/dev/sda5: UUID="6ed2f53a-c172-4eff-9038-491af9c7457b" TYPE="ext4" PARTUUID="54392d5d-1996-4c62-8842-d91f4a33b602"
/dev/sdb1: LABEL="images_win10_EFI" UUID="6c14aa5c-a67b-4211-afd2-42ff350e60b0" TYPE="ext4" PARTUUID="52caac94-01"
/dev/sr0: UUID="2020-02-20-07-51-12-00" LABEL="Ubuntu 20.04 LTS amd64" TYPE="iso9660" PTUUID="72b2b8e0" PTTYPE="dos"
/dev/loop0: TYPE="squashfs"
/dev/sda3: PARTLABEL="Microsoft reserved partition" PARTUUID="c21c3b27-c875-4428-a0d8-0c431338197b"
1 disks with OS, 2 OS : 1 Linux, 0 MacOS, 1 Windows, 0 unknown type OS.
Windows not detected by os-prober on sda4.
Presence of EFI/Microsoft file detected: /mnt/boot-sav/sda2/EFI/Microsoft/Boot/bootmgfw.efi
Presence of EFI/Boot file detected: /mnt/boot-sav/sda2/EFI/Boot/bkpbootx64.efi
Presence of EFI/Boot file detected: /mnt/boot-sav/sda2/EFI/Boot/bootx64.efi
Presence of EFI/Boot file detected: /mnt/boot-sav/sda2/EFI/Boot/fbx64.efi
Presence of EFI/Boot file detected: /mnt/boot-sav/sda2/EFI/Boot/grubx64.efi
Presence of EFI/Boot file detected: /mnt/boot-sav/sda2/EFI/Boot/mmx64.efi
Presence of bkp file detected: /mnt/boot-sav/sda2/EFI/BOOT/bkpbootx64.efi
=================== sda5/etc/grub.d/ :
drwxr-xr-x 2 root root 4096 Mar 24 13:33 grub.d
total 128
-rwxr-xr-x 1 root root 10627 Feb 6 17:37 00_header
-rwxr-xr-x 1 root root 6258 Feb 6 17:20 05_debian_theme
-rwxr-xr-x 1 root root 17123 Feb 6 17:37 10_linux
-rwxr-xr-x 1 root root 38596 Mar 11 16:46 10_linux_zfs
-rwxr-xr-x 1 root root 12894 Feb 6 17:37 20_linux_xen
-rwxr-xr-x 1 root root 1992 Feb 13 23:09 20_memtest86+
-rwxr-xr-x 1 root root 12059 Feb 6 17:37 30_os-prober
-rwxr-xr-x 1 root root 1424 Mar 11 16:46 30_uefi-firmware
-rwxr-xr-x 1 root root 214 Feb 6 17:37 40_custom
-rwxr-xr-x 1 root root 216 Feb 6 17:37 41_custom
-rw-r--r-- 1 root root 483 Feb 6 17:37 README
=================== sda5/etc/default/grub :
# If you change this file, run 'update-grub' afterwards to update
# /boot/grub/grub.cfg.
# For full documentation of the options in this file, see:
# info -f grub -n 'Simple configuration'
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=""
# Uncomment to enable BadRAM filtering, modify to suit your needs
# This works with Linux (no patch required) and with any kernel that obtains
# the memory map information from GRUB (GNU Mach, kernel of FreeBSD ...)
#GRUB_BADRAM="0x01234567,0xfefefefe,0x89abcdef,0xefefefef"
# Uncomment to disable graphical terminal (grub-pc only)
#GRUB_TERMINAL=console
# The resolution used on graphical terminal
# note that you can use only modes which your graphic card supports via VBE
# you can see them in real GRUB with the command `vbeinfo'
#GRUB_GFXMODE=640x480
# Uncomment if you don't want GRUB to pass "root=UUID=xxx" parameter to Linux
#GRUB_DISABLE_LINUX_UUID=true
# Uncomment to disable generation of recovery mode menu entries
#GRUB_DISABLE_RECOVERY="true"
# Uncomment to get a beep at grub start
#GRUB_INIT_TUNE="480 440 1"
ls /sys/firmware/efi/vars : new_var,del_var,boot-args-7c436110-ab2a-4bbb-a880-fe41995c9f82,Test1-e660597e-b94d-4209-9c80-1805b5d19b69,Test0-e660597e-b94d-4209-9c80-1805b5d19b69,RTC-378d7b65-8da9-4773-b6e4-a47826a833e1,PlatformLangCodes-8be4df61-93ca-11d2-aa0d-00e098032b8c,PlatformLang-8be4df61-93ca-11d2-aa0d-00e098032b8c,OsIndicationsSupported-8be4df61-93ca-11d2-aa0d-00e098032b8c,MemoryTypeInformation-4c19049f-4137-4dd3-9c10-8b97a83ffdfa,MTC-eb704011-1402-11d3-8e77-00a0c969723b,LangCodes-8be4df61-93ca-11d2-aa0d-00e098032b8c,Lang-8be4df61-93ca-11d2-aa0d-00e098032b8c,FirmwareFeaturesMask-4d1ede05-38c7-4a6a-9cc6-4bcca8b38c14,FirmwareFeatures-4d1ede05-38c7-4a6a-9cc6-4bcca8b38c14,ConOutDev-8be4df61-93ca-11d2-aa0d-00e098032b8c,ConOut-8be4df61-93ca-11d2-aa0d-00e098032b8c,ConInDev-8be4df61-93ca-11d2-aa0d-00e098032b8c,ConIn-8be4df61-93ca-11d2-aa0d-00e098032b8c,BootOrder-8be4df61-93ca-11d2-aa0d-00e098032b8c,BootOptionSupport-8be4df61-93ca-11d2-aa0d-00e098032b8c,BootCurrent-8be4df61-93ca-11d2-aa0d-00e098032b8c,Boot0003-8be4df61-93ca-11d2-aa0d-00e098032b8c,Boot0002-8be4df61-93ca-11d2-aa0d-00e098032b8c,Boot0001-8be4df61-93ca-11d2-aa0d-00e098032b8c,Boot0000-8be4df61-93ca-11d2-aa0d-00e098032b8c,BackgroundClear-4d1ede05-38c7-4a6a-9cc6-4bcca8b38c14,
Please report this message to boot.repair@gmail.com
=================== efibootmgr -v
BootCurrent: 0000
BootOrder: 0000,0001,0002,0003
Boot0000* EFI DVD/CDROM PciRoot(0x0)/Pci(0xd,0x0)/Sata(1,0,0)
Boot0001* EFI Hard Drive PciRoot(0x0)/Pci(0xd,0x0)/Sata(0,0,0)
Boot0002* EFI Hard Drive 1 PciRoot(0x0)/Pci(0xd,0x0)/Sata(2,0,0)
Boot0003* EFI Internal Shell MemoryMapped(11,0x2100000,0x28fffff)/FvFile(7c04a583-9e3e-4f1c-ad65-e05268d0b4d1)
=================== UEFI/Legacy mode:
BIOS is EFI-compatible, and is setup in EFI-mode for this live-session.
SecureBoot maybe enabled. (maybe sec-boot, Please report this message to boot.repair@gmail.com)
=================== PARTITIONS & DISKS:
sda1 : sda, not-sepboot, no-grubenv nogrub, no-docgrub, no-update-grub, 32, no-boot, no-os, not--efi--part, part-has-no-fstab, part-has-no-fstab, no-nt, no-winload, recovery-or-hidden, no-bmgr, notwinboot, nopakmgr, nogrubinstall, no---usr, part-has-no-fstab, not-sep-usr, standard, not-far, notbiosboot, /mnt/boot-sav/sda1.
sda2 : sda, not-sepboot, no-grubenv nogrub, no-docgrub, no-update-grub, 32, no-boot, is-os, is-correct-EFI, part-has-no-fstab, part-has-no-fstab, no-nt, no-winload, no-recov-nor-hid, no-bmgr, notwinboot, nopakmgr, nogrubinstall, no---usr, part-has-no-fstab, not-sep-usr, standard, not-far, notbiosboot, /mnt/boot-sav/sda2.
sda4 : sda, not-sepboot, no-grubenv nogrub, no-docgrub, no-update-grub, 32, no-boot, is-os, not--efi--part, part-has-no-fstab, part-has-no-fstab, no-nt, haswinload, no-recov-nor-hid, bootmgr, notwinboot, nopakmgr, nogrubinstall, no---usr, part-has-no-fstab, not-sep-usr, standard, not-far, notbiosboot, /mnt/boot-sav/sda4.
sda5 : sda, not-sepboot, grubenv-ok grub2, grub-pc , update-grub, 64, with-boot, is-os, not--efi--part, fstab-without-boot, fstab-without-efi, no-nt, no-winload, no-recov-nor-hid, no-bmgr, notwinboot, apt-get, grub-install, with--usr, fstab-without-usr, not-sep-usr, standard, not-far, notbiosboot, /mnt/boot-sav/sda5.
sdb1 : sdb, maybesepboot, no-grubenv nogrub, no-docgrub, no-update-grub, 32, no-boot, no-os, not--efi--part, part-has-no-fstab, part-has-no-fstab, no-nt, no-winload, no-recov-nor-hid, no-bmgr, notwinboot, nopakmgr, nogrubinstall, no---usr, part-has-no-fstab, not-sep-usr, standard, not-far, notbiosboot, /mnt/boot-sav/sdb1.
sda : GPT, no-BIOS_boot, has-correctEFI, not-usb, not-mmc, has-os, 2048 sectors * 512 bytes
sdb : not-GPT, BIOSboot-not-needed, has-no-EFIpart, not-usb, not-mmc, no-os, 2048 sectors * 512 bytes
=================== parted -lm:
BYT;
/dev/sda:43.3GB:scsi:512:512:gpt:ATA VBOX HARDDISK:;
1:1049kB:473MB:472MB:ntfs:Basic data partition:diag;
2:473MB:577MB:104MB:fat32:EFI system partition:boot, esp;
3:577MB:593MB:16.8MB::Microsoft reserved partition:boot, esp;
4:593MB:25.9GB:25.3GB:ntfs:Basic data partition:msftdata;
5:25.9GB:43.3GB:17.4GB:ext4::;
BYT;
/dev/sdb:34.4GB:scsi:512:512:msdos:ATA VBOX HARDDISK:;
1:1049kB:34.4GB:34.4GB:ext4::;
BYT;
/dev/sr0:2743MB:scsi:2048:2048:mac:VBOX CD-ROM:;
1:2048B:6143B:4096B::Apple:;
2:2299MB:2303MB:4063kB::EFI:;
=================== lsblk:
KNAME TYPE FSTYPE SIZE LABEL
loop0 loop squashfs 2G
sda disk 40.3G
sda1 part ntfs 450M Récupération
sda2 part vfat 99M
sda3 part 16M
sda4 part ntfs 23.6G
sda5 part ext4 16.2G
sdb disk 32G
sdb1 part ext4 32G images_win10_EFI
sr0 rom iso9660 2.6G Ubuntu 20.04 LTS amd64
KNAME ROTA RO RM STATE MOUNTPOINT
loop0 1 1 0 /rofs
sda 1 0 0 running
sda1 1 0 0 /mnt/boot-sav/sda1
sda2 1 0 0 /mnt/boot-sav/sda2
sda3 1 0 0
sda4 1 0 0 /mnt/boot-sav/sda4
sda5 1 0 0 /mnt/boot-sav/sda5
sdb 1 0 0 running
sdb1 1 0 0 /mnt/boot-sav/sdb1
sr0 1 0 1 running /cdrom
=================== mount:
sysfs on /sys type sysfs (rw,nosuid,nodev,noexec,relatime)
proc on /proc type proc (rw,nosuid,nodev,noexec,relatime)
udev on /dev type devtmpfs (rw,nosuid,noexec,relatime,size=969560k,nr_inodes=242390,mode=755)
devpts on /dev/pts type devpts (rw,nosuid,noexec,relatime,gid=5,mode=620,ptmxmode=000)
tmpfs on /run type tmpfs (rw,nosuid,nodev,noexec,relatime,size=203424k,mode=755)
/dev/sr0 on /cdrom type iso9660 (ro,noatime,nojoliet,check=s,map=n,blocksize=2048)
/dev/loop0 on /rofs type squashfs (ro,noatime)
/cow on / type overlay (rw,relatime,lowerdir=/filesystem.squashfs,upperdir=/cow/upper,workdir=/cow/work)
securityfs on /sys/kernel/security type securityfs (rw,nosuid,nodev,noexec,relatime)
tmpfs on /dev/shm type tmpfs (rw,nosuid,nodev)
tmpfs on /run/lock type tmpfs (rw,nosuid,nodev,noexec,relatime,size=5120k)
tmpfs on /sys/fs/cgroup type tmpfs (ro,nosuid,nodev,noexec,mode=755)
cgroup2 on /sys/fs/cgroup/unified type cgroup2 (rw,nosuid,nodev,noexec,relatime,nsdelegate)
cgroup on /sys/fs/cgroup/systemd type cgroup (rw,nosuid,nodev,noexec,relatime,xattr,name=systemd)
pstore on /sys/fs/pstore type pstore (rw,nosuid,nodev,noexec,relatime)
efivarfs on /sys/firmware/efi/efivars type efivarfs (rw,nosuid,nodev,noexec,relatime)
none on /sys/fs/bpf type bpf (rw,nosuid,nodev,noexec,relatime,mode=700)
cgroup on /sys/fs/cgroup/pids type cgroup (rw,nosuid,nodev,noexec,relatime,pids)
cgroup on /sys/fs/cgroup/net_cls,net_prio type cgroup (rw,nosuid,nodev,noexec,relatime,net_cls,net_prio)
cgroup on /sys/fs/cgroup/cpuset type cgroup (rw,nosuid,nodev,noexec,relatime,cpuset)
cgroup on /sys/fs/cgroup/hugetlb type cgroup (rw,nosuid,nodev,noexec,relatime,hugetlb)
cgroup on /sys/fs/cgroup/rdma type cgroup (rw,nosuid,nodev,noexec,relatime,rdma)
cgroup on /sys/fs/cgroup/memory type cgroup (rw,nosuid,nodev,noexec,relatime,memory)
cgroup on /sys/fs/cgroup/perf_event type cgroup (rw,nosuid,nodev,noexec,relatime,perf_event)
cgroup on /sys/fs/cgroup/freezer type cgroup (rw,nosuid,nodev,noexec,relatime,freezer)
cgroup on /sys/fs/cgroup/cpu,cpuacct type cgroup (rw,nosuid,nodev,noexec,relatime,cpu,cpuacct)
cgroup on /sys/fs/cgroup/devices type cgroup (rw,nosuid,nodev,noexec,relatime,devices)
cgroup on /sys/fs/cgroup/blkio type cgroup (rw,nosuid,nodev,noexec,relatime,blkio)
systemd-1 on /proc/sys/fs/binfmt_misc type autofs (rw,relatime,fd=27,pgrp=1,timeout=0,minproto=5,maxproto=5,direct,pipe_ino=16550)
hugetlbfs on /dev/hugepages type hugetlbfs (rw,relatime,pagesize=2M)
mqueue on /dev/mqueue type mqueue (rw,nosuid,nodev,noexec,relatime)
debugfs on /sys/kernel/debug type debugfs (rw,nosuid,nodev,noexec,relatime)
fusectl on /sys/fs/fuse/connections type fusectl (rw,nosuid,nodev,noexec,relatime)
configfs on /sys/kernel/config type configfs (rw,nosuid,nodev,noexec,relatime)
tmpfs on /tmp type tmpfs (rw,nosuid,nodev,relatime)
tmpfs on /run/user/999 type tmpfs (rw,nosuid,nodev,relatime,size=203420k,mode=700,uid=999,gid=999)
gvfsd-fuse on /run/user/999/gvfs type fuse.gvfsd-fuse (rw,nosuid,nodev,relatime,user_id=999,group_id=999)
/dev/fuse on /run/user/999/doc type fuse (rw,nosuid,nodev,relatime,user_id=999,group_id=999)
/dev/sda1 on /mnt/boot-sav/sda1 type fuseblk (rw,relatime,user_id=0,group_id=0,allow_other,blksize=4096)
/dev/sda2 on /mnt/boot-sav/sda2 type vfat (rw,relatime,fmask=0022,dmask=0022,codepage=437,iocharset=iso8859-1,shortname=mixed,errors=remount-ro)
/dev/sda4 on /mnt/boot-sav/sda4 type fuseblk (rw,relatime,user_id=0,group_id=0,allow_other,blksize=4096)
/dev/sda5 on /mnt/boot-sav/sda5 type ext4 (rw,relatime)
/dev/sdb1 on /mnt/boot-sav/sdb1 type ext4 (rw,relatime)
=================== ls:
/sys/block/sda (filtered): alignment_offset bdi capability dev device discard_alignment events events_async events_poll_msecs ext_range hidden holders inflight integrity mq power queue range removable ro sda1 sda2 sda3 sda4 sda5 size slaves stat subsystem trace uevent
/sys/block/sdb (filtered): alignment_offset bdi capability dev device discard_alignment events events_async events_poll_msecs ext_range hidden holders inflight integrity mq power queue range removable ro sdb1 size slaves stat subsystem trace uevent
/sys/block/sr0 (filtered): alignment_offset bdi capability dev device discard_alignment events events_async events_poll_msecs ext_range hidden holders inflight integrity mq power queue range removable ro size slaves stat subsystem trace uevent
/dev (filtered): autofs block bsg btrfs-control bus cdrom char console core cpu_dma_latency cuse disk dri dvd ecryptfs fb0 fd full fuse hidraw0 hpet hugepages hwrng i2c-0 initctl input kmsg lightnvm log mapper mcelog mem mqueue net null port ppp psaux ptmx pts random rfkill rtc rtc0 sda sda1 sda2 sda3 sda4 sda5 sdb sdb1 sg0 sg1 sg2 shm snapshot snd sr0 stderr stdin stdout udmabuf uhid uinput urandom userio vboxguest vboxuser vfio vga_arbiter vhci vhost-net vhost-vsock zero zfs
ls /dev/mapper: control
=================== hexdump -n512 -C /dev/sda1
00000000 eb 52 90 4e 54 46 53 20 20 20 20 00 02 08 00 00 |.R.NTFS .....|
00000010 00 00 00 00 00 f8 00 00 3f 00 ff 00 00 08 00 00 |........?.......|
00000020 00 00 00 00 80 00 80 00 ff 0f 0e 00 00 00 00 00 |................|
00000030 00 96 00 00 00 00 00 00 02 00 00 00 00 00 00 00 |................|
00000040 f6 00 00 00 01 00 00 00 bb 7e cb e8 be cb e8 72 |.........~.....r|
00000050 00 00 00 00 fa 33 c0 8e d0 bc 00 7c fb 68 c0 07 |.....3.....|.h..|
00000060 1f 1e 68 66 00 cb 88 16 0e 00 66 81 3e 03 00 4e |..hf......f.>..N|
00000070 54 46 53 75 15 b4 41 bb aa 55 cd 13 72 0c 81 fb |TFSu..A..U..r...|
00000080 55 aa 75 06 f7 c1 01 00 75 03 e9 dd 00 1e 83 ec |U.u.....u.......|
00000090 18 68 1a 00 b4 48 8a 16 0e 00 8b f4 16 1f cd 13 |.h...H..........|
000000a0 9f 83 c4 18 9e 58 1f 72 e1 3b 06 0b 00 75 db a3 |.....X.r.;...u..|
000000b0 0f 00 c1 2e 0f 00 04 1e 5a 33 db b9 00 20 2b c8 |........Z3... +.|
000000c0 66 ff 06 11 00 03 16 0f 00 8e c2 ff 06 16 00 e8 |f...............|
000000d0 4b 00 2b c8 77 ef b8 00 bb cd 1a 66 23 c0 75 2d |K.+.w......f#.u-|
000000e0 66 81 fb 54 43 50 41 75 24 81 f9 02 01 72 1e 16 |f..TCPAu$....r..|
000000f0 68 07 bb 16 68 52 11 16 68 09 00 66 53 66 53 66 |h...hR..h..fSfSf|
00000100 55 16 16 16 68 b8 01 66 61 0e 07 cd 1a 33 c0 bf |U...h..fa....3..|
00000110 0a 13 b9 f6 0c fc f3 aa e9 fe 01 90 90 66 60 1e |.............f`.|
00000120 06 66 a1 11 00 66 03 06 1c 00 1e 66 68 00 00 00 |.f...f.....fh...|
00000130 00 66 50 06 53 68 01 00 68 10 00 b4 42 8a 16 0e |.fP.Sh..h...B...|
00000140 00 16 1f 8b f4 cd 13 66 59 5b 5a 66 59 66 59 1f |.......fY[ZfYfY.|
00000150 0f 82 16 00 66 ff 06 11 00 03 16 0f 00 8e c2 ff |....f...........|
00000160 0e 16 00 75 bc 07 1f 66 61 c3 a1 f6 01 e8 09 00 |...u...fa.......|
00000170 a1 fa 01 e8 03 00 f4 eb fd 8b f0 ac 3c 00 74 09 |............<.t.|
00000180 b4 0e bb 07 00 cd 10 eb f2 c3 0d 0a 45 72 72 65 |............Erre|
00000190 75 72 20 6c 65 63 74 75 72 65 20 64 69 73 71 75 |ur lecture disqu|
000001a0 65 00 0d 0a 42 4f 4f 54 4d 47 52 20 63 6f 6d 70 |e...BOOTMGR comp|
000001b0 72 65 73 73 82 00 0d 0a 43 74 72 6c 2b 41 6c 74 |ress....Ctrl+Alt|
000001c0 2b 53 75 70 70 72 20 70 6f 75 72 20 72 65 64 82 |+Suppr pour red.|
000001d0 6d 61 72 72 65 72 0d 0a 00 73 74 61 72 74 0d 0a |marrer...start..|
000001e0 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 |................|
000001f0 00 00 00 00 00 00 8a 01 a2 01 b6 01 00 00 55 aa |..............U.|
00000200
=================== hexdump -n512 -C /dev/sda2
00000000 eb 58 90 4d 53 44 4f 53 35 2e 30 00 02 02 0e 1a |.X.MSDOS5.0.....|
00000010 02 00 00 00 00 f8 00 00 3f 00 ff 00 00 18 0e 00 |........?.......|
00000020 00 18 03 00 f9 02 00 00 00 00 00 00 02 00 00 00 |................|
00000030 01 00 06 00 00 00 00 00 00 00 00 00 00 00 00 00 |................|
00000040 80 01 29 ae 8a d1 c4 4e 4f 20 4e 41 4d 45 20 20 |..)....NO NAME |
00000050 20 20 46 41 54 33 32 20 20 20 33 c9 8e d1 bc f4 | FAT32 3.....|
00000060 7b 8e c1 8e d9 bd 00 7c 88 56 40 88 4e 02 8a 56 |{......|.V@.N..V|
00000070 40 b4 41 bb aa 55 cd 13 72 10 81 fb 55 aa 75 0a |@.A..U..r...U.u.|
00000080 f6 c1 01 74 05 fe 46 02 eb 2d 8a 56 40 b4 08 cd |...t..F..-.V@...|
00000090 13 73 05 b9 ff ff 8a f1 66 0f b6 c6 40 66 0f b6 |.s......f...@f..|
000000a0 d1 80 e2 3f f7 e2 86 cd c0 ed 06 41 66 0f b7 c9 |...?.......Af...|
000000b0 66 f7 e1 66 89 46 f8 83 7e 16 00 75 39 83 7e 2a |f..f.F..~..u9.~*|
000000c0 00 77 33 66 8b 46 1c 66 83 c0 0c bb 00 80 b9 01 |.w3f.F.f........|
000000d0 00 e8 2c 00 e9 a8 03 a1 f8 7d 80 c4 7c 8b f0 ac |..,......}..|...|
000000e0 84 c0 74 17 3c ff 74 09 b4 0e bb 07 00 cd 10 eb |..t.<.t.........|
000000f0 ee a1 fa 7d eb e4 a1 7d 80 eb df 98 cd 16 cd 19 |...}...}........|
00000100 66 60 80 7e 02 00 0f 84 20 00 66 6a 00 66 50 06 |f`.~.... .fj.fP.|
00000110 53 66 68 10 00 01 00 b4 42 8a 56 40 8b f4 cd 13 |Sfh.....B.V@....|
00000120 66 58 66 58 66 58 66 58 eb 33 66 3b 46 f8 72 03 |fXfXfXfX.3f;F.r.|
00000130 f9 eb 2a 66 33 d2 66 0f b7 4e 18 66 f7 f1 fe c2 |..*f3.f..N.f....|
00000140 8a ca 66 8b d0 66 c1 ea 10 f7 76 1a 86 d6 8a 56 |..f..f....v....V|
00000150 40 8a e8 c0 e4 06 0a cc b8 01 02 cd 13 66 61 0f |@............fa.|
00000160 82 74 ff 81 c3 00 02 66 40 49 75 94 c3 42 4f 4f |.t.....f@Iu..BOO|
00000170 54 4d 47 52 20 20 20 20 00 00 00 00 00 00 00 00 |TMGR ........|
00000180 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 |................|
*
000001a0 00 00 00 00 00 00 00 00 00 00 00 00 0d 0a 45 72 |..............Er|
000001b0 72 2e 20 64 69 73 71 75 65 ff 0d 0a 50 72 65 73 |r. disque...Pres|
000001c0 73 65 7a 20 75 6e 65 20 74 6f 75 63 68 65 20 70 |sez une touche p|
000001d0 6f 75 72 20 72 65 64 82 6d 61 72 72 65 72 0d 0a |our red.marrer..|
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 ac 01 ba 01 00 00 55 aa |..............U.|
00000200
=================== hexdump -n512 -C /dev/sda4
00000000 eb 52 90 4e 54 46 53 20 20 20 20 00 02 08 00 00 |.R.NTFS .....|
00000010 00 00 00 00 00 f8 00 00 3f 00 ff 00 00 b0 11 00 |........?.......|
00000020 00 00 00 00 80 00 80 00 ff f7 f2 02 00 00 00 00 |................|
00000030 00 00 0c 00 00 00 00 00 02 00 00 00 00 00 00 00 |................|
00000040 f6 00 00 00 01 00 00 00 9f 98 ec 06 d6 ec 06 b6 |................|
00000050 00 00 00 00 fa 33 c0 8e d0 bc 00 7c fb 68 c0 07 |.....3.....|.h..|
00000060 1f 1e 68 66 00 cb 88 16 0e 00 66 81 3e 03 00 4e |..hf......f.>..N|
00000070 54 46 53 75 15 b4 41 bb aa 55 cd 13 72 0c 81 fb |TFSu..A..U..r...|
00000080 55 aa 75 06 f7 c1 01 00 75 03 e9 dd 00 1e 83 ec |U.u.....u.......|
00000090 18 68 1a 00 b4 48 8a 16 0e 00 8b f4 16 1f cd 13 |.h...H..........|
000000a0 9f 83 c4 18 9e 58 1f 72 e1 3b 06 0b 00 75 db a3 |.....X.r.;...u..|
000000b0 0f 00 c1 2e 0f 00 04 1e 5a 33 db b9 00 20 2b c8 |........Z3... +.|
000000c0 66 ff 06 11 00 03 16 0f 00 8e c2 ff 06 16 00 e8 |f...............|
000000d0 4b 00 2b c8 77 ef b8 00 bb cd 1a 66 23 c0 75 2d |K.+.w......f#.u-|
000000e0 66 81 fb 54 43 50 41 75 24 81 f9 02 01 72 1e 16 |f..TCPAu$....r..|
000000f0 68 07 bb 16 68 52 11 16 68 09 00 66 53 66 53 66 |h...hR..h..fSfSf|
00000100 55 16 16 16 68 b8 01 66 61 0e 07 cd 1a 33 c0 bf |U...h..fa....3..|
00000110 0a 13 b9 f6 0c fc f3 aa e9 fe 01 90 90 66 60 1e |.............f`.|
00000120 06 66 a1 11 00 66 03 06 1c 00 1e 66 68 00 00 00 |.f...f.....fh...|
00000130 00 66 50 06 53 68 01 00 68 10 00 b4 42 8a 16 0e |.fP.Sh..h...B...|
00000140 00 16 1f 8b f4 cd 13 66 59 5b 5a 66 59 66 59 1f |.......fY[ZfYfY.|
00000150 0f 82 16 00 66 ff 06 11 00 03 16 0f 00 8e c2 ff |....f...........|
00000160 0e 16 00 75 bc 07 1f 66 61 c3 a1 f6 01 e8 09 00 |...u...fa.......|
00000170 a1 fa 01 e8 03 00 f4 eb fd 8b f0 ac 3c 00 74 09 |............<.t.|
00000180 b4 0e bb 07 00 cd 10 eb f2 c3 0d 0a 45 72 72 65 |............Erre|
00000190 75 72 20 6c 65 63 74 75 72 65 20 64 69 73 71 75 |ur lecture disqu|
000001a0 65 00 0d 0a 42 4f 4f 54 4d 47 52 20 63 6f 6d 70 |e...BOOTMGR comp|
000001b0 72 65 73 73 82 00 0d 0a 43 74 72 6c 2b 41 6c 74 |ress....Ctrl+Alt|
000001c0 2b 53 75 70 70 72 20 70 6f 75 72 20 72 65 64 82 |+Suppr pour red.|
000001d0 6d 61 72 72 65 72 0d 0a 00 73 74 61 72 74 0d 0a |marrer...start..|
000001e0 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 |................|
000001f0 00 00 00 00 00 00 8a 01 a2 01 b6 01 00 00 55 aa |..............U.|
00000200
=================== df -Th:
Filesystem Type Size Used Avail Use% Mounted on
udev devtmpfs 947M 0 947M 0% /dev
tmpfs tmpfs 199M 1.4M 198M 1% /run
/dev/sr0 iso9660 2.6G 2.6G 0 100% /cdrom
/dev/loop0 squashfs 2.0G 2.0G 0 100% /rofs
/cow overlay 994M 328M 666M 33% /
tmpfs tmpfs 994M 28M 966M 3% /dev/shm
tmpfs tmpfs 5.0M 4.0K 5.0M 1% /run/lock
tmpfs tmpfs 994M 0 994M 0% /sys/fs/cgroup
tmpfs tmpfs 994M 820K 993M 1% /tmp
tmpfs tmpfs 199M 52K 199M 1% /run/user/999
/dev/sda1 fuseblk 450M 389M 62M 87% /mnt/boot-sav/sda1
/dev/sda2 vfat 95M 70M 26M 74% /mnt/boot-sav/sda2
/dev/sda4 fuseblk 24G 17G 7.3G 70% /mnt/boot-sav/sda4
/dev/sda5 ext4 16G 6.7G 8.4G 45% /mnt/boot-sav/sda5
/dev/sdb1 ext4 32G 16G 15G 53% /mnt/boot-sav/sdb1
=================== fdisk -l:
Disk /dev/loop0: 1.97 GiB, 2090962944 bytes, 4083912 sectors
Units: sectors of 1 * 512 = 512 bytes
Sector size (logical/physical): 512 bytes / 512 bytes
I/O size (minimum/optimal): 512 bytes / 512 bytes
Disk /dev/sda: 40.33 GiB, 43294556160 bytes, 84559680 sectors
Disk model: VBOX HARDDISK
Units: sectors of 1 * 512 = 512 bytes
Sector size (logical/physical): 512 bytes / 512 bytes
I/O size (minimum/optimal): 512 bytes / 512 bytes
Disklabel type: gpt
Disk identifier: 2530EA09-698D-4322-B791-29F4A072F62E
Device Start End Sectors Size Type
/dev/sda1 2048 923647 921600 450M Windows recovery environment
/dev/sda2 923648 1126399 202752 99M EFI System
/dev/sda3 1126400 1159167 32768 16M EFI System
/dev/sda4 1159168 50636799 49477632 23.6G Microsoft basic data
/dev/sda5 50636800 84557823 33921024 16.2G Linux filesystem
Disk /dev/sdb: 32 GiB, 34359738368 bytes, 67108864 sectors
Disk model: VBOX HARDDISK
Units: sectors of 1 * 512 = 512 bytes
Sector size (logical/physical): 512 bytes / 512 bytes
I/O size (minimum/optimal): 512 bytes / 512 bytes
Disklabel type: dos
Disk identifier: 0x52caac94
Device Boot Start End Sectors Size Id Type
/dev/sdb1 2048 67108863 67106816 32G 83 Linux
=================== Recommended repair
The default repair of the Boot-Repair utility will purge (in order to fix packages) and reinstall the grub-efi-amd64-signed of sda5, using the following options: sda2/boot/efi,
Additional repair will be performed: unhide-bootmenu-10s fix-windows-boot use-standard-efi-file restore-efi-backups
/boot/efi added in sda5/fstab
rm /mnt/boot-sav/sda2/efi/Boot/bootx64.efi
Quantity of real Windows: 1
Created sda5/boot/efi
Mount sda2 on /mnt/boot-sav/sda5/boot/efi
efi files in sda2/efi: /Microsoft/Boot/memtest.efi /Microsoft/Boot/bootmgr.efi /Microsoft/Boot/bootmgfw.efi /ubuntu/shimx64.efi /ubuntu/mmx64.efi /ubuntu/grubx64.efi /ubuntu/fwupx64.efi /BOOT/mmx64.efi /BOOT/grubx64.efi /BOOT/fbx64.efi /BOOT/bootx64.efi
chroot /mnt/boot-sav/sda5 apt-get -y update
The AppStream system cache was updated, but some components were ignored. Refer to the verbose log for more information.
Purge the GRUB of sda5
grub-efi-amd64-signed available
The following package was automatically installed and is no longer required:
linux-modules-5.4.0-1002-oem
Use 'sudo apt autoremove' to remove it.
The following additional packages will be installed:
efibootmgr grub-efi-amd64-bin
The following NEW packages will be installed:
efibootmgr grub-efi-amd64-bin grub-efi-amd64-signed
0 upgraded, 3 newly installed, 0 to remove and 639 not upgraded.
DEBCHECK debOK, grub-efi-amd64-signed
DEBCHECK debOK
shim-signed available
Please type: sudo chroot "/mnt/boot-sav/sda5" dpkg --configure -ansudo chroot "/mnt/boot-sav/sda5" dpkg --configure -ansudo chroot "/mnt/boot-sav/sda5" apt-get install -fynsudo chroot "/mnt/boot-sav/sda5" apt-get purge -y grub*-common shim-signed
Presence of EFI/Microsoft file detected: /mnt/boot-sav/sda5/boot/efi/EFI/Microsoft/Boot/bootmgfw.efi
Presence of EFI/Boot file detected: /mnt/boot-sav/sda5/boot/efi/EFI/Boot/bootx64.efi
Presence of EFI/Boot file detected: /mnt/boot-sav/sda5/boot/efi/EFI/Boot/fbx64.efi
Presence of EFI/Boot file detected: /mnt/boot-sav/sda5/boot/efi/EFI/Boot/grubx64.efi
Presence of EFI/Boot file detected: /mnt/boot-sav/sda5/boot/efi/EFI/Boot/mmx64.efi
=================== sda5/etc/grub.d/ :
drwxr-xr-x 2 root root 4096 Mar 24 15:15 grub.d
total 4
-rwxr-xr-x 1 root root 1992 Feb 13 23:09 20_memtest86+
/boot/efi detected in the fstab of sda5: UUID=C4D1-8AAE (sda2)
shim-signed available
linux-headers-generic available
linux-signed-generic NOT available (apt-cache policy problem)
Then type: sudo chroot "/mnt/boot-sav/sda5" apt-get install -y grub-efi-amd64-signed shim-signed linux-headers-generic
Presence of EFI/Microsoft file detected: /mnt/boot-sav/sda5/boot/efi/EFI/Microsoft/Boot/bootmgfw.efi
Presence of EFI/Boot file detected: /mnt/boot-sav/sda5/boot/efi/EFI/Boot/bootx64.efi
Presence of EFI/Boot file detected: /mnt/boot-sav/sda5/boot/efi/EFI/Boot/fbx64.efi
Presence of EFI/Boot file detected: /mnt/boot-sav/sda5/boot/efi/EFI/Boot/grubx64.efi
Presence of EFI/Boot file detected: /mnt/boot-sav/sda5/boot/efi/EFI/Boot/mmx64.efi
=================== sda5/etc/grub.d/ :
drwxr-xr-x 2 root root 4096 Mar 24 15:20 grub.d
drwxr-xr-x 2 root root 4096 Mar 24 15:15 grub.d.bak
total 124
-rwxr-xr-x 1 root root 10627 Mar 11 16:46 00_header
-rwxr-xr-x 1 root root 6258 Mar 11 16:46 05_debian_theme
-rwxr-xr-x 1 root root 17123 Mar 11 16:46 10_linux
-rwxr-xr-x 1 root root 38596 Mar 11 16:46 10_linux_zfs
-rwxr-xr-x 1 root root 12894 Mar 11 16:46 20_linux_xen
-rwxr-xr-x 1 root root 12059 Mar 11 16:46 30_os-prober
-rwxr-xr-x 1 root root 1424 Mar 11 16:46 30_uefi-firmware
-rwxr-xr-x 1 root root 214 Mar 11 16:46 40_custom
-rwxr-xr-x 1 root root 216 Mar 11 16:46 41_custom
-rw-r--r-- 1 root root 483 Mar 11 16:46 README
=================== sda5/etc/default/grub :
# If you change this file, run 'update-grub' afterwards to update
# /boot/grub/grub.cfg.
# For full documentation of the options in this file, see:
# info -f grub -n 'Simple configuration'
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=""
# Uncomment to enable BadRAM filtering, modify to suit your needs
# This works with Linux (no patch required) and with any kernel that obtains
# the memory map information from GRUB (GNU Mach, kernel of FreeBSD ...)
#GRUB_BADRAM="0x01234567,0xfefefefe,0x89abcdef,0xefefefef"
# Uncomment to disable graphical terminal (grub-pc only)
#GRUB_TERMINAL=console
# The resolution used on graphical terminal
# note that you can use only modes which your graphic card supports via VBE
# you can see them in real GRUB with the command `vbeinfo'
#GRUB_GFXMODE=640x480
# Uncomment if you don't want GRUB to pass "root=UUID=xxx" parameter to Linux
#GRUB_DISABLE_LINUX_UUID=true
# Uncomment to disable generation of recovery mode menu entries
#GRUB_DISABLE_RECOVERY="true"
# Uncomment to get a beep at grub start
#GRUB_INIT_TUNE="480 440 1"
/boot/efi detected in the fstab of sda5: UUID=C4D1-8AAE (sda2)
Unhide GRUB boot menu in sda5/etc/default/grub
Presence of EFI/Microsoft file detected: /mnt/boot-sav/sda5/boot/efi/EFI/Microsoft/Boot/bootmgfw.efi
Presence of EFI/Boot file detected: /mnt/boot-sav/sda5/boot/efi/EFI/Boot/bootx64.efi
Presence of EFI/Boot file detected: /mnt/boot-sav/sda5/boot/efi/EFI/Boot/fbx64.efi
Presence of EFI/Boot file detected: /mnt/boot-sav/sda5/boot/efi/EFI/Boot/grubx64.efi
Presence of EFI/Boot file detected: /mnt/boot-sav/sda5/boot/efi/EFI/Boot/mmx64.efi
=================== sda5/etc/grub.d/ :
drwxr-xr-x 2 root root 4096 Mar 24 15:20 grub.d
drwxr-xr-x 2 root root 4096 Mar 24 15:15 grub.d.bak
total 124
-rwxr-xr-x 1 root root 10627 Mar 11 16:46 00_header
-rwxr-xr-x 1 root root 6258 Mar 11 16:46 05_debian_theme
-rwxr-xr-x 1 root root 17123 Mar 11 16:46 10_linux
-rwxr-xr-x 1 root root 38596 Mar 11 16:46 10_linux_zfs
-rwxr-xr-x 1 root root 12894 Mar 11 16:46 20_linux_xen
-rwxr-xr-x 1 root root 12059 Mar 11 16:46 30_os-prober
-rwxr-xr-x 1 root root 1424 Mar 11 16:46 30_uefi-firmware
-rwxr-xr-x 1 root root 214 Mar 11 16:46 40_custom
-rwxr-xr-x 1 root root 216 Mar 11 16:46 41_custom
-rw-r--r-- 1 root root 483 Mar 11 16:46 README
=================== sda5/etc/default/grub :
# If you change this file, run 'update-grub' afterwards to update
# /boot/grub/grub.cfg.
# For full documentation of the options in this file, see:
# info -f grub -n 'Simple configuration'
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=""
# Uncomment to enable BadRAM filtering, modify to suit your needs
# This works with Linux (no patch required) and with any kernel that obtains
# the memory map information from GRUB (GNU Mach, kernel of FreeBSD ...)
#GRUB_BADRAM="0x01234567,0xfefefefe,0x89abcdef,0xefefefef"
# Uncomment to disable graphical terminal (grub-pc only)
#GRUB_TERMINAL=console
# The resolution used on graphical terminal
# note that you can use only modes which your graphic card supports via VBE
# you can see them in real GRUB with the command `vbeinfo'
#GRUB_GFXMODE=640x480
# Uncomment if you don't want GRUB to pass "root=UUID=xxx" parameter to Linux
#GRUB_DISABLE_LINUX_UUID=true
# Uncomment to disable generation of recovery mode menu entries
#GRUB_DISABLE_RECOVERY="true"
# Uncomment to get a beep at grub start
#GRUB_INIT_TUNE="480 440 1"
/boot/efi detected in the fstab of sda5: UUID=C4D1-8AAE (sda2)
lspci: Unable to load libkmod resources: error -12
*******lspci -nnk | grep -iA3 vga
00:02.0 VGA compatible controller [0300]: InnoTek Systemberatung GmbH VirtualBox Graphics Adapter [80ee:beef]
Kernel driver in use: vboxvideo
00:03.0 Ethernet controller [0200]: Intel Corporation 82540EM Gigabit Ethernet Controller [8086:100e] (rev 02)
Subsystem: Intel Corporation PRO/1000 MT Desktop Adapter [8086:001e]
*******
grub-install --version
grub-install (GRUB) 2.04-1ubuntu22,grub-install (GRUB) 2.
chroot /mnt/boot-sav/sda5 efibootmgr -v
BootCurrent: 0000
BootOrder: 0004,0000,0001,0002,0003
Boot0000* EFI DVD/CDROM PciRoot(0x0)/Pci(0xd,0x0)/Sata(1,0,0)
Boot0001* EFI Hard Drive PciRoot(0x0)/Pci(0xd,0x0)/Sata(0,0,0)
Boot0002* EFI Hard Drive 1 PciRoot(0x0)/Pci(0xd,0x0)/Sata(2,0,0)
Boot0003* EFI Internal Shell MemoryMapped(11,0x2100000,0x28fffff)/FvFile(7c04a583-9e3e-4f1c-ad65-e05268d0b4d1)
Boot0004* ubuntu HD(2,GPT,1ab7abb3-31e4-4289-9a3a-587ac6546242,0xe1800,0x31800)/File(EFIubuntushimx64.efi)
chroot /mnt/boot-sav/sda5 uname -r
Kernel: 5.4.0-14-generic
Reinstall the grub-efi-amd64-signed shim-signed linux-headers-generic of sda5
Installing for x86_64-efi platform.
Installation finished. No error reported.
grub-install --efi-directory=/boot/efi --target=x86_64-efi --uefi-secure-boot : exit code of grub-install :0
efi files in sda2/efi: /Microsoft/Boot/memtest.efi /Microsoft/Boot/bootmgr.efi /Microsoft/Boot/bootmgfw.efi /ubuntu/shimx64.efi /ubuntu/mmx64.efi /ubuntu/grubx64.efi /ubuntu/fwupx64.efi /BOOT/mmx64.efi /BOOT/grubx64.efi /BOOT/fbx64.efi /BOOT/bootx64.efi
df /dev/sda2
mv /mnt/boot-sav/sda5/boot/efi/EFI/Boot/bootx64.efi /mnt/boot-sav/sda5/boot/efi/EFI/Boot/bkpbootx64.efi
cp /mnt/boot-sav/sda5/boot/efi/EFI/ubuntu/shimx64.efi /mnt/boot-sav/sda5/boot/efi/EFI/Boot/bootx64.efi
efi files in sda2/efi: /Microsoft/Boot/memtest.efi /Microsoft/Boot/bootmgr.efi /Microsoft/Boot/bootmgfw.efi /ubuntu/shimx64.efi /ubuntu/mmx64.efi /ubuntu/grubx64.efi /ubuntu/fwupx64.efi /BOOT/mmx64.efi /BOOT/grubx64.efi /BOOT/fbx64.efi /BOOT/bootx64.efi /BOOT/bkpbootx64.efi
Add /mnt/boot-sav/sda5/boot/efi efi entries in /mnt/boot-sav/sda5/etc/grub.d/25_custom
Adding custom /mnt/boot-sav/sda5/boot/efi/EFI/Microsoft/Boot/bootmgfw.efi
Adding custom /mnt/boot-sav/sda5/boot/efi/EFI/BOOT/bkpbootx64.efi
Adding custom /mnt/boot-sav/sda5/boot/efi/EFI/BOOT/fbx64.efi
Adding custom /mnt/boot-sav/sda5/boot/efi/EFI/BOOT/mmx64.efi
Adding custom /mnt/boot-sav/sda5/boot/efi/EFI/ubuntu/fwupx64.efi
Adding custom /mnt/boot-sav/sda5/boot/efi/EFI/ubuntu/mmx64.efi
sda2/bootmgfw.efi already added
Installing for x86_64-efi platform.
Installation finished. No error reported.
grub-install --efi-directory=/boot/efi --target=x86_64-efi --uefi-secure-boot : exit code of grub-install :0
chroot /mnt/boot-sav/sda5 efibootmgr -v
BootCurrent: 0000
BootOrder: 0004,0000,0001,0002,0003
Boot0000* EFI DVD/CDROM PciRoot(0x0)/Pci(0xd,0x0)/Sata(1,0,0)
Boot0001* EFI Hard Drive PciRoot(0x0)/Pci(0xd,0x0)/Sata(0,0,0)
Boot0002* EFI Hard Drive 1 PciRoot(0x0)/Pci(0xd,0x0)/Sata(2,0,0)
Boot0003* EFI Internal Shell MemoryMapped(11,0x2100000,0x28fffff)/FvFile(7c04a583-9e3e-4f1c-ad65-e05268d0b4d1)
Boot0004* ubuntu HD(2,GPT,1ab7abb3-31e4-4289-9a3a-587ac6546242,0xe1800,0x31800)/File(EFIubuntushimx64.efi)
chroot /mnt/boot-sav/sda5 update-grub
Sourcing file `/etc/default/grub'
Sourcing file `/etc/default/grub.d/init-select.cfg'
Generating grub configuration file ...
Found linux image: /boot/vmlinuz-5.4.0-18-generic
Found initrd image: /boot/initrd.img-5.4.0-18-generic
Found linux image: /boot/vmlinuz-5.4.0-14-generic
Found initrd image: /boot/initrd.img-5.4.0-14-generic
Found Windows Boot Manager on /dev/sda2@/EFI/Microsoft/Boot/bootmgfw.efi
Adding boot menu entry for UEFI Firmware Settings
Unhide GRUB boot menu in sda5/boot/grub/grub.cfg
Boot successfully repaired.
You can now reboot your computer.
Please do not forget to make your BIOS boot on sda2/EFI/ubuntu/shimx64.efi file!
If your computer reboots directly into Windows, try to change the boot order in your BIOS.
If your BIOS does not allow to change the boot order, change the default boot entry of the Windows bootloader.
For example you can boot into Windows, then type the following command in an admin command prompt:
bcdedit /set {bootmgr} path \EFI\ubuntu\shimx64.efi
3) Boot-info depuis une session du Ubuntu réparé : http://paste.ubuntu.com/p/GnpK6YsgJy/
Je le colle ci-dessous :
Boot Info Script 71f6c5c + Boot-Repair extra info [Boot-Info 16mar2020]
============================= Boot Info Summary: ===============================
=> Grub2 (v2.00) is installed in the MBR of /dev/sda and looks at sector
76562768 of the same hard drive for core.img. core.img is at this location
and looks for (,gpt5)/boot/grub. It also embeds following components:
modules
---------------------------------------------------------------------------
fshelp ext2 part_gpt biosdisk
---------------------------------------------------------------------------
=> libparted MBR boot code is installed in the MBR of /dev/sdb.
sda1: __________________________________________________________________________
File system: ntfs
Boot sector type: Windows 8/2012: NTFS
Boot sector info: No errors found in the Boot Parameter Block.
Operating System:
Boot files:
sda2: __________________________________________________________________________
File system: vfat
Boot sector type: Windows 8/2012: FAT32
Boot sector info: No errors found in the Boot Parameter Block.
Operating System:
Boot files: /EFI/ubuntu/grub.cfg /efi/BOOT/bkpbootx64.efi
/efi/BOOT/bootx64.efi /efi/BOOT/fbx64.efi
/efi/BOOT/grubx64.efi /efi/BOOT/mmx64.efi
/efi/ubuntu/fwupx64.efi /efi/ubuntu/grubx64.efi
/efi/ubuntu/mmx64.efi /efi/ubuntu/shimx64.efi
/efi/ubuntu/grub.cfg /efi/Microsoft/Boot/bootmgfw.efi
/efi/Microsoft/Boot/bootmgr.efi
/efi/Microsoft/Boot/memtest.efi
sda3: __________________________________________________________________________
File system:
Boot sector type: -
Boot sector info:
sda4: __________________________________________________________________________
File system: ntfs
Boot sector type: Windows 8/2012: NTFS
Boot sector info: No errors found in the Boot Parameter Block.
Operating System:
Boot files: /bootmgr /Windows/System32/winload.exe
sda5: __________________________________________________________________________
File system: ext4
Boot sector type: -
Boot sector info:
Operating System: Ubuntu Focal Fossa (development branch)
Boot files: /boot/grub/grub.cfg /etc/fstab
sdb1: __________________________________________________________________________
File system: ext4
Boot sector type: -
Boot sector info:
Operating System:
Boot files:
============================ Drive/Partition Info: =============================
Drive: sda _____________________________________________________________________
Disk /dev/sda: 40.33 GiB, 43294556160 bytes, 84559680 sectors
Disk model: VBOX HARDDISK
Units: sectors of 1 * 512 = 512 bytes
Sector size (logical/physical): 512 bytes / 512 bytes
I/O size (minimum/optimal): 512 bytes / 512 bytes
Partition Boot Start Sector End Sector # of Sectors Id System
/dev/sda1 1 84,559,679 84,559,679 ee GPT
GUID Partition Table detected.
Partition Attrs Start Sector End Sector # of Sectors System
/dev/sda1 2,048 923,647 921,600 Windows Recovery Environment (Windows)
/dev/sda2 923,648 1,126,399 202,752 EFI System partition
/dev/sda3 1,126,400 1,159,167 32,768 EFI System partition
/dev/sda4 1,159,168 50,636,799 49,477,632 Data partition (Windows/Linux)
/dev/sda5 50,636,800 84,557,823 33,921,024 Data partition (Linux)
Attributes: R=Required, N=No Block IO, B=Legacy BIOS Bootable, +=More bits set
Drive: sdb _____________________________________________________________________
Disk /dev/sdb: 32 GiB, 34359738368 bytes, 67108864 sectors
Disk model: VBOX HARDDISK
Units: sectors of 1 * 512 = 512 bytes
Sector size (logical/physical): 512 bytes / 512 bytes
I/O size (minimum/optimal): 512 bytes / 512 bytes
Partition Boot Start Sector End Sector # of Sectors Id System
/dev/sdb1 2,048 67,108,863 67,106,816 83 Linux
"blkid" output: ________________________________________________________________
Device UUID TYPE LABEL
/dev/sda1 72E8CBBEE8CB7EBB ntfs Récupération
/dev/sda2 C4D1-8AAE vfat
/dev/sda3
/dev/sda4 B606ECD606EC989F ntfs
/dev/sda5 6ed2f53a-c172-4eff-9038-491af9c7457b ext4
/dev/sdb1 6c14aa5c-a67b-4211-afd2-42ff350e60b0 ext4 images_win10_EFI
========================= "ls -l /dev/disk/by-id" output: ======================
total 0
lrwxrwxrwx 1 root root 9 Mar 24 16:32 ata-VBOX_CD-ROM_VB1-1a2b3c4d -> ../../sr0
lrwxrwxrwx 1 root root 9 Mar 24 16:49 ata-VBOX_HARDDISK_VB2db79605-645acf7a -> ../../sda
lrwxrwxrwx 1 root root 10 Mar 24 16:57 ata-VBOX_HARDDISK_VB2db79605-645acf7a-part1 -> ../../sda1
lrwxrwxrwx 1 root root 10 Mar 24 16:49 ata-VBOX_HARDDISK_VB2db79605-645acf7a-part2 -> ../../sda2
lrwxrwxrwx 1 root root 10 Mar 24 16:49 ata-VBOX_HARDDISK_VB2db79605-645acf7a-part3 -> ../../sda3
lrwxrwxrwx 1 root root 10 Mar 24 16:57 ata-VBOX_HARDDISK_VB2db79605-645acf7a-part4 -> ../../sda4
lrwxrwxrwx 1 root root 10 Mar 24 16:49 ata-VBOX_HARDDISK_VB2db79605-645acf7a-part5 -> ../../sda5
lrwxrwxrwx 1 root root 9 Mar 24 16:49 ata-VBOX_HARDDISK_VB8e816ea2-fefc916f -> ../../sdb
lrwxrwxrwx 1 root root 10 Mar 24 16:49 ata-VBOX_HARDDISK_VB8e816ea2-fefc916f-part1 -> ../../sdb1
================================ Mount points: =================================
Device Mount_Point Type Options
/dev/fuse /run/user/1000/doc fuse (rw,nosuid,nodev,relatime,user_id=1000,group_id=1000)
/dev/sda2 /boot/efi vfat (rw,relatime,fmask=0022,dmask=0022,codepage=437,iocharset=iso8859-1,shortname=mixed,errors=remount-ro)
/dev/sda5 / ext4 (rw,relatime,errors=remount-ro)
========================== sda2/EFI/ubuntu/grub.cfg: ===========================
--------------------------------------------------------------------------------
search.fs_uuid 6ed2f53a-c172-4eff-9038-491af9c7457b root hd0,gpt5
set prefix=($root)'/boot/grub'
configfile $prefix/grub.cfg
--------------------------------------------------------------------------------
========================== sda2/efi/ubuntu/grub.cfg: ===========================
--------------------------------------------------------------------------------
search.fs_uuid 6ed2f53a-c172-4eff-9038-491af9c7457b root hd0,gpt5
set prefix=($root)'/boot/grub'
configfile $prefix/grub.cfg
--------------------------------------------------------------------------------
=========================== sda5/boot/grub/grub.cfg: ===========================
--------------------------------------------------------------------------------
#
# DO NOT EDIT THIS FILE
#
# It is automatically generated by grub-mkconfig using templates
# from /etc/grub.d and settings from /etc/default/grub
#
### BEGIN /etc/grub.d/00_header ###
if [ -s $prefix/grubenv ]; then
set have_grubenv=true
load_env
fi
if [ "${initrdfail}" = 2 ]; then
set initrdfail=
elif [ "${initrdfail}" = 1 ]; then
set next_entry="${prev_entry}"
set prev_entry=
save_env prev_entry
if [ "${next_entry}" ]; then
set initrdfail=2
fi
fi
if [ "${next_entry}" ] ; then
set default="${next_entry}"
set next_entry=
save_env next_entry
set boot_once=true
else
set default="0"
fi
if [ x"${feature_menuentry_id}" = xy ]; then
menuentry_id_option="--id"
else
menuentry_id_option=""
fi
export menuentry_id_option
if [ "${prev_saved_entry}" ]; then
set saved_entry="${prev_saved_entry}"
save_env saved_entry
set prev_saved_entry=
save_env prev_saved_entry
set boot_once=true
fi
function savedefault {
if [ -z "${boot_once}" ]; then
saved_entry="${chosen}"
save_env saved_entry
fi
}
function initrdfail {
if [ -n "${have_grubenv}" ]; then if [ -n "${partuuid}" ]; then
if [ -z "${initrdfail}" ]; then
set initrdfail=1
if [ -n "${boot_once}" ]; then
set prev_entry="${default}"
save_env prev_entry
fi
fi
save_env initrdfail
fi; fi
}
function recordfail {
set recordfail=1
if [ -n "${have_grubenv}" ]; then if [ -z "${boot_once}" ]; then save_env recordfail; fi; fi
}
function load_video {
if [ x$feature_all_video_module = xy ]; then
insmod all_video
else
insmod efi_gop
insmod efi_uga
insmod ieee1275_fb
insmod vbe
insmod vga
insmod video_bochs
insmod video_cirrus
fi
}
if [ x$feature_default_font_path = xy ] ; then
font=unicode
else
insmod part_gpt
insmod ext2
set root='hd0,gpt5'
if [ x$feature_platform_search_hint = xy ]; then
search --no-floppy --fs-uuid --set=root --hint-bios=hd0,gpt5 --hint-efi=hd0,gpt5 --hint-baremetal=ahci0,gpt5 6ed2f53a-c172-4eff-9038-491af9c7457b
else
search --no-floppy --fs-uuid --set=root 6ed2f53a-c172-4eff-9038-491af9c7457b
fi
font="/usr/share/grub/unicode.pf2"
fi
if loadfont $font ; then
set gfxmode=auto
load_video
insmod gfxterm
set locale_dir=$prefix/locale
set lang=C
insmod gettext
fi
terminal_output gfxterm
if [ "${recordfail}" = 1 ] ; then
set timeout=10
else
if [ x$feature_timeout_style = xy ] ; then
set timeout_style=hidden
set timeout=10
# Fallback hidden-timeout code in case the timeout_style feature is
# unavailable.
elif sleep --interruptible 10 ; then
set timeout=10
fi
fi
### END /etc/grub.d/00_header ###
### BEGIN /etc/grub.d/05_debian_theme ###
set menu_color_normal=white/black
set menu_color_highlight=black/light-gray
### END /etc/grub.d/05_debian_theme ###
### BEGIN /etc/grub.d/10_linux ###
function gfxmode {
set gfxpayload="${1}"
if [ "${1}" = "keep" ]; then
set vt_handoff=vt.handoff=7
else
set vt_handoff=
fi
}
if [ "${recordfail}" != 1 ]; then
if [ -e ${prefix}/gfxblacklist.txt ]; then
if hwmatch ${prefix}/gfxblacklist.txt 3; then
if [ ${match} = 0 ]; then
set linux_gfx_mode=keep
else
set linux_gfx_mode=text
fi
else
set linux_gfx_mode=text
fi
else
set linux_gfx_mode=keep
fi
else
set linux_gfx_mode=text
fi
export linux_gfx_mode
menuentry 'Ubuntu' --class ubuntu --class gnu-linux --class gnu --class os $menuentry_id_option 'gnulinux-simple-6ed2f53a-c172-4eff-9038-491af9c7457b' {
recordfail
load_video
gfxmode $linux_gfx_mode
insmod gzio
if [ x$grub_platform = xxen ]; then insmod xzio; insmod lzopio; fi
insmod part_gpt
insmod ext2
set root='hd0,gpt5'
if [ x$feature_platform_search_hint = xy ]; then
search --no-floppy --fs-uuid --set=root --hint-bios=hd0,gpt5 --hint-efi=hd0,gpt5 --hint-baremetal=ahci0,gpt5 6ed2f53a-c172-4eff-9038-491af9c7457b
else
search --no-floppy --fs-uuid --set=root 6ed2f53a-c172-4eff-9038-491af9c7457b
fi
linux /boot/vmlinuz-5.4.0-18-generic root=UUID=6ed2f53a-c172-4eff-9038-491af9c7457b ro quiet splash $vt_handoff
initrd /boot/initrd.img-5.4.0-18-generic
}
submenu 'Advanced options for Ubuntu' $menuentry_id_option 'gnulinux-advanced-6ed2f53a-c172-4eff-9038-491af9c7457b' {
menuentry 'Ubuntu, with Linux 5.4.0-18-generic' --class ubuntu --class gnu-linux --class gnu --class os $menuentry_id_option 'gnulinux-5.4.0-18-generic-advanced-6ed2f53a-c172-4eff-9038-491af9c7457b' {
recordfail
load_video
gfxmode $linux_gfx_mode
insmod gzio
if [ x$grub_platform = xxen ]; then insmod xzio; insmod lzopio; fi
insmod part_gpt
insmod ext2
set root='hd0,gpt5'
if [ x$feature_platform_search_hint = xy ]; then
search --no-floppy --fs-uuid --set=root --hint-bios=hd0,gpt5 --hint-efi=hd0,gpt5 --hint-baremetal=ahci0,gpt5 6ed2f53a-c172-4eff-9038-491af9c7457b
else
search --no-floppy --fs-uuid --set=root 6ed2f53a-c172-4eff-9038-491af9c7457b
fi
echo 'Loading Linux 5.4.0-18-generic ...'
linux /boot/vmlinuz-5.4.0-18-generic root=UUID=6ed2f53a-c172-4eff-9038-491af9c7457b ro quiet splash $vt_handoff
echo 'Loading initial ramdisk ...'
initrd /boot/initrd.img-5.4.0-18-generic
}
menuentry 'Ubuntu, with Linux 5.4.0-18-generic (recovery mode)' --class ubuntu --class gnu-linux --class gnu --class os $menuentry_id_option 'gnulinux-5.4.0-18-generic-recovery-6ed2f53a-c172-4eff-9038-491af9c7457b' {
recordfail
load_video
insmod gzio
if [ x$grub_platform = xxen ]; then insmod xzio; insmod lzopio; fi
insmod part_gpt
insmod ext2
set root='hd0,gpt5'
if [ x$feature_platform_search_hint = xy ]; then
search --no-floppy --fs-uuid --set=root --hint-bios=hd0,gpt5 --hint-efi=hd0,gpt5 --hint-baremetal=ahci0,gpt5 6ed2f53a-c172-4eff-9038-491af9c7457b
else
search --no-floppy --fs-uuid --set=root 6ed2f53a-c172-4eff-9038-491af9c7457b
fi
echo 'Loading Linux 5.4.0-18-generic ...'
linux /boot/vmlinuz-5.4.0-18-generic root=UUID=6ed2f53a-c172-4eff-9038-491af9c7457b ro recovery nomodeset
echo 'Loading initial ramdisk ...'
initrd /boot/initrd.img-5.4.0-18-generic
}
menuentry 'Ubuntu, with Linux 5.4.0-14-generic' --class ubuntu --class gnu-linux --class gnu --class os $menuentry_id_option 'gnulinux-5.4.0-14-generic-advanced-6ed2f53a-c172-4eff-9038-491af9c7457b' {
recordfail
load_video
gfxmode $linux_gfx_mode
insmod gzio
if [ x$grub_platform = xxen ]; then insmod xzio; insmod lzopio; fi
insmod part_gpt
insmod ext2
set root='hd0,gpt5'
if [ x$feature_platform_search_hint = xy ]; then
search --no-floppy --fs-uuid --set=root --hint-bios=hd0,gpt5 --hint-efi=hd0,gpt5 --hint-baremetal=ahci0,gpt5 6ed2f53a-c172-4eff-9038-491af9c7457b
else
search --no-floppy --fs-uuid --set=root 6ed2f53a-c172-4eff-9038-491af9c7457b
fi
echo 'Loading Linux 5.4.0-14-generic ...'
linux /boot/vmlinuz-5.4.0-14-generic root=UUID=6ed2f53a-c172-4eff-9038-491af9c7457b ro quiet splash $vt_handoff
echo 'Loading initial ramdisk ...'
initrd /boot/initrd.img-5.4.0-14-generic
}
menuentry 'Ubuntu, with Linux 5.4.0-14-generic (recovery mode)' --class ubuntu --class gnu-linux --class gnu --class os $menuentry_id_option 'gnulinux-5.4.0-14-generic-recovery-6ed2f53a-c172-4eff-9038-491af9c7457b' {
recordfail
load_video
insmod gzio
if [ x$grub_platform = xxen ]; then insmod xzio; insmod lzopio; fi
insmod part_gpt
insmod ext2
set root='hd0,gpt5'
if [ x$feature_platform_search_hint = xy ]; then
search --no-floppy --fs-uuid --set=root --hint-bios=hd0,gpt5 --hint-efi=hd0,gpt5 --hint-baremetal=ahci0,gpt5 6ed2f53a-c172-4eff-9038-491af9c7457b
else
search --no-floppy --fs-uuid --set=root 6ed2f53a-c172-4eff-9038-491af9c7457b
fi
echo 'Loading Linux 5.4.0-14-generic ...'
linux /boot/vmlinuz-5.4.0-14-generic root=UUID=6ed2f53a-c172-4eff-9038-491af9c7457b ro recovery nomodeset
echo 'Loading initial ramdisk ...'
initrd /boot/initrd.img-5.4.0-14-generic
}
}
### END /etc/grub.d/10_linux ###
### BEGIN /etc/grub.d/10_linux_zfs ###
### END /etc/grub.d/10_linux_zfs ###
### BEGIN /etc/grub.d/20_linux_xen ###
### END /etc/grub.d/20_linux_xen ###
### BEGIN /etc/grub.d/25_custom ###
menuentry "Windows UEFI bootmgfw.efi" {
search --fs-uuid --no-floppy --set=root C4D1-8AAE
chainloader (${root})/EFI/Microsoft/Boot/bootmgfw.efi
}
menuentry "EFI/BOOT/bkpbootx64.efi" {
search --fs-uuid --no-floppy --set=root C4D1-8AAE
chainloader (${root})/EFI/BOOT/bkpbootx64.efi
}
menuentry "EFI/BOOT/fbx64.efi" {
search --fs-uuid --no-floppy --set=root C4D1-8AAE
chainloader (${root})/EFI/BOOT/fbx64.efi
}
menuentry "EFI/BOOT/mmx64.efi" {
search --fs-uuid --no-floppy --set=root C4D1-8AAE
chainloader (${root})/EFI/BOOT/mmx64.efi
}
menuentry "EFI/ubuntu/fwupx64.efi" {
search --fs-uuid --no-floppy --set=root C4D1-8AAE
chainloader (${root})/EFI/ubuntu/fwupx64.efi
}
menuentry "EFI/ubuntu/mmx64.efi" {
search --fs-uuid --no-floppy --set=root C4D1-8AAE
chainloader (${root})/EFI/ubuntu/mmx64.efi
}
### END /etc/grub.d/25_custom ###
### BEGIN /etc/grub.d/30_os-prober ###
menuentry 'Windows Boot Manager (on /dev/sda2)' --class windows --class os $menuentry_id_option 'osprober-efi-C4D1-8AAE' {
insmod part_gpt
insmod fat
set root='hd0,gpt2'
if [ x$feature_platform_search_hint = xy ]; then
search --no-floppy --fs-uuid --set=root --hint-bios=hd0,gpt2 --hint-efi=hd0,gpt2 --hint-baremetal=ahci0,gpt2 C4D1-8AAE
else
search --no-floppy --fs-uuid --set=root C4D1-8AAE
fi
chainloader /EFI/Microsoft/Boot/bootmgfw.efi
}
set timeout_style=menu
if [ "${timeout}" = 0 ]; then
set timeout=10
fi
### END /etc/grub.d/30_os-prober ###
### BEGIN /etc/grub.d/30_uefi-firmware ###
menuentry 'UEFI Firmware Settings' $menuentry_id_option 'uefi-firmware' {
fwsetup
}
### END /etc/grub.d/30_uefi-firmware ###
### BEGIN /etc/grub.d/40_custom ###
# This file provides an easy way to add custom menu entries. Simply type the
# menu entries you want to add after this comment. Be careful not to change
# the 'exec tail' line above.
### END /etc/grub.d/40_custom ###
### BEGIN /etc/grub.d/41_custom ###
if [ -f ${config_directory}/custom.cfg ]; then
source ${config_directory}/custom.cfg
elif [ -z "${config_directory}" -a -f $prefix/custom.cfg ]; then
source $prefix/custom.cfg;
fi
### END /etc/grub.d/41_custom ###
--------------------------------------------------------------------------------
=============================== sda5/etc/fstab: ================================
--------------------------------------------------------------------------------
# /etc/fstab: static file system information.
#
# Use 'blkid' to print the universally unique identifier for a
# device; this may be used with UUID= as a more robust way to name devices
# that works even if disks are added and removed. See fstab(5).
#
# <file system> <mount point> <type> <options> <dump> <pass>
# / was on /dev/sda5 during installation
UUID=6ed2f53a-c172-4eff-9038-491af9c7457b / ext4 errors=remount-ro 0 1
/swapfile none swap sw 0 0
UUID=C4D1-8AAE /boot/efi vfat defaults 0 1
--------------------------------------------------------------------------------
=================== sda5: Location of files loaded by Grub: ====================
GiB - GB File Fragment(s)
28.284156799 = 30.369882112 boot/grub/grub.cfg 1
30.789169312 = 33.059618816 boot/vmlinuz 2
27.387691498 = 29.407309824 boot/vmlinuz-5.4.0-14-generic 2
30.789169312 = 33.059618816 boot/vmlinuz-5.4.0-18-generic 2
27.387691498 = 29.407309824 boot/vmlinuz.old 2
31.236404419 = 33.539833856 boot/initrd.img 1
31.188690186 = 33.488601088 boot/initrd.img-5.4.0-14-generic 3
31.236404419 = 33.539833856 boot/initrd.img-5.4.0-18-generic 1
31.188690186 = 33.488601088 boot/initrd.img.old 3
ADDITIONAL INFORMATION :
=================== log of boot-info 20200324_1649 ===================
boot-info version : 4ppa75
boot-sav version : 4ppa75
boot-sav-extra version : 4ppa75
glade2script version : 3.2.4~ppa6
boot-info is executed in installed-session (Ubuntu Focal Fossa (development branch), focal, Ubuntu, x86_64)
CPU op-mode(s): 32-bit, 64-bit
Address sizes: 48 bits physical, 48 bits virtual
BOOT_IMAGE=/boot/vmlinuz-5.4.0-18-generic root=UUID=6ed2f53a-c172-4eff-9038-491af9c7457b ro quiet splash vt.handoff=7
=================== os-prober:
/dev/sda5:L'OS actuellement utilisé - Ubuntu Focal Fossa (development branch) CurrentSession:linux
/dev/sda2@/EFI/Microsoft/Boot/bootmgfw.efi:Windows Boot Manager:Windows:efi
=================== blkid:
/dev/sda5: UUID="6ed2f53a-c172-4eff-9038-491af9c7457b" TYPE="ext4" PARTUUID="54392d5d-1996-4c62-8842-d91f4a33b602"
/dev/sda1: LABEL="RM-CM-)cupM-CM-)ration" UUID="72E8CBBEE8CB7EBB" TYPE="ntfs" PARTLABEL="Basic data partition" PARTUUID="07380664-6dd4-4925-aeac-a435b34ad9f5"
/dev/sda2: UUID="C4D1-8AAE" TYPE="vfat" PARTLABEL="EFI system partition" PARTUUID="1ab7abb3-31e4-4289-9a3a-587ac6546242"
/dev/sda4: UUID="B606ECD606EC989F" TYPE="ntfs" PARTLABEL="Basic data partition" PARTUUID="63728c63-f8c6-4f3b-8882-3688c4f80734"
/dev/sdb1: LABEL="images_win10_EFI" UUID="6c14aa5c-a67b-4211-afd2-42ff350e60b0" TYPE="ext4" PARTUUID="52caac94-01"
/dev/sda3: PARTLABEL="Microsoft reserved partition" PARTUUID="c21c3b27-c875-4428-a0d8-0c431338197b"
1 disks with OS, 2 OS : 1 Linux, 0 MacOS, 1 Windows, 0 unknown type OS.
Windows not detected by os-prober on sda4.
=================== /etc/grub.d/ :
drwxr-xr-x 2 root root 4096 mars 24 16:25 grub.d
drwxr-xr-x 2 root root 4096 mars 24 16:15 grub.d.bak
total 128
-rwxr-xr-x 1 root root 10627 mars 11 17:46 00_header
-rwxr-xr-x 1 root root 6258 mars 11 17:46 05_debian_theme
-rwxr-xr-x 1 root root 17123 mars 11 17:46 10_linux
-rwxr-xr-x 1 root root 38596 mars 11 17:46 10_linux_zfs
-rwxr-xr-x 1 root root 12894 mars 11 17:46 20_linux_xen
-rwxr-xr-x 1 root root 833 mars 24 16:26 25_custom
-rwxr-xr-x 1 root root 12059 mars 11 17:46 30_os-prober
-rwxr-xr-x 1 root root 1424 mars 11 17:46 30_uefi-firmware
-rwxr-xr-x 1 root root 214 mars 11 17:46 40_custom
-rwxr-xr-x 1 root root 216 mars 11 17:46 41_custom
-rw-r--r-- 1 root root 483 mars 11 17:46 README
=================== /etc/default/grub :
# If you change this file, run 'update-grub' afterwards to update
# /boot/grub/grub.cfg.
# For full documentation of the options in this file, see:
# info -f grub -n 'Simple configuration'
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=""
# Uncomment to enable BadRAM filtering, modify to suit your needs
# This works with Linux (no patch required) and with any kernel that obtains
# the memory map information from GRUB (GNU Mach, kernel of FreeBSD ...)
#GRUB_BADRAM="0x01234567,0xfefefefe,0x89abcdef,0xefefefef"
# Uncomment to disable graphical terminal (grub-pc only)
#GRUB_TERMINAL=console
# The resolution used on graphical terminal
# note that you can use only modes which your graphic card supports via VBE
# you can see them in real GRUB with the command `vbeinfo'
#GRUB_GFXMODE=640x480
# Uncomment if you don't want GRUB to pass "root=UUID=xxx" parameter to Linux
#GRUB_DISABLE_LINUX_UUID=true
# Uncomment to disable generation of recovery mode menu entries
#GRUB_DISABLE_RECOVERY="true"
# Uncomment to get a beep at grub start
#GRUB_INIT_TUNE="480 440 1"
/boot/efi detected in the fstab of sda5: UUID=C4D1-8AAE (sda2)
Presence of EFI/Microsoft file detected: /boot/efi/EFI/Microsoft/Boot/bootmgfw.efi
Presence of EFI/Boot file detected: /boot/efi/EFI/Boot/bkpbootx64.efi
Presence of EFI/Boot file detected: /boot/efi/EFI/Boot/bootx64.efi
Presence of EFI/Boot file detected: /boot/efi/EFI/Boot/fbx64.efi
Presence of EFI/Boot file detected: /boot/efi/EFI/Boot/grubx64.efi
Presence of EFI/Boot file detected: /boot/efi/EFI/Boot/mmx64.efi
Presence of bkp file detected: /boot/efi/EFI/BOOT/bkpbootx64.efi
ls /sys/firmware/efi/vars : Test1-e660597e-b94d-4209-9c80-1805b5d19b69,Test0-e660597e-b94d-4209-9c80-1805b5d19b69,RTC-378d7b65-8da9-4773-b6e4-a47826a833e1,PlatformLangCodes-8be4df61-93ca-11d2-aa0d-00e098032b8c,PlatformLang-8be4df61-93ca-11d2-aa0d-00e098032b8c,OsIndicationsSupported-8be4df61-93ca-11d2-aa0d-00e098032b8c,new_var,MTC-eb704011-1402-11d3-8e77-00a0c969723b,MokListRT-605dab50-e046-4300-abb6-3dd810dd8b23,MemoryTypeInformation-4c19049f-4137-4dd3-9c10-8b97a83ffdfa,LangCodes-8be4df61-93ca-11d2-aa0d-00e098032b8c,Lang-8be4df61-93ca-11d2-aa0d-00e098032b8c,HDDP-fab7e9e1-39dd-4f2b-8408-e20e906cb6de,FirmwareFeaturesMask-4d1ede05-38c7-4a6a-9cc6-4bcca8b38c14,FirmwareFeatures-4d1ede05-38c7-4a6a-9cc6-4bcca8b38c14,del_var,ConOutDev-8be4df61-93ca-11d2-aa0d-00e098032b8c,ConOut-8be4df61-93ca-11d2-aa0d-00e098032b8c,ConInDev-8be4df61-93ca-11d2-aa0d-00e098032b8c,ConIn-8be4df61-93ca-11d2-aa0d-00e098032b8c,BootOrder-8be4df61-93ca-11d2-aa0d-00e098032b8c,BootOptionSupport-8be4df61-93ca-11d2-aa0d-00e098032b8c,BootCurrent-8be4df61-93ca-11d2-aa0d-00e098032b8c,boot-args-7c436110-ab2a-4bbb-a880-fe41995c9f82,Boot0004-8be4df61-93ca-11d2-aa0d-00e098032b8c,Boot0003-8be4df61-93ca-11d2-aa0d-00e098032b8c,Boot0002-8be4df61-93ca-11d2-aa0d-00e098032b8c,Boot0001-8be4df61-93ca-11d2-aa0d-00e098032b8c,Boot0000-8be4df61-93ca-11d2-aa0d-00e098032b8c,BackgroundClear-4d1ede05-38c7-4a6a-9cc6-4bcca8b38c14,
Veuillez indiquer ce message à boot.repair@gmail.com
=================== efibootmgr -v
BootCurrent: 0004
BootOrder: 0004,0000,0001,0002,0003
Boot0000* EFI DVD/CDROM PciRoot(0x0)/Pci(0xd,0x0)/Sata(1,0,0)
Boot0001* EFI Hard Drive PciRoot(0x0)/Pci(0xd,0x0)/Sata(0,0,0)
Boot0002* EFI Hard Drive 1 PciRoot(0x0)/Pci(0xd,0x0)/Sata(2,0,0)
Boot0003* EFI Internal Shell MemoryMapped(11,0x2100000,0x28fffff)/FvFile(7c04a583-9e3e-4f1c-ad65-e05268d0b4d1)
Boot0004* ubuntu HD(2,GPT,1ab7abb3-31e4-4289-9a3a-587ac6546242,0xe1800,0x31800)/File(EFIubuntushimx64.efi)
=================== UEFI/Legacy mode:
BIOS is EFI-compatible, and is setup in EFI-mode for this installed-session.
SecureBoot maybe enabled. (maybe sec-boot, Veuillez indiquer ce message à boot.repair@gmail.com)
=================== PARTITIONS & DISKS:
sda5 : sda, not-sepboot, grubenv-ok grub2, signed grub-efi , update-grub, 64, with-boot, is-os, not--efi--part, fstab-without-boot, fstab-has-goodEFI, no-nt, no-winload, no-recov-nor-hid, no-bmgr, notwinboot, apt-get, grub-install, with--usr, fstab-without-usr, not-sep-usr, standard, not-far, notbiosboot, .
sda1 : sda, not-sepboot, no-grubenv nogrub, no-docgrub, no-update-grub, 32, no-boot, no-os, not--efi--part, part-has-no-fstab, part-has-no-fstab, no-nt, no-winload, recovery-or-hidden, no-bmgr, notwinboot, nopakmgr, nogrubinstall, no---usr, part-has-no-fstab, not-sep-usr, standard, not-far, notbiosboot, /mnt/boot-sav/sda1.
sda2 : sda, not-sepboot, no-grubenv nogrub, no-docgrub, no-update-grub, 32, no-boot, is-os, is-correct-EFI, part-has-no-fstab, part-has-no-fstab, no-nt, no-winload, no-recov-nor-hid, no-bmgr, notwinboot, nopakmgr, nogrubinstall, no---usr, part-has-no-fstab, not-sep-usr, standard, not-far, notbiosboot, /boot/efi.
sda4 : sda, not-sepboot, no-grubenv nogrub, no-docgrub, no-update-grub, 32, no-boot, is-os, not--efi--part, part-has-no-fstab, part-has-no-fstab, no-nt, haswinload, no-recov-nor-hid, bootmgr, notwinboot, nopakmgr, nogrubinstall, no---usr, part-has-no-fstab, not-sep-usr, standard, not-far, notbiosboot, /mnt/boot-sav/sda4.
sdb1 : sdb, maybesepboot, no-grubenv nogrub, no-docgrub, no-update-grub, 32, no-boot, no-os, not--efi--part, part-has-no-fstab, part-has-no-fstab, no-nt, no-winload, no-recov-nor-hid, no-bmgr, notwinboot, nopakmgr, nogrubinstall, no---usr, part-has-no-fstab, not-sep-usr, standard, not-far, notbiosboot, /mnt/boot-sav/sdb1.
sda : GPT, no-BIOS_boot, has-correctEFI, not-usb, not-mmc, has-os, 2048 sectors * 512 bytes
sdb : not-GPT, BIOSboot-not-needed, has-no-EFIpart, not-usb, not-mmc, no-os, 2048 sectors * 512 bytes
=================== parted -lm:
BYT;
/dev/sda:43.3GB:scsi:512:512:gpt:ATA VBOX HARDDISK:;
1:1049kB:473MB:472MB:ntfs:Basic data partition:diag;
2:473MB:577MB:104MB:fat32:EFI system partition:boot, esp;
3:577MB:593MB:16.8MB::Microsoft reserved partition:boot, esp;
4:593MB:25.9GB:25.3GB:ntfs:Basic data partition:msftdata;
5:25.9GB:43.3GB:17.4GB:ext4::;
BYT;
/dev/sdb:34.4GB:scsi:512:512:msdos:ATA VBOX HARDDISK:;
1:1049kB:34.4GB:34.4GB:ext4::;
=================== lsblk:
KNAME TYPE FSTYPE SIZE LABEL
sda disk 40,3G
sda1 part ntfs 450M Récupération
sda2 part vfat 99M
sda3 part 16M
sda4 part ntfs 23,6G
sda5 part ext4 16,2G
sdb disk 32G
sdb1 part ext4 32G images_win10_EFI
sr0 rom 1024M
KNAME ROTA RO RM STATE MOUNTPOINT
sda 1 0 0 running
sda1 1 0 0 /mnt/boot-sav/sda1
sda2 1 0 0 /boot/efi
sda3 1 0 0
sda4 1 0 0 /mnt/boot-sav/sda4
sda5 1 0 0 /
sdb 1 0 0 running
sdb1 1 0 0 /mnt/boot-sav/sdb1
sr0 1 0 1 running
=================== mount:
sysfs on /sys type sysfs (rw,nosuid,nodev,noexec,relatime)
proc on /proc type proc (rw,nosuid,nodev,noexec,relatime)
udev on /dev type devtmpfs (rw,nosuid,noexec,relatime,size=989024k,nr_inodes=247256,mode=755)
devpts on /dev/pts type devpts (rw,nosuid,noexec,relatime,gid=5,mode=620,ptmxmode=000)
tmpfs on /run type tmpfs (rw,nosuid,nodev,noexec,relatime,size=203424k,mode=755)
/dev/sda5 on / type ext4 (rw,relatime,errors=remount-ro)
securityfs on /sys/kernel/security type securityfs (rw,nosuid,nodev,noexec,relatime)
tmpfs on /dev/shm type tmpfs (rw,nosuid,nodev)
tmpfs on /run/lock type tmpfs (rw,nosuid,nodev,noexec,relatime,size=5120k)
tmpfs on /sys/fs/cgroup type tmpfs (ro,nosuid,nodev,noexec,mode=755)
cgroup2 on /sys/fs/cgroup/unified type cgroup2 (rw,nosuid,nodev,noexec,relatime,nsdelegate)
cgroup on /sys/fs/cgroup/systemd type cgroup (rw,nosuid,nodev,noexec,relatime,xattr,name=systemd)
pstore on /sys/fs/pstore type pstore (rw,nosuid,nodev,noexec,relatime)
efivarfs on /sys/firmware/efi/efivars type efivarfs (rw,nosuid,nodev,noexec,relatime)
none on /sys/fs/bpf type bpf (rw,nosuid,nodev,noexec,relatime,mode=700)
cgroup on /sys/fs/cgroup/net_cls,net_prio type cgroup (rw,nosuid,nodev,noexec,relatime,net_cls,net_prio)
cgroup on /sys/fs/cgroup/blkio type cgroup (rw,nosuid,nodev,noexec,relatime,blkio)
cgroup on /sys/fs/cgroup/rdma type cgroup (rw,nosuid,nodev,noexec,relatime,rdma)
cgroup on /sys/fs/cgroup/cpuset type cgroup (rw,nosuid,nodev,noexec,relatime,cpuset)
cgroup on /sys/fs/cgroup/freezer type cgroup (rw,nosuid,nodev,noexec,relatime,freezer)
cgroup on /sys/fs/cgroup/memory type cgroup (rw,nosuid,nodev,noexec,relatime,memory)
cgroup on /sys/fs/cgroup/perf_event type cgroup (rw,nosuid,nodev,noexec,relatime,perf_event)
cgroup on /sys/fs/cgroup/cpu,cpuacct type cgroup (rw,nosuid,nodev,noexec,relatime,cpu,cpuacct)
cgroup on /sys/fs/cgroup/hugetlb type cgroup (rw,nosuid,nodev,noexec,relatime,hugetlb)
cgroup on /sys/fs/cgroup/devices type cgroup (rw,nosuid,nodev,noexec,relatime,devices)
cgroup on /sys/fs/cgroup/pids type cgroup (rw,nosuid,nodev,noexec,relatime,pids)
systemd-1 on /proc/sys/fs/binfmt_misc type autofs (rw,relatime,fd=27,pgrp=1,timeout=0,minproto=5,maxproto=5,direct,pipe_ino=14628)
mqueue on /dev/mqueue type mqueue (rw,nosuid,nodev,noexec,relatime)
hugetlbfs on /dev/hugepages type hugetlbfs (rw,relatime,pagesize=2M)
debugfs on /sys/kernel/debug type debugfs (rw,nosuid,nodev,noexec,relatime)
fusectl on /sys/fs/fuse/connections type fusectl (rw,nosuid,nodev,noexec,relatime)
configfs on /sys/kernel/config type configfs (rw,nosuid,nodev,noexec,relatime)
/dev/sda2 on /boot/efi type vfat (rw,relatime,fmask=0022,dmask=0022,codepage=437,iocharset=iso8859-1,shortname=mixed,errors=remount-ro)
tmpfs on /run/user/1000 type tmpfs (rw,nosuid,nodev,relatime,size=203420k,mode=700,uid=1000,gid=1000)
gvfsd-fuse on /run/user/1000/gvfs type fuse.gvfsd-fuse (rw,nosuid,nodev,relatime,user_id=1000,group_id=1000)
/dev/fuse on /run/user/1000/doc type fuse (rw,nosuid,nodev,relatime,user_id=1000,group_id=1000)
/dev/sda1 on /mnt/boot-sav/sda1 type fuseblk (rw,relatime,user_id=0,group_id=0,allow_other,blksize=4096)
/dev/sda4 on /mnt/boot-sav/sda4 type fuseblk (rw,relatime,user_id=0,group_id=0,allow_other,blksize=4096)
/dev/sdb1 on /mnt/boot-sav/sdb1 type ext4 (rw,relatime)
=================== ls:
/sys/block/sda (filtered): alignment_offset bdi capability dev device discard_alignment events events_async events_poll_msecs ext_range hidden holders inflight integrity mq power queue range removable ro sda1 sda2 sda3 sda4 sda5 size slaves stat subsystem trace uevent
/sys/block/sdb (filtered): alignment_offset bdi capability dev device discard_alignment events events_async events_poll_msecs ext_range hidden holders inflight integrity mq power queue range removable ro sdb1 size slaves stat subsystem trace uevent
/sys/block/sr0 (filtered): alignment_offset bdi capability dev device discard_alignment events events_async events_poll_msecs ext_range hidden holders inflight integrity mq power queue range removable ro size slaves stat subsystem trace uevent
/dev (filtered): autofs block bsg btrfs-control bus cdrom char console core cpu_dma_latency cuse disk dri dvd ecryptfs fb0 fd full fuse hidraw0 hpet hugepages hwrng i2c-0 initctl input kmsg lightnvm log mapper mcelog mem mqueue net null port ppp psaux ptmx pts random rfkill rtc rtc0 sda sda1 sda2 sda3 sda4 sda5 sdb sdb1 sg0 sg1 sg2 shm snapshot snd sr0 stderr stdin stdout udmabuf uhid uinput urandom userio vboxguest vboxuser vfio vga_arbiter vhci vhost-net vhost-vsock zero zfs
ls /dev/mapper: control
=================== hexdump -n512 -C /dev/sda1
00000000 eb 52 90 4e 54 46 53 20 20 20 20 00 02 08 00 00 |.R.NTFS .....|
00000010 00 00 00 00 00 f8 00 00 3f 00 ff 00 00 08 00 00 |........?.......|
00000020 00 00 00 00 80 00 80 00 ff 0f 0e 00 00 00 00 00 |................|
00000030 00 96 00 00 00 00 00 00 02 00 00 00 00 00 00 00 |................|
00000040 f6 00 00 00 01 00 00 00 bb 7e cb e8 be cb e8 72 |.........~.....r|
00000050 00 00 00 00 fa 33 c0 8e d0 bc 00 7c fb 68 c0 07 |.....3.....|.h..|
00000060 1f 1e 68 66 00 cb 88 16 0e 00 66 81 3e 03 00 4e |..hf......f.>..N|
00000070 54 46 53 75 15 b4 41 bb aa 55 cd 13 72 0c 81 fb |TFSu..A..U..r...|
00000080 55 aa 75 06 f7 c1 01 00 75 03 e9 dd 00 1e 83 ec |U.u.....u.......|
00000090 18 68 1a 00 b4 48 8a 16 0e 00 8b f4 16 1f cd 13 |.h...H..........|
000000a0 9f 83 c4 18 9e 58 1f 72 e1 3b 06 0b 00 75 db a3 |.....X.r.;...u..|
000000b0 0f 00 c1 2e 0f 00 04 1e 5a 33 db b9 00 20 2b c8 |........Z3... +.|
000000c0 66 ff 06 11 00 03 16 0f 00 8e c2 ff 06 16 00 e8 |f...............|
000000d0 4b 00 2b c8 77 ef b8 00 bb cd 1a 66 23 c0 75 2d |K.+.w......f#.u-|
000000e0 66 81 fb 54 43 50 41 75 24 81 f9 02 01 72 1e 16 |f..TCPAu$....r..|
000000f0 68 07 bb 16 68 52 11 16 68 09 00 66 53 66 53 66 |h...hR..h..fSfSf|
00000100 55 16 16 16 68 b8 01 66 61 0e 07 cd 1a 33 c0 bf |U...h..fa....3..|
00000110 0a 13 b9 f6 0c fc f3 aa e9 fe 01 90 90 66 60 1e |.............f`.|
00000120 06 66 a1 11 00 66 03 06 1c 00 1e 66 68 00 00 00 |.f...f.....fh...|
00000130 00 66 50 06 53 68 01 00 68 10 00 b4 42 8a 16 0e |.fP.Sh..h...B...|
00000140 00 16 1f 8b f4 cd 13 66 59 5b 5a 66 59 66 59 1f |.......fY[ZfYfY.|
00000150 0f 82 16 00 66 ff 06 11 00 03 16 0f 00 8e c2 ff |....f...........|
00000160 0e 16 00 75 bc 07 1f 66 61 c3 a1 f6 01 e8 09 00 |...u...fa.......|
00000170 a1 fa 01 e8 03 00 f4 eb fd 8b f0 ac 3c 00 74 09 |............<.t.|
00000180 b4 0e bb 07 00 cd 10 eb f2 c3 0d 0a 45 72 72 65 |............Erre|
00000190 75 72 20 6c 65 63 74 75 72 65 20 64 69 73 71 75 |ur lecture disqu|
000001a0 65 00 0d 0a 42 4f 4f 54 4d 47 52 20 63 6f 6d 70 |e...BOOTMGR comp|
000001b0 72 65 73 73 82 00 0d 0a 43 74 72 6c 2b 41 6c 74 |ress....Ctrl+Alt|
000001c0 2b 53 75 70 70 72 20 70 6f 75 72 20 72 65 64 82 |+Suppr pour red.|
000001d0 6d 61 72 72 65 72 0d 0a 00 73 74 61 72 74 0d 0a |marrer...start..|
000001e0 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 |................|
000001f0 00 00 00 00 00 00 8a 01 a2 01 b6 01 00 00 55 aa |..............U.|
00000200
=================== hexdump -n512 -C /dev/sda2
00000000 eb 58 90 4d 53 44 4f 53 35 2e 30 00 02 02 0e 1a |.X.MSDOS5.0.....|
00000010 02 00 00 00 00 f8 00 00 3f 00 ff 00 00 18 0e 00 |........?.......|
00000020 00 18 03 00 f9 02 00 00 00 00 00 00 02 00 00 00 |................|
00000030 01 00 06 00 00 00 00 00 00 00 00 00 00 00 00 00 |................|
00000040 80 01 29 ae 8a d1 c4 4e 4f 20 4e 41 4d 45 20 20 |..)....NO NAME |
00000050 20 20 46 41 54 33 32 20 20 20 33 c9 8e d1 bc f4 | FAT32 3.....|
00000060 7b 8e c1 8e d9 bd 00 7c 88 56 40 88 4e 02 8a 56 |{......|.V@.N..V|
00000070 40 b4 41 bb aa 55 cd 13 72 10 81 fb 55 aa 75 0a |@.A..U..r...U.u.|
00000080 f6 c1 01 74 05 fe 46 02 eb 2d 8a 56 40 b4 08 cd |...t..F..-.V@...|
00000090 13 73 05 b9 ff ff 8a f1 66 0f b6 c6 40 66 0f b6 |.s......f...@f..|
000000a0 d1 80 e2 3f f7 e2 86 cd c0 ed 06 41 66 0f b7 c9 |...?.......Af...|
000000b0 66 f7 e1 66 89 46 f8 83 7e 16 00 75 39 83 7e 2a |f..f.F..~..u9.~*|
000000c0 00 77 33 66 8b 46 1c 66 83 c0 0c bb 00 80 b9 01 |.w3f.F.f........|
000000d0 00 e8 2c 00 e9 a8 03 a1 f8 7d 80 c4 7c 8b f0 ac |..,......}..|...|
000000e0 84 c0 74 17 3c ff 74 09 b4 0e bb 07 00 cd 10 eb |..t.<.t.........|
000000f0 ee a1 fa 7d eb e4 a1 7d 80 eb df 98 cd 16 cd 19 |...}...}........|
00000100 66 60 80 7e 02 00 0f 84 20 00 66 6a 00 66 50 06 |f`.~.... .fj.fP.|
00000110 53 66 68 10 00 01 00 b4 42 8a 56 40 8b f4 cd 13 |Sfh.....B.V@....|
00000120 66 58 66 58 66 58 66 58 eb 33 66 3b 46 f8 72 03 |fXfXfXfX.3f;F.r.|
00000130 f9 eb 2a 66 33 d2 66 0f b7 4e 18 66 f7 f1 fe c2 |..*f3.f..N.f....|
00000140 8a ca 66 8b d0 66 c1 ea 10 f7 76 1a 86 d6 8a 56 |..f..f....v....V|
00000150 40 8a e8 c0 e4 06 0a cc b8 01 02 cd 13 66 61 0f |@............fa.|
00000160 82 74 ff 81 c3 00 02 66 40 49 75 94 c3 42 4f 4f |.t.....f@Iu..BOO|
00000170 54 4d 47 52 20 20 20 20 00 00 00 00 00 00 00 00 |TMGR ........|
00000180 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 |................|
*
000001a0 00 00 00 00 00 00 00 00 00 00 00 00 0d 0a 45 72 |..............Er|
000001b0 72 2e 20 64 69 73 71 75 65 ff 0d 0a 50 72 65 73 |r. disque...Pres|
000001c0 73 65 7a 20 75 6e 65 20 74 6f 75 63 68 65 20 70 |sez une touche p|
000001d0 6f 75 72 20 72 65 64 82 6d 61 72 72 65 72 0d 0a |our red.marrer..|
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 ac 01 ba 01 00 00 55 aa |..............U.|
00000200
=================== hexdump -n512 -C /dev/sda4
00000000 eb 52 90 4e 54 46 53 20 20 20 20 00 02 08 00 00 |.R.NTFS .....|
00000010 00 00 00 00 00 f8 00 00 3f 00 ff 00 00 b0 11 00 |........?.......|
00000020 00 00 00 00 80 00 80 00 ff f7 f2 02 00 00 00 00 |................|
00000030 00 00 0c 00 00 00 00 00 02 00 00 00 00 00 00 00 |................|
00000040 f6 00 00 00 01 00 00 00 9f 98 ec 06 d6 ec 06 b6 |................|
00000050 00 00 00 00 fa 33 c0 8e d0 bc 00 7c fb 68 c0 07 |.....3.....|.h..|
00000060 1f 1e 68 66 00 cb 88 16 0e 00 66 81 3e 03 00 4e |..hf......f.>..N|
00000070 54 46 53 75 15 b4 41 bb aa 55 cd 13 72 0c 81 fb |TFSu..A..U..r...|
00000080 55 aa 75 06 f7 c1 01 00 75 03 e9 dd 00 1e 83 ec |U.u.....u.......|
00000090 18 68 1a 00 b4 48 8a 16 0e 00 8b f4 16 1f cd 13 |.h...H..........|
000000a0 9f 83 c4 18 9e 58 1f 72 e1 3b 06 0b 00 75 db a3 |.....X.r.;...u..|
000000b0 0f 00 c1 2e 0f 00 04 1e 5a 33 db b9 00 20 2b c8 |........Z3... +.|
000000c0 66 ff 06 11 00 03 16 0f 00 8e c2 ff 06 16 00 e8 |f...............|
000000d0 4b 00 2b c8 77 ef b8 00 bb cd 1a 66 23 c0 75 2d |K.+.w......f#.u-|
000000e0 66 81 fb 54 43 50 41 75 24 81 f9 02 01 72 1e 16 |f..TCPAu$....r..|
000000f0 68 07 bb 16 68 52 11 16 68 09 00 66 53 66 53 66 |h...hR..h..fSfSf|
00000100 55 16 16 16 68 b8 01 66 61 0e 07 cd 1a 33 c0 bf |U...h..fa....3..|
00000110 0a 13 b9 f6 0c fc f3 aa e9 fe 01 90 90 66 60 1e |.............f`.|
00000120 06 66 a1 11 00 66 03 06 1c 00 1e 66 68 00 00 00 |.f...f.....fh...|
00000130 00 66 50 06 53 68 01 00 68 10 00 b4 42 8a 16 0e |.fP.Sh..h...B...|
00000140 00 16 1f 8b f4 cd 13 66 59 5b 5a 66 59 66 59 1f |.......fY[ZfYfY.|
00000150 0f 82 16 00 66 ff 06 11 00 03 16 0f 00 8e c2 ff |....f...........|
00000160 0e 16 00 75 bc 07 1f 66 61 c3 a1 f6 01 e8 09 00 |...u...fa.......|
00000170 a1 fa 01 e8 03 00 f4 eb fd 8b f0 ac 3c 00 74 09 |............<.t.|
00000180 b4 0e bb 07 00 cd 10 eb f2 c3 0d 0a 45 72 72 65 |............Erre|
00000190 75 72 20 6c 65 63 74 75 72 65 20 64 69 73 71 75 |ur lecture disqu|
000001a0 65 00 0d 0a 42 4f 4f 54 4d 47 52 20 63 6f 6d 70 |e...BOOTMGR comp|
000001b0 72 65 73 73 82 00 0d 0a 43 74 72 6c 2b 41 6c 74 |ress....Ctrl+Alt|
000001c0 2b 53 75 70 70 72 20 70 6f 75 72 20 72 65 64 82 |+Suppr pour red.|
000001d0 6d 61 72 72 65 72 0d 0a 00 73 74 61 72 74 0d 0a |marrer...start..|
000001e0 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 |................|
000001f0 00 00 00 00 00 00 8a 01 a2 01 b6 01 00 00 55 aa |..............U.|
00000200
=================== df -Th:
Filesystem Type Size Used Avail Use% Mounted on
udev devtmpfs 966M 0 966M 0% /dev
tmpfs tmpfs 199M 1.4M 198M 1% /run
/dev/sda5 ext4 16G 6.8G 8.3G 46% /
tmpfs tmpfs 994M 16M 978M 2% /dev/shm
tmpfs tmpfs 5.0M 4.0K 5.0M 1% /run/lock
tmpfs tmpfs 994M 0 994M 0% /sys/fs/cgroup
/dev/sda2 vfat 95M 72M 24M 76% /boot/efi
tmpfs tmpfs 199M 96K 199M 1% /run/user/1000
/dev/sda1 fuseblk 450M 389M 62M 87% /mnt/boot-sav/sda1
/dev/sda4 fuseblk 24G 17G 7.3G 70% /mnt/boot-sav/sda4
/dev/sdb1 ext4 32G 16G 15G 53% /mnt/boot-sav/sdb1
=================== fdisk -l:
Disk /dev/sda: 40.33 GiB, 43294556160 bytes, 84559680 sectors
Disk model: VBOX HARDDISK
Units: sectors of 1 * 512 = 512 bytes
Sector size (logical/physical): 512 bytes / 512 bytes
I/O size (minimum/optimal): 512 bytes / 512 bytes
Disklabel type: gpt
Disk identifier: 2530EA09-698D-4322-B791-29F4A072F62E
Device Start End Sectors Size Type
/dev/sda1 2048 923647 921600 450M Windows recovery environment
/dev/sda2 923648 1126399 202752 99M EFI System
/dev/sda3 1126400 1159167 32768 16M EFI System
/dev/sda4 1159168 50636799 49477632 23.6G Microsoft basic data
/dev/sda5 50636800 84557823 33921024 16.2G Linux filesystem
Disk /dev/sdb: 32 GiB, 34359738368 bytes, 67108864 sectors
Disk model: VBOX HARDDISK
Units: sectors of 1 * 512 = 512 bytes
Sector size (logical/physical): 512 bytes / 512 bytes
I/O size (minimum/optimal): 512 bytes / 512 bytes
Disklabel type: dos
Disk identifier: 0x52caac94
Device Boot Start End Sectors Size Id Type
/dev/sdb1 2048 67108863 67106816 32G 83 Linux
=================== Suggested repair
The default repair of the Boot-Repair utility would reinstall the grub-efi-amd64-signed of sda5, using the following options: sda2/boot/efi,
Additional repair would be performed: unhide-bootmenu-10s fix-windows-boot use-standard-efi-file restore-efi-backups
=================== Final advice in case of suggested repair
N'oubliez pas de régler votre BIOS pour qu'il amorce sur le fichier sda2/efi/.../grub*.efi !
Si votre ordinateur redémarre directement sur Windows, essayez de changer l'ordre de démarrage dans votre BIOS.
Si votre BIOS ne permet pas de changer l'ordre de démarrage, changez l'entrée de démarrage par défaut de l'amorceur Windows.
Par exemple, vous pouvez démarrer Windows, puis saisir la commande suivante dans une invite de commande en mode administrateur :
bcdedit /set {bootmgr} path \EFI\...\grub*.efi
=================== User settings
The settings chosen by the user will not act on the boot.
Morceau choisi de ce dernier Boot-info :
=================== PARTITIONS & DISKS:
sda5 : sda, not-sepboot, grubenv-ok grub2, signed grub-efi
La purge a été efficace : il n'y a plus trace de grub-pc dans sda5, la partition racine de Ubuntu 20.04. Il y a seulement la version signée de grub-efi
Commentaire sur la réparation : on a toujours un chargeur d'amorçage de Grub dans le MBR du disque dur qui est une relique de l'installation merdique initiale. Ce chargeur n'est pas utilisé pour démarrer Ubuntu (c'est le fichier /efi/ubuntu/shimx64.efi de sda2 qui est utilisé). Moi je n'ai pas proposé de chercher à le virer quand j'ai conseillé une conversion Legacy vers UEFI à des novices.
Dernière modification par malbo (Le 24/03/2020, à 18:12)
Hors ligne
#2 Le 25/03/2020, à 00:26
- geole
Re : Conversion Legacy vers UEFI avec Boot-repair version 4ppa75
Bonjour
Merci de cet essai
Je vois que tu as fais
1) Un état de départ
2) Un état de la réparation
3) Tu as aussi fait un état après réparation. Yannubuntu m'a dit que c'est inutile puisque c'est fourni à l'étape deux, il dit que la sortie info est produite après la réparation mais que pour des raisons pratiques, elle est listée avant.
Peut-être faudrait-il lui demander d'ajouter une ligne de séparation plus claire avant les réparations dont le début n'est pas systématiquement le même, du style
============================= Voici le début des réparations. Rappel ce qui précède est le résultat de la réparation ==============
Dans ton contexte les lignes sont les suivantes. Je les verrais d'ailleurs bien écrites en couleurs.
=================== Recommended repair
The default repair of the Boot-Repair utility will purge (in order to fix packages) and reinstall the grub-efi-amd64-signed of sda5, using the following options: sda2/boot/efi,
Additional repair will be performed: unhide-bootmenu-10s fix-windows-boot use-standard-efi-file restore-efi-backups
D'autre part, un boot en légacy ne peut absolument pas mettre une structure EFI car il n'a pas accès aux variables EFI!!! .
Il en est de même pour un boot en EFI dont on aurait interdit l'accès aux variables EFI avec l'option noefi
Bonne soirée.
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
#3 Le 25/03/2020, à 09:27
- malbo
Re : Conversion Legacy vers UEFI avec Boot-repair version 4ppa75
3) Tu as aussi fait un état après réparation. Yannubuntu m'a dit que c'est inutile puisque c'est fourni à l'étape deux,
Bonjour,
C'est peut-être bien vrai mais moi j'ai besoin de voir un Boot-info réalisé depuis le Ubuntu réparé : là j'y crois.
D'autre part, un boot en légacy ne peut absolument pas mettre une structure EFI car il n'a pas accès aux variables EFI!!! .
Je ne sais pas interpréter ça. Est-ce à dire qu'il aurait quelque chose à rectifier dans le post #1 selon toi ?
Hors ligne
#4 Le 25/03/2020, à 13:32
- geole
Re : Conversion Legacy vers UEFI avec Boot-repair version 4ppa75
Bonjour Malbo
Sur le point 1, je suis un peu d'accord avec toi. Si je suis courageux, je vais comparer les boot-infos N°2 et N°3 en oubliant la partie réparation.
Sur le dernier point, je voulais simplement dire que, par rapport à ton autre discussion de réparer en legacy, je considère qu'un boot EFI est capable de bien réparer en legacy s'il paramètre coorectement la commande en mettant les bonnes options LEGACY.
Mais que dans un boot legacy, même si on paramètre bien la commande, on ne pourra pas faire l'exécution correctement car les "variables" EFI sont seulement positionnées au démarrage de l'ordinateur et cette commande " modprobe efivars" ne s'exécute pas correctement. D'où l'impossibilité de communiquer avec la NVRAM et comme le fichier /boot/grub/grub.cfg est fabriqué après (en non avant) la mise à jour de la RAM, il ne sera pas créé.
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
#5 Le 25/03/2020, à 14:03
- malbo
Re : Conversion Legacy vers UEFI avec Boot-repair version 4ppa75
Merci pour ces précisions.
Hors ligne
#6 Le 07/04/2020, à 17:39
- YannUbuntu
Re : Conversion Legacy vers UEFI avec Boot-repair version 4ppa75
bjr
je viens de tomber sur cette discussion par hasard. Merci Malbo pour le test.
Mais que dans un boot legacy, même si on paramètre bien la commande, on ne pourra pas faire l'exécution correctement car les "variables" EFI sont seulement positionnées au démarrage de l'ordinateur et cette commande " modprobe efivars" ne s'exécute pas correctement. D'où l'impossibilité de communiquer avec la NVRAM et comme le fichier /boot/grub/grub.cfg est fabriqué après (en non avant) la mise à jour de la RAM, il ne sera pas créé.
je confirme. C'est pourquoi Boot-Repair s'assure qu'il est bien en session EFI s'il veut installer grub-efi.
ah, et je vais essayer d'implementer ============================= Voici le début des réparations. Rappel ce qui précède est le résultat de la réparation ==============
à consulter/améliorer: Guide du Débutant, Logiciels, Ecole, Travail, Maison
Hors ligne