Dual Boot W10/Debian

Tags: #<Tag:0x00007f63f3a9af98>

Bonjour à tous,

Je récemment installé Debian sur mon ordinateur qui avait déjà W10 d’installé.
La config des DD est comme suit:

  • 1 DD 250Go pour W10
  • 1 DD 250 Go pour Debian
  • 1 DD 500Go pour la partition /home

Mon problème est que Grub ne voit que Debian. J’arrive à booter sur W10 en passant par le bios.

J’ai essayer de “réparer” Grub en utilisant superGrub, et lorsque j’essaye de lancer W10 depuis sGrub il me dit que c’est impossible car il a démarré en bios “classique” (je n’ai plus le terme exact) et que le boot w10 est en bios UEFI.

Quelle est la solution pour avoir un choix entre les deux OS au démarrage?

Merci de votre aide.

Non, non et non. GRUB n’a pas besoin d’être réparé. Il fonctionne puisqu’il démarre et lance Debian.

Peu importe comment tu démarres SuperGrub, ce qui compte c’est comment GRUB/Debian que tu as installé démarre. Debian et Windows doivent démarrer dans le même mode, EFI ou BIOS/legacy.

Installe le paquet bootinfoscript, exécute le programme boot-info-script (ou fais-le depuis SuperGrub s’il est dispo) et poste le rapport.

Voilà le résultat:

                  Boot Info Script 0.77      [10 June 2018]


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

 => Windows 7/8/2012 is installed in the MBR of /dev/sda.
 => Grub2 (v2.00) is installed in the MBR of /dev/sdb and looks at sector 1 of 
    the same hard drive for core.img. core.img is at this location and looks 
    for (,msdos1)/boot/grub. It also embeds following components:
    
    modules
    ---------------------------------------------------------------------------
    fshelp ext2 part_msdos biosdisk
    ---------------------------------------------------------------------------
 => libparted MBR boot code is installed in the MBR of /dev/sdd.

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/Boot/bootx64.efi /efi/Microsoft/Boot/bootmgfw.efi 
                       /efi/Microsoft/Boot/bootmgr.efi 
                       /efi/Microsoft/Boot/memtest.efi

sda3: __________________________________________________________________________

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

sda4: __________________________________________________________________________

    File system:       ntfs
    Boot sector type:  Windows 8/2012: NTFS
    Boot sector info:  No errors found in the Boot Parameter Block.
    Operating System:  
    Boot files:        /bootmgr /Windows/System32/winload.exe

sda5: __________________________________________________________________________

    File system:       ntfs
    Boot sector type:  Windows 8/2012: NTFS
    Boot sector info:  No errors found in the Boot Parameter Block.
    Operating System:  
    Boot files:        

sdb1: __________________________________________________________________________

    File system:       ext4
    Boot sector type:  -
    Boot sector info: 
    Operating System:  Debian GNU/Linux 10 (buster)
    Boot files:        /boot/grub/grub.cfg /etc/fstab 
                       /boot/grub/i386-pc/core.img

sdb2: __________________________________________________________________________

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

sdb5: __________________________________________________________________________

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

sdd1: __________________________________________________________________________

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

sdd5: __________________________________________________________________________

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

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

Drive: sda _____________________________________________________________________
Disque /dev/sda : 232,9 GiB, 250059350016 octets, 488397168 secteurs
Modèle de disque : Samsung SSD 850 
Unités : secteur de 1 × 512 = 512 octets
Taille de secteur (logique / physique) : 512 octets / 512 octets
taille d'E/S (minimale / optimale) : 512 octets / 512 octets

Partition  Boot  Start Sector    End Sector  # of Sectors  Id System

/dev/sda1                   1 4,294,967,295 4,294,967,295  ee GPT

/dev/sda1 ends after the last sector of /dev/sda

GUID Partition Table detected.

Partition  Attrs   Start Sector    End Sector  # of Sectors System
/dev/sda1   +  R          2,048       923,647       921,600 Windows Recovery Environment (Windows)
/dev/sda2   +           923,648     1,126,399       202,752 EFI System partition
/dev/sda3   +         1,126,400     1,159,167        32,768 Microsoft Reserved Partition (Windows)
/dev/sda4             1,159,168   487,311,203   486,152,036 Data partition (Windows/Linux)
/dev/sda5   +  R    487,311,360   488,394,751     1,083,392 Windows Recovery Environment (Windows)

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

Drive: sdb _____________________________________________________________________
Disque /dev/sdb : 223,6 GiB, 240057409536 octets, 468862128 secteurs
Modèle de disque : KINGSTON SA400S3
Unités : secteur de 1 × 512 = 512 octets
Taille de secteur (logique / physique) : 512 octets / 512 octets
taille d'E/S (minimale / optimale) : 512 octets / 512 octets

Partition  Boot  Start Sector    End Sector  # of Sectors  Id System

/dev/sdb1    *          2,048   452,149,247   452,147,200  83 Linux
/dev/sdb2         452,259,838   468,860,927    16,601,090   5 Extended
/dev/sdb5         452,259,840   468,860,927    16,601,088  82 Linux swap / Solaris


Drive: sdd _____________________________________________________________________
Disque /dev/sdd : 465,8 GiB, 500107862016 octets, 976773168 secteurs
Modèle de disque : ST500DM009-2F110
Unités : secteur de 1 × 512 = 512 octets
Taille de secteur (logique / physique) : 512 octets / 4096 octets
taille d'E/S (minimale / optimale) : 4096 octets / 4096 octets

Partition  Boot  Start Sector    End Sector  # of Sectors  Id System

/dev/sdd1               2,046   976,771,071   976,769,026   5 Extended
/dev/sdd5               2,048   976,771,071   976,769,024  83 Linux


"blkid" output: ________________________________________________________________

Device           UUID                                   TYPE       LABEL

/dev/sda1        AA8848008847C991                       ntfs       
/dev/sda2        9806-C6A6                              vfat       
/dev/sda3                                                          
/dev/sda4        EE3207D73207A425                       ntfs       
/dev/sda5        4CC4F7B7C4F7A0FE                       ntfs       
/dev/sdb1        cc05e7e7-ef40-429d-b60a-d6fb047b0e61   ext4       
/dev/sdb5        ee380324-b0ce-43d2-a11f-6f1698c04f47   swap       
/dev/sdd5        5d43ac8e-31f8-48d0-a589-49c2b8b7fac1   ext4       

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

total 0
lrwxrwxrwx 1 root root  9 févr. 25 19:07 ata-HL-DT-ST_DVDRAM_GH24NSD1_K1DH6DE1756 -> ../../sr0
lrwxrwxrwx 1 root root  9 févr. 25 19:07 ata-KINGSTON_SA400S37240G_50026B7782F717BC -> ../../sdb
lrwxrwxrwx 1 root root 10 févr. 25 19:07 ata-KINGSTON_SA400S37240G_50026B7782F717BC-part1 -> ../../sdb1
lrwxrwxrwx 1 root root 10 févr. 25 19:07 ata-KINGSTON_SA400S37240G_50026B7782F717BC-part2 -> ../../sdb2
lrwxrwxrwx 1 root root 10 févr. 25 19:07 ata-KINGSTON_SA400S37240G_50026B7782F717BC-part5 -> ../../sdb5
lrwxrwxrwx 1 root root  9 févr. 25 19:07 ata-Samsung_SSD_850_EVO_250GB_S2R6NB0JB42541X -> ../../sda
lrwxrwxrwx 1 root root 10 févr. 25 19:07 ata-Samsung_SSD_850_EVO_250GB_S2R6NB0JB42541X-part1 -> ../../sda1
lrwxrwxrwx 1 root root 10 févr. 25 19:07 ata-Samsung_SSD_850_EVO_250GB_S2R6NB0JB42541X-part2 -> ../../sda2
lrwxrwxrwx 1 root root 10 févr. 25 19:07 ata-Samsung_SSD_850_EVO_250GB_S2R6NB0JB42541X-part3 -> ../../sda3
lrwxrwxrwx 1 root root 10 févr. 25 19:07 ata-Samsung_SSD_850_EVO_250GB_S2R6NB0JB42541X-part4 -> ../../sda4
lrwxrwxrwx 1 root root 10 févr. 25 19:07 ata-Samsung_SSD_850_EVO_250GB_S2R6NB0JB42541X-part5 -> ../../sda5
lrwxrwxrwx 1 root root  9 févr. 25 19:07 ata-ST500DM009-2F110A_ZA4B5F73 -> ../../sdd
lrwxrwxrwx 1 root root 10 févr. 25 19:07 ata-ST500DM009-2F110A_ZA4B5F73-part1 -> ../../sdd1
lrwxrwxrwx 1 root root 10 févr. 25 19:07 ata-ST500DM009-2F110A_ZA4B5F73-part5 -> ../../sdd5
lrwxrwxrwx 1 root root  9 févr. 25 19:07 usb-Generic_STORAGE_DEVICE_000000000903-0:0 -> ../../sdc
lrwxrwxrwx 1 root root  9 févr. 25 19:07 wwn-0x5000c500b5870435 -> ../../sdd
lrwxrwxrwx 1 root root 10 févr. 25 19:07 wwn-0x5000c500b5870435-part1 -> ../../sdd1
lrwxrwxrwx 1 root root 10 févr. 25 19:07 wwn-0x5000c500b5870435-part5 -> ../../sdd5
lrwxrwxrwx 1 root root  9 févr. 25 19:07 wwn-0x5001480000000000 -> ../../sr0
lrwxrwxrwx 1 root root  9 févr. 25 19:07 wwn-0x5002538d42751e55 -> ../../sda
lrwxrwxrwx 1 root root 10 févr. 25 19:07 wwn-0x5002538d42751e55-part1 -> ../../sda1
lrwxrwxrwx 1 root root 10 févr. 25 19:07 wwn-0x5002538d42751e55-part2 -> ../../sda2
lrwxrwxrwx 1 root root 10 févr. 25 19:07 wwn-0x5002538d42751e55-part3 -> ../../sda3
lrwxrwxrwx 1 root root 10 févr. 25 19:07 wwn-0x5002538d42751e55-part4 -> ../../sda4
lrwxrwxrwx 1 root root 10 févr. 25 19:07 wwn-0x5002538d42751e55-part5 -> ../../sda5
lrwxrwxrwx 1 root root  9 févr. 25 19:07 wwn-0x50026b7782f717bc -> ../../sdb
lrwxrwxrwx 1 root root 10 févr. 25 19:07 wwn-0x50026b7782f717bc-part1 -> ../../sdb1
lrwxrwxrwx 1 root root 10 févr. 25 19:07 wwn-0x50026b7782f717bc-part2 -> ../../sdb2
lrwxrwxrwx 1 root root 10 févr. 25 19:07 wwn-0x50026b7782f717bc-part5 -> ../../sdb5

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

Device           Mount_Point              Type       Options

/dev/sdb1        /                        ext4       (rw,relatime,errors=remount-ro)
/dev/sdd5        /home                    ext4       (rw,relatime)


=========================== sdb1/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 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_msdos
insmod ext2
set root='hd1,msdos1'
if [ x$feature_platform_search_hint = xy ]; then
  search --no-floppy --fs-uuid --set=root --hint-bios=hd1,msdos1 --hint-efi=hd1,msdos1 --hint-baremetal=ahci1,msdos1  cc05e7e7-ef40-429d-b60a-d6fb047b0e61
else
  search --no-floppy --fs-uuid --set=root cc05e7e7-ef40-429d-b60a-d6fb047b0e61
fi
    font="/usr/share/grub/unicode.pf2"
fi

if loadfont $font ; then
  set gfxmode=auto
  load_video
  insmod gfxterm
fi
terminal_output gfxterm
if [ "${recordfail}" = 1 ] ; then
  set timeout=30
else
  if [ x$feature_timeout_style = xy ] ; then
    set timeout_style=menu
    set timeout=5
  # Fallback normal timeout code in case the timeout_style feature is
  # unavailable.
  else
    set timeout=5
  fi
fi
### END /etc/grub.d/00_header ###

### BEGIN /etc/grub.d/05_debian_theme ###
insmod part_msdos
insmod ext2
set root='hd1,msdos1'
if [ x$feature_platform_search_hint = xy ]; then
  search --no-floppy --fs-uuid --set=root --hint-bios=hd1,msdos1 --hint-efi=hd1,msdos1 --hint-baremetal=ahci1,msdos1  cc05e7e7-ef40-429d-b60a-d6fb047b0e61
else
  search --no-floppy --fs-uuid --set=root cc05e7e7-ef40-429d-b60a-d6fb047b0e61
fi
insmod png
if background_image /usr/share/desktop-base/futureprototype-theme/grub/grub-4x3.png; then
  set color_normal=white/black
  set color_highlight=black/white
else
  set menu_color_normal=cyan/blue
  set menu_color_highlight=white/blue
fi
### END /etc/grub.d/05_debian_theme ###

### BEGIN /etc/grub.d/10_linux ###
function gfxmode {
	set gfxpayload="${1}"
}
set linux_gfx_mode=
export linux_gfx_mode
menuentry 'Debian GNU/Linux' --class debian --class gnu-linux --class gnu --class os $menuentry_id_option 'gnulinux-simple-cc05e7e7-ef40-429d-b60a-d6fb047b0e61' {
	load_video
	insmod gzio
	if [ x$grub_platform = xxen ]; then insmod xzio; insmod lzopio; fi
	insmod part_msdos
	insmod ext2
	set root='hd1,msdos1'
	if [ x$feature_platform_search_hint = xy ]; then
	  search --no-floppy --fs-uuid --set=root --hint-bios=hd1,msdos1 --hint-efi=hd1,msdos1 --hint-baremetal=ahci1,msdos1  cc05e7e7-ef40-429d-b60a-d6fb047b0e61
	else
	  search --no-floppy --fs-uuid --set=root cc05e7e7-ef40-429d-b60a-d6fb047b0e61
	fi
	echo	'Loading Linux 4.19.0-8-amd64 ...'
	linux	/boot/vmlinuz-4.19.0-8-amd64 root=UUID=cc05e7e7-ef40-429d-b60a-d6fb047b0e61 ro  quiet
	echo	'Loading initial ramdisk ...'
	initrd	/boot/initrd.img-4.19.0-8-amd64
}
submenu 'Advanced options for Debian GNU/Linux' $menuentry_id_option 'gnulinux-advanced-cc05e7e7-ef40-429d-b60a-d6fb047b0e61' {
	menuentry 'Debian GNU/Linux, with Linux 4.19.0-8-amd64' --class debian --class gnu-linux --class gnu --class os $menuentry_id_option 'gnulinux-4.19.0-8-amd64-advanced-cc05e7e7-ef40-429d-b60a-d6fb047b0e61' {
		load_video
		insmod gzio
		if [ x$grub_platform = xxen ]; then insmod xzio; insmod lzopio; fi
		insmod part_msdos
		insmod ext2
		set root='hd1,msdos1'
		if [ x$feature_platform_search_hint = xy ]; then
		  search --no-floppy --fs-uuid --set=root --hint-bios=hd1,msdos1 --hint-efi=hd1,msdos1 --hint-baremetal=ahci1,msdos1  cc05e7e7-ef40-429d-b60a-d6fb047b0e61
		else
		  search --no-floppy --fs-uuid --set=root cc05e7e7-ef40-429d-b60a-d6fb047b0e61
		fi
		echo	'Loading Linux 4.19.0-8-amd64 ...'
		linux	/boot/vmlinuz-4.19.0-8-amd64 root=UUID=cc05e7e7-ef40-429d-b60a-d6fb047b0e61 ro  quiet
		echo	'Loading initial ramdisk ...'
		initrd	/boot/initrd.img-4.19.0-8-amd64
	}
	menuentry 'Debian GNU/Linux, with Linux 4.19.0-8-amd64 (recovery mode)' --class debian --class gnu-linux --class gnu --class os $menuentry_id_option 'gnulinux-4.19.0-8-amd64-recovery-cc05e7e7-ef40-429d-b60a-d6fb047b0e61' {
		load_video
		insmod gzio
		if [ x$grub_platform = xxen ]; then insmod xzio; insmod lzopio; fi
		insmod part_msdos
		insmod ext2
		set root='hd1,msdos1'
		if [ x$feature_platform_search_hint = xy ]; then
		  search --no-floppy --fs-uuid --set=root --hint-bios=hd1,msdos1 --hint-efi=hd1,msdos1 --hint-baremetal=ahci1,msdos1  cc05e7e7-ef40-429d-b60a-d6fb047b0e61
		else
		  search --no-floppy --fs-uuid --set=root cc05e7e7-ef40-429d-b60a-d6fb047b0e61
		fi
		echo	'Loading Linux 4.19.0-8-amd64 ...'
		linux	/boot/vmlinuz-4.19.0-8-amd64 root=UUID=cc05e7e7-ef40-429d-b60a-d6fb047b0e61 ro single 
		echo	'Loading initial ramdisk ...'
		initrd	/boot/initrd.img-4.19.0-8-amd64
	}
	menuentry 'Debian GNU/Linux, with Linux 4.19.0-6-amd64' --class debian --class gnu-linux --class gnu --class os $menuentry_id_option 'gnulinux-4.19.0-6-amd64-advanced-cc05e7e7-ef40-429d-b60a-d6fb047b0e61' {
		load_video
		insmod gzio
		if [ x$grub_platform = xxen ]; then insmod xzio; insmod lzopio; fi
		insmod part_msdos
		insmod ext2
		set root='hd1,msdos1'
		if [ x$feature_platform_search_hint = xy ]; then
		  search --no-floppy --fs-uuid --set=root --hint-bios=hd1,msdos1 --hint-efi=hd1,msdos1 --hint-baremetal=ahci1,msdos1  cc05e7e7-ef40-429d-b60a-d6fb047b0e61
		else
		  search --no-floppy --fs-uuid --set=root cc05e7e7-ef40-429d-b60a-d6fb047b0e61
		fi
		echo	'Loading Linux 4.19.0-6-amd64 ...'
		linux	/boot/vmlinuz-4.19.0-6-amd64 root=UUID=cc05e7e7-ef40-429d-b60a-d6fb047b0e61 ro  quiet
		echo	'Loading initial ramdisk ...'
		initrd	/boot/initrd.img-4.19.0-6-amd64
	}
	menuentry 'Debian GNU/Linux, with Linux 4.19.0-6-amd64 (recovery mode)' --class debian --class gnu-linux --class gnu --class os $menuentry_id_option 'gnulinux-4.19.0-6-amd64-recovery-cc05e7e7-ef40-429d-b60a-d6fb047b0e61' {
		load_video
		insmod gzio
		if [ x$grub_platform = xxen ]; then insmod xzio; insmod lzopio; fi
		insmod part_msdos
		insmod ext2
		set root='hd1,msdos1'
		if [ x$feature_platform_search_hint = xy ]; then
		  search --no-floppy --fs-uuid --set=root --hint-bios=hd1,msdos1 --hint-efi=hd1,msdos1 --hint-baremetal=ahci1,msdos1  cc05e7e7-ef40-429d-b60a-d6fb047b0e61
		else
		  search --no-floppy --fs-uuid --set=root cc05e7e7-ef40-429d-b60a-d6fb047b0e61
		fi
		echo	'Loading Linux 4.19.0-6-amd64 ...'
		linux	/boot/vmlinuz-4.19.0-6-amd64 root=UUID=cc05e7e7-ef40-429d-b60a-d6fb047b0e61 ro single 
		echo	'Loading initial ramdisk ...'
		initrd	/boot/initrd.img-4.19.0-6-amd64
	}
}

### END /etc/grub.d/10_linux ###

### BEGIN /etc/grub.d/20_linux_xen ###

### END /etc/grub.d/20_linux_xen ###

### 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.
#menuentry "Windows 10" --class windows --class os {
#   insmod ntfs
#   search --no-floppy --set=root --fs-uuid EE3207D73207A425
#   ntldr /bootmgr
#}
#
#menuentry 'Windows Boot Manager (sur /dev/sda3)' --class windows --class os $menuentry_id_option 'osprober-efi-994B-3B34' {
# insmod part_gpt
# insmod ntfs
# 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 9806-C6A6
# else
# search --no-floppy --fs-uuid --set=root 9806-C6A6
# fi
# chainloader /EFI/Microsoft/Boot/bootmgfw.efi
#}
### 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 ###
--------------------------------------------------------------------------------

=============================== sdb1/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/sdb1 during installation
UUID=cc05e7e7-ef40-429d-b60a-d6fb047b0e61 /               ext4    errors=remount-ro 0       1
# /home was on /dev/sdd5 during installation
UUID=5d43ac8e-31f8-48d0-a589-49c2b8b7fac1 /home           ext4    defaults        0       2
# swap was on /dev/sdb5 during installation
UUID=ee380324-b0ce-43d2-a11f-6f1698c04f47 none            swap    sw              0       0
/dev/sr0        /media/cdrom0   udf,iso9660 user,noauto     0       0
--------------------------------------------------------------------------------

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

           GiB - GB             File                                 Fragment(s)

 196.460525513 = 210.947883008  boot/grub/grub.cfg                             3
 194.135837555 = 208.451768320  boot/grub/i386-pc/core.img                     1
   0.775413513 = 0.832593920    boot/vmlinuz-4.19.0-6-amd64                    1
   9.955101013 = 10.689208320   boot/vmlinuz-4.19.0-8-amd64                    1
   9.955101013 = 10.689208320   vmlinuz                                        1
   0.775413513 = 0.832593920    vmlinuz.old                                    1
   0.743160248 = 0.797962240    boot/initrd.img-4.19.0-6-amd64                 5
  10.082969666 = 10.826506240   boot/initrd.img-4.19.0-8-amd64                 3
  10.082969666 = 10.826506240   initrd.img                                     3
   0.743160248 = 0.797962240    initrd.img.old                                 5

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


/dev/sda1: unknown GPT attributes
8000000000000001

/dev/sda2: unknown GPT attributes
8000000000000000

/dev/sda3: unknown GPT attributes
8000000000000000

/dev/sda5: unknown GPT attributes
8000000000000001

========= Devices which don't seem to have a corresponding hard drive: =========

sdc

On a bien confirmation que Windows est installé pour l’amorçage en mode EFI et Debian a installé GRUB pour l’amorçage en mode BIOS/legacy. Impossible de faire du multiboot via GRUB dans ces conditions. Les options sont :

  • a) réinstaller Windows pour l’amorçage en mode BIOS/legacy
  • b) réinstaller Debian pour l’amorçage en mode EFI
  • c) installer GRUB pour l’amorçage en mode EFI (paquet grub-efi-amd64)

Dans les options b) et c), deux variantes :

  • d) utiliser la partition EFI de Windows
  • e) utiliser une autre partition EFI créée pour l’occasion sur le SSD de Debian, afin d’assurer son indépendance vis-à-vis du SSD de Windows

Dans l’option c), le point délicat sera d’enregistrer GRUB/Debian dans la mémoire non volatile de l’UEFI, qui n’est accessible que si le système a été amorcé en mode EFI (donc via un système live supportant l’amorçage EFI, l’installateur Debian en mode rescue… ou si on a de la chance via le menu de boot UEFI de l’ordinateur s’il permet de sélectionner le fichier *.efi à exécuter).

Je peux donner plus de détails selon l’option que tu choisis.

1 J'aime

Merci pour tes explications, je comprends déjà mieux le problème!

L’option c/e a ma préférence, je vais regarder dans mon bios quels sont les possibilités.

A noter que le live Debian ne fonctionne pas sur ma machine (problème driver radeon je crois…).

L’option c) est techniquement la plus intéressante (éviter de réinstaller quand ce n’est pas indispensable), mais pas forcément la plus simple. Dans un premier temps je suggère d’utiliser la partition EFI de Windows, sachant que cela pourra évoluer par la suite. Cela a l’inconvénient de lier l’amorçage EFI de Debian au SSD de Windows, mais cela évite de devoir réduire une partition existante afin de libérer de l’espace disque pour la seconde partition EFI, et les éventuels problèmes de firmware UEFI incapables d’amorcer en mode EFI sur un disque au format DOS/MBR qui forceraient à convertir le disque au format GPT (cassant l’amorçage BIOS/legacy en place).

Démarrer Debian
Récupérer l’UUID XXXX-XXXX de la partition EFI de Windows avec

blkid /dev/sda2

Créer le point de montage /boot/efi pour la partition EFI

mkdir /boot/efi

Editer /etc/fstatb pour monter la partition au démarrage

UUID=XXXX-XXXX /boot/efi vfat nofail

Monter la partition EFI

mount /boot/efi

Installer GRUB EFI (va désinstaller grub-pc et causer une erreur normale car les services EFI ne sont pas disponibles)

apt-get install grub-efi-amd64

Si le menu de boot UEFI permet de sélectionner le chemin d’un exécutable EFI, sélectionner \EFI\debian\shimx64.efi. Sinon :

Amorcer l’installateur Debian en mode EFI (c’est écrit sur l’écran d’accueil)
Sélectionner advanced > rescue
Suivre les étapes comme lors de l’installation
Sélectionner la partition racine /dev/sdb1
Accepter le montage de la partition EFI /dev/sda2
Exécuter un shell sur la racine

Quelle que soit la façon de lancer Debian en mode EFI,

Réinstaller GRUB avec

grub-install

Vérifier l’enregistrement de Debian dans les variables de boot efi avec

efibootmgr