Pages : 1
#1 Le 08/02/2008, à 10:18
- chiron
[Résolu] Grub impossible à réparer
Bonjour à tous.
Hier soir j'ai eu droit à une belle erreur 15 fichier non trouvé, juste après le menu de démarrage.
J'ai essayé tout ce que j'ai pu trouver dans la doc, rien n'y a fait. A noter que ma partition XP démarre normalement.
Qu'est-ce que j'ai raté?
linux:/home/linux # fdisk -l
Disque /dev/sda: 80.0 Go, 80026361856 octets
255 heads, 63 sectors/track, 9729 cylinders
Units = cylindres of 16065 * 512 = 8225280 bytes
Disk identifier: 0x0003edb8
Périphérique Amorce Début Fin Blocs Id Système
/dev/sda1 * 1 3824 30716248+ 7 HPFS/NTFS
/dev/sda2 3825 9482 45447885 83 Linux
/dev/sda3 9483 9729 1984027+ 5 Extended
/dev/sda5 9483 9729 1983996 82 Linux swap / Solaris
linux:/home/linux/toto/boot/grub # cat 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=425f6dc2-ba01-4962-aa6a-c91d4aff7403 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
## 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 7.10, kernel 2.6.22-14-generic
root (hd0,1)
kernel /boot/vmlinuz-2.6.22-14-generic root=UUID=425f6dc2-ba01-4962-aa6a-c91d4aff7403 ro quiet splash
initrd /boot/initrd.img-2.6.22-14-generic
quiet
title Ubuntu 7.10, kernel 2.6.22-14-generic (recovery mode)
root (hd0,1)
kernel /boot/vmlinuz-2.6.22-14-generic root=UUID=425f6dc2-ba01-4962-aa6a-c91d4aff7403 ro single
initrd /boot/initrd.img-2.6.22-14-generic
title Ubuntu 7.10, 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/sda1
title Windows NT/2000/XP
root (hd0,0)
savedefault
makeactive
chainloader +1
Dernière modification par chiron (Le 08/02/2008, à 21:55)
In hoc signo vinces.
Hors ligne
#2 Le 08/02/2008, à 10:44
- jrev
Re : [Résolu] Grub impossible à réparer
Si tu nous donnais plus de précisions sur ta situation :
Version ubuntu installée ou pas ?
a-t-il déjà fonctionné ou pas ?
à quel moment se situe la faute ?
Quels sont les symptà´mes ?
Pourquoi veux-tu réparer grub ?
Merci de ce complément d'infos pour ceux qui vont te répondre
Dernière modification par jrev (Le 08/02/2008, à 10:45)
Mal nommer les choses, c'est ajouter au malheur du monde
Hors ligne
#3 Le 08/02/2008, à 12:48
- chiron
Re : [Résolu] Grub impossible à réparer
Alors, j'ai une kubuntu 7.10, tout fonctionnait bien jusqu'à présent (dual boot avec xp) Le problème se situe au démarrage, j'ai ce fameux mesage "erreur 15 fichier non trouvé", juste après le menu ou on donne les choix de démarrage.
Quant à savoir comment c'est arrivé ou ce que j'ai cassé, aucune idée.
Je ne fais rien d'extraordinaire avec XP, seulement l'accès de temps en temps à des sites qui exigent IE, rien d'autre.
Je désire juste réparer mon démarrage. J'ai donc fureté dans la doc, mais j'ai toujours ce satané message d'erreur.
J'ai booté sur un livecd opensuse 10.3, ai monté la partition dans un répertoire "toto" et ai pu ainsi récupérer les infos de mes fichiers de configuration.
In hoc signo vinces.
Hors ligne
#4 Le 08/02/2008, à 12:56
- sirius10
Re : [Résolu] Grub impossible à réparer
Salut
essaye
sudo grub
grub> find /boot/grub/stage1
à‡a va te donner un résultat de la forme hdX,Y. Poste le, merci
Ensuite tu remplaces en fonction :
grub> root (hdX,Y)
grub> setup (hd0)
grub> quit
Dernière modification par sirius10 (Le 08/02/2008, à 13:00)
"Pour ce qui est de l'Avenir, il ne s’agit pas de le prévoir, mais de le rendre possible."
Antoine de Saint-Exupéry
Hors ligne
#5 Le 08/02/2008, à 13:59
- jrev
Re : [Résolu] Grub impossible à réparer
Tu pourras ainsi contrà´ler si le premier menu actif de grub démarre bien la partition adéquate
Mal nommer les choses, c'est ajouter au malheur du monde
Hors ligne
#6 Le 08/02/2008, à 14:25
- chiron
Re : [Résolu] Grub impossible à réparer
grub> find /boot/grub/stage1
find /boot/grub/stage1
(hd0,1)
grub> root (hd0,1)
root (hd0,1)
Filesystem type is ext2fs, partition type 0x83
grub> setup (hd0)
setup (hd0)
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.
grub> quit
quit
voilà , il ne me reste plus qu'à rebooter, résultat dans 2 mn.
edit: Toujours la même erreur...:(
Dernière modification par chiron (Le 08/02/2008, à 14:35)
In hoc signo vinces.
Hors ligne
#7 Le 08/02/2008, à 15:41
- sirius10
Re : [Résolu] Grub impossible à réparer
Si tu veux essayer de maj le grub!!
sudo grub
sudo update grub
"Pour ce qui est de l'Avenir, il ne s’agit pas de le prévoir, mais de le rendre possible."
Antoine de Saint-Exupéry
Hors ligne
#8 Le 08/02/2008, à 17:30
- chiron
Re : [Résolu] Grub impossible à réparer
Ca ne marche pas...
Si tu veux essayer de maj le grub!!
sudo grub
sudo update grub
linux@linux:~> su
linux:/home/linux # grub
GNU GRUB version 0.97 (640K lower / 3072K upper memory)
[ Minimal BASH-like line editing is supported. For the first word, TAB
lists possible command completions. Anywhere else TAB lists the possible
completions of a device/filename. ]
grub> sudo update grub
sudo update grub
Error 27: Unrecognized command
grub>
In hoc signo vinces.
Hors ligne
#9 Le 08/02/2008, à 17:49
- sirius10
Re : [Résolu] Grub impossible à réparer
excuse c'est plutot
sudo update-grub
"Pour ce qui est de l'Avenir, il ne s’agit pas de le prévoir, mais de le rendre possible."
Antoine de Saint-Exupéry
Hors ligne
#10 Le 08/02/2008, à 19:01
- chiron
Re : [Résolu] Grub impossible à réparer
linux@linux:~> sudo update-grub
sudo: update-grub: command not found
In hoc signo vinces.
Hors ligne
#11 Le 08/02/2008, à 19:40
- Compte anonymisé
Re : [Résolu] Grub impossible à réparer
Salut
Le message erreur 15 indique simplement que grub ne trouve pas ses fichiers :
soit /boot/vmlinuz-2.6.22-14-generic
soit /boot/initrd.img-2.6.22-14-generic
Tu peux vérifier si ces fichiers existent bien grà¢ce à un livecd :
sudo umount -a pas d'inquiétude sur les messages d'erreur
puis
sudo mount /dev/sda2 /mnt
et enfin :
sudo ls -l /mnt/boot
Tu peux aussi lister les UUID et vérifier qu'ils correspondent bien à ce qui est indiqué dans menu.lst (root=UUID=425f6dc2-ba01-4962-aa6a-c91d4aff7403) :
sudo ls -l /dev/disk/by-uuid/
@+
#12 Le 08/02/2008, à 20:19
- chiron
Re : [Résolu] Grub impossible à réparer
Ben, je ne vois pas o๠est l'erreur...:|
linux@linux:~> sudo ls -l /mnt/boot
total 17984
-rw-r--r-- 1 root root 424317 fév 1 08:00 abi-2.6.22-14-generic
-rw-r--r-- 1 root root 75311 fév 1 08:00 config-2.6.22-14-generic
drwxr-xr-x 2 root root 4096 fév 6 19:25 grub
-rw-r--r-- 1 root root 7579274 fév 3 17:20 initrd.img-2.6.22-14-generic.bak
-rw-r--r-- 1 root root 7580219 fév 6 19:25 initrd.img-2.6.22-14-generic.dpkg-bak
-rw-r--r-- 1 root root 103204 sep 28 10:06 memtest86+.bin
-rw-r--r-- 1 root root 823535 fév 1 08:00 System.map-2.6.22-14-generic
-rw-r--r-- 1 root root 1764472 fév 1 08:00 vmlinuz-2.6.22-14-generic
linux@linux:~>
linux@linux:~> sudo ls -l /dev/disk/by-uuid/
total 0
lrwxrwxrwx 1 root root 10 fév 8 13:29 2A009E89009E5C1F -> ../../sda1
lrwxrwxrwx 1 root root 10 fév 8 13:29 310a75f4-c681-40d9-975d-2d863d89d096 -> ../../sda5
lrwxrwxrwx 1 root root 10 fév 8 13:29 425f6dc2-ba01-4962-aa6a-c91d4aff7403 -> ../../sda2
linux@linux:~>
In hoc signo vinces.
Hors ligne
#13 Le 08/02/2008, à 20:25
- Compte anonymisé
Re : [Résolu] Grub impossible à réparer
Salut
En y regardant de plus près il te manque ceci :
/boot/initrd.img-2.6.22-14-generic
Lors de la mise à jour l'initrd n'a pas été créé.
Tu peux essayer de renommer celui-ci :
initrd.img-2.6.22-14-generic.bak
en
initrd.img-2.6.22-14-generic
par la commande :
sudo mv /mnt/boot/initrd.img-2.6.22-14-generic.bak /mnt/boot/initrd.img-2.6.22-14-generic
mais ce n'est pas trop normal. Il faudra ensuite régénérer l'initrd.
@+
#14 Le 08/02/2008, à 20:33
- chiron
Re : [Résolu] Grub impossible à réparer
Salut
mais ce n'est pas trop normal. Il faudra ensuite régénérer l'initrd.
@+
Je peux faire comment? Le copier depuis une autre machine?
In hoc signo vinces.
Hors ligne
#15 Le 08/02/2008, à 20:36
- Compte anonymisé
Re : [Résolu] Grub impossible à réparer
Voir ci-dessus : boot sur livecd, montage de /dev/sda2 (post #11)
puis
sudo mv /mnt/boot/initrd.img-2.6.22-14-generic.bak /mnt/boot/initrd.img-2.6.22-14-generic (post #13)
Dernière modification par Compte anonymisé (Le 08/02/2008, à 20:38)
#16 Le 08/02/2008, à 20:42
- chiron
Re : [Résolu] Grub impossible à réparer
Merci beaucoup, ça a marché. :)Rien d'autre à faire pour remettre le système d'aplomb?
In hoc signo vinces.
Hors ligne
#17 Le 08/02/2008, à 20:51
- Compte anonymisé
Re : [Résolu] Grub impossible à réparer
Regarde du coté de mkinitrd man ou autre pour recréer un initrd en phase avec le nouveau noyau.
@+
#18 Le 08/02/2008, à 21:53
- chiron
Re : [Résolu] Grub impossible à réparer
Merci beaucoup.
J'avais des mà j qui attendaient et j'ai vu que le fichier initrd a été régénéré dans le processus.
Résolu.
In hoc signo vinces.
Hors ligne
Pages : 1