Contenu | Rechercher | Menus

Annonce

Si vous avez des soucis pour rester connecté, déconnectez-vous puis reconnectez-vous depuis ce lien en cochant la case
Me connecter automatiquement lors de mes prochaines visites.

À propos de l'équipe du forum.

#1 Le 05/11/2017, à 19:18

ben-cptr

[Résolu] Dual boot w8 : Erreur de boot-repair + pas grub au démarrage

Bonjour à tous !

Je retente une nouvelle fois l'expérience sous Linux, après une mauvaise manip il y a plusieurs mois maintenant.
Je me tourne vers vous après plusieurs recherches non convaincantes, et surtout pour éviter de faire n'importe quoi car mes connaissances sont très limitées sous concernant Linux.

Config :

HP Pavillon - Windows 8.1
EFI

Résumé de la situation :

- Installation de Ubuntu 16.04.3 LTS 64-bit en dual boot via une LiveUSB. (partitions sous l'utilitaire Windows, sans GParted).
- Aucun problème d'installation
- Au redémarrage, le PC boot sur Windows automatiquement (pas de grub).

Avancées :

- J'ai désactivé le Secure Boot comme conseillé dans plusieurs discussions.
Dans le boot menu j'ai OS boot manager (réglé sur celui là), USB, CD/DVD, et deux autres choses mais pas de grub/ubuntu.

- J'ai fais un boot-repair depuis la liveUSB : http://paste.ubuntu.com/25894933/
(je tenterais bien la dernière manip sur windows qu'il préconise : sous windows entrer la commande bcdedit /set {bootmgr} path \EFI\ubuntu\grubx64.efi ??)

- Je peux booter sur Ubuntu via la manip depuis windows (paramètres, puis en maintenant MAJ pendant toute la manip faire : clic sur Marche/arrêt, Redémarrage (toujours avec MAJ), et là un menu apparaît pour booter depuis un périphérique, Ubuntu apparaît ici et c'est possible de booter dessus (c'est comme ça que j'ai réussi à lancer ubuntu).

- La commande d'installation de boot-repair ne fonctionne pas sous le "vrai" ubuntu, (pas la liveUSB.)
Via : https://doc.ubuntu-fr.org/boot-repair
Commande : sudo add-apt-repository -y ppa:yannubuntu/boot-repair && sudo apt update && sudo apt install -y boot-repair boot-info && boot-repair
Message d'erreur :
E: Could not get lock /var/lib/apt/lists/lock - open (11: Resource temporarily unavailable)
F: Unable to lock directory /var/lib/apt/lists

Voilà, j'espère avoir été assez précis !

Merci d'avance pour votre aide smile

Benjamin

Dernière modification par ben-cptr (Le 06/11/2017, à 10:47)

Hors ligne

#2 Le 05/11/2017, à 21:45

malbo

Re : [Résolu] Dual boot w8 : Erreur de boot-repair + pas grub au démarrage

Bonjour,
Ton Boot-Info est là :

 Boot Info Script 8f991e4 + Boot-Repair extra info      [Boot-Info 25oct2017]


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

 => No boot loader is installed in the MBR of /dev/sda.
 => Syslinux MBR (4.04-4.07) 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/ubuntu/fwupx64.efi 
                       /EFI/ubuntu/grubx64.efi 
                       /EFI/HP/BIOSUpdate/CryptRSA.efi 
                       /EFI/HP/BIOSUpdate/CryptRSA32.efi 
                       /EFI/HP/BIOSUpdate/HpBiosUpdate.efi 
                       /EFI/HP/BIOSUpdate/HpBiosUpdate32.efi 
                       /EFI/HP/SystemDiags/CryptRSA.efi 
                       /EFI/HP/SystemDiags/CryptRSA32.efi 
                       /EFI/HP/SystemDiags/SystemDiags.efi 
                       /EFI/HP/SystemDiags/SystemDiags32.efi 
                       /EFI/HP/boot/bootmgfw.efi /EFI/HP/boot/bootmgr.efi 
                       /EFI/HP/boot/memtest.efi 
                       /EFI/Microsoft/Boot/bootmgfw.efi 
                       /EFI/Microsoft/Boot/bootmgr.efi 
                       /EFI/Microsoft/Boot/memtest.efi 
                       /EFI/HP/EFI/Boot/bootx64.efi

sda3: __________________________________________________________________________

    File system:       
    Boot sector type:  -
    Boot sector info: 
    Mounting failed:   mount: unknown filesystem type ''

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:       ntfs
    Boot sector type:  Windows 8/2012: NTFS
    Boot sector info:  No errors found in the Boot Parameter Block.
    Operating System:  
    Boot files:        /bootmgr /boot/BCD

sda6: __________________________________________________________________________

    File system:       ext4
    Boot sector type:  -
    Boot sector info: 
    Operating System:  Ubuntu 16.04.3 LTS
    Boot files:        /boot/grub/grub.cfg /etc/fstab

sda7: __________________________________________________________________________

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

sdb1: __________________________________________________________________________

    File system:       vfat
    Boot sector type:  SYSLINUX 4.07 2013-07-25
    Boot sector info:  Syslinux looks at sector 29622 of /dev/sdb1 for its 
                       second stage. SYSLINUX is installed in the /uui 
                       directory. No errors found in the Boot Parameter Block.
    Operating System:  
    Boot files:        /boot/grub/grub.cfg /casper/vmlinuz.efi 
                       /EFI/BOOT/grubx64.efi

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

Drive: sda _____________________________________________________________________
Disk /dev/sda: 931.5 GiB, 1000204886016 bytes, 1953525168 sectors
Units: sectors of 1 * 512 = 512 bytes
Sector size (logical/physical): 512 bytes / 4096 bytes
I/O size (minimum/optimal): 4096 bytes / 4096 bytes
Disklabel type: gpt

Partition  Boot  Start Sector    End Sector  # of Sectors  Id System

/dev/sda1                   1 1,953,525,167 1,953,525,167  ee GPT


GUID Partition Table detected.

Partition  Attrs   Start Sector    End Sector  # of Sectors System
/dev/sda1      R          2,048       821,247       819,200 Windows Recovery Environment (Windows)
/dev/sda2               821,248     1,353,727       532,480 EFI System partition
/dev/sda3             1,353,728     1,615,871       262,144 Microsoft Reserved Partition (Windows)
/dev/sda4             1,615,872 1,862,694,911 1,861,079,040 Data partition (Windows/Linux)
/dev/sda5      R  1,915,123,712 1,953,523,711    38,400,000 Data partition (Windows/Linux)
/dev/sda6         1,862,694,912 1,899,468,799    36,773,888 Data partition (Linux)
/dev/sda7         1,899,468,800 1,915,123,711    15,654,912 Swap partition (Linux)

Attributes: R=Required, N=No Block IO, B=Legacy BIOS Bootable, +=More bits set

Drive: sdb _____________________________________________________________________
Disk /dev/sdb: 14.5 GiB, 15504900096 bytes, 30283008 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
Disklabel type: dos

Partition  Boot  Start Sector    End Sector  # of Sectors  Id System

/dev/sdb1    *          2,048    30,281,727    30,279,680   c W95 FAT32 (LBA)


"blkid" output: ________________________________________________________________

Device           UUID                                   TYPE       LABEL

/dev/loop0                                              squashfs   
/dev/sda1        16EC586FEC584B5F                       ntfs       WINRE
/dev/sda2        CE4E-C3EB                              vfat       
/dev/sda3                                                          
/dev/sda4        62CACFB0CACF7EB3                       ntfs       
/dev/sda5        445254D35254CB76                       ntfs       RECOVERY
/dev/sda6        1553aafd-38a7-4628-bb63-36d9d3ebe0bf   ext4       
/dev/sda7        b38f0494-726a-4a9c-8bb4-5c9234520ac4   swap       
/dev/sdb1        18FC-1036                              vfat       UUI

========================= "ls -l /dev/disk/by-id" output: ======================

total 0
lrwxrwxrwx 1 root root  9 Nov  5 13:27 ata-ST1000LM024_HN-M101MBB_S31LJ9DF109973 -> ../../sda
lrwxrwxrwx 1 root root 10 Nov  5 13:28 ata-ST1000LM024_HN-M101MBB_S31LJ9DF109973-part1 -> ../../sda1
lrwxrwxrwx 1 root root 10 Nov  5 13:27 ata-ST1000LM024_HN-M101MBB_S31LJ9DF109973-part2 -> ../../sda2
lrwxrwxrwx 1 root root 10 Nov  5 13:27 ata-ST1000LM024_HN-M101MBB_S31LJ9DF109973-part3 -> ../../sda3
lrwxrwxrwx 1 root root 10 Nov  5 13:28 ata-ST1000LM024_HN-M101MBB_S31LJ9DF109973-part4 -> ../../sda4
lrwxrwxrwx 1 root root 10 Nov  5 13:28 ata-ST1000LM024_HN-M101MBB_S31LJ9DF109973-part5 -> ../../sda5
lrwxrwxrwx 1 root root 10 Nov  5 13:27 ata-ST1000LM024_HN-M101MBB_S31LJ9DF109973-part6 -> ../../sda6
lrwxrwxrwx 1 root root 10 Nov  5 13:27 ata-ST1000LM024_HN-M101MBB_S31LJ9DF109973-part7 -> ../../sda7
lrwxrwxrwx 1 root root  9 Nov  5 13:15 ata-hp_DVD_A_DU8A5SH_486407950722 -> ../../sr0
lrwxrwxrwx 1 root root  9 Nov  5 13:27 usb-_USB_DISK_3.0_070D51C35592DB42-0:0 -> ../../sdb
lrwxrwxrwx 1 root root 10 Nov  5 13:27 usb-_USB_DISK_3.0_070D51C35592DB42-0:0-part1 -> ../../sdb1
lrwxrwxrwx 1 root root  9 Nov  5 13:27 wwn-0x50004cf20c5b137d -> ../../sda
lrwxrwxrwx 1 root root 10 Nov  5 13:28 wwn-0x50004cf20c5b137d-part1 -> ../../sda1
lrwxrwxrwx 1 root root 10 Nov  5 13:27 wwn-0x50004cf20c5b137d-part2 -> ../../sda2
lrwxrwxrwx 1 root root 10 Nov  5 13:27 wwn-0x50004cf20c5b137d-part3 -> ../../sda3
lrwxrwxrwx 1 root root 10 Nov  5 13:28 wwn-0x50004cf20c5b137d-part4 -> ../../sda4
lrwxrwxrwx 1 root root 10 Nov  5 13:28 wwn-0x50004cf20c5b137d-part5 -> ../../sda5
lrwxrwxrwx 1 root root 10 Nov  5 13:27 wwn-0x50004cf20c5b137d-part6 -> ../../sda6
lrwxrwxrwx 1 root root 10 Nov  5 13:27 wwn-0x50004cf20c5b137d-part7 -> ../../sda7

================================ Mount points: =================================

Device           Mount_Point              Type       Options

/dev/loop0       /rofs                    squashfs   (ro,noatime)
/dev/sdb1        /cdrom                   vfat       (ro,noatime,fmask=0022,dmask=0022,codepage=437,iocharset=iso8859-1,shortname=mixed,errors=remount-ro)


========================== sda2/EFI/ubuntu/grub.cfg: ===========================

--------------------------------------------------------------------------------
search.fs_uuid 1553aafd-38a7-4628-bb63-36d9d3ebe0bf root hd0,gpt6 
set prefix=($root)'/boot/grub'
configfile $prefix/grub.cfg
--------------------------------------------------------------------------------

=========================== sda6/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,gpt6'
if [ x$feature_platform_search_hint = xy ]; then
  search --no-floppy --fs-uuid --set=root --hint-bios=hd0,gpt6 --hint-efi=hd0,gpt6 --hint-baremetal=ahci0,gpt6  1553aafd-38a7-4628-bb63-36d9d3ebe0bf
else
  search --no-floppy --fs-uuid --set=root 1553aafd-38a7-4628-bb63-36d9d3ebe0bf
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 45,51,53; 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-1553aafd-38a7-4628-bb63-36d9d3ebe0bf' {
	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,gpt6'
	if [ x$feature_platform_search_hint = xy ]; then
	  search --no-floppy --fs-uuid --set=root --hint-bios=hd0,gpt6 --hint-efi=hd0,gpt6 --hint-baremetal=ahci0,gpt6  1553aafd-38a7-4628-bb63-36d9d3ebe0bf
	else
	  search --no-floppy --fs-uuid --set=root 1553aafd-38a7-4628-bb63-36d9d3ebe0bf
	fi
	linux	/boot/vmlinuz-4.10.0-28-generic.efi.signed root=UUID=1553aafd-38a7-4628-bb63-36d9d3ebe0bf ro  quiet splash $vt_handoff
	initrd	/boot/initrd.img-4.10.0-28-generic
}
submenu 'Advanced options for Ubuntu' $menuentry_id_option 'gnulinux-advanced-1553aafd-38a7-4628-bb63-36d9d3ebe0bf' {
	menuentry 'Ubuntu, with Linux 4.10.0-28-generic' --class ubuntu --class gnu-linux --class gnu --class os $menuentry_id_option 'gnulinux-4.10.0-28-generic-advanced-1553aafd-38a7-4628-bb63-36d9d3ebe0bf' {
		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,gpt6'
		if [ x$feature_platform_search_hint = xy ]; then
		  search --no-floppy --fs-uuid --set=root --hint-bios=hd0,gpt6 --hint-efi=hd0,gpt6 --hint-baremetal=ahci0,gpt6  1553aafd-38a7-4628-bb63-36d9d3ebe0bf
		else
		  search --no-floppy --fs-uuid --set=root 1553aafd-38a7-4628-bb63-36d9d3ebe0bf
		fi
		echo	'Loading Linux 4.10.0-28-generic ...'
		linux	/boot/vmlinuz-4.10.0-28-generic.efi.signed root=UUID=1553aafd-38a7-4628-bb63-36d9d3ebe0bf ro  quiet splash $vt_handoff
		echo	'Loading initial ramdisk ...'
		initrd	/boot/initrd.img-4.10.0-28-generic
	}
	menuentry 'Ubuntu, with Linux 4.10.0-28-generic (recovery mode)' --class ubuntu --class gnu-linux --class gnu --class os $menuentry_id_option 'gnulinux-4.10.0-28-generic-recovery-1553aafd-38a7-4628-bb63-36d9d3ebe0bf' {
		recordfail
		load_video
		insmod gzio
		if [ x$grub_platform = xxen ]; then insmod xzio; insmod lzopio; fi
		insmod part_gpt
		insmod ext2
		set root='hd0,gpt6'
		if [ x$feature_platform_search_hint = xy ]; then
		  search --no-floppy --fs-uuid --set=root --hint-bios=hd0,gpt6 --hint-efi=hd0,gpt6 --hint-baremetal=ahci0,gpt6  1553aafd-38a7-4628-bb63-36d9d3ebe0bf
		else
		  search --no-floppy --fs-uuid --set=root 1553aafd-38a7-4628-bb63-36d9d3ebe0bf
		fi
		echo	'Loading Linux 4.10.0-28-generic ...'
		linux	/boot/vmlinuz-4.10.0-28-generic.efi.signed root=UUID=1553aafd-38a7-4628-bb63-36d9d3ebe0bf ro recovery nomodeset 
		echo	'Loading initial ramdisk ...'
		initrd	/boot/initrd.img-4.10.0-28-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/25_custom ###

menuentry "Windows UEFI bootmgfw.efi" {
search --fs-uuid --no-floppy --set=root CE4E-C3EB
chainloader (${root})/EFI/Microsoft/Boot/bootmgfw.efi
}

menuentry "Windows Boot UEFI loader" {
search --fs-uuid --no-floppy --set=root CE4E-C3EB
chainloader (${root})/EFI/Boot/bkpbootx64.efi
}

menuentry "EFI/ubuntu/fwupx64.efi" {
search --fs-uuid --no-floppy --set=root CE4E-C3EB
chainloader (${root})/EFI/ubuntu/fwupx64.efi
}

menuentry "EFI/HP/BIOSUpdate/CryptRSA32.efi" {
search --fs-uuid --no-floppy --set=root CE4E-C3EB
chainloader (${root})/EFI/HP/BIOSUpdate/CryptRSA32.efi
}

menuentry "EFI/HP/BIOSUpdate/CryptRSA.efi" {
search --fs-uuid --no-floppy --set=root CE4E-C3EB
chainloader (${root})/EFI/HP/BIOSUpdate/CryptRSA.efi
}

menuentry "EFI/HP/BIOSUpdate/HpBiosUpdate32.efi" {
search --fs-uuid --no-floppy --set=root CE4E-C3EB
chainloader (${root})/EFI/HP/BIOSUpdate/HpBiosUpdate32.efi
}

menuentry "EFI/HP/BIOSUpdate/HpBiosUpdate.efi" {
search --fs-uuid --no-floppy --set=root CE4E-C3EB
chainloader (${root})/EFI/HP/BIOSUpdate/HpBiosUpdate.efi
}

menuentry "EFI/HP/boot/bootmgfw.efi" {
search --fs-uuid --no-floppy --set=root CE4E-C3EB
chainloader (${root})/EFI/HP/boot/bootmgfw.efi
}

menuentry "EFI/HP/SystemDiags/CryptRSA32.efi" {
search --fs-uuid --no-floppy --set=root CE4E-C3EB
chainloader (${root})/EFI/HP/SystemDiags/CryptRSA32.efi
}

menuentry "EFI/HP/SystemDiags/CryptRSA.efi" {
search --fs-uuid --no-floppy --set=root CE4E-C3EB
chainloader (${root})/EFI/HP/SystemDiags/CryptRSA.efi
}

menuentry "EFI/HP/SystemDiags/SystemDiags32.efi" {
search --fs-uuid --no-floppy --set=root CE4E-C3EB
chainloader (${root})/EFI/HP/SystemDiags/SystemDiags32.efi
}

menuentry "EFI/HP/SystemDiags/SystemDiags.efi" {
search --fs-uuid --no-floppy --set=root CE4E-C3EB
chainloader (${root})/EFI/HP/SystemDiags/SystemDiags.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-CE4E-C3EB' {
	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  CE4E-C3EB
	else
	  search --no-floppy --fs-uuid --set=root CE4E-C3EB
	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 'System setup' $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 ###
--------------------------------------------------------------------------------

=============================== sda6/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/sda6 during installation
UUID=1553aafd-38a7-4628-bb63-36d9d3ebe0bf /               ext4    errors=remount-ro 0       1
# /boot/efi was on /dev/sda2 during installation
#UUID=CE4E-C3EB  /boot/efi       vfat    umask=0077      0       1
# swap was on /dev/sda7 during installation
UUID=b38f0494-726a-4a9c-8bb4-5c9234520ac4 none            swap    sw              0       0
UUID=CE4E-C3EB	/boot/efi	vfat	defaults	0	1
--------------------------------------------------------------------------------

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

           GiB - GB             File                                 Fragment(s)

 898.338813782 = 964.583956480  boot/grub/grub.cfg                             1
 889.193412781 = 954.764156928  boot/vmlinuz-4.10.0-28-generic                 1
 898.478172302 = 964.733591552  boot/vmlinuz-4.10.0-28-generic.efi.signed      1
 889.193412781 = 954.764156928  vmlinuz                                        1
 889.584888458 = 955.184500736  boot/initrd.img-4.10.0-28-generic              2
 889.584888458 = 955.184500736  initrd.img                                     2

=========================== sdb1/boot/grub/grub.cfg: ===========================

--------------------------------------------------------------------------------

if loadfont /boot/grub/font.pf2 ; then
	set gfxmode=auto
	insmod efi_gop
	insmod efi_uga
	insmod gfxterm
	terminal_output gfxterm
fi

set menu_color_normal=white/black
set menu_color_highlight=black/light-gray

menuentry "Try Ubuntu GNOME without installing" {
	set gfxpayload=keep
	linux	/casper/vmlinuz.efi  file=/cdrom/preseed/ubuntu-gnome.seed cdrom-detect/try-usb=true noprompt floppy.allowed_drive_mask=0 ignore_uuid boot=casper quiet splash ---
	initrd	/casper/initrd.lz
}
menuentry "Install Ubuntu GNOME" {
	set gfxpayload=keep
	linux	/casper/vmlinuz.efi  file=/cdrom/preseed/ubuntu-gnome.seed cdrom-detect/try-usb=true noprompt floppy.allowed_drive_mask=0 ignore_uuid boot=casper only-ubiquity quiet splash ---
	initrd	/casper/initrd.lz
}
menuentry "OEM install (for manufacturers)" {
	set gfxpayload=keep
	linux	/casper/vmlinuz.efi  file=/cdrom/preseed/ubuntu-gnome.seed cdrom-detect/try-usb=true noprompt floppy.allowed_drive_mask=0 ignore_uuid boot=casper only-ubiquity quiet splash oem-config/enable=true ---
	initrd	/casper/initrd.lz
}
menuentry "Check disc for defects" {
	set gfxpayload=keep
	linux	/casper/vmlinuz.efi  cdrom-detect/try-usb=true noprompt floppy.allowed_drive_mask=0 ignore_uuid boot=casper integrity-check quiet splash ---
	initrd	/casper/initrd.lz
}
--------------------------------------------------------------------------------

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

           GiB - GB             File                                 Fragment(s)

            ?? = ??             boot/grub/grub.cfg                             1

=============================== StdErr Messages: ===============================

File descriptor 9 (/proc/6700/mounts) leaked on lvs invocation. Parent PID 21577: bash
File descriptor 63 (pipe:[65818]) leaked on lvs invocation. Parent PID 21577: bash

ADDITIONAL INFORMATION :
=================== log of boot-repair 20171105_1327 ===================
boot-repair version : 4ppa64
boot-sav version : 4ppa64
boot-sav-extra version : 4ppa64
glade2script version : 3.2.3~ppa4
Warning: failed to translate partition name
Warning: failed to translate partition name
boot-repair is executed in live-session (Ubuntu 16.04.3 LTS, xenial, Ubuntu, x86_64)
CPU op-mode(s):        32-bit, 64-bit
BOOT_IMAGE=/casper/vmlinuz.efi file=/cdrom/preseed/ubuntu-gnome.seed cdrom-detect/try-usb=true noprompt floppy.allowed_drive_mask=0 ignore_uuid boot=casper quiet splash ---
ls: cannot access '/home/usr/.config': No such file or directory

=================== os-prober:
/dev/sda2@/efi/Microsoft/Boot/bootmgfw.efi:Windows Boot Manager:Windows:efi
/dev/sda6:Ubuntu 16.04.3 LTS (16.04):Ubuntu:linux

=================== blkid:
/dev/sda1: LABEL="WINRE" UUID="16EC586FEC584B5F" TYPE="ntfs" PARTLABEL="Basic data partition" PARTUUID="0fbbd09a-72c4-4fe7-890d-824d956c1e47"
/dev/sda2: UUID="CE4E-C3EB" TYPE="vfat" PARTLABEL="EFI system partition" PARTUUID="d1858e0d-f6ca-42c9-b98d-e4f91441d579"
/dev/sda4: UUID="62CACFB0CACF7EB3" TYPE="ntfs" PARTLABEL="Basic data partition" PARTUUID="e2239548-637f-44bc-86fc-dd7464a4185e"
/dev/sda5: LABEL="RECOVERY" UUID="445254D35254CB76" TYPE="ntfs" PARTLABEL="Basic data partition" PARTUUID="29f84a54-9387-4f4f-ba03-7c67442947e8"
/dev/sda6: UUID="1553aafd-38a7-4628-bb63-36d9d3ebe0bf" TYPE="ext4" PARTUUID="636f726a-cb49-4150-ad78-c574992d71f8"
/dev/sdb1: LABEL="UUI" UUID="18FC-1036" TYPE="vfat"
/dev/loop0: TYPE="squashfs"
/dev/sda7: UUID="b38f0494-726a-4a9c-8bb4-5c9234520ac4" TYPE="swap" PARTUUID="742e6dc2-8ca7-4def-9161-a0e0dd2cf1fe"
/dev/sda3: PARTLABEL="Microsoft reserved partition" PARTUUID="f9f455c1-bccf-4681-a72e-c47303678304"


1 disks with OS, 2 OS : 1 Linux, 0 MacOS, 1 Windows, 0 unknown type OS.

Windows not detected by os-prober on sda4.
=================== No kernel in /mnt/boot-sav/sda2/boot:
boot.sdi


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/bootx64.efi
Presence of EFI/Boot file detected: /mnt/boot-sav/sda5/EFI/Boot/bootx64.efi

=================== sda6/etc/grub.d/ :
drwxr-xr-x  2 root root    4096 Aug  1 11:35 grub.d
total 80
-rwxr-xr-x 1 root root  9791 Jun 21 04:11 00_header
-rwxr-xr-x 1 root root  6258 Mar 15  2016 05_debian_theme
-rwxr-xr-x 1 root root 12512 Jun 21 04:11 10_linux
-rwxr-xr-x 1 root root 11082 Jun 21 04:11 20_linux_xen
-rwxr-xr-x 1 root root  1992 Jan 28  2016 20_memtest86+
-rwxr-xr-x 1 root root 11692 Jun 21 04:11 30_os-prober
-rwxr-xr-x 1 root root  1418 Jun 21 04:11 30_uefi-firmware
-rwxr-xr-x 1 root root   214 Jun 21 04:11 40_custom
-rwxr-xr-x 1 root root   216 Jun 21 04:11 41_custom
-rw-r--r-- 1 root root   483 Jun 21 04:11 README




=================== sda6/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 sda6: UUID=CE4E-C3EB   (sda2)

=================== efibootmgr -v
BootCurrent: 0006
Timeout: 5 seconds
BootOrder: 2001,0000,3000,0001,0002,0003,0007,0004,0005,2002,2003
Boot0000* Windows Boot Manager	HD(2,GPT,d1858e0d-f6ca-42c9-b98d-e4f91441d579,0xc8800,0x82000)/File(EFIMicrosoftBootbootmgfw.efi)WINDOWS.........x...B.C.D.O.B.J.E.C.T.=.{.9.d.e.a.8.6.2.c.-.5.c.d.d.-.4.e.7.0.-.a.c.c.1.-.f.3.2.b.3.4.4.d.4.7.9.5.}.../................
Boot0001* Windows Boot Manager	HD(2,GPT,d1858e0d-f6ca-42c9-b98d-e4f91441d579,0xc8800,0x82000)/File(EFIMicrosoftBootbootmgfw.efi)WINDOWS.........x...B.C.D.O.B.J.E.C.T.=.{.9.d.e.a.8.6.2.c.-.5.c.d.d.-.4.e.7.0.-.a.c.c.1.-.f.3.2.b.3.4.4.d.4.7.9.5.}...f................
Boot0002* Windows Boot Manager	HD(2,GPT,d1858e0d-f6ca-42c9-b98d-e4f91441d579,0xc8800,0x82000)/File(EFIMicrosoftBootbootmgfw.efi)WINDOWS.........x...B.C.D.O.B.J.E.C.T.=.{.9.d.e.a.8.6.2.c.-.5.c.d.d.-.4.e.7.0.-.a.c.c.1.-.f.3.2.b.3.4.4.d.4.7.9.5.}...R................
Boot0003* Windows Boot Manager	HD(2,GPT,d1858e0d-f6ca-42c9-b98d-e4f91441d579,0xc8800,0x82000)/File(EFIMicrosoftBootbootmgfw.efi)WINDOWS.........x...B.C.D.O.B.J.E.C.T.=.{.9.d.e.a.8.6.2.c.-.5.c.d.d.-.4.e.7.0.-.a.c.c.1.-.f.3.2.b.3.4.4.d.4.7.9.5.}...a................
Boot0004* Network Adapter (IPv4 UEFI)	PciRoot(0x0)/Pci(0x2,0x3)/Pci(0x0,0x0)/MAC(a01d48e5d86e,0)/IPv4(0.0.0.0:0<->0.0.0.0:0,0,0)RC
Boot0005* Network Adapter (IPv6 UEFI)	PciRoot(0x0)/Pci(0x2,0x3)/Pci(0x0,0x0)/MAC(a01d48e5d86e,0)/IPv6([::]:<->[::]:,0,0)RC
Boot0006* USB Hard Drive (UEFI) - USB DISK 3.0	PciRoot(0x0)/Pci(0x10,0x0)/USB(1,0)/HD(1,MBR,0x0,0x800,0x1ce0800)RC
Boot0007* ubuntu	HD(2,GPT,d1858e0d-f6ca-42c9-b98d-e4f91441d579,0xc8800,0x82000)/File(EFIubuntugrubx64.efi)
Boot2001* USB Drive (UEFI)	RC
Boot2002* Internal CD/DVD ROM Drive (UEFI)	RC
Boot3000* Internal Hard Disk or Solid State Disk	RC
Boot3001* Internal Hard Disk or Solid State Disk	RC
Boot3002* Internal Hard Disk or Solid State Disk	RC

=================== UEFI/Legacy mode:
BIOS is EFI-compatible, and is setup in EFI-mode for this live-session.
SecureBoot disabled. (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-kernel,	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,	farbios,	notbiosboot, /mnt/boot-sav/sda4.
sda5	: sda,	not-sepboot,	no-grubenv	nogrub,	no-docgrub,	no-update-grub,	32,	no-boot,	no-os,	is-maybe-EFI,	part-has-no-fstab,	part-has-no-fstab,	no-nt,	no-winload,	recovery-or-hidden,	bootmgr,	is-winboot,	nopakmgr,	nogrubinstall,	no---usr,	part-has-no-fstab,	not-sep-usr,	standard,	farbios,	notbiosboot, /mnt/boot-sav/sda5.
sda6	: 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,	farbios,	notbiosboot, /mnt/boot-sav/sda6.

sda	: GPT,	no-BIOS_boot,	has-correctEFI, 	not-usb,	not-mmc, has-os,	2048 sectors * 512 bytes


=================== parted -lm:

BYT;
/dev/sda:1000GB:scsi:512:4096:gpt:ATA ST1000LM024 HN-M:;
1:1049kB:420MB:419MB:ntfs::hidden, diag;
2:420MB:693MB:273MB:fat32::boot, esp;
3:693MB:827MB:134MB::Microsoft reserved partition:msftres;
4:827MB:954GB:953GB:ntfs:Basic data partition:msftdata;
6:954GB:973GB:18.8GB:ext4::;
7:973GB:981GB:8015MB:linux-swap(v1)::;
5:981GB:1000GB:19.7GB:ntfs:Basic data partition:hidden, msftdata;

BYT;
/dev/sdb:15.5GB:scsi:512:512:msdos: USB DISK 3.0:;
1:1049kB:15.5GB:15.5GB:fat32::boot, lba;

=================== lsblk:
KNAME TYPE FSTYPE     SIZE LABEL
sdb   disk           14.5G
sdb1  part vfat      14.4G UUI
sr0   rom            1024M
loop0 loop squashfs   1.2G
sda   disk          931.5G
sda4  part ntfs     887.4G
sda2  part vfat       260M
sda7  part swap       7.5G
sda5  part ntfs      18.3G RECOVERY
sda3  part            128M
sda1  part ntfs       400M WINRE
sda6  part ext4      17.5G

KNAME ROTA RO RM STATE   MOUNTPOINT
sdb      1  0  1 running
sdb1     1  0  1         /cdrom
sr0      1  0  1 running
loop0    1  1  0         /rofs
sda      1  0  0 running
sda4     1  0  0         /mnt/boot-sav/sda4
sda2     1  0  0         /mnt/boot-sav/sda2
sda7     1  0  0         [SWAP]
sda5     1  0  0         /mnt/boot-sav/sda5
sda3     1  0  0
sda1     1  0  0         /mnt/boot-sav/sda1
sda6     1  0  0         /mnt/boot-sav/sda6


=================== 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,relatime,size=3794244k,nr_inodes=948561,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,noexec,relatime,size=762064k,mode=755)
/dev/sdb1 on /cdrom type vfat (ro,noatime,fmask=0022,dmask=0022,codepage=437,iocharset=iso8859-1,shortname=mixed,errors=remount-ro)
/dev/loop0 on /rofs type squashfs (ro,noatime)
aufs on / type aufs (rw,noatime,si=cafb33baf2d6aac)
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)
cgroup on /sys/fs/cgroup/systemd type cgroup (rw,nosuid,nodev,noexec,relatime,xattr,release_agent=/lib/systemd/systemd-cgroups-agent,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)
cgroup on /sys/fs/cgroup/freezer type cgroup (rw,nosuid,nodev,noexec,relatime,freezer)
cgroup on /sys/fs/cgroup/blkio type cgroup (rw,nosuid,nodev,noexec,relatime,blkio)
cgroup on /sys/fs/cgroup/memory type cgroup (rw,nosuid,nodev,noexec,relatime,memory)
cgroup on /sys/fs/cgroup/pids type cgroup (rw,nosuid,nodev,noexec,relatime,pids)
cgroup on /sys/fs/cgroup/hugetlb type cgroup (rw,nosuid,nodev,noexec,relatime,hugetlb)
cgroup on /sys/fs/cgroup/cpu,cpuacct type cgroup (rw,nosuid,nodev,noexec,relatime,cpu,cpuacct)
cgroup on /sys/fs/cgroup/cpuset type cgroup (rw,nosuid,nodev,noexec,relatime,cpuset)
cgroup on /sys/fs/cgroup/perf_event type cgroup (rw,nosuid,nodev,noexec,relatime,perf_event)
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/devices type cgroup (rw,nosuid,nodev,noexec,relatime,devices)
systemd-1 on /proc/sys/fs/binfmt_misc type autofs (rw,relatime,fd=37,pgrp=1,timeout=0,minproto=5,maxproto=5,direct,pipe_ino=13124)
debugfs on /sys/kernel/debug type debugfs (rw,relatime)
mqueue on /dev/mqueue type mqueue (rw,relatime)
hugetlbfs on /dev/hugepages type hugetlbfs (rw,relatime)
tracefs on /sys/kernel/debug/tracing type tracefs (rw,relatime)
fusectl on /sys/fs/fuse/connections type fusectl (rw,relatime)
tmpfs on /tmp type tmpfs (rw,nosuid,nodev,relatime)
tmpfs on /run/user/999 type tmpfs (rw,nosuid,nodev,relatime,size=762064k,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/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 fuseblk (rw,relatime,user_id=0,group_id=0,allow_other,blksize=4096)
/dev/sda6 on /mnt/boot-sav/sda6 type ext4 (rw,relatime,data=ordered)


=================== ls:
/sys/block/sda (filtered):  alignment_offset badblocks bdi capability dev device discard_alignment events events_async events_poll_msecs ext_range holders inflight integrity power queue range removable ro sda1 sda2 sda3 sda4 sda5 sda6 sda7 size slaves stat subsystem trace uevent
/sys/block/sdb (filtered):  alignment_offset badblocks bdi capability dev device discard_alignment events events_async events_poll_msecs ext_range holders inflight integrity power queue range removable ro sdb1 size slaves stat subsystem trace uevent
/sys/block/sr0 (filtered):  alignment_offset badblocks bdi capability dev device discard_alignment events events_async events_poll_msecs ext_range holders inflight integrity power queue range removable ro size slaves stat subsystem trace uevent
/dev (filtered):  autofs block bsg btrfs-control bus cdrom cdrw char console core cpu cpu_dma_latency cuse disk dri drm_dp_aux0 dvd dvdrw ecryptfs fb0 fd freefall full fuse hidraw0 hidraw1 hidraw2 hpet hugepages hwrng i2c-0 i2c-1 i2c-10 i2c-11 i2c-12 i2c-13 i2c-14 i2c-15 i2c-16 i2c-2 i2c-3 i2c-4 i2c-5 i2c-6 i2c-7 i2c-8 i2c-9 initctl input kfd kmsg lightnvm log mapper mcelog media0 mem memory_bandwidth mqueue net network_latency network_throughput null port ppp psaux ptmx pts random rfkill rtc rtc0 sda sda1 sda2 sda3 sda4 sda5 sda6 sda7 sdb sdb1 sg0 sg1 sg2 shm snapshot snd sr0 stderr stdin stdout uhid uinput urandom usb userio v4l vfio vga_arbiter vhci vhost-net video0 zero
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 7f 0c 00 00 00 00 00  |................|
00000030  55 85 00 00 00 00 00 00  02 00 00 00 00 00 00 00  |U...............|
00000040  f6 00 00 00 01 00 00 00  5f 4b 58 ec 6f 58 ec 16  |........_KX.oX..|
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 41 20 64 69  |............A di|
00000190  73 6b 20 72 65 61 64 20  65 72 72 6f 72 20 6f 63  |sk read error oc|
000001a0  63 75 72 72 65 64 00 0d  0a 42 4f 4f 54 4d 47 52  |curred...BOOTMGR|
000001b0  20 69 73 20 63 6f 6d 70  72 65 73 73 65 64 00 0d  | is compressed..|
000001c0  0a 50 72 65 73 73 20 43  74 72 6c 2b 41 6c 74 2b  |.Press Ctrl+Alt+|
000001d0  44 65 6c 20 74 6f 20 72  65 73 74 61 72 74 0d 0a  |Del to restart..|
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  a7 01 bf 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 08 fe 1b  |.X.MSDOS5.0.....|
00000010  02 00 00 00 00 f8 00 00  3f 00 ff 00 00 88 0c 00  |........?.......|
00000020  00 20 08 00 01 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 eb c3 4e ce 4e  4f 20 4e 41 4d 45 20 20  |..)..N.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 a8 18 00  |........?.......|
00000020  00 00 00 00 80 00 80 00  ff cf ed 6e 00 00 00 00  |...........n....|
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  b3 7e cf ca b0 cf ca 62  |.........~.....b|
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
efi files in sda5/efi: /ubuntu/shimx64.efi /Boot/bootx64.efi

=================== hexdump -n512 -C /dev/sda5
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 78 26 72  |........?....x&r|
00000020  00 00 00 00 80 00 80 00  ff ef 49 02 00 00 00 00  |..........I.....|
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  76 cb 54 52 d3 54 52 44  |........v.TR.TRD|
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 41 20 64 69  |............A di|
00000190  73 6b 20 72 65 61 64 20  65 72 72 6f 72 20 6f 63  |sk read error oc|
000001a0  63 75 72 72 65 64 00 0d  0a 42 4f 4f 54 4d 47 52  |curred...BOOTMGR|
000001b0  20 69 73 20 63 6f 6d 70  72 65 73 73 65 64 00 0d  | is compressed..|
000001c0  0a 50 72 65 73 73 20 43  74 72 6c 2b 41 6c 74 2b  |.Press Ctrl+Alt+|
000001d0  44 65 6c 20 74 6f 20 72  65 73 74 61 72 74 0d 0a  |Del to restart..|
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  a7 01 bf 01 00 00 55 aa  |..............U.|
00000200

=================== df -Th:

Filesystem     Type      Size  Used Avail Use% Mounted on
udev           devtmpfs  3.7G     0  3.7G   0% /dev
tmpfs          tmpfs     745M  9.5M  735M   2% /run
/dev/sdb1      vfat       15G  1.3G   14G   9% /cdrom
/dev/loop0     squashfs  1.3G  1.3G     0 100% /rofs
aufs           aufs      3.7G  152M  3.5G   5% /
tmpfs          tmpfs     3.7G  252K  3.7G   1% /dev/shm
tmpfs          tmpfs     5.0M  4.0K  5.0M   1% /run/lock
tmpfs          tmpfs     3.7G     0  3.7G   0% /sys/fs/cgroup
tmpfs          tmpfs     3.7G     0  3.7G   0% /tmp
tmpfs          tmpfs     745M   52K  745M   1% /run/user/999
/dev/sda1      fuseblk   400M  287M  114M  72% /mnt/boot-sav/sda1
/dev/sda2      vfat      256M  100M  157M  39% /mnt/boot-sav/sda2
/dev/sda4      fuseblk   888G  109G  780G  13% /mnt/boot-sav/sda4
/dev/sda5      fuseblk    19G   17G  1.9G  90% /mnt/boot-sav/sda5
/dev/sda6      ext4       18G  3.6G   13G  22% /mnt/boot-sav/sda6

=================== fdisk -l:
Disk /dev/loop0: 1.2 GiB, 1295798272 bytes, 2530856 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: 931.5 GiB, 1000204886016 bytes, 1953525168 sectors
Units: sectors of 1 * 512 = 512 bytes
Sector size (logical/physical): 512 bytes / 4096 bytes
I/O size (minimum/optimal): 4096 bytes / 4096 bytes
Disklabel type: gpt
Disk identifier: 08CADE1B-69F8-42CE-BCDD-4A7FA49FC6EB

Device          Start        End    Sectors   Size Type
/dev/sda1        2048     821247     819200   400M Windows recovery environment
/dev/sda2      821248    1353727     532480   260M EFI System
/dev/sda3     1353728    1615871     262144   128M Microsoft reserved
/dev/sda4     1615872 1862694911 1861079040 887.4G Microsoft basic data
/dev/sda5  1915123712 1953523711   38400000  18.3G Microsoft basic data
/dev/sda6  1862694912 1899468799   36773888  17.5G Linux filesystem
/dev/sda7  1899468800 1915123711   15654912   7.5G Linux swap

Partition table entries are not in disk order.




Disk /dev/sdb: 14.5 GiB, 15504900096 bytes, 30283008 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
Disklabel type: dos
Disk identifier: 0x00000000

Device     Boot Start      End  Sectors  Size Id Type
/dev/sdb1  *     2048 30281727 30279680 14.4G  c W95 FAT32 (LBA)



=================== Recommended repair
The default repair of the Boot-Repair utility will reinstall the grub-efi-amd64-signed of sda6, using the following options:        sda2/boot/efi,
Additional repair will be performed: unhide-bootmenu-10s   fix-windows-boot use-standard-efi-file


/boot/efi added in sda6/fstab
rm /mnt/boot-sav/sda5/efi/Boot/bootx64.efi /mnt/boot-sav/sda5/efi/Boot/bootx64.efi.grb
Quantity of real Windows: 1
Mount sda2 on /mnt/boot-sav/sda6/boot/efi
efi files in sda2/efi: /Microsoft/Boot/memtest.efi /Microsoft/Boot/bootmgr.efi /Microsoft/Boot/bootmgfw.efi /HP/SystemDiags/SystemDiags.efi /HP/SystemDiags/SystemDiags32.efi /HP/SystemDiags/CryptRSA.efi /HP/SystemDiags/CryptRSA32.efi /HP/boot/memtest.efi /HP/boot/bootmgr.efi /HP/boot/bootmgfw.efi /HP/BIOSUpdate/HpBiosUpdate.efi /HP/BIOSUpdate/HpBiosUpdate32.efi /HP/BIOSUpdate/CryptRSA.efi /HP/BIOSUpdate/CryptRSA32.efi /ubuntu/grubx64.efi /ubuntu/fwupx64.efi /Boot/bootx64.efi

*******lspci -nnk | grep -iA3 vga
00:01.0 VGA compatible controller [0300]: Advanced Micro Devices, Inc. [AMD/ATI] Kabini [Radeon HD 8330] [1002:9832]
DeviceName: AMD Radeon HD 8330
Subsystem: Hewlett-Packard Company Kabini [Radeon HD 8330] [103c:213c]
Kernel driver in use: radeon
*******

grub-install --version
grub-install (GRUB) 2.02~beta2-36ubuntu3.12,grub-install (GRUB) 2.

chroot /mnt/boot-sav/sda6 efibootmgr -v
BootCurrent: 0006
Timeout: 5 seconds
BootOrder: 2001,0000,3000,0001,0002,0003,0007,0004,0005,2002,2003
Boot0000* Windows Boot Manager	HD(2,GPT,d1858e0d-f6ca-42c9-b98d-e4f91441d579,0xc8800,0x82000)/File(EFIMicrosoftBootbootmgfw.efi)WINDOWS.........x...B.C.D.O.B.J.E.C.T.=.{.9.d.e.a.8.6.2.c.-.5.c.d.d.-.4.e.7.0.-.a.c.c.1.-.f.3.2.b.3.4.4.d.4.7.9.5.}.../................
Boot0001* Windows Boot Manager	HD(2,GPT,d1858e0d-f6ca-42c9-b98d-e4f91441d579,0xc8800,0x82000)/File(EFIMicrosoftBootbootmgfw.efi)WINDOWS.........x...B.C.D.O.B.J.E.C.T.=.{.9.d.e.a.8.6.2.c.-.5.c.d.d.-.4.e.7.0.-.a.c.c.1.-.f.3.2.b.3.4.4.d.4.7.9.5.}...f................
Boot0002* Windows Boot Manager	HD(2,GPT,d1858e0d-f6ca-42c9-b98d-e4f91441d579,0xc8800,0x82000)/File(EFIMicrosoftBootbootmgfw.efi)WINDOWS.........x...B.C.D.O.B.J.E.C.T.=.{.9.d.e.a.8.6.2.c.-.5.c.d.d.-.4.e.7.0.-.a.c.c.1.-.f.3.2.b.3.4.4.d.4.7.9.5.}...R................
Boot0003* Windows Boot Manager	HD(2,GPT,d1858e0d-f6ca-42c9-b98d-e4f91441d579,0xc8800,0x82000)/File(EFIMicrosoftBootbootmgfw.efi)WINDOWS.........x...B.C.D.O.B.J.E.C.T.=.{.9.d.e.a.8.6.2.c.-.5.c.d.d.-.4.e.7.0.-.a.c.c.1.-.f.3.2.b.3.4.4.d.4.7.9.5.}...a................
Boot0004* Network Adapter (IPv4 UEFI)	PciRoot(0x0)/Pci(0x2,0x3)/Pci(0x0,0x0)/MAC(a01d48e5d86e,0)/IPv4(0.0.0.0:0<->0.0.0.0:0,0,0)RC
Boot0005* Network Adapter (IPv6 UEFI)	PciRoot(0x0)/Pci(0x2,0x3)/Pci(0x0,0x0)/MAC(a01d48e5d86e,0)/IPv6([::]:<->[::]:,0,0)RC
Boot0006* USB Hard Drive (UEFI) - USB DISK 3.0	PciRoot(0x0)/Pci(0x10,0x0)/USB(1,0)/HD(1,MBR,0x0,0x800,0x1ce0800)RC
Boot0007* ubuntu	HD(2,GPT,d1858e0d-f6ca-42c9-b98d-e4f91441d579,0xc8800,0x82000)/File(EFIubuntugrubx64.efi)
Boot2001* USB Drive (UEFI)	RC
Boot2002* Internal CD/DVD ROM Drive (UEFI)	RC
Boot3000* Internal Hard Disk or Solid State Disk	RC
Boot3001* Internal Hard Disk or Solid State Disk	RC
Boot3002* Internal Hard Disk or Solid State Disk	RC

chroot /mnt/boot-sav/sda6 uname -r
Kernel: 4.10.0-28-generic

Reinstall the grub-efi-amd64-signed of sda6
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 /HP/SystemDiags/SystemDiags.efi /HP/SystemDiags/SystemDiags32.efi /HP/SystemDiags/CryptRSA.efi /HP/SystemDiags/CryptRSA32.efi /HP/boot/memtest.efi /HP/boot/bootmgr.efi /HP/boot/bootmgfw.efi /HP/BIOSUpdate/HpBiosUpdate.efi /HP/BIOSUpdate/HpBiosUpdate32.efi /HP/BIOSUpdate/CryptRSA.efi /HP/BIOSUpdate/CryptRSA32.efi /ubuntu/grubx64.efi /ubuntu/fwupx64.efi /Boot/bootx64.efi
efi files in sda5/efi: /ubuntu/shimx64.efi
cp /mnt/boot-sav/sda6/boot/efi/EFI/ubuntu/grubx64.efi /mnt/boot-sav/sda5/efi/ubuntu/grubx64.efi
df /dev/sda2
Save and rename /mnt/boot-sav/sda6/boot/efi/EFI/Boot/bootx64.efi (/mnt/boot-sav/sda6/boot/efi/EFI/Boot/bkpbootx64.efi)
cp /mnt/boot-sav/sda6/boot/efi/EFI/ubuntu/grubx64.efi /mnt/boot-sav/sda6/boot/efi/EFI/Boot/bootx64.efi
efi files in sda2/efi: /Microsoft/Boot/memtest.efi /Microsoft/Boot/bootmgr.efi /Microsoft/Boot/bootmgfw.efi /HP/SystemDiags/SystemDiags.efi /HP/SystemDiags/SystemDiags32.efi /HP/SystemDiags/CryptRSA.efi /HP/SystemDiags/CryptRSA32.efi /HP/boot/memtest.efi /HP/boot/bootmgr.efi /HP/boot/bootmgfw.efi /HP/BIOSUpdate/HpBiosUpdate.efi /HP/BIOSUpdate/HpBiosUpdate32.efi /HP/BIOSUpdate/CryptRSA.efi /HP/BIOSUpdate/CryptRSA32.efi /ubuntu/grubx64.efi /ubuntu/fwupx64.efi /Boot/bootx64.efi /Boot/bkpbootx64.efi
Add /mnt/boot-sav/sda6/boot/efi efi entries in /mnt/boot-sav/sda6/etc/grub.d/25_custom
Adding custom /mnt/boot-sav/sda6/boot/efi/EFI/Microsoft/Boot/bootmgfw.efi
Adding custom /mnt/boot-sav/sda6/boot/efi/EFI/Boot/bkpbootx64.efi
sda2/bkpbootx64.efi already added
Adding custom /mnt/boot-sav/sda6/boot/efi/EFI/ubuntu/fwupx64.efi
Adding custom /mnt/boot-sav/sda6/boot/efi/EFI/HP/BIOSUpdate/CryptRSA32.efi
Adding custom /mnt/boot-sav/sda6/boot/efi/EFI/HP/BIOSUpdate/CryptRSA.efi
Adding custom /mnt/boot-sav/sda6/boot/efi/EFI/HP/BIOSUpdate/HpBiosUpdate32.efi
Adding custom /mnt/boot-sav/sda6/boot/efi/EFI/HP/BIOSUpdate/HpBiosUpdate.efi
Adding custom /mnt/boot-sav/sda6/boot/efi/EFI/HP/boot/bootmgfw.efi
Adding custom /mnt/boot-sav/sda6/boot/efi/EFI/HP/SystemDiags/CryptRSA32.efi
Adding custom /mnt/boot-sav/sda6/boot/efi/EFI/HP/SystemDiags/CryptRSA.efi
Adding custom /mnt/boot-sav/sda6/boot/efi/EFI/HP/SystemDiags/SystemDiags32.efi
Adding custom /mnt/boot-sav/sda6/boot/efi/EFI/HP/SystemDiags/SystemDiags.efi
sda2/bootmgfw.efi already added
df /dev/sda5
cp /mnt/boot-sav/sda6/boot/efi/EFI/ubuntu/grubx64.efi /mnt/boot-sav/sda5/efi/Boot/bootx64.efi (& .grb)
efi files in sda5/efi: /ubuntu/shimx64.efi /ubuntu/grubx64.efi /Boot/bootx64.efi
Add /mnt/boot-sav/sda5 efi entries in /mnt/boot-sav/sda6/etc/grub.d/25_custom
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/sda6 efibootmgr -v
BootCurrent: 0006
Timeout: 5 seconds
BootOrder: 0007,2001,0000,3000,0001,0002,0003,0004,0005,2002,2003
Boot0000* Windows Boot Manager	HD(2,GPT,d1858e0d-f6ca-42c9-b98d-e4f91441d579,0xc8800,0x82000)/File(EFIMicrosoftBootbootmgfw.efi)WINDOWS.........x...B.C.D.O.B.J.E.C.T.=.{.9.d.e.a.8.6.2.c.-.5.c.d.d.-.4.e.7.0.-.a.c.c.1.-.f.3.2.b.3.4.4.d.4.7.9.5.}.../................
Boot0001* Windows Boot Manager	HD(2,GPT,d1858e0d-f6ca-42c9-b98d-e4f91441d579,0xc8800,0x82000)/File(EFIMicrosoftBootbootmgfw.efi)WINDOWS.........x...B.C.D.O.B.J.E.C.T.=.{.9.d.e.a.8.6.2.c.-.5.c.d.d.-.4.e.7.0.-.a.c.c.1.-.f.3.2.b.3.4.4.d.4.7.9.5.}...f................
Boot0002* Windows Boot Manager	HD(2,GPT,d1858e0d-f6ca-42c9-b98d-e4f91441d579,0xc8800,0x82000)/File(EFIMicrosoftBootbootmgfw.efi)WINDOWS.........x...B.C.D.O.B.J.E.C.T.=.{.9.d.e.a.8.6.2.c.-.5.c.d.d.-.4.e.7.0.-.a.c.c.1.-.f.3.2.b.3.4.4.d.4.7.9.5.}...R................
Boot0003* Windows Boot Manager	HD(2,GPT,d1858e0d-f6ca-42c9-b98d-e4f91441d579,0xc8800,0x82000)/File(EFIMicrosoftBootbootmgfw.efi)WINDOWS.........x...B.C.D.O.B.J.E.C.T.=.{.9.d.e.a.8.6.2.c.-.5.c.d.d.-.4.e.7.0.-.a.c.c.1.-.f.3.2.b.3.4.4.d.4.7.9.5.}...a................
Boot0004* Network Adapter (IPv4 UEFI)	PciRoot(0x0)/Pci(0x2,0x3)/Pci(0x0,0x0)/MAC(a01d48e5d86e,0)/IPv4(0.0.0.0:0<->0.0.0.0:0,0,0)RC
Boot0005* Network Adapter (IPv6 UEFI)	PciRoot(0x0)/Pci(0x2,0x3)/Pci(0x0,0x0)/MAC(a01d48e5d86e,0)/IPv6([::]:<->[::]:,0,0)RC
Boot0006* USB Hard Drive (UEFI) - USB DISK 3.0	PciRoot(0x0)/Pci(0x10,0x0)/USB(1,0)/HD(1,MBR,0x0,0x800,0x1ce0800)RC
Boot0007* ubuntu	HD(2,GPT,d1858e0d-f6ca-42c9-b98d-e4f91441d579,0xc8800,0x82000)/File(EFIubuntugrubx64.efi)
Boot2001* USB Drive (UEFI)	RC
Boot2002* Internal CD/DVD ROM Drive (UEFI)	RC
Boot3000* Internal Hard Disk or Solid State Disk	RC
Boot3001* Internal Hard Disk or Solid State Disk	RC
Boot3002* Internal Hard Disk or Solid State Disk	RC

chroot /mnt/boot-sav/sda6 update-grub
Generating grub configuration file ...
Found linux image: /boot/vmlinuz-4.10.0-28-generic
Found initrd image: /boot/initrd.img-4.10.0-28-generic
Found Windows Boot Manager on /dev/sda2@/EFI/Microsoft/Boot/bootmgfw.efi
Adding boot menu entry for EFI firmware configuration
Unhide GRUB boot menu in sda6/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/grubx64.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\grubx64.efi

Ton dual-boot est parfait. HP pratique le verrouillage du démarrage sur Windows et Boot-Repair n'est pas capable de réparer cela comme tu as pu le constater. La solution adoptée par la majorité des utilisateurs de HP est de presser la touche F9 au démarrage de l'ordi  pour faire apparaître le Boot Menu et sélectionner ubuntu dans la liste proposée. Oui, c'est pas l'idéal mais on n'est pas obligé d'acheter un ordi HP qui est un des pires fabricants pour installer un Linux en dual-boot avec Windows.

EDIT : pourrais-tu donner le nom complet du modèle de ton ordi ? Cela me permettrait de le mentionner dans la Liste des portables HP

Dernière modification par malbo (Le 05/11/2017, à 21:51)

Hors ligne

#3 Le 05/11/2017, à 22:26

ben-cptr

Re : [Résolu] Dual boot w8 : Erreur de boot-repair + pas grub au démarrage

Merci ! smile
Super s'il n'y a rien à signaler.

Voici le nom du produit : HP Pavilion 17 Notebook PC - F8R64EA#ABF

Si je peux me permettre :
Je remarque que le démarrage est assez long (menu du boot etc...) ainsi que l'utilisation d'ubuntu.
- Aurais-tu des idées à creuser pour améliorer cela ? (j'ai refiler environ 25 Go à Ubuntu, je ne sais pas s'il y a un rapport).
- Un moyen de mettre Ubuntu en démarrage par défaut ?

Concernant le post, étant donné que le titre n'est pas valide vu qu'il n'y a pas de problème en soi, je supprime ou je marque comme résolu ?

Encore merci ! Bonne soirée.

Hors ligne

#4 Le 06/11/2017, à 06:45

malbo

Re : [Résolu] Dual boot w8 : Erreur de boot-repair + pas grub au démarrage

Bonjour,
D'après le numéro de produit F8R64EA#ABF que tu as donné, j'ai trouvé en passant par le support HP qu'il s'agit du modèle HP Pavilion 17-e118sf qu'on peut voir ici ou bien
Il est équipé d'un processeur AMD A4-5000. La partie graphique est intégrée sur la même puce que le processeur. Il n'y a pas de carte graphique dédiée.
Je fais juste une remarque : tu as installé la version 16.04.3 parce que c'est la version proposée du moment chez Ubuntu mais cette version 16.04.3 est surtout adaptée aux ordis très récents. Or ton modèle est sorti il y a environ 4 ans et la version 16.04.1 lui aurait mieux convenu à mon avis (*). C'est ce que je t'aurais conseillé si j'avais pu le faire avant que tu installes. A présent, c'est trop tard et je te suggère de laisser en l'état.
Je viens d'ajouter ton modèle Pavilion 17-e118sf dans la Liste des portables HP

ben-cptr a écrit :

Je remarque que le démarrage est assez long (menu du boot etc...) ainsi que l'utilisation d'ubuntu. Aurais-tu des idées à creuser pour améliorer cela ?

L'analyse du problème de lenteur est délicate et je ne suis pas le plus compétent pour ce type de problème. Je te suggère de créer une nouvelle discussion sur le sujet en y donnant le lien vers la présente discussion afin que les aidants aient le maximum d'infos.

ben-cptr a écrit :

- Un moyen de mettre Ubuntu en démarrage par défaut ?

Non aucun moyen fiable sinon je te l'aurais indiqué. Il existe du bricolage qui permet ça mais qui casse à plus ou moins brève échéance, c'est pourquoi je te recommande de t'en tenir à la touche F9 au démarrage pour aller sur Ubuntu.

ben-cptr a écrit :

Concernant le post, étant donné que le titre n'est pas valide vu qu'il n'y a pas de problème en soi, je supprime ou je marque comme résolu ?

Je te suggère de ne pas changer ton titre mais de seulement ajouter "résolu" en début de titre suivant cette procédure :
1) te connecter sur le forum
2) cliquer sur "Modifier" en bas à droite de ton PREMIER post
3) modifier le titre de la discussion pour qu'il devienne :

[Résolu] Dual boot w8 : Erreur de boot-repair + absence grub au démarrage 

(*) la version 16.04.1 est la version sans HWE stack. J'ai créé une discussion sur le sujet ici.

Dernière modification par malbo (Le 06/11/2017, à 07:41)

Hors ligne

#5 Le 06/11/2017, à 10:54

ben-cptr

Re : [Résolu] Dual boot w8 : Erreur de boot-repair + pas grub au démarrage

N'y connaissant pas grand chose, je me renseignerai sur cette histoire de HWE stack.
Si avec le temps les chargements sont longs, j'envisagerai de réinstaller la version 16.04.1 (il doit sûrement y avoir des tutos pour faire ça proprement ahah)

Merci beaucoup !

Bonne journée.

Hors ligne

#6 Le 06/11/2017, à 12:22

malbo

Re : [Résolu] Dual boot w8 : Erreur de boot-repair + pas grub au démarrage

ben-cptr a écrit :

Si avec le temps les chargements sont longs, j'envisagerai de réinstaller la version 16.04.1

C'est justement ce que je ne t'ai pas proposé. Moi je t'ai suggéré dans le post #4 de créer une nouvelle discussion pour qu'on t'aide à résoudre ce pb de lenteur. Si tu as envie de le faire, tu peux créer cette nouvelle discussion dans la rubrique "Autres logiciels et problèmes généraux" du forum. C'est une rubrique fréquentée par des plus experts que moi.

Dernière modification par malbo (Le 06/11/2017, à 12:24)

Hors ligne

#7 Le 07/11/2017, à 15:03

Pascaltech

Re : [Résolu] Dual boot w8 : Erreur de boot-repair + pas grub au démarrage

Bonjour,

Pourquoi ne pas avoir utilisé Gparted pour faire la partition ? L'utilisation de Windows n'est-elle pas la source du problème ?

Également :

[============================= Boot Info Summary: ===============================

=> No boot loader is installed in the MBR of /dev/sda.
=> Syslinux MBR (4.04-4.07) is installed in the MBR of /dev/sdb.

il n'y a pas de boot dans le MBR de sda, mais dans celui de sdb. Est-ce une erreur de choix lors de l'install ou une impossibilité ?

D'autre part, :

Please do not forget to make your BIOS boot on sda2/EFI/ubuntu/grubx64.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\grubx64.efi

L'ordre de boot a-t-il été changé dans le BIOS ?


Emachine el1200, Xubuntu 20.04 LTS
Traductions guides serveur & grub et liens utiles Classement CG
inxi -F sudo lshw dpkg -l

Hors ligne

#8 Le 07/11/2017, à 15:20

malbo

Re : [Résolu] Dual boot w8 : Erreur de boot-repair + pas grub au démarrage

Pascaltech a écrit :

il n'y a pas de boot dans le MBR de sda, mais dans celui de sdb.

C'est normal parce que Ubuntu a été installé en mode EFI comme il se doit puisque Windows préinstallé était déjà installé en mode EFI. De ce fait le chargeur d'amorçage de Grub ne se trouve pas dans le MBR mais dans la partition EFI de sda. Il s'agit du fichier /EFI/ubuntu/grubx64.efi  qu'on peut voir dans cet extrait du Boot-Info :

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/ubuntu/fwupx64.efi 
                       /EFI/ubuntu/grubx64.efi  

Dernière modification par malbo (Le 07/11/2017, à 15:21)

Hors ligne

#9 Le 07/11/2017, à 16:06

Pascaltech

Re : [Résolu] Dual boot w8 : Erreur de boot-repair + pas grub au démarrage

Ok, c'est noté. Merci.


Emachine el1200, Xubuntu 20.04 LTS
Traductions guides serveur & grub et liens utiles Classement CG
inxi -F sudo lshw dpkg -l

Hors ligne

#10 Le 14/11/2017, à 01:33

opensky

Re : [Résolu] Dual boot w8 : Erreur de boot-repair + pas grub au démarrage

Vu qu'Unity ; va être abandonné dans les futurs versions....La migration vers les versions supérieures risque de poser plus de problèmes.... ; qu'il est lourd (gourmand en ressource ) voir peu pratique (dash...trois clic pour atteindre la liste des programmes....) ; je t'aurais conseillé Lxde Lubuntu  Xubuntu Gnome ou Mate qui est excellent et qui boot vitesse grand V mais bon...

A+
Ps: pour booter directement sur Ubuntu tu as la solution de l'installer sur carte mémoire externe "64" giga et de règler le bios pour booter dessus en priorité...testé depuis 2 ans sans soucis....si tu as un lecteur de carte...

Dernière modification par opensky (Le 14/11/2017, à 01:38)

Hors ligne