Bien bien bien… pour ceux que ça intéressent :
Après quelques essais infructueux, j’ai fini par opter par l’écrasement de Grub2.
Mais à ma stupeur l’installation du paquet avec Synaptic et la commande grub-install “(hd0)” ne donnent rien… Enfin Grub2 est bien installé, mais pas de fichier grub.conf !
Il faut en fait taper cette commande
[code]laurent@deb501:~$ sudo upgrade-from-grub-legacy
Installation finished. No error reported.
This is the contents of the device map /boot/grub/device.map.
Check if this is correct or not. If any of the lines is incorrect,
fix it and re-run the script `grub-install’.
(hd0) /dev/sda
(hd1) /dev/sdb
(hd2) /dev/sdc
(hd3) /dev/sdd
(hd4) /dev/sde
Generating grub.cfg …
Found Debian background: moreblue-orbit-grub.png
Found linux image: /boot/vmlinuz-2.6.30-1-amd64
Found initrd image: /boot/initrd.img-2.6.30-1-amd64
Found linux image: /boot/vmlinuz-2.6.26-2-amd64
Found initrd image: /boot/initrd.img-2.6.26-2-amd64
Found linux image: /boot/vmlinuz-2.6.26-1-amd64
Found initrd image: /boot/initrd.img-2.6.26-1-amd64
Found Ubuntu 9.04 (9.04) on /dev/sda1
Found Windows Vista (loader) on /dev/sdb1
done
GRUB Legacy has been removed, but its configuration files have been preserved,
since this script cannot determine if they contain valuable information. If
you would like to remove the configuration files as well, use the following
command:
rm -f /boot/grub/menu.lst*[/code]Ce qui m’étonne c’est que Grub(legacy) n’était pas installé !!! Alors que la commande sus-citée (pas mal hein ?) est censée seulement confirmer le remplacement de grub(legacy) par Grub2, après vérification de son bon fonctionnement !!! Allez comprendre… En tout cas ça fonctionne, c’est le principal !
une petite commande pour vérifier…
[code]laurent@deb501:~$ sudo grub-install --recheck "(hd0)"
Installation finished. No error reported.
This is the contents of the device map /boot/grub/device.map.
Check if this is correct or not. If any of the lines is incorrect,
fix it and re-run the script `grub-install’.
(hd0) /dev/sda
(hd1) /dev/sdb
(hd2) /dev/sdc
(hd3) /dev/sdd
(hd4) /dev/sde
(hd5) /dev/sdj
laurent@deb501:~$
[/code]
Et bien sur une vérification “à la mano” de grub.cfg… Car bien qu’il soit censé supporter le Ext4, notre cher Grub2 “oublie” d’ajouterrootfstype=ext4
aux noyaux devant booter sur du ext4 ! Le coquin
Si vous ne rectifiez pas, ça ne démarre pas…
Et me voici avec mon Grub2 installé à partir de ma Debian (avec une très belle spashimage bleu Debian, à logo Debian…)
ça mérite un petit J’ Debian !