Forum Linux.debian/ubuntu probleme partition mbr

Posté par  .
Étiquettes : aucune
0
10
nov.
2006
Bonjour à tous

J'ai recompiler le noyau 2.6.17 de ma debian, j'utilise lilo , et depuis que j'ai recompilé , impossible de rebooter.

Mon lilo bloque avant l'affichage du menu, il me met une suite de L999999999

Donc j'ai booter sur un live cd , et j'ai reinstallé lilo, sans effet. J'ai toujours la même erreur
J'ai installé grub et configuré, sans effet, le pc reboot toujours sur l'ancien lilo qui foire.
J'ai reset la mbr avec install-mbr -kr /dev/sda, toujours sans effet, le pc redemarre toujours sur le lilo qui foire en L999999

Je ne peux donc plus booter sur ma machine

voila mon soucis, quelqu'un a t il une idée ?

Merci d'avance

Tchii
  • # CHROOT

    Posté par  . Évalué à 1.

    Donc j'ai booter sur un live cd
    , l'idée était bonne (boote même une knoppix c'est du debian inside), en root mount ta partition racine dans un répertoire (ex: /home/debian ).

    puis:
    chroot /home/debian

    tu peux réparer ta distri à partir de là: dpkg-reconfigure grub ; dpkg -i linux-image-2.6.17 ; cfdisk .....

    Je trouve que la série 2.6.18.1 du noyau linux est extrêmement stable
  • # plus qu'une idée

    Posté par  . Évalué à 1.

    Premiere solutions passer réellement a Grub car
    J'ai installé grub et configuré, sans effet, le pc reboot toujours sur l'ancien lilo qui foire.
    si tu boote toujours sur lilo c'est que grub n'est pas installé (les deux ecrive dans le MBR donc il y a forcement une mauvaise install si tu retombe sur lilo). Il n'y aurait pas a verifier les parametres de ton bios pour verifier sur tu boot sur le bon disk dur par exemple ?

    Deuxieme solutions corriger le probleme avec lilo
    D'apres la doc de lilo ( http://www.wlug.org.nz/LiloErrorCodes )il t'indique l'erreur suivante

    0x99: Invalid Second Stage
    Mismatch between drive and BIOS geometry, or a bad map file. Some evidence that LINEAR needs to be set on the disk (see LiloNotes)

    LiloNotes
    Notes on Linear Mode
    An additional possibility for those with only "L"

    I had an old Compaq on which I had updated the BIOS but the /boot directory was far into the large hard drive. I wasn't able to tweak the autodetect parameters in BIOS, so I didn't have all the information in how it was set up. I would always get stuck at the "L" screen, though a boot disk (linux root=/dev/hda1) would work fine.

    In my case I had to comment out Linear in lilo.conf and then execute (capital "L" is important)

    lilo -L

    to set disk access mode to LBA32 (I think this is the default). Once this was written to the MBR (/dev/hda) everything worked fine.

    It would be helpful to note that users with older hardware, who encounter the L 99 99 99 99 ... error, that adding "linear" in lilo.conf may solve the problem. (It did for me!)

    There is a significant amount of conflicting information about error code 99. It appears to be associated with a BIOS disk error - mismatch of geometry, read failure, or something like that. According to the lilo man page, 99 indicates "invalid second stage index sector" and is usually associated with a bad map file or a geometry mismatch between lilo and the BIOS.

    What solved it for me was moving lilo to the MBR instead of the first sector of the disk.

Suivre le flux des commentaires

Note : les commentaires appartiennent à celles et ceux qui les ont postés. Nous n’en sommes pas responsables.