Bonjour,
Est-ce que quelqu’un pourrait m’aider à configurer grub pour faire booter windows?
Voici les infos de partitionnement de mon disque:
/dev/sda1 ext4 /
/dev/sda2 extended
/dev/sda5 ntfs
/dev/sda6 linux-swap
/dev/sda7 inconnu
Windows est installé sur la partition ntfs, of course.
Donc j’ai modifié /etc/grub.d/40_custom comme ceci:
#!/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.
menuentry ‘Windows XP Professional Edition’ {
set root=(hd0,4)
}
Et donc après update-grub /boot/grub/grub.cfg contient ceci:
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 XP Professional Edition’ {
set root=(hd0,4)
}
END /etc/grub.d/40_custom
Au démarrage, je vois bien la nouvelle ligne ‘Windows XP Professional Edition’ mais quand je la sélectionne rien ne se passe. J’ai aussi essayé avec set root=(hd0,1) sans succès.
Je suppose que j’ai naïvement oublié quelque chose après set root=…?

