Grub error 17 cannot mount selected partition

Résolu
Bonjour,sur mon pc j'avait vista preinstallé et a cause du dump physical memory il ne demarre plus et g linux ubuntu 8.04 en dualboot
avant hier j''ai tenté d'installer xp profesiional pour savoir si mon pc etait tatoué car j'ai un pc fujitsu siemens
je me suis arrété avant le reformatage de de la partition C: (vista) et au redémarrage grub avait disparu ,je l'ai réinstallé et en voulant booter sur linux ca fait :grub error 17: cannot mount selected partition!
j'ai besion de recuperer des fichier important sur linux et a partir de mon live CD ces fichier son irrécupérable a cause du fait que je n'ai pas les permission necessaire.
merci de votre aide
Configuration: Linux
Firefox 3.0

16 réponses

  1. salut :)

    il va falloir je pense,modifier ton menu.lst depuis le live cd...

    depuis le cd live essayes toujours de taper ceci dans le terminal et copies/colles moi le résultat:

    sudo cat /media/disk/boot/grub/menu.lst


    /media/disk/ devrait correspondre a ta partition ubuntu

    si il y a un message d'erreur copies le aussi
    1. voilà
      ubuntu@ubuntu:~$ sudo -s
      root@ubuntu:~# sudo cat /media/disk/boot/grub/menu.lst
      cat: /media/disk/boot/grub/menu.lst: Aucun fichier ou dossier de ce type
      1. ok
        tapes ceci:

        sudo grub --batch


        ensuite:(a l'invité grub>)

        find /boot/grub/stage1


        et copies colle moi ce que répond la deuxième commande sans fermer le terminal
        1. En revanche en allant directement au menu.lst de grub ca me donne ca :

          # 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 change this entry to 'saved' 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=67831565-985d-4954-bfdd-e53245684819 ro

          ## Setup crashdump menu entries
          ## e.g. crashdump=1
          # crashdump=0

          ## default grub root device
          ## e.g. groot=(hd0,0)
          # groot=(hd0,6)

          ## 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 locale=fr_FR

          ## 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, kernel 2.6.24-17-generic
          root (hd0,6)
          kernel /boot/vmlinuz-2.6.24-17-generic root=UUID=67831565-985d-4954-bfdd-e53245684819 ro quiet splash locale=fr_FR
          initrd /boot/initrd.img-2.6.24-17-generic
          quiet

          title Ubuntu 8.04, kernel 2.6.24-17-generic (recovery mode)
          root (hd0,6)
          kernel /boot/vmlinuz-2.6.24-17-generic root=UUID=67831565-985d-4954-bfdd-e53245684819 ro single
          initrd /boot/initrd.img-2.6.24-17-generic

          title Ubuntu 8.04, kernel 2.6.24-16-generic
          root (hd0,6)
          kernel /boot/vmlinuz-2.6.24-16-generic root=UUID=67831565-985d-4954-bfdd-e53245684819 ro quiet splash locale=fr_FR
          initrd /boot/initrd.img-2.6.24-16-generic
          quiet

          title Ubuntu 8.04, kernel 2.6.24-16-generic (recovery mode)
          root (hd0,6)
          kernel /boot/vmlinuz-2.6.24-16-generic root=UUID=67831565-985d-4954-bfdd-e53245684819 ro single
          initrd /boot/initrd.img-2.6.24-16-generic

          title Ubuntu 8.04, kernel 2.6.22-14-generic
          root (hd0,6)
          kernel /boot/vmlinuz-2.6.22-14-generic root=UUID=67831565-985d-4954-bfdd-e53245684819 ro quiet splash locale=fr_FR
          initrd /boot/initrd.img-2.6.22-14-generic
          quiet

          title Ubuntu 8.04, kernel 2.6.22-14-generic (recovery mode)
          root (hd0,6)
          kernel /boot/vmlinuz-2.6.22-14-generic root=UUID=67831565-985d-4954-bfdd-e53245684819 ro single
          initrd /boot/initrd.img-2.6.22-14-generic

          title Ubuntu 8.04, kernel 2.6.20-16-generic
          root (hd0,6)
          kernel /boot/vmlinuz-2.6.20-16-generic root=UUID=67831565-985d-4954-bfdd-e53245684819 ro quiet splash locale=fr_FR
          initrd /boot/initrd.img-2.6.20-16-generic
          quiet

          title Ubuntu 8.04, kernel 2.6.20-16-generic (recovery mode)
          root (hd0,6)
          kernel /boot/vmlinuz-2.6.20-16-generic root=UUID=67831565-985d-4954-bfdd-e53245684819 ro single
          initrd /boot/initrd.img-2.6.20-16-generic

          title Ubuntu 8.04, kernel 2.6.20-15-generic
          root (hd0,6)
          kernel /boot/vmlinuz-2.6.20-15-generic root=UUID=67831565-985d-4954-bfdd-e53245684819 ro quiet splash locale=fr_FR
          initrd /boot/initrd.img-2.6.20-15-generic
          quiet

          title Ubuntu 8.04, kernel 2.6.20-15-generic (recovery mode)
          root (hd0,6)
          kernel /boot/vmlinuz-2.6.20-15-generic root=UUID=67831565-985d-4954-bfdd-e53245684819 ro single
          initrd /boot/initrd.img-2.6.20-15-generic

          title Ubuntu 8.04, memtest86+
          root (hd0,6)
          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/sda2
          title Windows Vista/Longhorn (loader)
          root (hd0,1)
          savedefault
          makeactive
          chainloader +1
          1. et bien alors tu complète les commandes :)

            toujours a l'invité grub>

            root (hd0,6)


            ensuite

            setup (hd0)


            ensuite

            quit


            ensuite

            reboot


            au démarrage suivant ton grub devrait etre réparré
            1. c bizarre parce ke je l'ai deja fait plusieur fois sans souci (sans ke ca me dise Error 21: Selected disk does not exist) mais ca n'as jamais reglé le problème de grub et là ca me fait

              grub> root (hd0,6)
              root (hd0,6)

              Error 21: Selected disk does not exist
              1. peus tu me donner le résultat de :

                sudo fdisk -l


                (le"l"étant un "L"minuscule)

                merci
            2. voilà

              Disque /dev/sda: 500.1 Go, 500107862016 octets
              255 heads, 63 sectors/track, 60801 cylinders
              Units = cylindres of 16065 * 512 = 8225280 bytes
              Identifiant disque: 0x77b1a314

              Périphérique Amorce Début Fin Blocs Id Système
              /dev/sda1 1 1530 12288000 27 Inconnu
              /dev/sda2 * 1530 41130 318082048 7 HPFS/NTFS
              /dev/sda3 41130 50973 79064064 7 HPFS/NTFS
              /dev/sda4 50973 60802 78949376+ f W95 Etendu (LBA)
              /dev/sda5 50973 56085 41061376 7 HPFS/NTFS
              /dev/sda6 56087 60291 33776631 83 Linux
              /dev/sda7 60292 60802 4094976 82 Linux swap / Solaris
              1. c'est bien ce que je pensait :)
                tes partitions ont changé de nom....

                donc:

                sudo grub --batch


                ensuite

                root (hd0,5)


                ensuite

                setup (hd0)


                ensuite

                quit


                reboot


                ton grub pointait en fait vers ta swap,a cause de la modification des nom de partitions ;)
                1. merci apparament ca a l'air de fonctionnée je reboot tout de suite et je te dis initials 76
                  1. au démarrage il faudra peut etre que tu édites la ligne que tu bootes

                    je t'explique,la partition a changé,mais le menu.lst lui non

                    donc tu met en surbrillance la ligne ubuntu et tu appuyes sur "e" pour l'éditer

                    ensuite tu modifies le chemin dans la ligne,tu remplaces (hd0,6) par (hd0,5) et tu fais enter

                    ensuite tu appuyes sur "b" pour booter la ligne éditée

                    une fois sur ubuntu tu devras faire de meme pour toutes tes lignes du menu.lst relatives a ubuntu

                    pour cela tu passes par gedit

                    sudo gedit /boot/grub/menu.lst


                    bonne chance ;)

                    edit: n'oublies pas d'enregistrer tes modifications sur gedit (icône enregistrer)
                2. ok d'accord c pour ca ke ca fonctionnait pas.... j'y retourne merci
                  1. merci bocoup ca refonctionne
                    dire ke le problème venait juste d'un 6 a la place d'un 5...
                    apparament le plus dire reste a faire ............................................
                    euh......je suis vraiment obligé de reediter le menu.lst ???
                    et par hasard est-ce ke tu saurais pas si les pc fujitsu sont tatoués ou pas(si ca m'empecherait de mettre xp a la place de vista ou de formater la partition vista )???????
                    1. fujitsu siemens ne tatoue pas ses pc,j'en suis la preuve vivante,(4 distros sur chacun des deux)

                      oui tu dois réediter ton menu,lst car les autres noyaux que tu as conservé sont marqués d'une fausse adresse (hd0,6)

                      en tout cas,édite au moi la ligne du noyaux que tu utilise actuellement,et si ce noyaux la te convient,supprimes les autres via synaptic en cherchant les "linux image" inférieurs au tien ;))

                      pour windows xp attention,il faut faire des recherches de drivers(graphique,ethernet,etc...),et de pilotes pour serial ATA,je peu t'aider en mp si tu n'y arrives pas ;)

                  2. PS:ca signifie koi distros?et MP? lool
                    1. distros: distributions de linux

                      ubuntu en est une, d'autres examples:

                      -debian
                      -fedora
                      -mandriva
                      -archlinux
                      -gentoo

                      une fois que tu commence tu ne peux plus t'arrêter :)

                      les MP sont les messages privés,tu pourras y accéder en cliquant sur mon profil ;)

                      n'oublies pas de placer ce topic en "résolu"

                      @+ quand tu veux