• [^] # Re: live cd

    Posté par . En réponse au message impossible de booter apres un grub repair. Évalué à 1.

    si sdb est non alloué grub envera un message d'erreur en faisant grub-install

    ce n'est pas clair, dans la discussion, grub n'affiche plus aucun choix ou après laffichage du BIOS le pc reste avec un ecran noir ?

    mais dans ensemble oui la solution la plus simple : reinstaller grub avec un live cd ....

    il y a aussi encore plus simple : démarer un liveusb mais avant de demarer a l’écran de grub

    editer l'entree et mettre le noyau et le ramdisk de votre linux
    demarrer et faire grub-install avant de quitter ;) ou via l'interface graphique

    c'est l'atout de grub par rapport a lilo, on sait lire le disque donc demarrer "manuelement etape par etape"
    si le pc est en UEFI pareil on sait lire le noyau et les fichier du disque de la partition /efi

    Franck

    https://www.unix-ninja.com/p/Manually_booting_the_Linux_kernel_from_GRUB

    grub> ls

    (hd0) (hd0,msdos2) (hd0,msdos1)

    All of our partitions are showing up here (yours may look slightly different, depending on how things are partitioned). Since it can see our boot volume, let's actually tell it to use that:
    grub> root=(hd0,msdos1)

    Now we can tell it to load or kernel image. (Just note that you must put in the full filename of the image. You can use TAB completion here to help you, especially if you don't remember the name of the file.)
    grub> linux /vmlinuz root=/dev/sda2

    Next, we need to tell the kernel where it can find it's initialization RAM disk (initrd). Remember to use TAB completion to help you:
    grub> initrd /initrd.img

    Finally, you can go ahead and boot your system!
    grub> boot