#1 Le 07/12/2014, à 08:37
- malbo
[Essai] Ubuntu installé seul en mode EFI : débridage UEFI
Attention : le débridage en question ne s'applique pas à tous les ordis de la terre. Il existe des fabricants qui ne brident pas le démarrage donc on n'a pas besoin de faire ça : Ubuntu démarre direct après installation. D'autres fabricants (dont HP) pratiquent le bridage du démarrage sur EFI/Microsoft/Boot/bootmgfw.efi de la partition EFI alors qu'ici il s'agit du bridage sur /EFI/Boot/bootx64.efi pratiqué par Lenovo, Toshiba (et peut-être d'autres)
But de l'essai : il existe une solution pour "débrider" proposée par maxire dans ce post mais elle présente l'inconvénient qu'il est nécessaire d'avoir recours à Super Grub2 Disk pour arriver à démarrer une session sur le Ubuntu installé afin de faire le débridage. Dans l'essai que je présente ici, je vais évaluer la solution alternative qui utilise Boot-Repair en mode "utilisation avancée".
Etat de départ (j'utilise VMware Player) : Ubuntu 14.04.1 installé en mode EFI. J'ai supprimé volontairement le dossier /EFI/Boot de la partition EFI afin de vérifier qu'il est bien recréé par Boot-Repair
1) Démarrage d'une session live Ubuntu 14.04.1 et installation de Boot-Repair : http://doc.ubuntu-fr.org/boot-repair#in … _de_ubuntu
2) lancement de Boot-Repair. sélection Utilisation avancée
3) paramétrage dans l'onglet "Main options" de Boot-Repair :
Il faut cocher la case "Use the standard EFI file", ce qui signifie que c'est le fichier /EFI/Boot/bootx64.efi qui va être créé par Boot-Repair. On notera en passant (ça se voit sur la vue) que c'est la version 4ppa17 de Boot-Repair qui est utilisée dans cette manip.
4) paramétrage dans l'onglet "Grub location" de Boot-Repair :
Normalement il n'y a rien à changer : il faut juste contrôler ce qui est présélectionné. Il pourrait y avoir des erreurs ou des choses à rectifier si plusieurs installations de Ubuntu ont été faites mais s'il y a eu une seule installation, en principe il n'y a rien à toucher.
5) paramétrage dans l'onglet "Grub options" de Boot-Repair :
Il faut décocher la case "Secure Boot" ce qui entraîne que la case "Purge GRUB before reinstalling it" est automatiquement cochée. J'ai essayé dans une première tentative - que j'ai choisi de ne pas développer ici - de laisser la case "Secure Boot" activée mais la réparation ne fonctionnait pas : le fichier /EFI/Boot/bootx64.efi était un fichier "signé" et il semble que c'est pour cette raison que ça bloquait(*).
6) lancer la réparation en cliquant sur le bouton "Apply"
7) après réparation, redémarrer l'ordi en n'oubliant pas de retirer le support live (LiveDVD ou LiveUSB) et ça doit redémarrer par défaut sur Ubuntu installé. Si ce n'est pas le cas, il faut intervenir dans le "Bios" (le système UEFI) pour mettre la priorité de démarrage sur le disque dur.
Depuis la session du Ubuntu installé, je peux vérifier que j'ai bien /boot/efi/EFI/Boot/bootx64.efi c'est à dire que Boot-Repair a bien créé lui-même ce lanceur. A noter qu'il existe aussi les fichiers grubx64.efi et shimx64.efi dans /boot/efi/EFI/ubuntu. Ces deux fichiers sont fonctionnels pour lancer Ubuntu installé mais ils ne sont pas utilisés puisque le démarrage par défaut de l'ordi se fait sur /boot/efi/EFI/Boot/bootx64.efi
A noter : à l'attention des experts, j'ai détaillé la manip dans le post #5 mais c'est juste pour ceux qui savent lire un rapport Boot-Info et qui veulent tenter d'analyser ce qui se passe.
(*) au sujet de la réparation "maxire", ce dernier signale dans ce post : "Une possibilité de réparation est de désinstaller grub-efi-amd64-signed (sinon problème de grub-rescue)", donc il y a bien un souci avec la version signée de Grub qui ne convient pas pour ce débridage UEFI.
Dernière modification par malbo (Le 08/12/2014, à 09:45)
Hors ligne
#2 Le 07/12/2014, à 09:27
- ikewdu
Re : [Essai] Ubuntu installé seul en mode EFI : débridage UEFI
Salut Malbo,
N'y aurait-il pas une troisième alternative, sans Super Grub ni boot-repair ? Un truc de ce genre (adapté au numéro de la partition efi) doit aussi fonctionner, non ?
http://forum.ubuntu-fr.org/viewtopic.ph … #p18610801
Dernière modification par ikewdu (Le 07/12/2014, à 09:29)
Hors ligne
#3 Le 07/12/2014, à 10:45
- malbo
Re : [Essai] Ubuntu installé seul en mode EFI : débridage UEFI
@ikewdu : en théorie, ça devrait fonctionner.
Mon point de vue d'aujourd'hui, c'est que malgré qu'il faille utiliser Super Grub2 Disk (SG2D) comme dans ce cas récent, je vais continuer à proposer la méthode maxire plutôt que la méthode par Boot-Repair que je viens de tester dans le post #1. La raison, c'est que j'aime bien SG2D et je trouve utile de le faire connaître. De plus, quand le novice en galère arrive à faire démarrer son Ubuntu installé grâce à SG2D, il devient super motivé et confiant - il comprend qu'il a juste besoin de trouver l’ascenseur qui va bien pour atteindre sa piaule mais celle-ci existe et elle est est superbe - et il finit par obtenir son démarrage par défaut sur Ubuntu.
Dernière modification par malbo (Le 07/12/2014, à 11:06)
Hors ligne
#4 Le 07/12/2014, à 13:24
- nany
Re : [Essai] Ubuntu installé seul en mode EFI : débridage UEFI
Bonjour,
Salut Malbo,
N'y aurait-il pas une troisième alternative, sans Super Grub ni boot-repair ? Un truc de ce genre (adapté au numéro de la partition efi) doit aussi fonctionner, non ?
Bah c’est grosso-modo le code exécuté par Boot-Repair dans la manipulation proposée ici par malbo.
Le seul avantage est que l’on ne risque pas d’être dérouté par les automatismes obscures de Boot-Repair (cf. la coche automatisée décrite au point 5).
Et je suis du même avis que malbo sur le fait que SG2D puisse redonner confiance et espoir au novice.
Hors ligne
#5 Le 08/12/2014, à 08:54
- malbo
Re : [Essai] Ubuntu installé seul en mode EFI : débridage UEFI
Pour documenter un peu mieux la manip décrite dans le post #1, je la refais en prenant soin de faire un état des lieux avant et après manip.
1) État des lieux avant manip :
Je fais un Boot-Info depuis la session du Ubuntu installé :
Boot Info Script e7fc706 + Boot-Repair extra info [Boot-Info 23Nov2014]
============================= Boot Info Summary: ===============================
=> Windows 7/8/2012 is installed in the MBR of /dev/sda.
sda1: __________________________________________________________________________
File system: vfat
Boot sector type: FAT32
Boot sector info: No errors found in the Boot Parameter Block.
Operating System:
Boot files: /EFI/ubuntu/MokManager.efi /EFI/ubuntu/grubx64.efi
/EFI/ubuntu/shimx64.efi
sda2: __________________________________________________________________________
File system: ext4
Boot sector type: -
Boot sector info:
Operating System: Ubuntu 14.04.1 LTS
Boot files: /boot/grub/grub.cfg /etc/fstab
sda3: __________________________________________________________________________
File system: swap
Boot sector type: -
Boot sector info:
============================ Drive/Partition Info: =============================
Drive: sda _____________________________________________________________________
Disk /dev/sda: 64.4 GB, 64424509440 bytes
255 heads, 63 sectors/track, 7832 cylinders, total 125829120 sectors
Units = sectors of 1 * 512 = 512 bytes
Sector size (logical/physical): 512 bytes / 512 bytes
Partition Boot Start Sector End Sector # of Sectors Id System
/dev/sda1 1 125,829,119 125,829,119 ee GPT
GUID Partition Table detected.
Partition Start Sector End Sector # of Sectors System
/dev/sda1 2,048 1,050,623 1,048,576 EFI System partition
/dev/sda2 1,050,624 123,734,015 122,683,392 Data partition (Linux)
/dev/sda3 123,734,016 125,827,071 2,093,056 Swap partition (Linux)
"blkid" output: ________________________________________________________________
Device UUID TYPE LABEL
/dev/sda1 EEE7-C6B2 vfat
/dev/sda2 dc797a0b-6b4e-4dff-b012-340557c9b356 ext4
/dev/sda3 da9f5ed3-0bbd-4dbf-a368-61cacb84cfd1 swap
================================ Mount points: =================================
Device Mount_Point Type Options
/dev/sda1 /boot/efi vfat (rw)
/dev/sda2 / ext4 (rw,errors=remount-ro)
=========================== sda2/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 [ "${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 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,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 dc797a0b-6b4e-4dff-b012-340557c9b356
else
search --no-floppy --fs-uuid --set=root dc797a0b-6b4e-4dff-b012-340557c9b356
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=-1
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
if background_color 44,0,30; then
clear
fi
### 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-dc797a0b-6b4e-4dff-b012-340557c9b356' {
recordfail
load_video
gfxmode $linux_gfx_mode
insmod gzio
insmod part_gpt
insmod ext2
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 dc797a0b-6b4e-4dff-b012-340557c9b356
else
search --no-floppy --fs-uuid --set=root dc797a0b-6b4e-4dff-b012-340557c9b356
fi
linux /boot/vmlinuz-3.13.0-40-generic.efi.signed root=UUID=dc797a0b-6b4e-4dff-b012-340557c9b356 ro quiet splash $vt_handoff
initrd /boot/initrd.img-3.13.0-40-generic
}
submenu 'Options avancées pour Ubuntu' $menuentry_id_option 'gnulinux-advanced-dc797a0b-6b4e-4dff-b012-340557c9b356' {
menuentry 'Ubuntu, avec Linux 3.13.0-40-generic' --class ubuntu --class gnu-linux --class gnu --class os $menuentry_id_option 'gnulinux-3.13.0-40-generic-advanced-dc797a0b-6b4e-4dff-b012-340557c9b356' {
recordfail
load_video
gfxmode $linux_gfx_mode
insmod gzio
insmod part_gpt
insmod ext2
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 dc797a0b-6b4e-4dff-b012-340557c9b356
else
search --no-floppy --fs-uuid --set=root dc797a0b-6b4e-4dff-b012-340557c9b356
fi
echo 'Chargement de Linux 3.13.0-40-generic…'
linux /boot/vmlinuz-3.13.0-40-generic.efi.signed root=UUID=dc797a0b-6b4e-4dff-b012-340557c9b356 ro quiet splash $vt_handoff
echo 'Chargement du disque mémoire initial…'
initrd /boot/initrd.img-3.13.0-40-generic
}
menuentry 'Ubuntu, with Linux 3.13.0-40-generic (recovery mode)' --class ubuntu --class gnu-linux --class gnu --class os $menuentry_id_option 'gnulinux-3.13.0-40-generic-recovery-dc797a0b-6b4e-4dff-b012-340557c9b356' {
recordfail
load_video
insmod gzio
insmod part_gpt
insmod ext2
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 dc797a0b-6b4e-4dff-b012-340557c9b356
else
search --no-floppy --fs-uuid --set=root dc797a0b-6b4e-4dff-b012-340557c9b356
fi
echo 'Chargement de Linux 3.13.0-40-generic…'
linux /boot/vmlinuz-3.13.0-40-generic.efi.signed root=UUID=dc797a0b-6b4e-4dff-b012-340557c9b356 ro recovery nomodeset
echo 'Chargement du disque mémoire initial…'
initrd /boot/initrd.img-3.13.0-40-generic
}
menuentry 'Ubuntu, avec Linux 3.13.0-32-generic' --class ubuntu --class gnu-linux --class gnu --class os $menuentry_id_option 'gnulinux-3.13.0-32-generic-advanced-dc797a0b-6b4e-4dff-b012-340557c9b356' {
recordfail
load_video
gfxmode $linux_gfx_mode
insmod gzio
insmod part_gpt
insmod ext2
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 dc797a0b-6b4e-4dff-b012-340557c9b356
else
search --no-floppy --fs-uuid --set=root dc797a0b-6b4e-4dff-b012-340557c9b356
fi
echo 'Chargement de Linux 3.13.0-32-generic…'
linux /boot/vmlinuz-3.13.0-32-generic root=UUID=dc797a0b-6b4e-4dff-b012-340557c9b356 ro quiet splash $vt_handoff
echo 'Chargement du disque mémoire initial…'
initrd /boot/initrd.img-3.13.0-32-generic
}
menuentry 'Ubuntu, with Linux 3.13.0-32-generic (recovery mode)' --class ubuntu --class gnu-linux --class gnu --class os $menuentry_id_option 'gnulinux-3.13.0-32-generic-recovery-dc797a0b-6b4e-4dff-b012-340557c9b356' {
recordfail
load_video
insmod gzio
insmod part_gpt
insmod ext2
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 dc797a0b-6b4e-4dff-b012-340557c9b356
else
search --no-floppy --fs-uuid --set=root dc797a0b-6b4e-4dff-b012-340557c9b356
fi
echo 'Chargement de Linux 3.13.0-32-generic…'
linux /boot/vmlinuz-3.13.0-32-generic root=UUID=dc797a0b-6b4e-4dff-b012-340557c9b356 ro recovery nomodeset
echo 'Chargement du disque mémoire initial…'
initrd /boot/initrd.img-3.13.0-32-generic
}
}
### END /etc/grub.d/10_linux ###
### BEGIN /etc/grub.d/20_linux_xen ###
### END /etc/grub.d/20_linux_xen ###
### BEGIN /etc/grub.d/20_memtest86+ ###
### 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 ###
--------------------------------------------------------------------------------
=============================== sda2/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/sda2 during installation
UUID=dc797a0b-6b4e-4dff-b012-340557c9b356 / ext4 errors=remount-ro 0 1
# /boot/efi was on /dev/sda1 during installation
UUID=EEE7-C6B2 /boot/efi vfat defaults 0 1
# swap was on /dev/sda3 during installation
UUID=da9f5ed3-0bbd-4dbf-a368-61cacb84cfd1 none swap sw 0 0
/dev/fd0 /media/floppy0 auto rw,user,noauto,exec,utf8 0 0
--------------------------------------------------------------------------------
ADDITIONAL INFORMATION :
=================== log of boot-info 2014-12-08__06h57 ===================
boot-info version : 4ppa17
boot-sav version : 4ppa17
glade2script version : 3.2.2~ppa47~saucy
boot-sav-extra version : 4ppa17
boot-info is executed in installed-session (Ubuntu 14.04.1 LTS, trusty, Ubuntu, x86_64)
CPU op-mode(s): 32-bit, 64-bit
BOOT_IMAGE=/boot/vmlinuz-3.13.0-40-generic.efi.signed root=UUID=dc797a0b-6b4e-4dff-b012-340557c9b356 ro quiet splash vt.handoff=7
WARNING: GPT (GUID Partition Table) detected on '/dev/sda'! The util fdisk doesn't support GPT. Use GNU Parted.
=================== os-prober:
/dev/sda2:L'OS actuellement utilisé - Ubuntu 14.04.1 LTS CurrentSession:linux
=================== blkid:
/dev/sda1: UUID="EEE7-C6B2" TYPE="vfat"
/dev/sda2: UUID="dc797a0b-6b4e-4dff-b012-340557c9b356" TYPE="ext4"
/dev/sda3: UUID="da9f5ed3-0bbd-4dbf-a368-61cacb84cfd1" TYPE="swap"
1 disks with OS, 1 OS : 1 Linux, 0 MacOS, 0 Windows, 0 unknown type OS.
Attention : identifiant de table de partitions GPT (GUID) détecté sur « /dev/sda ». L'utilitaire sfdisk ne prend pas GPT en charge. Utilisez GNU Parted.
WARNING: GPT (GUID Partition Table) detected on '/dev/sda'! The util fdisk doesn't support GPT. Use GNU Parted.
ls: impossible d'accéder à /dev/disk/by-id: Aucun fichier ou dossier de ce type
=================== /etc/grub.d/ :
drwxr-xr-x 2 root root 4096 juil. 23 00:21 grub.d
total 76
-rwxr-xr-x 1 root root 9424 mai 15 2014 00_header
-rwxr-xr-x 1 root root 6058 mai 8 2014 05_debian_theme
-rwxr-xr-x 1 root root 11608 mai 15 2014 10_linux
-rwxr-xr-x 1 root root 10412 mai 15 2014 20_linux_xen
-rwxr-xr-x 1 root root 1992 mars 12 2014 20_memtest86+
-rwxr-xr-x 1 root root 11692 mai 15 2014 30_os-prober
-rwxr-xr-x 1 root root 1416 mai 15 2014 30_uefi-firmware
-rwxr-xr-x 1 root root 214 mai 15 2014 40_custom
-rwxr-xr-x 1 root root 216 mai 15 2014 41_custom
-rw-r--r-- 1 root root 483 mai 15 2014 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_HIDDEN_TIMEOUT=0
GRUB_HIDDEN_TIMEOUT_QUIET=true
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 sda2: UUID=EEE7-C6B2 (sda1)
ls /sys/firmware/efi/vars : RTC-378d7b65-8da9-4773-b6e4-a47826a833e1,PlatformLangCodes-8be4df61-93ca-11d2-aa0d-00e098032b8c,PlatformLang-8be4df61-93ca-11d2-aa0d-00e098032b8c,new_var,MTC-eb704011-1402-11d3-8e77-00a0c969723b,MemoryTypeInformation-4c19049f-4137-4dd3-9c10-8b97a83ffdfa,LangCodes-8be4df61-93ca-11d2-aa0d-00e098032b8c,Lang-8be4df61-93ca-11d2-aa0d-00e098032b8c,HDDP-fab7e9e1-39dd-4f2b-8408-e20e906cb6de,del_var,ConsoleOutMode-793d9786-44dc-4709-b57f-85b8e8fdbfd2,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,Boot0006-8be4df61-93ca-11d2-aa0d-00e098032b8c,Boot0004-8be4df61-93ca-11d2-aa0d-00e098032b8c,Boot0002-8be4df61-93ca-11d2-aa0d-00e098032b8c,Boot0001-8be4df61-93ca-11d2-aa0d-00e098032b8c,Boot0000-8be4df61-93ca-11d2-aa0d-00e098032b8c,
Veuillez indiquer ce message à boot.repair@gmail.com
ls /sys/firmware/efi/vars : RTC-378d7b65-8da9-4773-b6e4-a47826a833e1,PlatformLangCodes-8be4df61-93ca-11d2-aa0d-00e098032b8c,PlatformLang-8be4df61-93ca-11d2-aa0d-00e098032b8c,new_var,MTC-eb704011-1402-11d3-8e77-00a0c969723b,MemoryTypeInformation-4c19049f-4137-4dd3-9c10-8b97a83ffdfa,LangCodes-8be4df61-93ca-11d2-aa0d-00e098032b8c,Lang-8be4df61-93ca-11d2-aa0d-00e098032b8c,HDDP-fab7e9e1-39dd-4f2b-8408-e20e906cb6de,del_var,ConsoleOutMode-793d9786-44dc-4709-b57f-85b8e8fdbfd2,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,Boot0006-8be4df61-93ca-11d2-aa0d-00e098032b8c,Boot0004-8be4df61-93ca-11d2-aa0d-00e098032b8c,Boot0002-8be4df61-93ca-11d2-aa0d-00e098032b8c,Boot0001-8be4df61-93ca-11d2-aa0d-00e098032b8c,Boot0000-8be4df61-93ca-11d2-aa0d-00e098032b8c,
Special SecureBoot. Veuillez indiquer ce message à boot.repair@gmail.com
efibootmgr -v
BootCurrent: 0001
BootOrder: 0001,0002,0000,0004,0006
Boot0000* EFI VMware Virtual SCSI Hard Drive (0.0) ACPI(a0341d0,0)PCI(15,0)PCI(0,0)SCSI(0,0)
Boot0001* ubuntu HD(1,800,100000,4e005f29-ec7a-4f62-9dd3-7e590d3ea561)File(EFIubuntushimx64.efi)
Boot0002* EFI VMware Virtual SCSI CDROM Drive (2.0) ACPI(a0341d0,0)PCI(15,0)PCI(0,0)SCSI(2,0)
Boot0004* EFI Internal Shell (Unsupported option) MM(b,3efba000,3f344fff)
Boot0006* EFI Network ACPI(a0341d0,0)PCI(16,0)PCI(0,0)MAC(000c29ca56ea,0)
=================== UEFI/Legacy mode:
Unusual EFI: Veuillez indiquer ce message à boot.repair@gmail.com
BIOS is EFI-compatible, and is setup in EFI-mode for this installed-session.
SecureBoot enabled.
=================== PARTITIONS & DISKS:
sda2 : 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, .
sda1 : sda, not-sepboot, no-grubenv nogrub, no-docgrub, no-update-grub, 32, no-boot, no-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, /boot/efi.
sda : GPT, no-BIOS_boot, has-correctEFI, not-usb, has-os, 2048 sectors * 512 bytes
=================== parted -l:
Model: VMware, VMware Virtual S (scsi)
Disk /dev/sda: 64.4GB
Sector size (logical/physical): 512B/512B
Partition Table: gpt
Number Start End Size File system Name Flags
1 1049kB 538MB 537MB fat32 boot
2 538MB 63.4GB 62.8GB ext4
3 63.4GB 64.4GB 1072MB linux-swap(v1)
=================== parted -lm:
BYT;
/dev/sda:64.4GB:scsi:512:512:gpt:VMware, VMware Virtual S;
1:1049kB:538MB:537MB:fat32::boot;
2:538MB:63.4GB:62.8GB:ext4::;
3:63.4GB:64.4GB:1072MB:linux-swap(v1)::;
=================== mount:
/dev/sda2 on / type ext4 (rw,errors=remount-ro)
proc on /proc type proc (rw,noexec,nosuid,nodev)
sysfs on /sys type sysfs (rw,noexec,nosuid,nodev)
none on /sys/fs/cgroup type tmpfs (rw)
none on /sys/fs/fuse/connections type fusectl (rw)
none on /sys/kernel/debug type debugfs (rw)
none on /sys/kernel/security type securityfs (rw)
none on /sys/firmware/efi/efivars type efivarfs (rw)
udev on /dev type devtmpfs (rw,mode=0755)
devpts on /dev/pts type devpts (rw,noexec,nosuid,gid=5,mode=0620)
tmpfs on /run type tmpfs (rw,noexec,nosuid,size=10%,mode=0755)
none on /run/lock type tmpfs (rw,noexec,nosuid,nodev,size=5242880)
none on /run/shm type tmpfs (rw,nosuid,nodev)
none on /run/user type tmpfs (rw,noexec,nosuid,nodev,size=104857600,mode=0755)
none on /sys/fs/pstore type pstore (rw)
/dev/sda1 on /boot/efi type vfat (rw)
systemd on /sys/fs/cgroup/systemd type cgroup (rw,noexec,nosuid,nodev,none,name=systemd)
gvfsd-fuse on /run/user/1000/gvfs type fuse.gvfsd-fuse (rw,nosuid,nodev,user=malbo)
=================== ls:
/sys/block/fd0 (filtered): alignment_offset bdi capability dev device discard_alignment events events_async events_poll_msecs ext_range holders inflight power queue range removable ro size slaves stat subsystem trace uevent
/sys/block/sda (filtered): alignment_offset bdi capability dev device discard_alignment events events_async events_poll_msecs ext_range holders inflight power queue range removable ro sda1 sda2 sda3 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 holders inflight power queue range removable ro size slaves stat subsystem trace uevent
/dev (filtered): agpgart autofs block bsg btrfs-control bus cdrom char console core cpu cpu_dma_latency cuse disk dri ecryptfs fb0 fd fd0 full fuse hidraw0 hidraw1 hidraw2 hpet input kmsg log lp0 mapper mcelog mem net network_latency network_throughput null parport0 port ppp psaux ptmx ptp0 pts random rfkill rtc rtc0 sda sda1 sda2 sda3 sg0 sg1 shm snapshot snd sr0 stderr stdin stdout uhid uinput urandom vga_arbiter vhci vhost-net vmci zero
ls /dev/mapper: control
ls /boot/efi/1:
=================== hexdump -n512 -C /dev/sda1
00000000 eb 58 90 6d 6b 66 73 2e 66 61 74 00 02 08 20 00 |.X.mkfs.fat... .|
00000010 02 00 00 00 00 f8 00 00 3f 00 ff 00 00 08 00 00 |........?.......|
00000020 00 00 10 00 fe 03 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 b2 c6 e7 ee 4e 4f 20 4e 41 4d 45 20 20 |..)....NO NAME |
00000050 20 20 46 41 54 33 32 20 20 20 0e 1f be 77 7c ac | FAT32 ...w|.|
00000060 22 c0 74 0b 56 b4 0e bb 07 00 cd 10 5e eb f0 32 |".t.V.......^..2|
00000070 e4 cd 16 cd 19 eb fe 54 68 69 73 20 69 73 20 6e |.......This is n|
00000080 6f 74 20 61 20 62 6f 6f 74 61 62 6c 65 20 64 69 |ot a bootable di|
00000090 73 6b 2e 20 20 50 6c 65 61 73 65 20 69 6e 73 65 |sk. Please inse|
000000a0 72 74 20 61 20 62 6f 6f 74 61 62 6c 65 20 66 6c |rt a bootable fl|
000000b0 6f 70 70 79 20 61 6e 64 0d 0a 70 72 65 73 73 20 |oppy and..press |
000000c0 61 6e 79 20 6b 65 79 20 74 6f 20 74 72 79 20 61 |any key to try a|
000000d0 67 61 69 6e 20 2e 2e 2e 20 0d 0a 00 00 00 00 00 |gain ... .......|
000000e0 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 |................|
*
000001f0 00 00 00 00 00 00 00 00 00 00 00 00 00 00 55 aa |..............U.|
00000200
WARNING: GPT (GUID Partition Table) detected on '/dev/sda'! The util fdisk doesn't support GPT. Use GNU Parted.
=================== df -Th:
Filesystem Type Size Used Avail Use% Mounted on
/dev/sda2 ext4 58G 4.1G 51G 8% /
none tmpfs 4.0K 0 4.0K 0% /sys/fs/cgroup
udev devtmpfs 487M 12K 487M 1% /dev
tmpfs tmpfs 100M 1.4M 98M 2% /run
none tmpfs 5.0M 0 5.0M 0% /run/lock
none tmpfs 497M 156K 497M 1% /run/shm
none tmpfs 100M 72K 100M 1% /run/user
/dev/sda1 vfat 511M 3.4M 508M 1% /boot/efi
=================== fdisk -l:
Disk /dev/sda: 64.4 GB, 64424509440 bytes
255 heads, 63 sectors/track, 7832 cylinders, total 125829120 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 identifier: 0x00000000
Device Boot Start End Blocks Id System
/dev/sda1 1 125829119 62914559+ ee GPT
=================== Suggested repair
The default repair of the Boot-Repair utility would reinstall the grub-efi-amd64-signed of sda2, using the following options: sda1/boot/efi,
Additional repair would be performed: unhide-bootmenu-10s
=================== Final advice in case of suggested repair
N'oubliez pas de régler votre BIOS pour qu'il amorce sur le fichier sda1/efi/.../grub*.efi !
=================== User settings
The settings chosen by the user will not act on the boot.
2) débridage UEFI :
Il est réalisé avec Boot-Repair exactement comme décrit dans le post #1 avec les mêmes réglages de l'utilisation avancée de Boot-repair (case "Use the standard EFI file" cochée ; case "Secure Boot" décochée, ce qui entraîne que la case "Purge GRUB before reinstalling it" est automatiquement cochée).
En fin d'opération, Boot-Repair fait automatiquement ce Boot-Info dans lequel on peut voir des détails de la réparation qu'il a faite :
Boot Info Script e7fc706 + Boot-Repair extra info [Boot-Info 23Nov2014]
============================= Boot Info Summary: ===============================
=> Windows 7/8/2012 is installed in the MBR of /dev/sda.
sda1: __________________________________________________________________________
File system: vfat
Boot sector type: FAT32
Boot sector info: No errors found in the Boot Parameter Block.
Operating System:
Boot files: /EFI/Boot/bootx64.efi /EFI/ubuntu/MokManager.efi
/EFI/ubuntu/grubx64.efi /EFI/ubuntu/shimx64.efi
/EFI/Microsoft/Boot/bootmgfw.efi
/EFI/Microsoft/Boot/bootx64.efi
sda2: __________________________________________________________________________
File system: ext4
Boot sector type: -
Boot sector info:
Operating System: Ubuntu 14.04.1 LTS
Boot files: /boot/grub/grub.cfg /etc/fstab
sda3: __________________________________________________________________________
File system: swap
Boot sector type: -
Boot sector info:
============================ Drive/Partition Info: =============================
Drive: sda _____________________________________________________________________
Disk /dev/sda: 64.4 GB, 64424509440 bytes
255 heads, 63 sectors/track, 7832 cylinders, total 125829120 sectors
Units = sectors of 1 * 512 = 512 bytes
Sector size (logical/physical): 512 bytes / 512 bytes
Partition Boot Start Sector End Sector # of Sectors Id System
/dev/sda1 1 125,829,119 125,829,119 ee GPT
GUID Partition Table detected.
Partition Start Sector End Sector # of Sectors System
/dev/sda1 2,048 1,050,623 1,048,576 EFI System partition
/dev/sda2 1,050,624 123,734,015 122,683,392 Data partition (Linux)
/dev/sda3 123,734,016 125,827,071 2,093,056 Swap partition (Linux)
"blkid" output: ________________________________________________________________
Device UUID TYPE LABEL
/dev/loop0 squashfs
/dev/sda1 EEE7-C6B2 vfat
/dev/sda2 dc797a0b-6b4e-4dff-b012-340557c9b356 ext4
/dev/sda3 da9f5ed3-0bbd-4dbf-a368-61cacb84cfd1 swap
/dev/sr0 iso9660 Ubuntu 14.04.1 LTS amd64
================================ Mount points: =================================
Device Mount_Point Type Options
/dev/loop0 /rofs squashfs (ro,noatime)
/dev/sr0 /cdrom iso9660 (ro,noatime)
=========================== sda2/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 [ "${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 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,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 dc797a0b-6b4e-4dff-b012-340557c9b356
else
search --no-floppy --fs-uuid --set=root dc797a0b-6b4e-4dff-b012-340557c9b356
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=en_US
insmod gettext
fi
terminal_output gfxterm
if [ "${recordfail}" = 1 ] ; then
set timeout=10
else
if [ x$feature_timeout_style = xy ] ; then
set timeout_style=menu
set timeout=10
# Fallback normal timeout code in case the timeout_style feature is
# unavailable.
else
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
if background_color 44,0,30; then
clear
fi
### 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-dc797a0b-6b4e-4dff-b012-340557c9b356' {
recordfail
load_video
gfxmode $linux_gfx_mode
insmod gzio
insmod part_gpt
insmod ext2
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 dc797a0b-6b4e-4dff-b012-340557c9b356
else
search --no-floppy --fs-uuid --set=root dc797a0b-6b4e-4dff-b012-340557c9b356
fi
linux /boot/vmlinuz-3.13.0-40-generic root=UUID=dc797a0b-6b4e-4dff-b012-340557c9b356 ro quiet splash $vt_handoff
initrd /boot/initrd.img-3.13.0-40-generic
}
submenu 'Advanced options for Ubuntu' $menuentry_id_option 'gnulinux-advanced-dc797a0b-6b4e-4dff-b012-340557c9b356' {
menuentry 'Ubuntu, with Linux 3.13.0-40-generic' --class ubuntu --class gnu-linux --class gnu --class os $menuentry_id_option 'gnulinux-3.13.0-40-generic-advanced-dc797a0b-6b4e-4dff-b012-340557c9b356' {
recordfail
load_video
gfxmode $linux_gfx_mode
insmod gzio
insmod part_gpt
insmod ext2
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 dc797a0b-6b4e-4dff-b012-340557c9b356
else
search --no-floppy --fs-uuid --set=root dc797a0b-6b4e-4dff-b012-340557c9b356
fi
echo 'Loading Linux 3.13.0-40-generic ...'
linux /boot/vmlinuz-3.13.0-40-generic root=UUID=dc797a0b-6b4e-4dff-b012-340557c9b356 ro quiet splash $vt_handoff
echo 'Loading initial ramdisk ...'
initrd /boot/initrd.img-3.13.0-40-generic
}
menuentry 'Ubuntu, with Linux 3.13.0-40-generic (recovery mode)' --class ubuntu --class gnu-linux --class gnu --class os $menuentry_id_option 'gnulinux-3.13.0-40-generic-recovery-dc797a0b-6b4e-4dff-b012-340557c9b356' {
recordfail
load_video
insmod gzio
insmod part_gpt
insmod ext2
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 dc797a0b-6b4e-4dff-b012-340557c9b356
else
search --no-floppy --fs-uuid --set=root dc797a0b-6b4e-4dff-b012-340557c9b356
fi
echo 'Loading Linux 3.13.0-40-generic ...'
linux /boot/vmlinuz-3.13.0-40-generic root=UUID=dc797a0b-6b4e-4dff-b012-340557c9b356 ro recovery nomodeset
echo 'Loading initial ramdisk ...'
initrd /boot/initrd.img-3.13.0-40-generic
}
menuentry 'Ubuntu, with Linux 3.13.0-32-generic' --class ubuntu --class gnu-linux --class gnu --class os $menuentry_id_option 'gnulinux-3.13.0-32-generic-advanced-dc797a0b-6b4e-4dff-b012-340557c9b356' {
recordfail
load_video
gfxmode $linux_gfx_mode
insmod gzio
insmod part_gpt
insmod ext2
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 dc797a0b-6b4e-4dff-b012-340557c9b356
else
search --no-floppy --fs-uuid --set=root dc797a0b-6b4e-4dff-b012-340557c9b356
fi
echo 'Loading Linux 3.13.0-32-generic ...'
linux /boot/vmlinuz-3.13.0-32-generic root=UUID=dc797a0b-6b4e-4dff-b012-340557c9b356 ro quiet splash $vt_handoff
echo 'Loading initial ramdisk ...'
initrd /boot/initrd.img-3.13.0-32-generic
}
menuentry 'Ubuntu, with Linux 3.13.0-32-generic (recovery mode)' --class ubuntu --class gnu-linux --class gnu --class os $menuentry_id_option 'gnulinux-3.13.0-32-generic-recovery-dc797a0b-6b4e-4dff-b012-340557c9b356' {
recordfail
load_video
insmod gzio
insmod part_gpt
insmod ext2
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 dc797a0b-6b4e-4dff-b012-340557c9b356
else
search --no-floppy --fs-uuid --set=root dc797a0b-6b4e-4dff-b012-340557c9b356
fi
echo 'Loading Linux 3.13.0-32-generic ...'
linux /boot/vmlinuz-3.13.0-32-generic root=UUID=dc797a0b-6b4e-4dff-b012-340557c9b356 ro recovery nomodeset
echo 'Loading initial ramdisk ...'
initrd /boot/initrd.img-3.13.0-32-generic
}
}
### END /etc/grub.d/10_linux ###
### BEGIN /etc/grub.d/20_linux_xen ###
### END /etc/grub.d/20_linux_xen ###
### BEGIN /etc/grub.d/25_custom ###
menuentry "EFI/ubuntu/MokManager.efi" {
search --fs-uuid --no-floppy --set=root EEE7-C6B2
chainloader (${root})/EFI/ubuntu/MokManager.efi
}
### END /etc/grub.d/25_custom ###
### 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 ###
--------------------------------------------------------------------------------
=============================== sda2/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/sda2 during installation
UUID=dc797a0b-6b4e-4dff-b012-340557c9b356 / ext4 errors=remount-ro 0 1
# /boot/efi was on /dev/sda1 during installation
#UUID=EEE7-C6B2 /boot/efi vfat defaults 0 1
# swap was on /dev/sda3 during installation
UUID=da9f5ed3-0bbd-4dbf-a368-61cacb84cfd1 none swap sw 0 0
/dev/fd0 /media/floppy0 auto rw,user,noauto,exec,utf8 0 0
UUID=EEE7-C6B2 /boot/efi vfat defaults 0 1
--------------------------------------------------------------------------------
=============================== StdErr Messages: ===============================
File descriptor 9 (/proc/11860/mounts) leaked on lvs invocation. Parent PID 22989: bash
File descriptor 63 (pipe:[47591]) leaked on lvs invocation. Parent PID 22989: bash
No volume groups found
ADDITIONAL INFORMATION :
=================== log of boot-repair 2014-12-08__06h09 ===================
boot-repair version : 4ppa17
boot-sav version : 4ppa17
glade2script version : 3.2.2~ppa47~saucy
boot-sav-extra version : 4ppa17
boot-repair is executed in live-session (Ubuntu 14.04.1 LTS, trusty, Ubuntu, x86_64)
CPU op-mode(s): 32-bit, 64-bit
BOOT_IMAGE=/casper/vmlinuz.efi file=/cdrom/preseed/ubuntu.seed boot=casper quiet splash --
ls: cannot access /home/usr/.config: No such file or directory
WARNING: GPT (GUID Partition Table) detected on '/dev/sda'! The util fdisk doesn't support GPT. Use GNU Parted.
=================== os-prober:
/dev/sda2:Ubuntu 14.04.1 LTS (14.04):Ubuntu:linux
=================== blkid:
/dev/loop0: TYPE="squashfs"
/dev/sda1: UUID="EEE7-C6B2" TYPE="vfat"
/dev/sda2: UUID="dc797a0b-6b4e-4dff-b012-340557c9b356" TYPE="ext4"
/dev/sda3: UUID="da9f5ed3-0bbd-4dbf-a368-61cacb84cfd1" TYPE="swap"
/dev/sr0: LABEL="Ubuntu 14.04.1 LTS amd64" TYPE="iso9660"
1 disks with OS, 1 OS : 1 Linux, 0 MacOS, 0 Windows, 0 unknown type OS.
WARNING: GPT (GUID Partition Table) detected on '/dev/sda'! The util sfdisk doesn't support GPT. Use GNU Parted.
WARNING: GPT (GUID Partition Table) detected on '/dev/sda'! The util fdisk doesn't support GPT. Use GNU Parted.
ls: cannot access /dev/disk/by-id: No such file or directory
=================== sda2/etc/grub.d/ :
drwxr-xr-x 2 root root 4096 Jul 22 22:21 grub.d
total 76
-rwxr-xr-x 1 root root 9424 May 15 2014 00_header
-rwxr-xr-x 1 root root 6058 May 8 2014 05_debian_theme
-rwxr-xr-x 1 root root 11608 May 15 2014 10_linux
-rwxr-xr-x 1 root root 10412 May 15 2014 20_linux_xen
-rwxr-xr-x 1 root root 1992 Mar 12 2014 20_memtest86+
-rwxr-xr-x 1 root root 11692 May 15 2014 30_os-prober
-rwxr-xr-x 1 root root 1416 May 15 2014 30_uefi-firmware
-rwxr-xr-x 1 root root 214 May 15 2014 40_custom
-rwxr-xr-x 1 root root 216 May 15 2014 41_custom
-rw-r--r-- 1 root root 483 May 15 2014 README
=================== sda2/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_HIDDEN_TIMEOUT=0
GRUB_HIDDEN_TIMEOUT_QUIET=true
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 sda2: UUID=EEE7-C6B2 (sda1)
ls /sys/firmware/efi/vars : RTC-378d7b65-8da9-4773-b6e4-a47826a833e1,PlatformLangCodes-8be4df61-93ca-11d2-aa0d-00e098032b8c,PlatformLang-8be4df61-93ca-11d2-aa0d-00e098032b8c,new_var,MTC-eb704011-1402-11d3-8e77-00a0c969723b,MemoryTypeInformation-4c19049f-4137-4dd3-9c10-8b97a83ffdfa,LangCodes-8be4df61-93ca-11d2-aa0d-00e098032b8c,Lang-8be4df61-93ca-11d2-aa0d-00e098032b8c,HDDP-fab7e9e1-39dd-4f2b-8408-e20e906cb6de,del_var,ConsoleOutMode-793d9786-44dc-4709-b57f-85b8e8fdbfd2,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,Boot0006-8be4df61-93ca-11d2-aa0d-00e098032b8c,Boot0004-8be4df61-93ca-11d2-aa0d-00e098032b8c,Boot0002-8be4df61-93ca-11d2-aa0d-00e098032b8c,Boot0001-8be4df61-93ca-11d2-aa0d-00e098032b8c,Boot0000-8be4df61-93ca-11d2-aa0d-00e098032b8c,
Please report this message to boot.repair@gmail.com
=================== UEFI/Legacy mode:
Unusual EFI: Please report this message to boot.repair@gmail.com
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, 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, /mnt/boot-sav/sda1.
sda2 : 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, /mnt/boot-sav/sda2.
sda : GPT, no-BIOS_boot, has-correctEFI, not-usb, has-os, 2048 sectors * 512 bytes
=================== parted -l:
Model: VMware, VMware Virtual S (scsi)
Disk /dev/sda: 64.4GB
Sector size (logical/physical): 512B/512B
Partition Table: gpt
Number Start End Size File system Name Flags
1 1049kB 538MB 537MB fat32 boot
2 538MB 63.4GB 62.8GB ext4
3 63.4GB 64.4GB 1072MB linux-swap(v1)
Warning: Unable to open /dev/sr0 read-write (Read-only file system). /dev/sr0
has been opened read-only.
Error: Can't have a partition outside the disk!
=================== parted -lm:
BYT;
/dev/sda:64.4GB:scsi:512:512:gpt:VMware, VMware Virtual S;
1:1049kB:538MB:537MB:fat32::boot;
2:538MB:63.4GB:62.8GB:ext4::;
3:63.4GB:64.4GB:1072MB:linux-swap(v1)::;
Warning: Unable to open /dev/sr0 read-write (Read-only file system). /dev/sr0
has been opened read-only.
Error: Can't have a partition outside the disk!
=================== mount:
/cow on / type overlayfs (rw)
proc on /proc type proc (rw,noexec,nosuid,nodev)
sysfs on /sys type sysfs (rw,noexec,nosuid,nodev)
udev on /dev type devtmpfs (rw,mode=0755)
devpts on /dev/pts type devpts (rw,noexec,nosuid,gid=5,mode=0620)
tmpfs on /run type tmpfs (rw,noexec,nosuid,size=10%,mode=0755)
/dev/sr0 on /cdrom type iso9660 (ro,noatime)
/dev/loop0 on /rofs type squashfs (ro,noatime)
none on /sys/fs/cgroup type tmpfs (rw)
none on /sys/fs/fuse/connections type fusectl (rw)
none on /sys/kernel/debug type debugfs (rw)
none on /sys/kernel/security type securityfs (rw)
none on /sys/firmware/efi/efivars type efivarfs (rw)
tmpfs on /tmp type tmpfs (rw,nosuid,nodev)
none on /run/lock type tmpfs (rw,noexec,nosuid,nodev,size=5242880)
none on /run/shm type tmpfs (rw,nosuid,nodev)
none on /run/user type tmpfs (rw,noexec,nosuid,nodev,size=104857600,mode=0755)
none on /sys/fs/pstore type pstore (rw)
systemd on /sys/fs/cgroup/systemd type cgroup (rw,noexec,nosuid,nodev,none,name=systemd)
gvfsd-fuse on /run/user/999/gvfs type fuse.gvfsd-fuse (rw,nosuid,nodev,user=ubuntu)
/dev/sda1 on /mnt/boot-sav/sda1 type vfat (rw)
/dev/sda2 on /mnt/boot-sav/sda2 type ext4 (rw)
=================== ls:
/sys/block/fd0 (filtered): alignment_offset bdi capability dev device discard_alignment events events_async events_poll_msecs ext_range holders inflight power queue range removable ro size slaves stat subsystem trace uevent
/sys/block/sda (filtered): alignment_offset bdi capability dev device discard_alignment events events_async events_poll_msecs ext_range holders inflight power queue range removable ro sda1 sda2 sda3 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 holders inflight power queue range removable ro size slaves stat subsystem trace uevent
/dev (filtered): agpgart autofs block bsg btrfs-control bus cdrom char console core cpu cpu_dma_latency cuse disk dri ecryptfs fb0 fd fd0 full fuse hidraw0 hidraw1 hidraw2 hpet input kmsg log lp0 mapper mcelog mem net network_latency network_throughput null parport0 port ppp psaux ptmx ptp0 pts random rfkill rtc rtc0 sda sda1 sda2 sda3 sg0 sg1 shm snapshot snd sr0 stderr stdin stdout uhid uinput urandom vga_arbiter vhci vhost-net vmci zero
ls /dev/mapper: control
ls /mnt/boot-sav/sda1/1:
=================== hexdump -n512 -C /dev/sda1
00000000 eb 58 90 6d 6b 66 73 2e 66 61 74 00 02 08 20 00 |.X.mkfs.fat... .|
00000010 02 00 00 00 00 f8 00 00 3f 00 ff 00 00 08 00 00 |........?.......|
00000020 00 00 10 00 fe 03 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 b2 c6 e7 ee 4e 4f 20 4e 41 4d 45 20 20 |..)....NO NAME |
00000050 20 20 46 41 54 33 32 20 20 20 0e 1f be 77 7c ac | FAT32 ...w|.|
00000060 22 c0 74 0b 56 b4 0e bb 07 00 cd 10 5e eb f0 32 |".t.V.......^..2|
00000070 e4 cd 16 cd 19 eb fe 54 68 69 73 20 69 73 20 6e |.......This is n|
00000080 6f 74 20 61 20 62 6f 6f 74 61 62 6c 65 20 64 69 |ot a bootable di|
00000090 73 6b 2e 20 20 50 6c 65 61 73 65 20 69 6e 73 65 |sk. Please inse|
000000a0 72 74 20 61 20 62 6f 6f 74 61 62 6c 65 20 66 6c |rt a bootable fl|
000000b0 6f 70 70 79 20 61 6e 64 0d 0a 70 72 65 73 73 20 |oppy and..press |
000000c0 61 6e 79 20 6b 65 79 20 74 6f 20 74 72 79 20 61 |any key to try a|
000000d0 67 61 69 6e 20 2e 2e 2e 20 0d 0a 00 00 00 00 00 |gain ... .......|
000000e0 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 |................|
*
000001f0 00 00 00 00 00 00 00 00 00 00 00 00 00 00 55 aa |..............U.|
00000200
WARNING: GPT (GUID Partition Table) detected on '/dev/sda'! The util fdisk doesn't support GPT. Use GNU Parted.
=================== df -Th:
Filesystem Type Size Used Avail Use% Mounted on
/cow overlayfs 497M 98M 399M 20% /
udev devtmpfs 486M 12K 486M 1% /dev
tmpfs tmpfs 100M 1.4M 98M 2% /run
/dev/sr0 iso9660 981M 981M 0 100% /cdrom
/dev/loop0 squashfs 939M 939M 0 100% /rofs
none tmpfs 4.0K 0 4.0K 0% /sys/fs/cgroup
tmpfs tmpfs 497M 1.1M 496M 1% /tmp
none tmpfs 5.0M 0 5.0M 0% /run/lock
none tmpfs 497M 80K 497M 1% /run/shm
none tmpfs 100M 64K 100M 1% /run/user
/dev/sda1 vfat 511M 3.4M 508M 1% /mnt/boot-sav/sda1
/dev/sda2 ext4 58G 4.0G 51G 8% /mnt/boot-sav/sda2
=================== fdisk -l:
Disk /dev/sda: 64.4 GB, 64424509440 bytes
255 heads, 63 sectors/track, 7832 cylinders, total 125829120 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 identifier: 0x00000000
Device Boot Start End Blocks Id System
/dev/sda1 1 125829119 62914559+ ee GPT
Partition outside the disk detected.
Partition outside the disk detected.
=================== Default settings of Boot Repair
The default repair of the Boot-Repair utility would reinstall the grub-efi-amd64-signed of sda2, using the following options: sda1/boot/efi,
Additional repair would be performed: unhide-bootmenu-10s
=================== Final advice in case of suggested repair
Please do not forget to make your BIOS boot on sda1/efi/.../grub*.efi file!
=================== User settings
The settings chosen by the user will purge (in order to unsign-grub) and reinstall the grub-efi of sda2, using the following options: sda1/boot/efi,
Additional repair will be performed: unhide-bootmenu-10s use-standard-efi-file rename-ms-efi
/boot/efi added in sda2/fstab
Mount sda1 on /mnt/boot-sav/sda2/boot/efi
ls /mnt/boot-sav/sda2/boot/efi/1:
chroot /mnt/boot-sav/sda2 apt-get -y --force-yes update
Purge the GRUB of sda2
grub-efi available
The following NEW packages will be installed:
grub-efi
0 upgraded, 1 newly installed, 0 to remove and 236 not upgraded.
DEBCHECK debOK, grub-efi
DEBCHECK debOK
shim-signed available
linux-signed-generic available
Please type: sudo chroot "/mnt/boot-sav/sda2" dpkg --configure -ansudo chroot "/mnt/boot-sav/sda2" apt-get install -fynsudo chroot "/mnt/boot-sav/sda2" apt-get purge -y --force-yes grub*-common shim-signed linux-signed*
=================== sda2/etc/grub.d/ :
drwxr-xr-x 2 root root 4096 Dec 8 06:13 grub.d
total 4
-rwxr-xr-x 1 root root 1992 Mar 12 2014 20_memtest86+
/boot/efi detected in the fstab of sda2: UUID=EEE7-C6B2 (sda1)
Then type: sudo chroot "/mnt/boot-sav/sda2" apt-get install -y --force-yes grub-efi linux-generic
=================== sda2/etc/grub.d/ :
drwxr-xr-x 2 root root 4096 Dec 8 06:14 grub.d
drwxr-xr-x 2 root root 4096 Dec 8 06:13 grub.d.bak
total 72
-rwxr-xr-x 1 root root 9424 May 15 2014 00_header
-rwxr-xr-x 1 root root 6058 May 8 2014 05_debian_theme
-rwxr-xr-x 1 root root 11608 May 15 2014 10_linux
-rwxr-xr-x 1 root root 10412 May 15 2014 20_linux_xen
-rwxr-xr-x 1 root root 11692 May 15 2014 30_os-prober
-rwxr-xr-x 1 root root 1416 May 15 2014 30_uefi-firmware
-rwxr-xr-x 1 root root 214 May 15 2014 40_custom
-rwxr-xr-x 1 root root 216 May 15 2014 41_custom
-rw-r--r-- 1 root root 483 May 15 2014 README
=================== sda2/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_HIDDEN_TIMEOUT=0
GRUB_HIDDEN_TIMEOUT_QUIET=true
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 sda2: UUID=EEE7-C6B2 (sda1)
Unhide GRUB boot menu in sda2/etc/default/grub
=================== sda2/etc/grub.d/ :
drwxr-xr-x 2 root root 4096 Dec 8 06:14 grub.d
drwxr-xr-x 2 root root 4096 Dec 8 06:13 grub.d.bak
total 72
-rwxr-xr-x 1 root root 9424 May 15 2014 00_header
-rwxr-xr-x 1 root root 6058 May 8 2014 05_debian_theme
-rwxr-xr-x 1 root root 11608 May 15 2014 10_linux
-rwxr-xr-x 1 root root 10412 May 15 2014 20_linux_xen
-rwxr-xr-x 1 root root 11692 May 15 2014 30_os-prober
-rwxr-xr-x 1 root root 1416 May 15 2014 30_uefi-firmware
-rwxr-xr-x 1 root root 214 May 15 2014 40_custom
-rwxr-xr-x 1 root root 216 May 15 2014 41_custom
-rw-r--r-- 1 root root 483 May 15 2014 README
=================== sda2/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_HIDDEN_TIMEOUT=0
GRUB_HIDDEN_TIMEOUT_QUIET=true
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 sda2: UUID=EEE7-C6B2 (sda1)
*******lspci -nnk | grep -iA3 vga
00:0f.0 VGA compatible controller [0300]: VMware SVGA II Adapter [15ad:0405]
Subsystem: VMware SVGA II Adapter [15ad:0405]
Kernel driver in use: vmwgfx
00:11.0 PCI bridge [0604]: VMware PCI bridge [15ad:0790] (rev 02)
00:15.0 PCI bridge [0604]: VMware PCI Express Root Port [15ad:07a0] (rev 01)
*******
grub-install --version
grub-install (GRUB) 2.02~beta2-9ubuntu1,grub-install (GRUB) 2.
chroot /mnt/boot-sav/sda2 efibootmgr -v
BootCurrent: 0002
BootOrder: 0001,0002,0000,0004,0006
Boot0000* EFI VMware Virtual SCSI Hard Drive (0.0) ACPI(a0341d0,0)PCI(15,0)PCI(0,0)SCSI(0,0)
Boot0001* ubuntu HD(1,800,100000,4e005f29-ec7a-4f62-9dd3-7e590d3ea561)File(EFIubuntugrubx64.efi)
Boot0002* EFI VMware Virtual SCSI CDROM Drive (2.0) ACPI(a0341d0,0)PCI(15,0)PCI(0,0)SCSI(2,0)
Boot0004* EFI Internal Shell (Unsupported option) MM(b,3efba000,3f344fff)
Boot0006* EFI Network ACPI(a0341d0,0)PCI(16,0)PCI(0,0)MAC(000c29ca56ea,0)
chroot /mnt/boot-sav/sda2 uname -r
Kernel: 3.13.0-32-generic
Reinstall the grub-efi linux-generic of sda2
Installing for x86_64-efi platform.
Installation finished. No error reported.
grub-install --efi-directory=/boot/efi --target=x86_64-efi : exit code of grub-install :0
ls /mnt/boot-sav/sda2/boot/efi/1:
df /dev/sda1
cp /mnt/boot-sav/sda2/boot/efi/EFI/ubuntu/grubx64.efi /mnt/boot-sav/sda2/boot/efi/EFI/Microsoft/Boot/bootmgfw.efi (& .grb)
df /dev/sda1
cp /mnt/boot-sav/sda2/boot/efi/EFI/ubuntu/grubx64.efi /mnt/boot-sav/sda2/boot/efi/EFI/Microsoft/Boot/bootx64.efi (& .grb)
df /dev/sda1
cp /mnt/boot-sav/sda2/boot/efi/EFI/ubuntu/grubx64.efi /mnt/boot-sav/sda2/boot/efi/EFI/Boot/bootx64.efi (& .grb)
ls /mnt/boot-sav/sda2/boot/efi/1:
Add /mnt/boot-sav/sda2/boot/efi efi entries in /mnt/boot-sav/sda2/etc/grub.d/25_custom
Adding custom /mnt/boot-sav/sda2/boot/efi/EFI/ubuntu/MokManager.efi
chroot /mnt/boot-sav/sda2 efibootmgr -v
BootCurrent: 0002
BootOrder: 0001,0002,0000,0004,0006
Boot0000* EFI VMware Virtual SCSI Hard Drive (0.0) ACPI(a0341d0,0)PCI(15,0)PCI(0,0)SCSI(0,0)
Boot0001* ubuntu HD(1,800,100000,4e005f29-ec7a-4f62-9dd3-7e590d3ea561)File(EFIubuntugrubx64.efi)
Boot0002* EFI VMware Virtual SCSI CDROM Drive (2.0) ACPI(a0341d0,0)PCI(15,0)PCI(0,0)SCSI(2,0)
Boot0004* EFI Internal Shell (Unsupported option) MM(b,3efba000,3f344fff)
Boot0006* EFI Network ACPI(a0341d0,0)PCI(16,0)PCI(0,0)MAC(000c29ca56ea,0)
chroot /mnt/boot-sav/sda2 update-grub
Generating grub configuration file ...
Found linux image: /boot/vmlinuz-3.13.0-40-generic
Found initrd image: /boot/initrd.img-3.13.0-40-generic
Found linux image: /boot/vmlinuz-3.13.0-32-generic
Found initrd image: /boot/initrd.img-3.13.0-32-generic
Unhide GRUB boot menu in sda2/boot/grub/grub.cfg
Boot successfully repaired.
You can now reboot your computer.
On peut trouver cet extrait :
=================== User settings
The settings chosen by the user will purge (in order to unsign-grub) and reinstall the grub-efi of sda2, using the following options: sda1/boot/efi,
Additional repair will be performed: unhide-bootmenu-10s use-standard-efi-file rename-ms-efi
On y voit que j'aurais paramétré Boot-Repair pour demander le renommage des fichiers Microsoft (mention "rename-ms-efi") : grosse connerie puisqu'à la base il n'y a pas de fichiers Microsoft dans l'installation (voir le Boot-Info de l'État des lieux avant manip). C'est encore une manip sous-marine de Boot-Repair : ce n'est pas que ce soit grave mais ça brouille l'écoute. A cause de ça, j'ai refait plusieurs fois la manip parce que je croyais que j'avais laissé traîner des traces de Windows dans mon installation, avant de me rendre compte que c'est Boot-Repair de sa propre initiative qui crée de toute pièce la directorie /EFI/Microsoft/ et tout ce qu'il bourre à l'intérieur.
Dans cet autre extrait, on voit que Boot-Repair crée les fichiers .efi qui sont des copies du fichier /EFI/ubuntu/grubx64.efi de la partition EFI :
cp /mnt/boot-sav/sda2/boot/efi/EFI/ubuntu/grubx64.efi /mnt/boot-sav/sda2/boot/efi/EFI/Microsoft/Boot/bootmgfw.efi (& .grb)
df /dev/sda1
cp /mnt/boot-sav/sda2/boot/efi/EFI/ubuntu/grubx64.efi /mnt/boot-sav/sda2/boot/efi/EFI/Microsoft/Boot/bootx64.efi (& .grb)
df /dev/sda1
cp /mnt/boot-sav/sda2/boot/efi/EFI/ubuntu/grubx64.efi /mnt/boot-sav/sda2/boot/efi/EFI/Boot/bootx64.efi (& .grb)
Le fichier qui nous intéresse dans la manip de débridage, c'est le fichier /EFI/Boot/bootx64.efi et là on voit écrit en clair qu'il est une copie du lanceur de grub (grubx64.efi)
3) Etat des lieux après manip :
Je fais un Boot-Info depuis la session du Ubuntu installé afin de pouvoir faire une comparaison avec l'état des lieux fait avant manip :
Boot Info Script e7fc706 + Boot-Repair extra info [Boot-Info 23Nov2014]
============================= Boot Info Summary: ===============================
=> Windows 7/8/2012 is installed in the MBR of /dev/sda.
sda1: __________________________________________________________________________
File system: vfat
Boot sector type: FAT32
Boot sector info: No errors found in the Boot Parameter Block.
Operating System:
Boot files: /EFI/Boot/bootx64.efi /EFI/ubuntu/MokManager.efi
/EFI/ubuntu/grubx64.efi /EFI/ubuntu/shimx64.efi
/EFI/Microsoft/Boot/bootmgfw.efi
/EFI/Microsoft/Boot/bootx64.efi
sda2: __________________________________________________________________________
File system: ext4
Boot sector type: -
Boot sector info:
Operating System: Ubuntu 14.04.1 LTS
Boot files: /boot/grub/grub.cfg /etc/fstab
sda3: __________________________________________________________________________
File system: swap
Boot sector type: -
Boot sector info:
============================ Drive/Partition Info: =============================
Drive: sda _____________________________________________________________________
Disk /dev/sda: 64.4 GB, 64424509440 bytes
255 heads, 63 sectors/track, 7832 cylinders, total 125829120 sectors
Units = sectors of 1 * 512 = 512 bytes
Sector size (logical/physical): 512 bytes / 512 bytes
Partition Boot Start Sector End Sector # of Sectors Id System
/dev/sda1 1 125,829,119 125,829,119 ee GPT
GUID Partition Table detected.
Partition Start Sector End Sector # of Sectors System
/dev/sda1 2,048 1,050,623 1,048,576 EFI System partition
/dev/sda2 1,050,624 123,734,015 122,683,392 Data partition (Linux)
/dev/sda3 123,734,016 125,827,071 2,093,056 Swap partition (Linux)
"blkid" output: ________________________________________________________________
Device UUID TYPE LABEL
/dev/sda1 EEE7-C6B2 vfat
/dev/sda2 dc797a0b-6b4e-4dff-b012-340557c9b356 ext4
/dev/sda3 da9f5ed3-0bbd-4dbf-a368-61cacb84cfd1 swap
================================ Mount points: =================================
Device Mount_Point Type Options
/dev/sda1 /boot/efi vfat (rw)
/dev/sda2 / ext4 (rw,errors=remount-ro)
=========================== sda2/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 [ "${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 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,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 dc797a0b-6b4e-4dff-b012-340557c9b356
else
search --no-floppy --fs-uuid --set=root dc797a0b-6b4e-4dff-b012-340557c9b356
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=en_US
insmod gettext
fi
terminal_output gfxterm
if [ "${recordfail}" = 1 ] ; then
set timeout=10
else
if [ x$feature_timeout_style = xy ] ; then
set timeout_style=menu
set timeout=10
# Fallback normal timeout code in case the timeout_style feature is
# unavailable.
else
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
if background_color 44,0,30; then
clear
fi
### 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-dc797a0b-6b4e-4dff-b012-340557c9b356' {
recordfail
load_video
gfxmode $linux_gfx_mode
insmod gzio
insmod part_gpt
insmod ext2
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 dc797a0b-6b4e-4dff-b012-340557c9b356
else
search --no-floppy --fs-uuid --set=root dc797a0b-6b4e-4dff-b012-340557c9b356
fi
linux /boot/vmlinuz-3.13.0-40-generic root=UUID=dc797a0b-6b4e-4dff-b012-340557c9b356 ro quiet splash $vt_handoff
initrd /boot/initrd.img-3.13.0-40-generic
}
submenu 'Advanced options for Ubuntu' $menuentry_id_option 'gnulinux-advanced-dc797a0b-6b4e-4dff-b012-340557c9b356' {
menuentry 'Ubuntu, with Linux 3.13.0-40-generic' --class ubuntu --class gnu-linux --class gnu --class os $menuentry_id_option 'gnulinux-3.13.0-40-generic-advanced-dc797a0b-6b4e-4dff-b012-340557c9b356' {
recordfail
load_video
gfxmode $linux_gfx_mode
insmod gzio
insmod part_gpt
insmod ext2
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 dc797a0b-6b4e-4dff-b012-340557c9b356
else
search --no-floppy --fs-uuid --set=root dc797a0b-6b4e-4dff-b012-340557c9b356
fi
echo 'Loading Linux 3.13.0-40-generic ...'
linux /boot/vmlinuz-3.13.0-40-generic root=UUID=dc797a0b-6b4e-4dff-b012-340557c9b356 ro quiet splash $vt_handoff
echo 'Loading initial ramdisk ...'
initrd /boot/initrd.img-3.13.0-40-generic
}
menuentry 'Ubuntu, with Linux 3.13.0-40-generic (recovery mode)' --class ubuntu --class gnu-linux --class gnu --class os $menuentry_id_option 'gnulinux-3.13.0-40-generic-recovery-dc797a0b-6b4e-4dff-b012-340557c9b356' {
recordfail
load_video
insmod gzio
insmod part_gpt
insmod ext2
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 dc797a0b-6b4e-4dff-b012-340557c9b356
else
search --no-floppy --fs-uuid --set=root dc797a0b-6b4e-4dff-b012-340557c9b356
fi
echo 'Loading Linux 3.13.0-40-generic ...'
linux /boot/vmlinuz-3.13.0-40-generic root=UUID=dc797a0b-6b4e-4dff-b012-340557c9b356 ro recovery nomodeset
echo 'Loading initial ramdisk ...'
initrd /boot/initrd.img-3.13.0-40-generic
}
menuentry 'Ubuntu, with Linux 3.13.0-32-generic' --class ubuntu --class gnu-linux --class gnu --class os $menuentry_id_option 'gnulinux-3.13.0-32-generic-advanced-dc797a0b-6b4e-4dff-b012-340557c9b356' {
recordfail
load_video
gfxmode $linux_gfx_mode
insmod gzio
insmod part_gpt
insmod ext2
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 dc797a0b-6b4e-4dff-b012-340557c9b356
else
search --no-floppy --fs-uuid --set=root dc797a0b-6b4e-4dff-b012-340557c9b356
fi
echo 'Loading Linux 3.13.0-32-generic ...'
linux /boot/vmlinuz-3.13.0-32-generic root=UUID=dc797a0b-6b4e-4dff-b012-340557c9b356 ro quiet splash $vt_handoff
echo 'Loading initial ramdisk ...'
initrd /boot/initrd.img-3.13.0-32-generic
}
menuentry 'Ubuntu, with Linux 3.13.0-32-generic (recovery mode)' --class ubuntu --class gnu-linux --class gnu --class os $menuentry_id_option 'gnulinux-3.13.0-32-generic-recovery-dc797a0b-6b4e-4dff-b012-340557c9b356' {
recordfail
load_video
insmod gzio
insmod part_gpt
insmod ext2
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 dc797a0b-6b4e-4dff-b012-340557c9b356
else
search --no-floppy --fs-uuid --set=root dc797a0b-6b4e-4dff-b012-340557c9b356
fi
echo 'Loading Linux 3.13.0-32-generic ...'
linux /boot/vmlinuz-3.13.0-32-generic root=UUID=dc797a0b-6b4e-4dff-b012-340557c9b356 ro recovery nomodeset
echo 'Loading initial ramdisk ...'
initrd /boot/initrd.img-3.13.0-32-generic
}
}
### END /etc/grub.d/10_linux ###
### BEGIN /etc/grub.d/20_linux_xen ###
### END /etc/grub.d/20_linux_xen ###
### BEGIN /etc/grub.d/25_custom ###
menuentry "EFI/ubuntu/MokManager.efi" {
search --fs-uuid --no-floppy --set=root EEE7-C6B2
chainloader (${root})/EFI/ubuntu/MokManager.efi
}
### END /etc/grub.d/25_custom ###
### 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 ###
--------------------------------------------------------------------------------
=============================== sda2/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/sda2 during installation
UUID=dc797a0b-6b4e-4dff-b012-340557c9b356 / ext4 errors=remount-ro 0 1
# /boot/efi was on /dev/sda1 during installation
#UUID=EEE7-C6B2 /boot/efi vfat defaults 0 1
# swap was on /dev/sda3 during installation
UUID=da9f5ed3-0bbd-4dbf-a368-61cacb84cfd1 none swap sw 0 0
/dev/fd0 /media/floppy0 auto rw,user,noauto,exec,utf8 0 0
UUID=EEE7-C6B2 /boot/efi vfat defaults 0 1
--------------------------------------------------------------------------------
ADDITIONAL INFORMATION :
=================== log of boot-info 2014-12-08__07h27 ===================
boot-info version : 4ppa17
boot-sav version : 4ppa17
glade2script version : 3.2.2~ppa47~saucy
boot-sav-extra version : 4ppa17
boot-info is executed in installed-session (Ubuntu 14.04.1 LTS, trusty, Ubuntu, x86_64)
CPU op-mode(s): 32-bit, 64-bit
BOOT_IMAGE=/boot/vmlinuz-3.13.0-40-generic root=UUID=dc797a0b-6b4e-4dff-b012-340557c9b356 ro quiet splash vt.handoff=7
WARNING: GPT (GUID Partition Table) detected on '/dev/sda'! The util fdisk doesn't support GPT. Use GNU Parted.
=================== os-prober:
/dev/sda2:L'OS actuellement utilisé - Ubuntu 14.04.1 LTS CurrentSession:linux
=================== blkid:
/dev/sda1: UUID="EEE7-C6B2" TYPE="vfat"
/dev/sda2: UUID="dc797a0b-6b4e-4dff-b012-340557c9b356" TYPE="ext4"
/dev/sda3: UUID="da9f5ed3-0bbd-4dbf-a368-61cacb84cfd1" TYPE="swap"
1 disks with OS, 1 OS : 1 Linux, 0 MacOS, 0 Windows, 0 unknown type OS.
Attention : identifiant de table de partitions GPT (GUID) détecté sur « /dev/sda ». L'utilitaire sfdisk ne prend pas GPT en charge. Utilisez GNU Parted.
WARNING: GPT (GUID Partition Table) detected on '/dev/sda'! The util fdisk doesn't support GPT. Use GNU Parted.
ls: impossible d'accéder à /dev/disk/by-id: Aucun fichier ou dossier de ce type
=================== /etc/grub.d/ :
drwxr-xr-x 2 root root 4096 déc. 8 07:15 grub.d
drwxr-xr-x 2 root root 4096 déc. 8 07:13 grub.d.bak
total 76
-rwxr-xr-x 1 root root 9424 mai 15 2014 00_header
-rwxr-xr-x 1 root root 6058 mai 8 2014 05_debian_theme
-rwxr-xr-x 1 root root 11608 mai 15 2014 10_linux
-rwxr-xr-x 1 root root 10412 mai 15 2014 20_linux_xen
-rwxr-xr-x 1 root root 170 déc. 8 07:15 25_custom
-rwxr-xr-x 1 root root 11692 mai 15 2014 30_os-prober
-rwxr-xr-x 1 root root 1416 mai 15 2014 30_uefi-firmware
-rwxr-xr-x 1 root root 214 mai 15 2014 40_custom
-rwxr-xr-x 1 root root 216 mai 15 2014 41_custom
-rw-r--r-- 1 root root 483 mai 15 2014 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_HIDDEN_TIMEOUT=0
GRUB_HIDDEN_TIMEOUT_QUIET=true
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 sda2: UUID=EEE7-C6B2 (sda1)
Presence of EFI/Microsoft file detected: /boot/efi/EFI/Microsoft/Boot/bootmgfw.efi
Presence of EFI/Microsoft file detected: /boot/efi/EFI/Microsoft/Boot/bootx64.efi
Presence of EFI/Boot file detected: /boot/efi/EFI/Boot/bootx64.efi
ls /sys/firmware/efi/vars : RTC-378d7b65-8da9-4773-b6e4-a47826a833e1,PlatformLangCodes-8be4df61-93ca-11d2-aa0d-00e098032b8c,PlatformLang-8be4df61-93ca-11d2-aa0d-00e098032b8c,new_var,MTC-eb704011-1402-11d3-8e77-00a0c969723b,MemoryTypeInformation-4c19049f-4137-4dd3-9c10-8b97a83ffdfa,LangCodes-8be4df61-93ca-11d2-aa0d-00e098032b8c,Lang-8be4df61-93ca-11d2-aa0d-00e098032b8c,HDDP-fab7e9e1-39dd-4f2b-8408-e20e906cb6de,del_var,ConsoleOutMode-793d9786-44dc-4709-b57f-85b8e8fdbfd2,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,Boot0006-8be4df61-93ca-11d2-aa0d-00e098032b8c,Boot0004-8be4df61-93ca-11d2-aa0d-00e098032b8c,Boot0002-8be4df61-93ca-11d2-aa0d-00e098032b8c,Boot0001-8be4df61-93ca-11d2-aa0d-00e098032b8c,Boot0000-8be4df61-93ca-11d2-aa0d-00e098032b8c,
Veuillez indiquer ce message à boot.repair@gmail.com
efibootmgr -v
BootCurrent: 0000
BootOrder: 0001,0002,0000,0004,0006
Boot0000* EFI VMware Virtual SCSI Hard Drive (0.0) ACPI(a0341d0,0)PCI(15,0)PCI(0,0)SCSI(0,0)
Boot0001* ubuntu HD(1,800,100000,4e005f29-ec7a-4f62-9dd3-7e590d3ea561)File(EFIubuntugrubx64.efi)
Boot0002* EFI VMware Virtual SCSI CDROM Drive (2.0) ACPI(a0341d0,0)PCI(15,0)PCI(0,0)SCSI(2,0)
Boot0004* EFI Internal Shell (Unsupported option) MM(b,3efba000,3f344fff)
Boot0006* EFI Network ACPI(a0341d0,0)PCI(16,0)PCI(0,0)MAC(000c29ca56ea,0)
=================== UEFI/Legacy mode:
Unusual EFI: Veuillez indiquer ce message à boot.repair@gmail.com
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:
sda2 : sda, not-sepboot, grubenv-ok grub2, 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, .
sda1 : sda, not-sepboot, no-grubenv nogrub, no-docgrub, no-update-grub, 32, no-boot, no-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, /boot/efi.
sda : GPT, no-BIOS_boot, has-correctEFI, not-usb, has-os, 2048 sectors * 512 bytes
=================== parted -l:
Model: VMware, VMware Virtual S (scsi)
Disk /dev/sda: 64.4GB
Sector size (logical/physical): 512B/512B
Partition Table: gpt
Number Start End Size File system Name Flags
1 1049kB 538MB 537MB fat32 boot
2 538MB 63.4GB 62.8GB ext4
3 63.4GB 64.4GB 1072MB linux-swap(v1)
=================== parted -lm:
BYT;
/dev/sda:64.4GB:scsi:512:512:gpt:VMware, VMware Virtual S;
1:1049kB:538MB:537MB:fat32::boot;
2:538MB:63.4GB:62.8GB:ext4::;
3:63.4GB:64.4GB:1072MB:linux-swap(v1)::;
=================== mount:
/dev/sda2 on / type ext4 (rw,errors=remount-ro)
proc on /proc type proc (rw,noexec,nosuid,nodev)
sysfs on /sys type sysfs (rw,noexec,nosuid,nodev)
none on /sys/fs/cgroup type tmpfs (rw)
none on /sys/fs/fuse/connections type fusectl (rw)
none on /sys/kernel/debug type debugfs (rw)
none on /sys/kernel/security type securityfs (rw)
none on /sys/firmware/efi/efivars type efivarfs (rw)
udev on /dev type devtmpfs (rw,mode=0755)
devpts on /dev/pts type devpts (rw,noexec,nosuid,gid=5,mode=0620)
tmpfs on /run type tmpfs (rw,noexec,nosuid,size=10%,mode=0755)
none on /run/lock type tmpfs (rw,noexec,nosuid,nodev,size=5242880)
none on /run/shm type tmpfs (rw,nosuid,nodev)
none on /run/user type tmpfs (rw,noexec,nosuid,nodev,size=104857600,mode=0755)
none on /sys/fs/pstore type pstore (rw)
/dev/sda1 on /boot/efi type vfat (rw)
systemd on /sys/fs/cgroup/systemd type cgroup (rw,noexec,nosuid,nodev,none,name=systemd)
gvfsd-fuse on /run/user/1000/gvfs type fuse.gvfsd-fuse (rw,nosuid,nodev,user=malbo)
=================== ls:
/sys/block/fd0 (filtered): alignment_offset bdi capability dev device discard_alignment events events_async events_poll_msecs ext_range holders inflight power queue range removable ro size slaves stat subsystem trace uevent
/sys/block/sda (filtered): alignment_offset bdi capability dev device discard_alignment events events_async events_poll_msecs ext_range holders inflight power queue range removable ro sda1 sda2 sda3 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 holders inflight power queue range removable ro size slaves stat subsystem trace uevent
/dev (filtered): agpgart autofs block bsg btrfs-control bus cdrom char console core cpu cpu_dma_latency cuse disk dri ecryptfs fb0 fd fd0 full fuse hidraw0 hidraw1 hidraw2 hpet input kmsg log lp0 mapper mcelog mem net network_latency network_throughput null parport0 port ppp psaux ptmx ptp0 pts random rfkill rtc rtc0 sda sda1 sda2 sda3 sg0 sg1 shm snapshot snd sr0 stderr stdin stdout uhid uinput urandom vga_arbiter vhci vhost-net vmci zero
ls /dev/mapper: control
ls /boot/efi/1:
=================== hexdump -n512 -C /dev/sda1
00000000 eb 58 90 6d 6b 66 73 2e 66 61 74 00 02 08 20 00 |.X.mkfs.fat... .|
00000010 02 00 00 00 00 f8 00 00 3f 00 ff 00 00 08 00 00 |........?.......|
00000020 00 00 10 00 fe 03 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 b2 c6 e7 ee 4e 4f 20 4e 41 4d 45 20 20 |..)....NO NAME |
00000050 20 20 46 41 54 33 32 20 20 20 0e 1f be 77 7c ac | FAT32 ...w|.|
00000060 22 c0 74 0b 56 b4 0e bb 07 00 cd 10 5e eb f0 32 |".t.V.......^..2|
00000070 e4 cd 16 cd 19 eb fe 54 68 69 73 20 69 73 20 6e |.......This is n|
00000080 6f 74 20 61 20 62 6f 6f 74 61 62 6c 65 20 64 69 |ot a bootable di|
00000090 73 6b 2e 20 20 50 6c 65 61 73 65 20 69 6e 73 65 |sk. Please inse|
000000a0 72 74 20 61 20 62 6f 6f 74 61 62 6c 65 20 66 6c |rt a bootable fl|
000000b0 6f 70 70 79 20 61 6e 64 0d 0a 70 72 65 73 73 20 |oppy and..press |
000000c0 61 6e 79 20 6b 65 79 20 74 6f 20 74 72 79 20 61 |any key to try a|
000000d0 67 61 69 6e 20 2e 2e 2e 20 0d 0a 00 00 00 00 00 |gain ... .......|
000000e0 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 |................|
*
000001f0 00 00 00 00 00 00 00 00 00 00 00 00 00 00 55 aa |..............U.|
00000200
WARNING: GPT (GUID Partition Table) detected on '/dev/sda'! The util fdisk doesn't support GPT. Use GNU Parted.
=================== df -Th:
Filesystem Type Size Used Avail Use% Mounted on
/dev/sda2 ext4 58G 4.0G 51G 8% /
none tmpfs 4.0K 0 4.0K 0% /sys/fs/cgroup
udev devtmpfs 487M 12K 487M 1% /dev
tmpfs tmpfs 100M 1.4M 98M 2% /run
none tmpfs 5.0M 0 5.0M 0% /run/lock
none tmpfs 497M 152K 497M 1% /run/shm
none tmpfs 100M 32K 100M 1% /run/user
/dev/sda1 vfat 511M 3.0M 509M 1% /boot/efi
=================== fdisk -l:
Disk /dev/sda: 64.4 GB, 64424509440 bytes
255 heads, 63 sectors/track, 7832 cylinders, total 125829120 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 identifier: 0x00000000
Device Boot Start End Blocks Id System
/dev/sda1 1 125829119 62914559+ ee GPT
=================== Suggested repair
The default repair of the Boot-Repair utility would purge (in order to sign-grub) and reinstall the grub-efi-amd64-signed of sda2, using the following options: sda1/boot/efi,
Additional repair would be performed: unhide-bootmenu-10s
=================== Final advice in case of suggested repair
N'oubliez pas de régler votre BIOS pour qu'il amorce sur le fichier sda1/efi/.../grub*.efi !
=================== User settings
The settings chosen by the user will not act on the boot.
On y voit cet extrait :
efibootmgr -v
BootCurrent: 0000
BootOrder: 0001,0002,0000,0004,0006
Boot0000* EFI VMware Virtual SCSI Hard Drive (0.0) ACPI(a0341d0,0)PCI(15,0)PCI(0,0)SCSI(0,0)
Boot0001* ubuntu HD(1,800,100000,4e005f29-ec7a-4f62-9dd3-7e590d3ea561)File(EFIubuntugrubx64.efi)
Boot0002* EFI VMware Virtual SCSI CDROM Drive (2.0) ACPI(a0341d0,0)PCI(15,0)PCI(0,0)SCSI(2,0)
Boot0004* EFI Internal Shell (Unsupported option) MM(b,3efba000,3f344fff)
Boot0006* EFI Network ACPI(a0341d0,0)PCI(16,0)PCI(0,0)MAC(000c29ca56ea,0)
qui montre que la session a démarré par le lanceur Boot0000 (mention "BootCurrent: 0000") ce qui est conforme à ce que j'ai fait pratiquement : je suis intervenu au démarrage dans le système UEFI ("virtuel" puisque je suis en simulation avec VMware Player) pour sélectionner la ligne "EFI VMware Virtual SCSI Hard Drive (0.0)" (qui veut dire en français : démarrage en mode EFI sur le disque dur). Cela constitue une validation du débridage puisqu'on sait que le démarrage sur le disque dur implique que le fichier /EFI/Boot/bootx64.efi de la partition EFI est utilisé pour le démarrage.
D'autre part, on peut constater - sans que ça ait une incidence dans la manip elle-même - que l'entrée Boot0001* ubuntu pointe sur grubx64.efi alors que si on va fouiller dans le Boot-Info avant manip pour la même entrée Boot0001* ubuntu, on peut voir qu'elle pointait sur shimx64.efi. C'est conforme à ce qui a été demandé puisque j'ai décoché la case "Secure Boot" dans l'utilisation avancée de Boot-Repair : le démarrage ne doit donc plus utiliser la version signée de Grub (fichier "signé" shimx64.efi)
Dernière modification par malbo (Le 08/12/2014, à 09:52)
Hors ligne
#6 Le 09/12/2014, à 11:29
- maxire
Re : [Essai] Ubuntu installé seul en mode EFI : débridage UEFI
En complément, lors de l'utilisation de grub-install avec l'option --removable supprimez au préalable le répertoire EFI/Boot ou tout autre répertoire comme EFI/boot quelque soit la casse sinon le grub-install sera un échec sans message d'erreur particulier.
Sous Linux tous les répertoires d'un système de fichiers en FAT de nom identique à la casse près sont considérés comme localisés au même endroit.
En conséquence, la création d'un nouveau répertoire si il existe déjà sous le même nom avec une casse différente est impossible.
Il est peut-être possible de pallier à ce problème via l'option de montage du répertoire /boot/efi, je n'ai pas vraiment cherché, l'option de montage actuelle par défaut ne le permet pas.
Maxire
Archlinux/Mate + Ubuntu 22.04 + Archlinux/Gnome sur poste de travail
Hors ligne
#7 Le 09/12/2014, à 11:47
- malbo
Re : [Essai] Ubuntu installé seul en mode EFI : débridage UEFI
En complément
Je comprends que tu veux dire en "En complément à la méthode maxire" et je prends note merci. Pourrais-tu dire où tu as trouvé l'inspiration pour ta méthode ; ce n'est pas en te levant un matin que tu as pondu ça tout seul, si ?
Hors ligne
#8 Le 09/12/2014, à 12:09
- maxire
Re : [Essai] Ubuntu installé seul en mode EFI : débridage UEFI
J'ai simplement lu la page Man de grub-install, vu que l'option --removable était apparue récemment et je l'ai testée sans trop comprendre ce que c'était, sa description étant succincte.
Le résultat sous Virtualbox a été le démarrage automatique de Linux en mode UEFI sans avoir à écrire un script startup.nsh.
Ensuite comme EFI/boot/bootx64.efi (à la casse près) correspond au programme lancé par le firmware UEFI lors de la sélection d'un périphérique au démarrage j'en ai rapidement déduit que cette solution pourrait être viable dans le cas notamment des Toshiba Satellite, les HP semblent plus tordus.
Plus besoin de copier manuellement grubx64.efi ou shimx64.efi dans EFI/boot/bootx64.efi.
Nous avons un vrai problème avec la documentation de Grub, celle qui est disponible à ce jour sur le site officiel n'est vraiment plus à jour ou bien absconse.
C'est d'ailleurs un problème général, je pourrais dire la même chose de Gnome et de Pulse Audio qui est sans doute la pire tellement elle est incompréhensible.
Maxire
Archlinux/Mate + Ubuntu 22.04 + Archlinux/Gnome sur poste de travail
Hors ligne
#9 Le 09/12/2014, à 12:51
- malbo
Re : [Essai] Ubuntu installé seul en mode EFI : débridage UEFI
@maxire : Il y a un truc qui ne plaît pas dans ta méthode : je viens de faire une mise à niveau(*) 14.04 vers 14.10 (en virtualisation) d'un Ubuntu auquel ta méthode avait été appliquée. Je constate que ça redémarre bien sur le disque dur - c'est à dire sur /EFI/BOOT/BOOTX64.EFI - mais je constate que ce fichier BOOTX64.EFI n'a pas été mis à jour lors de la mise à niveau. J'ai dû repasser la commande "sudo grub-install --removable" pour que le fichier BOOTX64.EFI soit mis à jour. Je n'aime pas ça parce que ça ressemble à ce qui se passe dans le cas des mises à niveau d'installation Ubuntu trafiquées par Boot-Repair (comme dans ce rapport de bug #1289977), c'est à dire que le fichier .efi n'est pas mis à niveau.
Du coup, je pense que pour ceux qui veulent installer Ubuntu tout seul dans l'ordi, je vais proposer systématiquement d'intervenir dans le "Bios" pour passer le "Boot Mode" en "Legacy" (non-EFI), de démarrer en session live Ubuntu, de créer une nouvelle table de partition MSDOS pour le disque dur avec Gparted, puis de faire l'installation en mode Legacy (non-EFI).
(*) mise à niveau "en ligne", c'est à dire par le "Gestionnaire de mise à jour".
Dernière modification par malbo (Le 09/12/2014, à 13:04)
Hors ligne
#10 Le 09/12/2014, à 13:15
- maxire
Re : [Essai] Ubuntu installé seul en mode EFI : débridage UEFI
C'est une faiblesse de Ubuntu, lors d'une installation classique en mode UEFi aucun programme bootx64.efi n'est généré, donc pourquoi une mise à niveau s'en préoccuperait elle?
Je pense que tu arrivais tout de même à démarrer avec le programme bootx64.efi non mis à jour, as-tu comparé les deux versions via un md5sum par exemple?
Ceci dit, dans le cas d'une installation de Ubuntu seul avec possibilité de démarrer en mode Legacy, mieux vaut installer en mode Legacy.
Cela évite de se traîner ensuite une partition ESP dans laquelle pourraient s'empiler nombre de fichiers inutiles en cas de non maintenance probable de celle-ci par l'utilisateur.
Ce que tu indiques pourrait poser problème dans le cas des mises à niveau des dual-boot entre autres sur Toshiba Satellite lorsque grubx64.efi ou shimx64.efi ont été recopiés en bootx64.efi.
Maxire
Archlinux/Mate + Ubuntu 22.04 + Archlinux/Gnome sur poste de travail
Hors ligne
#11 Le 09/12/2014, à 13:40
- malbo
Re : [Essai] Ubuntu installé seul en mode EFI : débridage UEFI
Ce que tu indiques pourrait poser problème dans le cas des mises à niveau des dual-boot entre autres sur Toshiba Satellite lorsque grubx64.efi ou shimx64.efi ont été recopiés en bootx64.efi.
Tout à fait. Mais autant on peut tolérer les bricolages (copie de fichiers .efi) quand il s'agit de gérer la cohabitation délicates de Ubuntu et Windows 8, autant il n'y a pas de raison de supporter ça dans le cas où Ubuntu est tout seul dans l'ordi et que l'installation en mode Legacy est possible.
Hors ligne