Probleme dans grub

Résolu
salut

lorsque je demarre mon PC portable il ne passe ni à linux ni à windows mais il m'affiche 1 msg :

...
grub >

aider moi
est ce qu'il faut formater l'ordi ou bien il y a une solution

meci
Configuration: Linux
Firefox 3.0.4

11 réponses

  1. Salut,
    sinon tu peux booter depuis l'invite grub> en tapant (attention clavier en qwerty) :
    root (hd0,5)
    kernel /boot/vmlinuz root=/dev/sda7 ro
    initrd /boot/initrd.img
    boot

    si ça marche c'est kewwwl, sinon, il va falloir adapter les commandes pour trouver la partition et les fichiers. (peux-tu lister tes fichiers dans /boot stp ?)
    Ou pour booter Windows :
    root (hd0,0)
    makeactive
    chainloader +1
    boot


    Ensuite tu crée le fichier /boot/grub/menu.lst (les noms de fichiers sont à adapter)

    default 0
    timeout 5
    
    Title Linux
    root (hd0,5)
    kernel /boot/vmlinuz root=/dev/sda7 ro
    initrd /boot/initrd.img
    
    Title Windows
    root (hd0,0)
    makeactive
    chainloader +1
    
    1
    1. Donc, ces commandes devraient booter ton linux :
      root (hd0,4)
      kernel /boot/vmlinuz-2.6.24-16-generic root=/dev/sda7 ro
      initrd /boot/initrd.img-2.6.24-16-generic
      boot


      Ensuite une fois sous linux :
      sudo gedit /boot/grub/menu.lst


      copiage/collage :
      # par défaut on boot la première entrée du menu
      default 0
      
      # ... au bout de 5 secondes
      timeout 5
      
      ### MENU
      ##1ère entrée -> Linux
      #Title Mon Titre qui tUe
      Title Linux
      root (hd0,4)
      kernel /boot/vmlinuz-2.6.24-16-generic root=/dev/sda7 ro
      initrd /boot/initrd.img-2.6.24-16-generic
      
      ##2è entrée -> Windows
      Title Windows
      root (hd0,0)
      makeactive
      chainloader +1


      - Enregistrer

      - Reboot
      1
      1. Stubbs une erreur est produite dans la ligne
        kernel /boot/vmlinuz-2.6.24-16-generic root=/dev/sda7 ro
        Error 17 cannot mount selected partition
        0
    2. Modérateur
      Pas besoin de formater l'ordinateur tu peux au moins récupérer ton installation avec un live CD (et ainsi sauvegarder tes documents importants si tu étais réduit à cette extrémité).

      Peux-tu nous dire quelle distribution tu as installé ?
      Peux-tu aussi démarrer sur un CD d'installation (ou un live CD) et nous donner le résultat de la commande suivantes :
      sudo fdisk -l
      Indique-nous quelles partitions correspondent à quel système s'il y a une ambiguïté. En particulier on va avoir besoin de savoir laquelle correspond au / de ton linux.

      L'idée : on va se "chrooter" depuis le live CD sur le linux installé sur ton disque dur. Tout se passera dès lors comme si on avait démarré normalement sous linux. On pourra ensuite corriger /boot/grub/menu.lst (le fichier de configuration de grub) et le corriger de sorte à ce que tu puisses lancer tes deux systèmes. Ceci fait, on quittera le chroot proprement et on redémarrera.

      Bonne chance
      0
      1. j'ai installé ubuntu 8.04
        pour la commande voici la résultat :
        Disk /dev/sda: 40.0 GB, 40007761920 bytes

        255 heads, 63 sectors/track, 4864 cylinders

        Units = cylinders of 16065 * 512 = 8225280 bytes

        Disk identifier: 0x00610061

        Device Boot Start End Blocks Id System

        /dev/sda1 * 1 1295 10402056 7 HPFS/NTFS

        /dev/sda2 1296 4864 28667992+ f W95 Ext'd (LBA)

        /dev/sda5 1296 2583 10345828+ 7 HPFS/NTFS

        /dev/sda6 2584 3666 8699166 83 Linux

        /dev/sda7 3667 4795 9068661 83 Linux

        /dev/sda8 4796 4864 554211 82 Linux swap / Solaris

        la partition d'installation windows est : sda1
        la partition d'installation ubuntu est sda7

        merci
        0
    3. Contributeur
      bonjour,
      charge supergrub et restore ton grub avec .
      a+
      0
      1. jeanbi c quoi supergrup est ce que c 1 logiciel, commande,.. et comment je peut la charger
        merci d'avance pour votre aide
        0
    4. salut stubs
      il y a une erreur si j'exécute cette ligne kernel /boot/vmlinuz root=/dev/sda7 ro :

      Error 15:File not found

      merci
      0
      1. Oui c'est que le nom du fichier du noyau ne doit pas être vmlinuz. C'est pour ça qu'il faudrait que tu poste le contenu de ton répertoire /boot.
        Les commandes pour windows ça marche ?
        0
      2. @Stubbs: )
        0
    5. en tous cas merci stubbs j'arrive a bouter sur windows par :

      root (hd0,0)
      makeactive
      chainloader +1
      boot
      0
      1. Ok, dans ce cas tu peux télécharger explore2fs sous windows
        https://framalibre.org
        et me poster la liste des fichiers dans /boot stp ?
        0
      2. @Stubbs... Où bien, avec un live CD Linux :
        mkdir /mnt/sda7
        mount /dev/sda7 /mnt/sda7
        ls /mnt/sda7/boot/
        0
      3. @Stubbsfaire la même chose avec sda6, parce toute réflexion faite, sda7 ça doit être la partition home
        0
      4. @Stubbsalors voici la résultat de :
        mkdir /mnt/sda7
        mount /dev/sda7 /mnt/sda7
        ls /mnt/sda7/boot/


        abi-2.6.24-16-generic___________ initrd.img-2.6.24-21-rt.bak
        config-2.6.24-16-generic_________memtest86+.bin
        config-2.6.24-21-rt_____________System.map-2.6.24-16-generic
        grub________________________System.map-2.6.24-21-rt
        initrd.img-2.6.24-16-generic______vmlinuz-2.6.24-16-generic
        initrd.img-2.6.24-16-generic.bak__ vmlinuz-2.6.24-21-rt
        initrd.img-2.6.24-21-rt


        NB: _______ c a d espace
        MERCI
        0
    6. malheureusement je fait hier une recupération (réparation par cd) de l'XP et maintenant avant entrer dans windows il faut terminer le processus de récuperation; la problème c que je n'ai pas la version que j'ai installé sur mon PC est ce que n'importe quel CD XP peut continuer la réparation
      sinon comment je peut abondonner la réparation
      merci pour votre aide et pardant pour mes question
      0
      1. je n sait pas est ce que t'a bien compri mon dernier question ??
        merci
        0
        1. Sisi, c'est très compréhensible, mais windows, j'y connais rien...
          Essaye de créer un nouveau post dans la section windows, tu auras peut-être plus de chances
          0
        2. @Stubbsalors voici la résultat de :
          mkdir /mnt/sda7
          mount /dev/sda7 /mnt/sda7
          ls /mnt/sda7/boot/

          abi-2.6.24-16-generic___________ initrd.img-2.6.24-21-rt.bak
          config-2.6.24-16-generic_________memtest86+.bin
          config-2.6.24-21-rt_____________System.map-2.6.24-16-generic­
          grub________________________System.map-2.6.24-21-rt
          initrd.img-2.6.24-16-generic______vmlinuz-2.6.24-16-generic
          initrd.img-2.6.24-16-generic.bak__ vmlinuz-2.6.24-21-rt
          initrd.img-2.6.24-21-rt

          NB: _______ c a d espace
          MERCI
          0
      2. Nierk...
        C'est la ligne root(hd0,4) qui déc*** ...
        Essaye root(hd0,5)
        root(hd0,3)
        ....
        jusqu'à trouver celle qui marche. (j'ai jamais bien compris comment grub nommait les partitions :)
        Attention à bien remplacer la commande dans le menu.lst
        0
        1. cooooooooool, jusqu'à maintenant j'effectue ces opéation :
          root (hd0,6)
          kernel /boot/vmlinuz-2.6.24-16-generic root=/dev/sda7 ro
          initrd /boot/initrd.img-2.6.24-16-generic
          boot
          0
        2. @wa7ch3000c la meme pbm !!!!, j'arrive à booter sous ubuntu et je fait tous ce que vous avez dit, et malheureusement la meme probleme,
          voici l'ancien fichier menu.lst :

          
          # menu.lst - See: grub(8), info grub, update-grub(8)
          #            grub-install(8), grub-floppy(8),
          #            grub-md5-crypt, /usr/share/doc/grub
          #            and /usr/share/doc/grub-doc/.
          
          ## default num
          # Set the default entry to the entry number NUM. Numbering starts from 0, and
          # the entry number 0 is the default if the command is not used.
          #
          # You can specify 'saved' instead of a number. In this case, the default entry
          # is the entry saved with the command 'savedefault'.
          # WARNING: If you are using dmraid do not use 'savedefault' or your
          # array will desync and will not let you boot your system.
          default		0
          
          ## timeout sec
          # Set a timeout, in SEC seconds, before automatically booting the default entry
          # (normally the first entry defined).
          timeout		10
          
          ## hiddenmenu
          # Hides the menu by default (press ESC to see the menu)
          #hiddenmenu
          
          # Pretty colours
          #color cyan/blue white/blue
          
          ## password ['--md5'] passwd
          # If used in the first section of a menu file, disable all interactive editing
          # control (menu entry editor and command-line)  and entries protected by the
          # command 'lock'
          # e.g. password topsecret
          #      password --md5 $1$gLhU0/$aW78kHK1QfV3P2b2znUoe/
          # password topsecret
          
          #
          # examples
          #
          # title		Windows 95/98/NT/2000
          # root		(hd0,0)
          # makeactive
          # chainloader	+1
          #
          # title		Linux
          # root		(hd0,1)
          # kernel	/vmlinuz root=/dev/hda2 ro
          #
          
          #
          # Put static boot stanzas before and/or after AUTOMAGIC KERNEL LIST
          
          ### BEGIN AUTOMAGIC KERNELS LIST
          ## lines between the AUTOMAGIC KERNELS LIST markers will be modified
          ## by the debian update-grub script except for the default options below
          
          ## DO NOT UNCOMMENT THEM, Just edit them to your needs
          
          ## ## Start Default Options ##
          ## default kernel options
          ## default kernel options for automagic boot options
          ## If you want special options for specific kernels use kopt_x_y_z
          ## where x.y.z is kernel version. Minor versions can be omitted.
          ## e.g. kopt=root=/dev/hda1 ro
          ##      kopt_2_6_8=root=/dev/hdc1 ro
          ##      kopt_2_6_8_2_686=root=/dev/hdc2 ro
          # kopt=root=UUID=8e3f9418-8d3b-42dc-b879-755e9eeb5285 ro
          
          ## Setup crashdump menu entries
          ## e.g. crashdump=1
          # crashdump=0
          
          ## default grub root device
          ## e.g. groot=(hd0,0)
          # groot=(hd0,5)
          
          ## should update-grub create alternative automagic boot options
          ## e.g. alternative=true
          ##      alternative=false
          # alternative=true
          
          ## should update-grub lock alternative automagic boot options
          ## e.g. lockalternative=true
          ##      lockalternative=false
          # lockalternative=false
          
          ## additional options to use with the default boot option, but not with the
          ## alternatives
          ## e.g. defoptions=vga=791 resume=/dev/hda5
          # defoptions=quiet splash
          
          ## should update-grub lock old automagic boot options
          ## e.g. lockold=false
          ##      lockold=true
          # lockold=false
          
          ## Xen hypervisor options to use with the default Xen boot option
          # xenhopt=
          
          ## Xen Linux kernel options to use with the default Xen boot option
          # xenkopt=console=tty0
          
          ## altoption boot targets option
          ## multiple altoptions lines are allowed
          ## e.g. altoptions=(extra menu suffix) extra boot options
          ##      altoptions=(recovery) single
          # altoptions=(recovery mode) single
          
          ## controls how many kernels should be put into the menu.lst
          ## only counts the first occurence of a kernel, not the
          ## alternative kernel options
          ## e.g. howmany=all
          ##      howmany=7
          # howmany=all
          
          ## should update-grub create memtest86 boot option
          ## e.g. memtest86=true
          ##      memtest86=false
          # memtest86=true
          
          ## should update-grub adjust the value of the default booted system
          ## can be true or false
          # updatedefaultentry=false
          
          ## should update-grub add savedefault to the default options
          ## can be true or false
          # savedefault=false
          
          ## ## End Default Options ##
          
          title		Ubuntu 8.04.1, kernel 2.6.24-21-rt
          root		(hd0,5)
          kernel		/boot/vmlinuz-2.6.24-21-rt root=UUID=8e3f9418-8d3b-42dc-b879-755e9eeb5285 ro quiet splash
          initrd		/boot/initrd.img-2.6.24-21-rt
          quiet
          
          title		Ubuntu 8.04.1, kernel 2.6.24-21-rt (recovery mode)
          root		(hd0,5)
          kernel		/boot/vmlinuz-2.6.24-21-rt root=UUID=8e3f9418-8d3b-42dc-b879-755e9eeb5285 ro single
          initrd		/boot/initrd.img-2.6.24-21-rt
          
          title		Ubuntu 8.04.1, kernel 2.6.24-16-generic
          root		(hd0,5)
          kernel		/boot/vmlinuz-2.6.24-16-generic root=UUID=8e3f9418-8d3b-42dc-b879-755e9eeb5285 ro quiet splash
          initrd		/boot/initrd.img-2.6.24-16-generic
          quiet
          
          title		Ubuntu 8.04.1, kernel 2.6.24-16-generic (recovery mode)
          root		(hd0,5)
          kernel		/boot/vmlinuz-2.6.24-16-generic root=UUID=8e3f9418-8d3b-42dc-b879-755e9eeb5285 ro single
          initrd		/boot/initrd.img-2.6.24-16-generic
          
          title		Ubuntu 8.04.1, memtest86+
          root		(hd0,5)
          kernel		/boot/memtest86+.bin
          quiet
          
          ### END DEBIAN AUTOMAGIC KERNELS LIST
          
          # This is a divider, added to separate the menu items below from the Debian
          # ones.
          title		Other operating systems:
          root
          
          
          # This entry automatically added by the Debian installer for a non-linux OS
          # on /dev/sda1
          title		Microsoft Windows XP Professionnel
          root		(hd0,0)
          savedefault
          makeactive
          chainloader	+1
          
          0
      3. CA y est j'ai résolvé la pbm par l'installation de grub
        avec ubuntu live cd :
        sudo -s
        grub --batch
        root (hd0,6)
        grub> setup(hd0)
        grub>quit


        opppppppppppps

        SVP Stubbs si j'ai une autre probleme comment je peut vous connecter ??? si ca ne vous déronge pas

        merci beaucoup pour vos aide
        vraiment vous etes un génie , je pose cette pbm dans le forum ubuntu , pas de solution et vous me guider toute ay long de récupération

        j'attend votre réponse !!!!

        mmmmmmmeeeeeeeeeeeeeeerrrrrrrrrrrrrrrrrrrrrrrrcccccccccccccccccciiiiiiiiiiiiiiiiiiiiiii
        0
        1. le pbm de windows est résolu aussi, avec une autre cd win xp

          ;-)
          0