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 24/03/2010, à 21:42

LR

[Résolu] Ajouter Geexbox à Grub

Salut,

J'ai installé Geexbox sur une partition à coté de Karmic et je ne sais pas comment l'ajouter à grub 2. Il faudrait qu'au démarrage, le menu apparaisse durant 5 secondes et que je puisse choisir geexbox ou karmic (par défaut).

J'ai du mal à trouver de la documentation sur grub 2 que je ne connais pas du tout.

Merci d'avance

Dernière modification par LR (Le 29/03/2010, à 09:50)

Hors ligne

#2 Le 25/03/2010, à 00:22

lsam

Re : [Résolu] Ajouter Geexbox à Grub

As-ti installé os-prober ?

sudo os-prober

puis

sudo update-grub

Hors ligne

#3 Le 26/03/2010, à 15:16

LR

Re : [Résolu] Ajouter Geexbox à Grub

Merci. J'ai fais ça (il semble que os-prober était déjà installé) mais ça n'a rien changé : au démarrage, ubuntu démarre sans rien me demander hmm

Hors ligne

#4 Le 26/03/2010, à 15:17

clahor

Re : [Résolu] Ajouter Geexbox à Grub

bjr il faut peut etre l'ajouter dans le fichier 40_custom

Hors ligne

#5 Le 26/03/2010, à 15:24

lsam

Re : [Résolu] Ajouter Geexbox à Grub

hum... que t'indiques os-prober stp ?

Hors ligne

#6 Le 26/03/2010, à 16:39

LR

Re : [Résolu] Ajouter Geexbox à Grub

lsam a écrit :

hum... que t'indiques os-prober stp ?

Rien du tout. Il me rend la main...

Hors ligne

#7 Le 26/03/2010, à 17:00

lsam

Re : [Résolu] Ajouter Geexbox à Grub

Ben oui, faut chercher 15s sur google et t'as la solution... sad
http://shortrip.org/index.php?topic=107.0

Hors ligne

#8 Le 26/03/2010, à 17:57

LR

Re : [Résolu] Ajouter Geexbox à Grub

OK hmm

J'ai suivi les instructions données ici : http://shortrip.org/index.php?PHPSESSID=a5aa9344d2eee8dc99d0f3dcac4a869e&topic=107.msg208#msg208

Tout s'est bien passé mais le démarrage du PC ne m'offre toujours aucun choix et ubuntu démarre comme si de rien n'était...

Hors ligne

#9 Le 26/03/2010, à 18:10

lsam

Re : [Résolu] Ajouter Geexbox à Grub

Franchement, je pense que tu t'es trompé.
Juste comme ça, t'as mis quoi comme UUID ? Pas celle du tuto j'espère ??!!!

Hors ligne

#10 Le 26/03/2010, à 18:16

Compte anonymisé

Re : [Résolu] Ajouter Geexbox à Grub

Salut

Peux-tu lister les fichiers :
/etc/default/grub
et
/etc/grub.d/40_custom
et aussi
/boot/grub/grub.cfg   (entre balises Code de préférence).

@+

#11 Le 28/03/2010, à 12:13

LR

Re : [Résolu] Ajouter Geexbox à Grub

jeanjd63 a écrit :

/etc/default/grub

# If you change this file, run 'update-grub' afterwards to update
# /boot/grub/grub.cfg.

GRUB_DEFAULT=0
GRUB_HIDDEN_TIMEOUT=0
GRUB_HIDDEN_TIMEOUT_QUIET=true
GRUB_TIMEOUT="10"
GRUB_DISTRIBUTOR=`lsb_release -i -s 2> /dev/null || echo Debian`
GRUB_CMDLINE_LINUX_DEFAULT="quiet splash"
GRUB_CMDLINE_LINUX=""

# Uncomment to disable graphical terminal (grub-pc only)
#GRUB_TERMINAL=console

# The resolution used on graphical terminal
# note that you can use only modes which your graphic card supports via VBE
# you can see them in real GRUB with the command `vbeinfo'
#GRUB_GFXMODE=640x480

# Uncomment if you don't want GRUB to pass "root=UUID=xxx" parameter to Linux
#GRUB_DISABLE_LINUX_UUID=true

# Uncomment to disable generation of recovery mode menu entrys
#GRUB_DISABLE_LINUX_RECOVERY="true"

/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.
menuentry "GeeXboX HDTV 1.2.4" {
	set root=(hd0,6)
	 search --no-floppy --fs-uuid --set d3ec4224-7926-496f-addf-c0e661add585
	linux /vmlinuz root=/dev/ram0 rw rdinit=linuxrc boot=UUID=d3ec4224-7926-496f-addf-c0e661add585 lang=fr remote=atiusb receiver=atiusb keymap=qwertz splash=silent vga=789 video=vesafb:ywrap,mtrr hdtv  
	initrd  /initrd.gz
}#!/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 "GeeXboX HDTV 1.2.4" {
	set root=(hd0,6)
	 search --no-floppy --fs-uuid --set d3ec4224-7926-496f-addf-c0e661add585
	linux /vmlinuz root=/dev/ram0 rw rdinit=linuxrc boot=UUID=d3ec4224-7926-496f-addf-c0e661add585 lang=fr remote=atiusb receiver=atiusb keymap=qwertz splash=silent vga=789 video=vesafb:ywrap,mtrr hdtv  
	initrd  /initrd.gz
}

/boot/grub/grub.cfg

#
# DO NOT EDIT THIS FILE
#
# It is automatically generated by /usr/sbin/grub-mkconfig using templates
# from /etc/grub.d and settings from /etc/default/grub
#

### BEGIN /etc/grub.d/00_header ###
if [ -s /boot/grub/grubenv ]; then
  have_grubenv=true
  load_env
fi
set default="0"
if [ ${prev_saved_entry} ]; then
  saved_entry=${prev_saved_entry}
  save_env saved_entry
  prev_saved_entry=
  save_env prev_saved_entry
fi
insmod ext2
set root=(hd0,1)
search --no-floppy --fs-uuid --set 9510e536-a9f0-4f86-b52e-b940664e452a
if loadfont /usr/share/grub/unicode.pf2 ; then
  set gfxmode=640x480
  insmod gfxterm
  insmod vbe
  if terminal_output gfxterm ; then true ; else
    # For backward compatibility with versions of terminal.mod that don't
    # understand terminal_output
    terminal gfxterm
  fi
fi
if [ ${recordfail} = 1 ]; then
  set timeout=-1
else
  set timeout=10
fi
### END /etc/grub.d/00_header ###

### BEGIN /etc/grub.d/05_debian_theme ###
set menu_color_normal=white/black
set menu_color_highlight=black/white
### END /etc/grub.d/05_debian_theme ###

### BEGIN /etc/grub.d/10_linux ###
menuentry "Ubuntu, Linux 2.6.31-17-generic" {
        recordfail=1
        if [ -n ${have_grubenv} ]; then save_env recordfail; fi
	set quiet=1
	insmod ext2
	set root=(hd0,1)
	search --no-floppy --fs-uuid --set 9510e536-a9f0-4f86-b52e-b940664e452a
	linux	/boot/vmlinuz-2.6.31-17-generic root=UUID=9510e536-a9f0-4f86-b52e-b940664e452a ro   quiet splash
	initrd	/boot/initrd.img-2.6.31-17-generic
}
menuentry "Ubuntu, Linux 2.6.31-17-generic (recovery mode)" {
        recordfail=1
        if [ -n ${have_grubenv} ]; then save_env recordfail; fi
	insmod ext2
	set root=(hd0,1)
	search --no-floppy --fs-uuid --set 9510e536-a9f0-4f86-b52e-b940664e452a
	linux	/boot/vmlinuz-2.6.31-17-generic root=UUID=9510e536-a9f0-4f86-b52e-b940664e452a ro single 
	initrd	/boot/initrd.img-2.6.31-17-generic
}
menuentry "Ubuntu, Linux 2.6.31-16-generic" {
        recordfail=1
        if [ -n ${have_grubenv} ]; then save_env recordfail; fi
	set quiet=1
	insmod ext2
	set root=(hd0,1)
	search --no-floppy --fs-uuid --set 9510e536-a9f0-4f86-b52e-b940664e452a
	linux	/boot/vmlinuz-2.6.31-16-generic root=UUID=9510e536-a9f0-4f86-b52e-b940664e452a ro   quiet splash
	initrd	/boot/initrd.img-2.6.31-16-generic
}
menuentry "Ubuntu, Linux 2.6.31-16-generic (recovery mode)" {
        recordfail=1
        if [ -n ${have_grubenv} ]; then save_env recordfail; fi
	insmod ext2
	set root=(hd0,1)
	search --no-floppy --fs-uuid --set 9510e536-a9f0-4f86-b52e-b940664e452a
	linux	/boot/vmlinuz-2.6.31-16-generic root=UUID=9510e536-a9f0-4f86-b52e-b940664e452a ro single 
	initrd	/boot/initrd.img-2.6.31-16-generic
}
menuentry "Ubuntu, Linux 2.6.31-14-generic" {
        recordfail=1
        if [ -n ${have_grubenv} ]; then save_env recordfail; fi
	set quiet=1
	insmod ext2
	set root=(hd0,1)
	search --no-floppy --fs-uuid --set 9510e536-a9f0-4f86-b52e-b940664e452a
	linux	/boot/vmlinuz-2.6.31-14-generic root=UUID=9510e536-a9f0-4f86-b52e-b940664e452a ro   quiet splash
	initrd	/boot/initrd.img-2.6.31-14-generic
}
menuentry "Ubuntu, Linux 2.6.31-14-generic (recovery mode)" {
        recordfail=1
        if [ -n ${have_grubenv} ]; then save_env recordfail; fi
	insmod ext2
	set root=(hd0,1)
	search --no-floppy --fs-uuid --set 9510e536-a9f0-4f86-b52e-b940664e452a
	linux	/boot/vmlinuz-2.6.31-14-generic root=UUID=9510e536-a9f0-4f86-b52e-b940664e452a ro single 
	initrd	/boot/initrd.img-2.6.31-14-generic
}
### END /etc/grub.d/10_linux ###

### BEGIN /etc/grub.d/20_memtest86+ ###
menuentry "Memory test (memtest86+)" {
	linux16	/boot/memtest86+.bin
}
menuentry "Memory test (memtest86+, serial console 115200)" {
	linux16	/boot/memtest86+.bin console=ttyS0,115200n8
}
### END /etc/grub.d/20_memtest86+ ###

### BEGIN /etc/grub.d/30_os-prober ###
if [ ${timeout} != -1 ]; then
  if keystatus; then
    if keystatus --shift; then
      set timeout=-1
    else
      set timeout=0
    fi
  else
    if sleep --interruptible 3 ; then
      set timeout=0
    fi
  fi
fi
### END /etc/grub.d/30_os-prober ###

### 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 "GeeXboX HDTV 1.2.4" {
	set root=(hd0,6)
	 search --no-floppy --fs-uuid --set d3ec4224-7926-496f-addf-c0e661add585
	linux /vmlinuz root=/dev/ram0 rw rdinit=linuxrc boot=UUID=d3ec4224-7926-496f-addf-c0e661add585 lang=fr remote=atiusb receiver=atiusb keymap=qwertz splash=silent vga=789 video=vesafb:ywrap,mtrr hdtv  
	initrd  /initrd.gz
}
### END /etc/grub.d/40_custom ###

Le UUID devrait être correct, c'est celui que j'ai copié du fichier grub de geexbox.

Hors ligne

#12 Le 28/03/2010, à 12:37

lsam

Re : [Résolu] Ajouter Geexbox à Grub

As-tu modifié le début du fichier /etc/default/grub ?
Je ne connais pas les paramètres avec HIDDEN, mais moi j'ai 5 s de délai pour choisir entre mes OS, avec uniquement le paramètre suivant :

GRUB_TIMEOUT=5

à la place de tes :

GRUB_HIDDEN_TIMEOUT=0
GRUB_HIDDEN_TIMEOUT_QUIET=true
GRUB_TIMEOUT="10"

Commente donc les lignes en trop et corrige pour voir. Sinon, le reste a l'air bon.

Hors ligne

#13 Le 28/03/2010, à 16:08

LR

Re : [Résolu] Ajouter Geexbox à Grub

# If you change this file, run 'update-grub' afterwards to update
# /boot/grub/grub.cfg.

GRUB_DEFAULT=0
#GRUB_HIDDEN_TIMEOUT=0
#GRUB_HIDDEN_TIMEOUT_QUIET=true
#GRUB_TIMEOUT="10"
GRUB_TIMEOUT=5
GRUB_DISTRIBUTOR=`lsb_release -i -s 2> /dev/null || echo Debian`
GRUB_CMDLINE_LINUX_DEFAULT="quiet splash"
GRUB_CMDLINE_LINUX=""

# Uncomment to disable graphical terminal (grub-pc only)
#GRUB_TERMINAL=console

# The resolution used on graphical terminal
# note that you can use only modes which your graphic card supports via VBE
# you can see them in real GRUB with the command `vbeinfo'
#GRUB_GFXMODE=640x480

# Uncomment if you don't want GRUB to pass "root=UUID=xxx" parameter to Linux
#GRUB_DISABLE_LINUX_UUID=true

# Uncomment to disable generation of recovery mode menu entrys
#GRUB_DISABLE_LINUX_RECOVERY="true"

J'ai essayé ça mais ça ne change rien : "Grub loading" puis ubuntu démarre...

Hors ligne

#14 Le 28/03/2010, à 17:58

Compte anonymisé

Re : [Résolu] Ajouter Geexbox à Grub

Salut

Voici ce que je ferais :
Le fichier /etc/default/grub :

# If you change this file, run 'update-grub' afterwards to update
# /boot/grub/grub.cfg.

GRUB_DEFAULT=0
#GRUB_HIDDEN_TIMEOUT=0
GRUB_HIDDEN_TIMEOUT_QUIET=true
GRUB_TIMEOUT="10"
GRUB_DISTRIBUTOR=`lsb_release -i -s 2> /dev/null || echo Debian`
GRUB_CMDLINE_LINUX_DEFAULT="quiet splash"
GRUB_CMDLINE_LINUX=""

# Uncomment to disable graphical terminal (grub-pc only)
#GRUB_TERMINAL=console

# The resolution used on graphical terminal
# note that you can use only modes which your graphic card supports via VBE
# you can see them in real GRUB with the command `vbeinfo'
#GRUB_GFXMODE=640x480

# Uncomment if you don't want GRUB to pass "root=UUID=xxx" parameter to Linux
#GRUB_DISABLE_LINUX_UUID=true

# Uncomment to disable generation of recovery mode menu entrys
#GRUB_DISABLE_LINUX_RECOVERY="true"
GRUB_DISABLE_OS_PROBER=true

Pour le fichier /boot/grub.d/40_custom (le tien semble doublé) :

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 "GeeXboX HDTV 1.2.4" {
    set root=(hd0,6)
     search --no-floppy --fs-uuid --set d3ec4224-7926-496f-addf-c0e661add585
    linux /vmlinuz root=/dev/ram0 rw rdinit=linuxrc boot=UUID=d3ec4224-7926-496f-addf-c0e661add585 lang=fr remote=atiusb receiver=atiusb keymap=qwertz splash=silent vga=789 video=vesafb:ywrap,mtrr hdtv 
    initrd  /initrd.gz
}

Après ça tu valides par  :
sudo  update-grub


@+

#15 Le 28/03/2010, à 18:08

lsam

Re : [Résolu] Ajouter Geexbox à Grub

Si la solution de jeanjd63 ne fonctionne pas, je ne vois pas...

Hors ligne

#16 Le 29/03/2010, à 09:49

LR

Re : [Résolu] Ajouter Geexbox à Grub

Ca marche. En fait geexbox plante au milieu du démarrage (avant même que la barre de progression ne commence à se remplir) mais ça peut provenir d'un autre problème.

Merci beaucoup pour votre aide

Hors ligne