• # grub dynamique

    Posté par . En réponse au message [résolu à 50%]installer l'iso d'un os à partir de grub. Évalué à 1. Dernière modification le 15 avril 2015 à 23:34.

    J'ai trouvé le site suivant en anglais pour faire un grub dynamique http://www.rmprepusb.com/tutorials/autoiso ça m"a paru pas mal mais ça marche pas.
    j'ai modifié mon menu.lst ainsi:

     # /boot/grub/menu.lst: GRUB boot loader configuration.
     #
     # By default, boot the first entry.
    default 0
     # Boot automatgrub dynamiqueically after 8 secs.
    timeout 1
     # Graphical splash image.
    splashimage=/boot/grub/BlueLight.xpm.gz
     # Change the colors.
     #color yellow/brown light-green/black
     #enable parttype output
    debug 1
     # make empty table entry in 4th position in ptn table
    parttype (hd0,3) | set check=
    debug off
    set check=%check:~-5,4%
    if "%check%"=="0x00" partnew (hd0,3) 0 0 0
    if not "%check%"=="0x00" echo WARNING: PTN TABLE 4 IS ALREADY IN USE! && pause && configfile /menu.lst
    debug 1
     # slitaz GNU/Linux 4.0 (Kernel vmlinuz-2.6.37-slitaz)
    title SliTaz 4
    root (hd0,6)
    kernel /boot/vmlinuz-2.6.37-slitaz root=/dev/sda7 quiet 
     # kubuntu
    title Kubuntu
    root (hd0,5)
    kernel /boot/vmlinuz-3.13.0-24-generic root=/dev/sda6 quiet
    initrd /boot/initrd.img-3.13.0-24-generic
    title LINUX ISOs (sans commentaires)
    debug off
    checkrange 20120114:-1 read 0x8278 || echo WRONG VERSION OF GRLDR (grub4d0s)!!!! && pause
    set LBACKMENU=(bd)/menu.lst
    call /grub/autolinuxmenu.bat .automenu /_ISO/Linux
    configfile (md)0x3000+0x50
     title LINUX ISOs (avec commentaires)
     #please see www.rmprepusb.com Tutorial #96 for instructions
     # avoid debug messages
     debug off
     #checkrange 20120114:-1 read 0x8278 || echo WRONG VERSION OF GRLDR (grub4d0s)!!!! && pause
     # call the RUN batch file and create a configfile in the ramdrive for all image files
     # if DD=1 then echoes debug statements
     # set DD=1
     # if ELBACKUP=YES then writes the finished menu to /grub/LINUXBACKUP.lst (but doesn't work under an emulator)
     # set ELBACKUP=YES
     # Search all folders under MFOLDER for ISO files...
     # set MFOLDER=/_ISO/Linux
     # Set name of the menu to go back to (last menu item)
     set LBACKMENU=(bd)/menu.lst
     # now generate the new menu.lst file and specify the Main Folder that will be scanned for .mnu files
     call /grub/autolinuxmenu.bat .automenu /_ISO/Linux
     # echo show menu && cat (md)0x3000+0x50 && pause
     # Load the new configfile
     configfile (md)0x3000+0x50

    (J'ai essayé les deux avec et sans les commentaires)
    ça bloque et me met:

     #checkrange 20120114:-1 read 0x8278 || echo WRONG VERSION OF GRLDR (grub4d0s)!!!! && pause 

    Pourtant j'ai bien grub4dos