[fedora] grub

Résolu/Fermé
tux_03 Messages postés 190 Date d'inscription samedi 12 juillet 2008 Statut Membre Dernière intervention 29 juillet 2010 - 9 févr. 2009 à 17:09
tux_03 Messages postés 190 Date d'inscription samedi 12 juillet 2008 Statut Membre Dernière intervention 29 juillet 2010 - 12 févr. 2009 à 17:04
Bonjour,
J'ai installé cette apres midi fedora a la place de windows, donc en dual boot avec ubuntu 8.10
fedora est sur le 1er disque dur et ubuntu sur le second.
Seul probléme le grub installé est celui de fedora donc n'affiche pas de choix pour demarrer sur ubuntu.
J'ai essayé avec super grub disk, rien a faire.
Aidez moi svp !
Merci

15 réponses

jeanbi Messages postés 15118 Date d'inscription samedi 9 décembre 2006 Statut Contributeur Dernière intervention 6 février 2023 2 177
9 févr. 2009 à 17:11
bonjour,
sous fedora
ouvre une console
su -
motdepasse
fdisk -l
et ensuite
cat /boot/grub/menu.lst
a+
0
tux_03 Messages postés 190 Date d'inscription samedi 12 juillet 2008 Statut Membre Dernière intervention 29 juillet 2010 7
9 févr. 2009 à 18:09
merci de ta reponse,
moi su- ne marche pas, c'est su root

Ensuite,
[root@PC-de-Samir Tux03]# su root
[root@PC-de-Samir Tux03]# fdisk -l 

Disque /dev/sda: 40.0 Go, 40060403712 octets
255 heads, 63 sectors/track, 4870 cylinders
Units = cylindres of 16065 * 512 = 8225280 bytes
Disk identifier: 0x830d830d

Périphérique Amorce    Début         Fin      Blocs    Id  Système
/dev/sda1   *           1          25      200781   83  Linux
/dev/sda2              26        4870    38917462+  8e  Linux LVM

Disque /dev/sdb: 80.0 Go, 80026361856 octets
255 heads, 63 sectors/track, 9729 cylinders
Units = cylindres of 16065 * 512 = 8225280 bytes
Disk identifier: 0x9af82b0d

Périphérique Amorce    Début         Fin      Blocs    Id  Système
/dev/sdb1   *           2        9729    78140160    f  W95 Etendu (LBA)
/dev/sdb5               2        4463    35840983+  83  Linux
/dev/sdb6            4464        4718     2048256   83  Linux
/dev/sdb7            4719        4865     1180746   82  Linux swap / Solaris
/dev/sdb8            4866        7181    18603238+   b  W95 FAT32
/dev/sdb9            7182        9729    20466778+   7  HPFS/NTFS

Disque /dev/sdc: 500.1 Go, 500107862016 octets
255 heads, 63 sectors/track, 60801 cylinders
Units = cylindres of 16065 * 512 = 8225280 bytes
Disk identifier: 0x07a7d242

Périphérique Amorce    Début         Fin      Blocs    Id  Système
/dev/sdc1   *           1       60801   488384001    7  HPFS/NTFS
[root@PC-de-Samir Tux03]#


Puis,
[
root@PC-de-Samir Tux03]# cat /boot/grub/menu.lst
# grub.conf generated by anaconda
#
# Note that you do not have to rerun grub after making changes to this file
# NOTICE:  You have a /boot partition.  This means that
#          all kernel and initrd paths are relative to /boot/, eg.
#          root (hd0,0)
#          kernel /vmlinuz-version ro root=/dev/VolGroup00/LogVol00
#          initrd /initrd-version.img
#boot=/dev/sda
default=0
timeout=5
splashimage=(hd0,0)/grub/splash.xpm.gz
hiddenmenu
title Fedora (2.6.27.5-117.fc10.i686)
	root (hd0,0)
	kernel /vmlinuz-2.6.27.5-117.fc10.i686 ro root=UUID=81b12c32-5267-4aca-a48e-bd2eefab09a6 rhgb quiet
	initrd /initrd-2.6.27.5-117.fc10.i686.img
title Other
	rootnoverify (hd1,7)
	chainloader +1
[root@PC-de-Samir Tux03]# 


Voila
0
jeanbi Messages postés 15118 Date d'inscription samedi 9 décembre 2006 Statut Contributeur Dernière intervention 6 février 2023 2 177
9 févr. 2009 à 18:13
bonjour,
bizarre ton truc !!
tu es en root tout le temps ?
pas bien ça
tu n'a pas creer d'utilistateur ?
pour ton souci ajoute ceci au menu.lst
tittle ubuntu 
       rootnoverify (hd1,4)
	chainloader +1

a+


0
tux_03 Messages postés 190 Date d'inscription samedi 12 juillet 2008 Statut Membre Dernière intervention 29 juillet 2010 7
9 févr. 2009 à 18:21
Si j'ai un utilisateur qui est tux03.
Mais quand je met su- ca me met command not found. Et sudo ne marche pas,
Je teste ta soluces.

0

Vous n’avez pas trouvé la réponse que vous recherchez ?

Posez votre question
tux_03 Messages postés 190 Date d'inscription samedi 12 juillet 2008 Statut Membre Dernière intervention 29 juillet 2010 7
9 févr. 2009 à 19:26
marche pas,
Maintenant j'ai deux choix de boot fedora et les 2 ne marchent pas : "error 13 : Invalid or unsupported executable format"
J'ai reussi a me mettre sous ubuntu avec une fonction de super grub disk.
0
jeanbi Messages postés 15118 Date d'inscription samedi 9 décembre 2006 Statut Contributeur Dernière intervention 6 février 2023 2 177
9 févr. 2009 à 19:27
re
c'est su (espace ) -
de plus quelle message d'erreur as tu ?
a+
0
tux_03 Messages postés 190 Date d'inscription samedi 12 juillet 2008 Statut Membre Dernière intervention 29 juillet 2010 7
9 févr. 2009 à 19:29
celui du dessus : "error 13 : invalid or unsupported executable format"
0
jeanbi Messages postés 15118 Date d'inscription samedi 9 décembre 2006 Statut Contributeur Dernière intervention 6 février 2023 2 177
9 févr. 2009 à 19:34
re,
sous ubuntu
peux tu me donner le contenu de
cat /boot/grub/menu.lst
a+
0
tux_03 Messages postés 190 Date d'inscription samedi 12 juillet 2008 Statut Membre Dernière intervention 29 juillet 2010 7
9 févr. 2009 à 19:38
Il n'ya des trucs plus d'actualité, windows xp n'est plus sur le Disque dur

tux03@PC-de-samir:~$ cat /boot/grub/menu.lst 
# menu.lst - See: grub(8), info grub, update-grub(8)
#            grub-install(8), grub-floppy(8),
#            grub-md5-crypt, /usr/share/doc/grub
#            and /usr/share/doc/grub-doc/.

## 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 use 'savedefault' 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=1b45ad0f-7852-4012-83f4-774dd30e3cc9 ro

## default grub root device
## e.g. groot=(hd0,0)
# groot=1b45ad0f-7852-4012-83f4-774dd30e3cc9

## 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

## should update-grub add savedefault to the default options
## can be true or false
# savedefault=false

## ## End Default Options ##

title		Ubuntu 8.10, kernel 2.6.27-11-generic
uuid		1b45ad0f-7852-4012-83f4-774dd30e3cc9
kernel		/boot/vmlinuz-2.6.27-11-generic root=UUID=1b45ad0f-7852-4012-83f4-774dd30e3cc9 ro quiet splash 
initrd		/boot/initrd.img-2.6.27-11-generic
quiet

title		Ubuntu 8.10, kernel 2.6.27-11-generic (recovery mode)
uuid		1b45ad0f-7852-4012-83f4-774dd30e3cc9
kernel		/boot/vmlinuz-2.6.27-11-generic root=UUID=1b45ad0f-7852-4012-83f4-774dd30e3cc9 ro  single
initrd		/boot/initrd.img-2.6.27-11-generic

title		Ubuntu 8.10, kernel 2.6.27-7-generic
uuid		1b45ad0f-7852-4012-83f4-774dd30e3cc9
kernel		/boot/vmlinuz-2.6.27-7-generic root=UUID=1b45ad0f-7852-4012-83f4-774dd30e3cc9 ro quiet splash 
initrd		/boot/initrd.img-2.6.27-7-generic
quiet

title		Ubuntu 8.10, kernel 2.6.27-7-generic (recovery mode)
uuid		1b45ad0f-7852-4012-83f4-774dd30e3cc9
kernel		/boot/vmlinuz-2.6.27-7-generic root=UUID=1b45ad0f-7852-4012-83f4-774dd30e3cc9 ro  single
initrd		/boot/initrd.img-2.6.27-7-generic

title		Ubuntu 8.10, memtest86+
uuid		1b45ad0f-7852-4012-83f4-774dd30e3cc9
kernel		/boot/memtest86+.bin
quiet

### END DEBIAN AUTOMAGIC KERNELS LIST

# 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 a non-linux OS
# on /dev/sda1
title		Microsoft Windows XP Professionnel
root		(hd0,0)
savedefault
makeactive
chainloader	+1

0
jeanbi Messages postés 15118 Date d'inscription samedi 9 décembre 2006 Statut Contributeur Dernière intervention 6 février 2023 2 177
9 févr. 2009 à 19:50
re
une question ubuntu est bien sur le sdb mais tu sais sur quelle partoche ?
a+
0
tux_03 Messages postés 190 Date d'inscription samedi 12 juillet 2008 Statut Membre Dernière intervention 29 juillet 2010 7
9 févr. 2009 à 19:59
Sur sdb5
0
tux_03 Messages postés 190 Date d'inscription samedi 12 juillet 2008 Statut Membre Dernière intervention 29 juillet 2010 7
10 févr. 2009 à 09:58
Re.
Grace a super grub disk je peut booter sur ubuntu, il a retabli le grub d'ubuntu, qui n'est pas a jour puisque qu'il m'indique windows xp.
Voila, mais toujours pas de fedora :'(
0
jeanbi Messages postés 15118 Date d'inscription samedi 9 décembre 2006 Statut Contributeur Dernière intervention 6 février 2023 2 177
10 févr. 2009 à 19:33
bonjour,
et fedora est sur quelle partition ?
et tu me donne le /boot/grub/menu.lst de ubuntu
a+
0
tux_03 Messages postés 190 Date d'inscription samedi 12 juillet 2008 Statut Membre Dernière intervention 29 juillet 2010 7
11 févr. 2009 à 11:20
Salut,
fedora est sur sda2
# menu.lst - See: grub(8), info grub, update-grub(8)
#            grub-install(8), grub-floppy(8),
#            grub-md5-crypt, /usr/share/doc/grub
#            and /usr/share/doc/grub-doc/.

## 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 use 'savedefault' 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=1b45ad0f-7852-4012-83f4-774dd30e3cc9 ro

## default grub root device
## e.g. groot=(hd0,0)
# groot=1b45ad0f-7852-4012-83f4-774dd30e3cc9

## 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

## should update-grub add savedefault to the default options
## can be true or false
# savedefault=false

## ## End Default Options ##

title		Ubuntu 8.10, kernel 2.6.27-11-generic
uuid		1b45ad0f-7852-4012-83f4-774dd30e3cc9
kernel		/boot/vmlinuz-2.6.27-11-generic root=UUID=1b45ad0f-7852-4012-83f4-774dd30e3cc9 ro quiet splash 
initrd		/boot/initrd.img-2.6.27-11-generic
quiet

title		Ubuntu 8.10, kernel 2.6.27-11-generic (recovery mode)
uuid		1b45ad0f-7852-4012-83f4-774dd30e3cc9
kernel		/boot/vmlinuz-2.6.27-11-generic root=UUID=1b45ad0f-7852-4012-83f4-774dd30e3cc9 ro  single
initrd		/boot/initrd.img-2.6.27-11-generic

title		Ubuntu 8.10, kernel 2.6.27-7-generic
uuid		1b45ad0f-7852-4012-83f4-774dd30e3cc9
kernel		/boot/vmlinuz-2.6.27-7-generic root=UUID=1b45ad0f-7852-4012-83f4-774dd30e3cc9 ro quiet splash 
initrd		/boot/initrd.img-2.6.27-7-generic
quiet

title		Ubuntu 8.10, kernel 2.6.27-7-generic (recovery mode)
uuid		1b45ad0f-7852-4012-83f4-774dd30e3cc9
kernel		/boot/vmlinuz-2.6.27-7-generic root=UUID=1b45ad0f-7852-4012-83f4-774dd30e3cc9 ro  single
initrd		/boot/initrd.img-2.6.27-7-generic

title		Ubuntu 8.10, memtest86+
uuid		1b45ad0f-7852-4012-83f4-774dd30e3cc9
kernel		/boot/memtest86+.bin
quiet

### END DEBIAN AUTOMAGIC KERNELS LIST

# 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 a non-linux OS
# on /dev/sda1
title		Microsoft Windows XP Professionnel
root		(hd0,0)
savedefault
makeactive
chainloader	+1

A+
0
tux_03 Messages postés 190 Date d'inscription samedi 12 juillet 2008 Statut Membre Dernière intervention 29 juillet 2010 7
12 févr. 2009 à 17:04
Salut,
probléme resolu, j'ai mis debian a la place, ca faisait un moment que je voulais le mettre, je mettrais fedora sur un autre partition un peu plus tard
Merci quand meme.
0