• [^] # Re: Une piste

    Posté par . En réponse au message problème de définition de partition dans /boot/grub/menu.lst. Évalué à 1.

    En fait, je me rate totalement sur le sujet, le configurateur de démarrage du mcc possède bien des options pour modifier le périphérique d’amorçage mais rien n'est réellement appliqué au final.

    Cf le log de l’exécution ci dessous (si des fois cela parle à quelqu'un).

     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> root (hd2,0)
     Filesystem type is ext2fs, partition type 0x83
    grub> setup --stage2=/boot/grub/stage2 (hd0,0)
     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,0)"... failed (this is not fatal)
     Running "embed /boot/grub/e2fs_stage1_5 (hd2,0)"... failed (this is not fatal)
     Running "install --stage2=/boot/grub/stage2 /boot/grub/stage1 d (hd0,0) /boot/grub/stage2 p /boot/grub/menu.lst "... succeeded
    Done.
    grub> quit
    
    

    malheureusement hd2,0 reste dans le menu.lst

    [root@hyperion grub]# more /boot/grub/menu.lst
    timeout 5
    color black/cyan yellow/cyan
    gfxmenu (hd2,0)/boot/gfxmenu
    default 0
    title linux
    kernel (hd2,0)/boot/vmlinuz BOOT_IMAGE=linux root=UUID=333399c9-440a-4128-820f-9f4e006b8718 nokmsboot splash quiet resume=UUID=aadf478e-a147-46bb-9add-19c93646cc4a vga=794
    initrd (hd2,0)/boot/initrd.img
    title desktop 3.3.1-1.mga2
    kernel (hd2,0)/boot/vmlinuz-3.3.1-desktop-1.mga2 BOOT_IMAGE=desktop_3.3.1-1.mga2 root=UUID=333399c9-440a-4128-820f-9f4e006b8718 nokmsboot splash quiet resume=UUID=aadf478e-a147-46bb-9add-19c93646cc4a vga=794
    initrd (hd2,0)/boot/initrd-3.3.1-desktop-1.mga2.img
    
    

    J'ai essayé de refaire les commandes du log à la mano dans le shell grub en remplaçant hd2 par hd0 mais sans succès, j'ai une erreur de fichier non trouvé.

    root (hd0,0)
     Filesystem type is ext2fs, partition type 0x83
    grub> setup --stage2=/boot/grub/stage2 (hd0,0)
    setup --stage2=/boot/grub/stage2 (hd0,0)
     Checking if "/boot/grub/stage1" exists... no
     Checking if "/grub/stage1" exists... no
    Error 15: File not found
    
    

    Mais je ne comprends pas grand chose à ce 'File not found'. Le dossier /boot/grub contient bien stage1 et stage2 et est présent sur /dev/sda1 (hd0,0).

    Je vais finir par refaire une installation du grub via le install-grub.sh. Ce sera peut être formateur.