[Date Prev][Date Next] [Thread Prev][Thread Next] [Date Index] [Thread Index]

Re: UEFI: single boot Debian OK, dual boot Windows/Debian KO



Le 22/04/2013 13:32, Nicolas Pechon a écrit :
> 
> <citation de="Nicolas Pechon">
>> Pour ma part, je lance windows 8 de Grub.
> 
> Il faut modifier le fichier suivant comme suit:
>  /etc/grub.d/40_custom
> 
> #!/bin/sh
> exec tail -n +3 $0
> # 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.
> ### C'est a partir de la que ça change
> menuentry "Windows 8" {
> set root=(hd0,2)  #La partition de windows
> chainloader /EFI/Microsoft/BOOT/bootmgfw.efi
> }

si tu as installé os-prober (installé par défaut dans Wheezy et Sid, car
recommandé par grub), tu n'as même pas besoin de modifier
/etc/grub.d/40_custom, il configure automatiquement /boot/grub/grub.cfg
grâce à /etc/grub.d/30_os-prober.

Mais ce n'est pas ce qui pose problème: en dual boot Windows 8 et Debian
sur ce laptop (firmware UEFI, partitionnement GPT pur, Secure Boot et
Legacy MBR désactivés), à l'allumage l'UEFI appelle automatiquement le
bootloader Windows (Windows Boot Manager) au lieu de lancer Grub.

A l'heure actuelle, je suis obligé de presser F9 au boot de l'UEFI pour
choisir l'option Debian qui appelle Grub et me permet de choisir entre
Debian et Windows. C'est pas insurmontable mais ça me fait ch...

Je sais que je pourrais lancer Debian depuis le bootloader Windows en
paramétrant celui-ci de manière adéquate, mais ça me fait ch... aussi.
Je sais, je suis contrariant ;-)


Reply to: