• [^] # Re: recalcule de device.map

    Posté par . En réponse au message problème de définition de partition dans /boot/grub/menu.lst. Évalué à 1. Dernière modification le 03 avril 2012 à 15:47.

    device.map contient la liste des disques durs.

    (hd0) /dev/sda
    (hd1) /dev/sdb
    (hd2) /dev/sdc
    (hd3) /dev/sdd

    rien ne semble préciser quoi prendre en tant que partition de boot et lui imposer d'utiliser hd0,0 et pas hd2,0

    j'ai bien trouvé grub-install qui semble fait pour faire le job mais j'ai un peu peur de faire des bêtises… notamment à cause du commentaire qui suit --recheck

    /sbin/grub-install --help
    Unrecognized option `--help
    Usage: grub-install [OPTION] install_device
    Install GRUB on your drive.
     -h, --help print this message and exit
     -v, --version print the version information and exit
     --root-directory=DIR install GRUB images under the directory DIR
     instead of the root directory
     --grub-shell=FILE use FILE as the grub shell
     --no-floppy do not probe any floppy drive
     --force-lba force GRUB to use LBA mode even for a buggy
     BIOS
     --recheck probe a device map even if it already exists
     This flag is unreliable and its use is
     strongly discouraged.
    INSTALL_DEVICE can be a GRUB device name or a system device filename.
    grub-install copies GRUB images into the DIR/boot directory specfied by
    --root-directory, and uses the grub shell to install grub into the boot
    sector.
    
    

    au pire, je lirai le code de grub-install en bash ce soir…