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 06/10/2007, à 21:04

max_naheulbeuk

erreur de grub 17

Bonjour je vien de redémarré apres mon installation et j'ai erreur grub 17 dans ni windows ni linx grub ne se lance pas!!

# 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 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=e0dd7cf2-be28-478a-8716-26084977bfea ro

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

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

## 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 locale=fr_FR

## 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-15-generic
root		(hd0,1)
kernel		/boot/vmlinuz-2.6.20-15-generic root=UUID=e0dd7cf2-be28-478a-8716-26084977bfea ro quiet splash locale=fr_FR
initrd		/boot/initrd.img-2.6.20-15-generic
quiet
savedefault

title		Ubuntu, kernel 2.6.20-15-generic (recovery mode)
root		(hd0,1)
kernel		/boot/vmlinuz-2.6.20-15-generic root=UUID=e0dd7cf2-be28-478a-8716-26084977bfea ro single
initrd		/boot/initrd.img-2.6.20-15-generic

title		Ubuntu, memtest86+
root		(hd0,1)
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/hda1
title		Microsoft Windows XP dition familiale
root		(hd0,0)
savedefault
makeactive
chainloader	+1
ubuntu@ubuntu:~$ sudo fdisk -l

Disque /dev/hda: 160.0 Go, 160041885696 octets
255 têtes, 63 secteurs/piste, 19457 cylindres
Unités = cylindres de 16065 * 512 = 8225280 octets

Périphérique Amorce    Début         Fin      Blocs    Id  Système
/dev/hda1   *           1       18962   152312233+   7  HPFS/NTFS
/dev/hda2           18963       19335     2996122+  83  Linux
/dev/hda3           19336       19457      979965   82  Linux swap / Solaris
ubuntu@ubuntu:~$
cat: /panne/etc/fstab: Aucun fichier ou répertoire de ce type
ubuntu@ubuntu:~$

merci de toute aide

Hors ligne

#2 Le 06/10/2007, à 22:24

belga

Re : erreur de grub 17

avec le live

sudo mount -o rw /dev/hda2 /mnt

que donne

cat /mnt/etc/fstab
ls -l /dev/disk/by-uuid/

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

900s entre deux postes: mododoze

Hors ligne

#3 Le 06/10/2007, à 22:33

max_naheulbeuk

Re : erreur de grub 17

ubuntu@ubuntu:~$ cat /mnt/etc/fstab
# /etc/fstab: static file system information.
#
# <file system> <mount point>   <type>  <options>       <dump>  <pass>
proc            /proc           proc    defaults        0       0
# /dev/hda2
UUID=dbdef0d9-2e7d-4c74-ac06-96a2ca7bb166 /               ext3    defaults,errors=remount-ro 0       1
# /dev/hda1
UUID=529439D29439B975 /media/hda1     ntfs    defaults,nls=utf8,umask=007,gid=46 0       1
/dev/hdd        /media/cdrom0   udf,iso9660 user,noauto     0       0
/dev/hdc        /media/cdrom1   udf,iso9660 user,noauto     0       0
ubuntu@ubuntu:~$ ls -l /dev/disk/by-uuid/
total 0
lrwxrwxrwx 1 root root 10 2007-10-06 23:32 529439D29439B975 -> ../../hda1
lrwxrwxrwx 1 root root 10 2007-10-06 23:32 dbdef0d9-2e7d-4c74-ac06-96a2ca7bb166 -> ../../hda2
ubuntu@ubuntu:~$

merci d''essayé de m'aider smile

Hors ligne

#4 Le 06/10/2007, à 22:39

belga

Re : erreur de grub 17

tape

sudo gedit /mnt/boot/grub/menu.lst

dans le fichier qui s'ouvre
fais ceci

# kopt=root=UUID=e0dd7cf2-be28-478a-8716-26084977bfea ro   
change par
kopt=root=UUID=dbdef0d9-2e7d-4c74-ac06-96a2ca7bb166 ro

.
.
kernel        /boot/vmlinuz-2.6.20-15-generic root=UUID=e0dd7cf2-be28-478a-8716-26084977bfea ro quiet splash locale=fr_FR 
change par
kernel        /boot/vmlinuz-2.6.20-15-generic root=UUID=dbdef0d9-2e7d-4c74-ac06-96a2ca7bb166 quiet splash locale=fr_FR

.
.
kernel        /boot/vmlinuz-2.6.20-15-generic root=UUID=e0dd7cf2-be28-478a-8716-26084977bfea ro single 
change par
kernel        /boot/vmlinuz-2.6.20-15-generic root=UUID=dbdef0d9-2e7d-4c74-ac06-96a2ca7bb166 ro single

enregistre et redémarre

Dernière modification par belga (Le 06/10/2007, à 22:48)


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

900s entre deux postes: mododoze

Hors ligne

#5 Le 06/10/2007, à 22:52

max_naheulbeuk

Re : erreur de grub 17

Merci  mais cela n'a malheureusement pas marcher je renvoi le menu.lst o cas ou j'aurai fai une erreur

# 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 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=dbdef0d9-2e7d-4c74-ac06-96a2ca7bb166 ro

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

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

## 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 locale=fr_FR

## 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-15-generic
root		(hd0,1)
kernel        /boot/vmlinuz-2.6.20-15-generic root=UUID=dbdef0d9-2e7d-4c74-ac06-96a2ca7bb166 quiet splash locale=fr_FR
initrd		/boot/initrd.img-2.6.20-15-generic
quiet
savedefault

title		Ubuntu, kernel 2.6.20-15-generic (recovery mode)
root		(hd0,1)
 kernel        /boot/vmlinuz-2.6.20-15-generic root=UUID=dbdef0d9-2e7d-4c74-ac06-96a2ca7bb166 ro single
initrd		/boot/initrd.img-2.6.20-15-generic

title		Ubuntu, memtest86+
root		(hd0,1)
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/hda1
title		Microsoft Windows XP dition familiale
root		(hd0,0)
savedefault
makeactive
chainloader	+1

Hors ligne

#6 Le 06/10/2007, à 22:56

belga

Re : erreur de grub 17

tape

sudo grub
setup (hd0) (hd0,1)    #poste le retour
quit

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

900s entre deux postes: mododoze

Hors ligne

#7 Le 06/10/2007, à 23:02

max_naheulbeuk

Re : erreur de grub 17

grub> setup (hd0) (hd0,1)
Checking if "/boot/grub/stage1" exists... yes
Checking if "/boot/grub/stage2" exists... yes
Checking if "/boot/grub/e2fs_stage1_5" exists... yes
Running "embed /boot/grub/e2fs_stage1_5 (hd0)"...  17 sectors are embedded.
succeeded
Running "install /boot/grub/stage1 (hd0) (hd0)1+17 p (hd0,1)/boot/grub/stage2
/boot/grub/menu.lst"... succeeded
Done.

Hors ligne

#8 Le 06/10/2007, à 23:07

belga

Re : erreur de grub 17

redémarre


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

900s entre deux postes: mododoze

Hors ligne

#9 Le 06/10/2007, à 23:12

max_naheulbeuk

Re : erreur de grub 17

idem

Hors ligne

#10 Le 07/10/2007, à 03:43

nanonico

Re : erreur de grub 17

erreur de type 17 :

Grub Error 17

Situation

Exemple de code 5.1 : Sortie de GRUB

root (hd0,0)
filesystem type unknown partition type 0x7

Error 17 : Cannot mount selected partition

Solution

Cette erreur survient lorsque la partition référencée existe mais que le système de fichiers qui s'y trouve ne peut être reconnu par GRUB.

Vérifiez que root(x,y) est correctement paramétré dans votre grub.conf.

Assurez-vous aussi, si vous essayez de démarrer Windows, que votre fichier grub.conf contient root (hdX,Y) (ou rootnoverify (hdX,Y)) et chainloader (hdX,Y)+1.

source:
http://www.gentoo.org/doc/fr/grub-error-guide.xml

Dernière modification par nanonico (Le 07/10/2007, à 03:45)


Tu t'exclus toi même du parti en disant cela

Hors ligne

#11 Le 07/10/2007, à 10:15

max_naheulbeuk

Re : erreur de grub 17

Bonjour (jétais partis dormir)
En fait comme message j'ai juste grub error 17
je n'nai aucune autres lignes

Hors ligne

#12 Le 07/10/2007, à 10:36

Sashikorosu

Re : erreur de grub 17

Je crois que c'est l'erreur 17 que j'avais eu mais je n'en suis plus tout à fait sûr...:rolleyes:

17 : Cannot mount selected partition
    Cette erreur est retournée si la partition demandée existe, mais le type du système de fichiers n'est pas reconnu par GRUB.

Voilà ce qu'est l'erreur 17.

Moi j'utlise un HDD pour Win (maintenant inactif, ou plutôt inutile ^^) et un HDD pour Ubuntu, ça évite les problèmes wink

Bonne chance Max.

P.S : Sur d'autres forums, beaucoup conseille de...réinstaller...

Hors ligne

#13 Le 07/10/2007, à 10:49

max_naheulbeuk

Re : erreur de grub 17

Oui j'ai tester la réinstallation avec le meme résultat ....
Es ce que le fait que la partition windows soit en ntfs et en premier peut avoir posé probleme?
Puis-je réinstaller seulement grub depuis le livecd?

Hors ligne

#14 Le 07/10/2007, à 15:29

belga

Re : erreur de grub 17

as tu la liste de choix au démarrage ou alors erreur 17 d'emblée??


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

900s entre deux postes: mododoze

Hors ligne

#15 Le 07/10/2007, à 15:30

max_naheulbeuk

Re : erreur de grub 17

demblé

Hors ligne

#16 Le 07/10/2007, à 15:58

belga

Re : erreur de grub 17

max_naheulbeuk a écrit :

Oui j'ai tester la réinstallation avec le meme résultat ....
Es ce que le fait que la partition windows soit en ntfs et en premier peut avoir posé probleme?

NON

Puis-je réinstaller seulement grub depuis le livecd?

C'est ce qu'on a fait (setup (hd0) (hd0,1)

dans le menu.lst
remplace (les lignes kernel)
root=UUID=dbdef0d9-2e7d-4c74-ac06-96a2ca7bb166
par
root=/dev/hda2

et fdans fstab
remplace 
# /dev/hda2
UUID=dbdef0d9-2e7d-4c74-ac06-96a2ca7bb166 /               ext3    defaults,errors=remount-ro 0       1

par
# /dev/hda2
/dev/hda2  /          ext3    defaults,errors=remount-ro 0       1

puis redémarre


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

900s entre deux postes: mododoze

Hors ligne

#17 Le 09/10/2007, à 19:11

max_naheulbeuk

Re : erreur de grub 17

J'ai tester mais cela na pas marcher
Je suis maintenant dans mon campus sans internet ni le pc en panne (c'est un fixe) donc je m'y remettrai des samedi si vous avez d'autres idées je suis prenneur .

Hors ligne

#18 Le 09/10/2007, à 20:29

belga

Re : erreur de grub 17

je pense alors à une mauvaise configuration du bios.
regrade si ton disque est bien reconnue dans sa totalité.

sinon il faudrait récupérer 20doze via le live d'ubuntu ou le cd
d'install de 20doze avec fixmbr


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

900s entre deux postes: mododoze

Hors ligne

#19 Le 20/10/2007, à 21:04

Guy040506

Re : erreur de grub 17

Dans l un des postes precedent, j ai releve l erreur suivante

Le menu.lst envoye par max... =

## 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=dbdef0d9-2e7d-4c74-ac06-96a2ca7bb166 ro

La dernier ligne

kopt=root=UUID=dbdef0d9-2e7d-4c74-ac06-96a2ca7bb166 ro

Devrait etre commente :

#kopt=root=UUID=dbdef0d9-2e7d-4c74-ac06-96a2ca7bb166 ro

Modifier le grub en consequence sauve garde et reboot...

XiaO!