[Date Prev][Date Next] [Thread Prev][Thread Next] [Date Index] [Thread Index]

Problème grub suite à maj du noyaux



Bonjour,

Je crois que j'ai fais une petite bétise en rebootant mon serveur sans
regarder si le noyaux avait été correctement mis à jour.

En rebootant j'ai eu la surprise de voir grub me dire "You need to load
the kernel first" après sélection du kernel. Cette erreur est présente
pour chaque kernel disponible, donc plus possible de booter mon serveur.

J'ai par chance laissé le terminal ssh ouvert et j'ai l'erreur, voici la
sortie tronqué d'aptitude :

> Running update-grub.
> Generating grub.cfg ...
> Found linux image: /boot/vmlinuz-2.6.30-2-amd64
> Found initrd image: /boot/initrd.img-2.6.30-2-amd64
> grub-probe: error: Cannot find a GRUB drive for /dev/sdg1.  Check your
> device.map.
>
> grub-probe: error: Cannot find a GRUB drive for /dev/sdg1.  Check your
> device.map.
>
> Found linux image: /boot/vmlinuz-2.6.30-1-amd64
> Found initrd image: /boot/initrd.img-2.6.30-1-amd64
> grub-probe: error: Cannot find a GRUB drive for /dev/sdg1.  Check your
> device.map.
>
> grub-probe: error: Cannot find a GRUB drive for /dev/sdg1.  Check your
> device.map.
>
> Found linux image: /boot/vmlinuz-2.6.26-2-amd64
> Found initrd image: /boot/initrd.img-2.6.26-2-amd64
> grub-probe: error: Cannot find a GRUB drive for /dev/sdg1.  Check your
> device.map.
>
> grub-probe: error: Cannot find a GRUB drive for /dev/sdg1.  Check your
> device.map.
>
> Found linux image: /boot/vmlinuz-2.6.24-1-amd64
> Found initrd image: /boot/initrd.img-2.6.24-1-amd64
> grub-probe: error: Cannot find a GRUB drive for /dev/sdg1.  Check your
> device.map.
>
> grub-probe: error: Cannot find a GRUB drive for /dev/sdg1.  Check your
> device.map.
>
> done
> Examining /etc/kernel/postinst.d.
> run-parts: executing /etc/kernel/postinst.d/initramfs-tools
> 2.6.30-2-amd64 /boot/vmlinuz-2.6.30-2-amd64

J'ai ajouté des disques durs et probablement que la clé usb qui me sert
de /boot a changé de location. J'avais pourtant pris soit de bien
utiliser les uuid partout pour éviter toute déconvenu, mais il
semblerait que j'aille oublié grub2.

Je viens d'insérer un livecd d'ubuntu qui trainait (merci canonical pour
les cd gratos), et je suis loggué en ssh au serveur, je suis en train de
chercher comment activer le lvm car je suppose que je vais devoir
chrooter l'environnement. Je l'avais fais il y a un moment mais j'ai
complètement oublié depuis. J'ai réussi à activer le volume raid c'est
déjà ça.



Si vous auriez des pistes, car je n'ai aucune idée de la façon de faire,
et mes proches me trouve irritable depuis quelques heures :(

Merci d'avance.


Reply to: