cep a écritProblème : vous avez deux distributions linux et grub dans le mbr. À chaque mise à jour du noyau de la deuxième distribution vous êtes obligé de modifier à la main son title dans menu.lst de la première distribution pour pouvoir utiliser votre nouveau noyau.
Solution : utiliser chainloader pour passer la main au grub que vous aurez installé dans le bs de la partition portant votre autre distribution.
Exemple : une machine avec ubuntu installé sur /dev/hda1 et debian sur /dev/hdb2
ajouter dans menu.lst de ubuntu :
# Debian chain
title debian
root (hd1,1)
chainloader +1
boot
Bonsoir à tous,
J'ai un premier disque sous Debian Lenny :
Disque /dev/sda: 320.0 Go, 320072933376 octets
255 heads, 63 sectors/track, 38913 cylinders
Units = cylindres of 16065 * 512 = 8225280 bytes
Disk identifier: 0x00075e03
Périphérique Amorce Début Fin Blocs Id Système
/dev/sda1 * 1 38583 309917916 83 Linux
/dev/sda2 38584 38913 2650725 5 Extended
/dev/sda5 38584 38913 2650693+ 82 Linux swap / Solaris
Et je viens d'installer Ubuntu Studio sur un deuxième disque :
Disque /dev/hda: 200.0 Go, 200049647616 octets
255 heads, 63 sectors/track, 24321 cylinders
Units = cylindres of 16065 * 512 = 8225280 bytes
Disk identifier: 0x000d20da
Périphérique Amorce Début Fin Blocs Id Système
/dev/hda1 * 1 23565 189285831 83 Linux
/dev/hda2 23566 24321 6072570 5 Extended
/dev/hda5 23566 24321 6072538+ 82 Linux swap / Solaris
L'installateur a reconnu la présence de Lenny sur le disque SATA et m'a demandé si je voulais tenir compte de cet OS. Ni une ni deux... je réponds que oui... Au démarrage, seul Lenny est là.
Depuis plusieurs heures, j'essaie sans succès de booter sur Ubuntu Studio ! J'enrage... Je ne réussis pas chaîner les deux...
Dans Lenny, le fichier /boot/grub/menu.lst ne contient bien évidemment aucune d'Ubuntu Studio :
title Debian GNU/Linux, kernel 2.6.22-2-686
root (hd0,0)
kernel /boot/vmlinuz-2.6.22-2-686 root=/dev/sda1 ro
initrd /boot/initrd.img-2.6.22-2-686
savedefault
title Debian GNU/Linux, kernel 2.6.22-2-686 (single-user mode)
root (hd0,0)
kernel /boot/vmlinuz-2.6.22-2-686 root=/dev/sda1 ro single
initrd /boot/initrd.img-2.6.22-2-686
savedefault
Le deuxième (Ubuntu Studio) est identifié dans son propre munu.lst comme suit et contient le second :
title Ubuntu 7.10, kernel 2.6.22-14-rt
root (hd0,0)
kernel /boot/vmlinuz-2.6.22-14-rt
root=UUID=6c03bfa3-56dd-478b-8788-0946c6218d98 ro quiet splash
initrd /boot/initrd.img-2.6.22-14-rt
quiet
title Ubuntu 7.10, kernel 2.6.22-14-rt (recovery mode)
root (hd0,0)
kernel /boot/vmlinuz-2.6.22-14-rt
root=UUID=6c03bfa3-56dd-478b-8788-0946c6218d98 ro single
initrd /boot/initrd.img-2.6.22-14-rt
title Ubuntu 7.10, memtest86+
root (hd0,0)
kernel /boot/memtest86+.bin
quiet
[...]
# This is a divider, added to separate the menu items below from the Debian
# ones.
title Other operating systems:
root
# This entry automatically added by the Debian installer for an existing
# linux installation on /dev/sda1.
title Debian GNU/Linux, kernel 2.6.22-2-686 (on /dev/sda1)
root (hd2,0)
kernel /boot/vmlinuz-2.6.22-2-686 root=/dev/sda1 ro
initrd /boot/initrd.img-2.6.22-2-686
savedefault
boot
# This entry automatically added by the Debian installer for an existing
# linux installation on /dev/sda1.
title Debian GNU/Linux, kernel 2.6.22-2-686 (single-user mode) (on /dev/sda1)
root (hd2,0)
kernel /boot/vmlinuz-2.6.22-2-686 root=/dev/sda1 ro single
initrd /boot/initrd.img-2.6.22-2-686
savedefault
boot
On remarque que Debian est identifié comme hd2,0...
Reste que j'arrive pas à booter sur Ubuntu Studio...
Une idée ?