• [^] # Re: Knoppix met le turbo

    Posté par . En réponse à la dépêche Knoppix met le turbo. Évalué à 2.

    Je sais pas si ça va t'aider mais je te donne mon grub.conf. J'ai un RH9 :

    # (hd0,0) désigne la première partition du premier disque dur ide.

    # grub.conf generated by anaconda
    #
    # Note that you do not have to rerun grub after making changes to this file
    # NOTICE: You have a /boot partition. This means that
    # all kernel and initrd paths are relative to /boot/, eg.
    # root (hd0,0)
    # kernel /vmlinuz-version ro root=/dev/hde3
    # initrd /initrd-version.img
    boot=/dev/hda ( ??? )
    default=0 #le numéro de boot par défaut. les description des OS commence par title.
    timeout=10 # delais attente avant boot automatique
    splashimage=(hd0,0)/grub/splash.xpm.gz # pour faire joli
    password --md5 1ドル$IMjvGnyN$CqjfCRc42IoyqGfWILNm71 # protection par mot de passe
    title Red Hat Linux (2.4.21-20.1.2024年2月1日.nptl) # première description de SE
    root (hd0,0) # partition recherché par défaut. Donc /vmlinuz désigne (hd0,0)/vmlinuz
    kernel /vmlinuz-2.4.21-20.1.2024年2月1日.nptl ro root=/dev/md0 nousb ide=reverse # noyau à utiliser et paramètre
    initrd /initrd-2.4.21-20.1.2024年2月1日.nptl.img # inirtd

    Dans mon cas, j'ai une partion (hda1) ou il y a les fichiers de grub (stage*, grub.conf, etc) et j'utilise cette même partition pour stocker le noyau et initrd. Si, par exemple, ton noyau est sur la troisième partition du deuxième disque dur ide, il faut utiliser :
    kernel (hd1,2)/vmlinuz

    Utilises grub-install pour installer grub. Par exemple grub-install --root-directory=/boot /dev/hda