Contenu | Rechercher | Menus

Annonce

Si vous avez des soucis pour rester connecté, déconnectez-vous puis reconnectez-vous depuis ce lien en cochant la case
Me connecter automatiquement lors de mes prochaines visites.

À propos de l'équipe du forum.

#1 Le 29/09/2007, à 02:03

pixi-pix

[RESOLUT]Rajouter une distribution a Grub ?

Bonsoir.

Je viens de finir l'installation de ma  gentoo en stage3, et je voudrais bien pouvoir booter avec mais je dois le rajouter mon grub, je comprend pas tout ce qui se passe chez grub dans son /boot/grub/menu.lst

voila le resultat de deux commandes qui il me semble sont fort utiles tongue

 #sudo fdisk -l

Disk /dev/hda: 41.1 GB, 41110142976 bytes
255 heads, 63 sectors/track, 4998 cylinders
Units = cylinders of 16065 * 512 = 8225280 bytes

   Device Boot      Start         End      Blocks   Id  System
/dev/hda1   *           1           5       40131   83  Linux
/dev/hda2               6         379     3004155   82  Linux swap / Solaris
/dev/hda3             380        4998    37102117+  83  Linux

Disk /dev/hdb: 160.0 GB, 160041885696 bytes
255 heads, 63 sectors/track, 19457 cylinders
Units = cylinders of 16065 * 512 = 8225280 bytes

   Device Boot      Start         End      Blocks   Id  System
/dev/hdb1   *           1       18985   152496981   83  Linux
/dev/hdb2           18986       19457     3791340    5  Extended
/dev/hdb5           18986       19457     3791308+  82  Linux swap / Solaris

Mon gentoo est sur le hda1 smile l'autre c'est ubuntu

et voila mon menu.lst

## default num
# Set the default entry to the entry number NUM. Numbering starts from 0, and
# the entry number 0 is the default if the command is not used.
#
# You can specify 'saved' instead of a number. In this case, the default entry
# is the entry saved with the command 'savedefault'.
# WARNING: If you are using dmraid do not change this entry to 'saved' or your
# array will desync and will not let you boot your system.
default         0

## timeout sec
# Set a timeout, in SEC seconds, before automatically booting the default entry
# (normally the first entry defined).
timeout         10

## hiddenmenu
# Hides the menu by default (press ESC to see the menu)
#hiddenmenu

# Pretty colours
#color cyan/blue white/blue

## password ['--md5'] passwd
# If used in the first section of a menu file, disable all interactive editing
# control (menu entry editor and command-line)  and entries protected by the
# command 'lock'
# e.g. password topsecret
#      password --md5 $1$gLhU0/$aW78kHK1QfV3P2b2znUoe/
# password topsecret

#
# examples
#
#
# title         Windows 95/98/NT/2000
# root          (hd0,0)
# makeactive
# chainloader   +1
#
# title         Linux
# root          (hd0,1)
# kernel        /vmlinuz root=/dev/hda2 ro
#

#
# Put static boot stanzas before and/or after AUTOMAGIC KERNEL LIST

### BEGIN AUTOMAGIC KERNELS LIST
## lines between the AUTOMAGIC KERNELS LIST markers will be modified
## by the debian update-grub script except for the default options below

## DO NOT UNCOMMENT THEM, Just edit them to your needs
## ## Start Default Options ##
## default kernel options
## default kernel options for automagic boot options
## If you want special options for specific kernels use kopt_x_y_z
## where x.y.z is kernel version. Minor versions can be omitted.
## e.g. kopt=root=/dev/hda1 ro
##      kopt_2_6_8=root=/dev/hdc1 ro
##      kopt_2_6_8_2_686=root=/dev/hdc2 ro
# kopt=root=UUID=d92a644e-1212-4d81-a87b-c4b280ebe8c3 ro

## Setup crashdump menu entries
## e.g. crashdump=1
# crashdump=0

## default grub root device
## e.g. groot=(hd0,0)
# groot=(hd1,0)

## should update-grub create alternative automagic boot options
## e.g. alternative=true
##      alternative=false
# alternative=true

## should update-grub lock alternative automagic boot options
## e.g. lockalternative=true
##      lockalternative=false
# lockalternative=false

## additional options to use with the default boot option, but not with the
## alternatives
## e.g. defoptions=vga=791 resume=/dev/hda5
# defoptions=quiet splash

## should update-grub lock old automagic boot options
## e.g. lockold=false
##      lockold=true
# lockold=false

## Xen hypervisor options to use with the default Xen boot option
# xenhopt=
## Xen Linux kernel options to use with the default Xen boot option
# xenkopt=console=tty0

## altoption boot targets option
## multiple altoptions lines are allowed
## e.g. altoptions=(extra menu suffix) extra boot options
##      altoptions=(recovery) single
# altoptions=(recovery mode) single

## controls how many kernels should be put into the menu.lst
## only counts the first occurence of a kernel, not the
## alternative kernel options
## e.g. howmany=all
##      howmany=7
# howmany=all

## should update-grub create memtest86 boot option
## e.g. memtest86=true
##      memtest86=false
# memtest86=true
## should update-grub adjust the value of the default booted system
## can be true or false
# updatedefaultentry=false

## ## End Default Options ##

title           Ubuntu, kernel 2.6.20-16-generic
root            (hd1,0)
kernel          /boot/vmlinuz-2.6.20-16-generic root=UUID=d92a644e-1212-4d81-a87b-c4b280ebe8c3 ro quiet splash
initrd          /boot/initrd.img-2.6.20-16-generic
quiet
savedefault

title           Ubuntu, kernel 2.6.20-16-generic (recovery mode)
root            (hd1,0)
kernel          /boot/vmlinuz-2.6.20-16-generic root=UUID=d92a644e-1212-4d81-a87b-c4b280ebe8c3 ro single
initrd          /boot/initrd.img-2.6.20-16-generic

title           Ubuntu, kernel 2.6.20-15-generic
root            (hd1,0)
kernel          /boot/vmlinuz-2.6.20-15-generic root=UUID=d92a644e-1212-4d81-a87b-c4b280ebe8c3 ro quiet splash
initrd          /boot/initrd.img-2.6.20-15-generic
quiet
savedefault

title           Ubuntu, kernel 2.6.20-15-generic (recovery mode)
root            (hd1,0)
kernel          /boot/vmlinuz-2.6.20-15-generic root=UUID=d92a644e-1212-4d81-a87b-c4b280ebe8c3 ro single
initrd          /boot/initrd.img-2.6.20-15-generic

title           Ubuntu, memtest86+
root            (hd1,0)
kernel          /boot/memtest86+.bin
quiet

### END DEBIAN AUTOMAGIC KERNELS LIST

et voila les infos sur mon kernel de gentoo

/boot/initramfs-genkernel-x86-2.6.22-gentoo-r8
/boot/kernel-genkernel-x86-2.6.22-gentoo-r8

merci par avance wink

Dernière modification par pixi-pix (Le 29/09/2007, à 13:15)

Hors ligne

#2 Le 29/09/2007, à 04:53

compte supprimé

Re : [RESOLUT]Rajouter une distribution a Grub ?

Il suffit probablement (après avoir sauvegardé le menu.lst, on ne sais jamais), de rajouter une rubrique du genre :

title           Gentoo
root            (hd0,0)
kernel          /boot/kernel-genkernel-x86-2.6.22-gentoo-r8 root=UUID=celle_du_disque_hda ro quiet splash
initrd          /boot/initramfs-genkernel-x86-2.6.22-gentoo-r8
quiet
savedefault

A+

Dernière modification par faustus (Le 29/09/2007, à 04:58)

#3 Le 29/09/2007, à 12:19

pixi-pix

Re : [RESOLUT]Rajouter une distribution a Grub ?

je dois pas installer grub sur le hdd de gentoo ?
si oui comment faire pour pas foutre la merde ? hmm

Hors ligne

#4 Le 29/09/2007, à 12:25

belga

Re : [RESOLUT]Rajouter une distribution a Grub ?

Moi je te conseille le chaînage:

sudo grub
setup (hd0,0) (hd0,0)
setup (hd1,0) (hd1,0)
quit

rajoute à la fin du menu.lst de Ubuntu

title   Gentoo
root (hd0,0)
chainloader +1
boot

rajoute à la fin du menu.lst de Ubuntu

title   Ubuntu
root (hd1,0)
chainloader +1
boot


Multi-bomb : Multi-doze : Mandoze, Ubundoze, Pardoze.

900s entre deux postes: mododoze

Hors ligne

#5 Le 29/09/2007, à 12:26

pixi-pix

Re : [RESOLUT]Rajouter une distribution a Grub ?

@faustus avec ta methode il me demande un uuid

@belga je teste sa tout de suite smile merci wink

Hors ligne

#6 Le 29/09/2007, à 12:28

pixi-pix

Re : [RESOLUT]Rajouter une distribution a Grub ?

belga a écrit :

Moi je te conseille le chaînage:
rajoute à la fin du menu.lst de Ubuntu

title   Gentoo
root (hd0,0)
chainloader +1
boot

rajoute à la fin du menu.lst de Ubuntu

title   Ubuntu
root (hd1,0)
chainloader +1
boot

je comprend pas bien, je met les deux dans mon menu.lst de ubuntu ? j'ai pas installer grub sur ma gentoo de peur de foutre la merde...

avec la premiere methode il boot bien sur mon gentoo mais il est perdu car il me demande un uuid.

kesako ?

Dernière modification par pixi-pix (Le 29/09/2007, à 12:29)

Hors ligne

#7 Le 29/09/2007, à 12:33

belga

Re : [RESOLUT]Rajouter une distribution a Grub ?

je corrige roll


belga a écrit :

Moi je te conseille le chaînage:

sudo grub
setup (hd0,0) (hd0,0)
setup (hd1,0) (hd1,0)
quit

rajoute à la fin du menu.lst de Ubuntu

title   Gentoo
root (hd0,0)
chainloader +1
boot

rajoute à la fin du menu.lst de  Gentoo

title   Ubuntu
root (hd1,0)
chainloader +1
boot

Dernière modification par belga (Le 29/09/2007, à 12:33)


Multi-bomb : Multi-doze : Mandoze, Ubundoze, Pardoze.

900s entre deux postes: mododoze

Hors ligne

#8 Le 29/09/2007, à 12:35

pixi-pix

Re : [RESOLUT]Rajouter une distribution a Grub ?

oki doki je comprend mais un emerge grub pour gentoo sufiras a l'installer sans foutre la merde tu pensses ?

Hors ligne

#9 Le 29/09/2007, à 12:40

belga

Re : [RESOLUT]Rajouter une distribution a Grub ?

le chainage permet d'éviter la merde


Multi-bomb : Multi-doze : Mandoze, Ubundoze, Pardoze.

900s entre deux postes: mododoze

Hors ligne

#10 Le 29/09/2007, à 12:50

pixi-pix

Re : [RESOLUT]Rajouter une distribution a Grub ?

le menu.lst de gentoo est vide hmm

je vais partir de sa je crois Gentoo grub

je vais donc installer mon grub comme sa et a la place de windows je vais infiquer mon ubuntu.

non ?

Dernière modification par pixi-pix (Le 29/09/2007, à 12:53)

Hors ligne

#11 Le 29/09/2007, à 12:54

belga

Re : [RESOLUT]Rajouter une distribution a Grub ?

oui


Multi-bomb : Multi-doze : Mandoze, Ubundoze, Pardoze.

900s entre deux postes: mododoze

Hors ligne

#12 Le 29/09/2007, à 13:02

pixi-pix

Re : [RESOLUT]Rajouter une distribution a Grub ?

je viens de voir le beau grub de gentoo avec ses jolie couleur,  sa boot bien pour le moment wink
apres si j'ai des pb je pensse que sa viens de mon install je vous tiens au courant wink pour information j'ai suivis la docs en stage3 wink

merci a vous pour le moment pas de problem wink

Hors ligne

#13 Le 29/09/2007, à 13:14

pixi-pix

Re : [RESOLUT]Rajouter une distribution a Grub ?

tout marche bien pour booter sur gentoo je pensses que sa dois aussi marcher avec ubuntu merci pour tout la je crois que je peux aller faire un tour lol

Assez bavardé, installons Xorg ! Lancez simplement la commande emerge xorg-x11. L'installation prend un certain temps, profitez-en pour manger un morceau.

Hors ligne