Bonjour, je fais appel à vous car il m'est arrivé un gros problème :
Suite à la dernière mise à jour, grub à sauter.
J'ai réussi à le réinstaller en passant par un live usb, malheureusement, il n'y a plus aucune entrée de kernel sur le disque. J'ai essayé la commande grub-mkconfig, mais il n'a pas ajouté les entrées qui sont sur le disque.
Savez vous comment je peux restaurer ça, sachant que je ne peut pas booter sur mon disque dur, vu que je n'ai plus les entrées pour justement ?

Merci.
Salut,
il suffit de chrooter sur ta partition / de ton disque dûr depuis le liveusb, puis de vérifier que les fichiers /etc/grub.d/* et /etc/default/grub soient présent et correctement renseignés, monter dans le chroot la partition /boot de ton disque dûr, et pour finir lancer la commande que tu as énoncé plus haut (grub2-mkconfig -o /boot/grub2/grub.cfg)

Quelques infos avant de se lancer :
Utilise-tu LVM ?
Et utilise-tu LUKS dessus ?
Ou bien utilise-tu LUKS sur des partitions primaires ?
La commande grub2-mkconfig dit qu'il ne trouve pas la partition racine. Je n'utilise ni LVM ni LUKS (je ne sais même aps ce que c'est luks d'ailleurs).

Voici ma sortie terminal au cas où :
[root@localhost ~]# mount /dev/sdb3 /mnt/temp/
[root@localhost ~]# mount /dev/sdb2 /mnt/temp/boot
[root@localhost ~]# chroot /mnt/temp/
[root@localhost /]# cd etc/grub.d/
[root@localhost grub.d]# ls
00_header  20_linux_xen  40_custom  90_persistent
10_linux   30_os-prober  41_custom  README
[root@localhost grub.d]# test -f /etc/default/grub && echo 'exist' || echo 'not exist'
exist
[root@localhost grub.d]# grub2-mkconfig -o /boot/grub2/grub.cfg
/sbin/grub2-probe: error: cannot find a device for / (is /dev mounted?).
Une fois chrootée la partition racine (avec le boot monté) ne trouve pas le disque dur :
[root@localhost /]# cd /dev
[root@localhost dev]# ls
boot  full    null  pts     shm     stdin   tty      vcsa
fd    mapper  ptmx  random  stderr  stdout  urandom  zero
Arf, t'y étais presque du premier coup...
Dans le bon ordre :
[root@localhost ~]# mount /dev/sdb3 /mnt/temp/
[root@localhost ~]# mount -o bind /dev /mnt/temp/dev  # pour faire apparaitre les périph' dans le /dev/ du chroot
[root@localhost ~]# chroot /mnt/temp/
j'aimerais bien que tu nous poste ton /etc/default/grub avant d'aller plus loin
et aussi [root@localhost /]# ls /etc/default/

puis enfin:
[root@localhost /]# mount /dev/sdb2 /boot
[root@localhost /]# grub2-mkconfig -o /boot/grub2/grub.cfg
Je ne connaissais pas le petit truc du bind.

J'ai donc essayé, ça a donné ça :
[root@localhost /]# ls /etc/default/
grub  grub.rpmnew  nss  useradd
[root@localhost /]# cat /etc/default/grub
GRUB_TIMEOUT=5
GRUB_DISTRIBUTOR="Fedora"
GRUB_DEFAULT=saved
GRUB_CMDLINE_LINUX="rd.md=0 rd.lvm=0 rd.dm=0 quiet LANG=fr_FR.UTF-8 SYSFONT=latarcyrheb-sun16 rhgb rd.luks=0  KEYTABLE=fr-latin9" 
[root@localhost /]# mount /dev/sdb2 /boot
[root@localhost /]# grub2-mkconfig -o /boot/grub2/grub.cfg
Generating grub.cfg ...
Found linux image: /boot/vmlinuz-3.3.0-4.fc16.i686
Found initrd image: /boot/initramfs-3.3.0-4.fc16.i686.img
Found linux image: /boot/vmlinuz-3.2.9-2.fc16.i686
Found initrd image: /boot/initramfs-3.2.9-2.fc16.i686.img
Found linux image: /boot/vmlinuz-3.2.10-3.fc16.i686
Found initrd image: /boot/initramfs-3.2.10-3.fc16.i686.img
grep: /proc/mounts: No such file or directory
grep: /proc/swaps: No such file or directory
Cannot find list of partitions!  (Try mounting /sys.)
done
Au rédémarrage tout en rentré dans l'ordre, merci beaucoup C@sp€r 🙂