Error 17 : GRUB

Résolu
ct1105 Messages postés 62 Statut Membre -  
jeanbi Messages postés 15399 Date d'inscription   Statut Contributeur Dernière intervention   -
Bonjour,

- j'ai deux OS sur mon disque dur : Windows XP et Linux (Ubuntu 8.04).
- après réinstallation de Windows, j'ai perdu le GRUB : j'entre directement à Windows.
- après une recherche sur le net, en suivant les instructions du lien ci dessous, j'ai réussi à récupérer le GRUB au démarrage.

http://doc.ubuntu-fr.org/...

mon problème est le suivant :
- si je sélectionne Windows, c'est sans problème.
- mais si je choisi Linux, je reçoi comme message :

Error 17 : cannot mount selected partition
press any key to continue...

Pouvez-vous m'aider SVP...
Configuration: Windows XP
Firefox 3.0.3

16 réponses

  1. jipicy Messages postés 40842 Date d'inscription   Statut Modérateur Dernière intervention   4 898
     
    Salut,

    Extrait de Grub Manual :
    17 : Cannot mount selected partition
        Cette erreur est retournée si la partition demandée existe, mais le type du système 
        de fichiers n'est pas reconnu par GRUB.
    Il faudrait nous afficher la table des partitions (fdisk -l) pour qu'on puisse voir le type de fichiers associé à ta partition GNU/Linux.

    As-tu un LIveCD ?
    0
  2. jeanbi Messages postés 15399 Date d'inscription   Statut Contributeur Dernière intervention   2 383
     
    bonjour,
    tu t'es juste goure de partition
    lors du boot et de l'ecran de grub appuye sur echap
    tu dois te retrouve devant un écran avec la proposition e pour edit etc...
    la tu choisi l'entree de ubuntu et tu corrige l'entree en modifiant le hdx,x tu test avec b pour boot et quand tu as trouve tu corrige le boot/grub/menu.lst sous ubuntu
    a+
    0
  3. ct1105 Messages postés 62 Statut Membre 22
     
    bonjour,
    merci tout d'abord de me répondre...

    j'ai le CD LIVE ubuntu 8.04, j'ai déjà essayé la commande fdisk -l , le résultat et le suivant :

    root@ubuntu:/home/ubuntu# fdisk -l
    omitting empty partition (5)
    Disque /dev/hda: 82.3 Go, 82348277760 octets
    255 heads, 63 sectors/track, 10011 cylinders
    Units = cylindres of 16065 * 512 = 8225280 bytes
    Identifiant disque: 0x2a602a5f
    Périphérique Amorce Début Fin Blocs Id Système
    /dev/hda1 * 1 1785 14337981 7 HPFS/NTFS
    /dev/hda2 1786 3066 10289632+ 83 Linux
    /dev/hda3 3067 10010 55777680 f W95 Etendu (LBA)
    /dev/hda4 3192 10010 54773586 7 HPFS/NTFS
    /dev/hda5 3067 3191 1003999+ 82 Linux swap / Solaris
    root@ubuntu:/home/ubuntu#

    pour vous répondre " jeanbi ", le GRUB est déjà affiché, et j'ai même appuyé sur "e" ou "c" pour entrer dans le "grub>" et j'ai refait les commandes sous le "grub --bash".
    0
    1. jipicy Messages postés 40842 Date d'inscription   Statut Modérateur Dernière intervention   4 898
       
      Peux-tu afficher le contenu de /boot/grub/menu.lst (depuis le LiveCD) s'il te plaît, merci ?
      0
  4. ct1105 Messages postés 62 Statut Membre 22
     
    Salut "jipicy",
    à chaque fois que vous me demandé une manip, je redémarre avec le CD LIVE;
    est ce que je peux naviguer avec le CD LIVE ??
    0
    1. jipicy Messages postés 40842 Date d'inscription   Statut Modérateur Dernière intervention   4 898
       
      Ben normalement oui, en fait ça dépend de ta connexion (modem, réseau, etc. ?)...
      0
  5. Vous n’avez pas trouvé la réponse que vous recherchez ?

    Posez votre question
  6. ct1105 Messages postés 62 Statut Membre 22
     
    bon, c'est pas grave.
    je m'intéresse plutôt au probleme du GRUB.
    je vous récupère le résultat...
    0
  7. ct1105 Messages postés 62 Statut Membre 22
     
    salut,
    voici le résultat :

    # 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
    ## 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=e5ade871-31b3-425c-8624-354d109a2e80 ro
    ## Setup crashdump menu entries
    ## e.g. crashdump=1
    # crashdump=0
    ## default grub root device
    0
    1. jipicy Messages postés 40842 Date d'inscription   Statut Modérateur Dernière intervention   4 898
       
      Ou il en manque une bonne partie, ou c'est celui de la session Live ;-((

      Il faut celui qui se trouve sur la partition /boot de ton disque dur, autrement dit celui de /dev/hda2.

      0
  8. ct1105 Messages postés 62 Statut Membre 22
     
    la commande /boot/grub/menu.lst, me donne un fichier vide.
    et j'ai fait un accès direct au disque..
    0
    1. jipicy Messages postés 40842 Date d'inscription   Statut Modérateur Dernière intervention   4 898
       
      Ben y'a un hic quelque part alors ;-\

      Depuis le menu de "grub" au boot, en passant par l'édition (E) de l'entrée correspondant à Ubuntu, c'est bien "root (hd0,1)" qui est spécifié ???
      0
  9. ct1105 Messages postés 62 Statut Membre 22
     
    oui c'est ça
    0
  10. ct1105 Messages postés 62 Statut Membre 22
     
    attendez SVP.

    je ne suis pas expert dans Linux, je vien de débuter.
    et j'aimerai bien avoir une explication étape par étape...

    merci pour votre compréhension et pour votre aide...
    0
  11. ct1105 Messages postés 62 Statut Membre 22
     
    mnt, comment faire pour vous donner le contenu de /boot/grub/menu.lst avec le CD LIVE ???
    0
    1. jipicy Messages postés 40842 Date d'inscription   Statut Modérateur Dernière intervention   4 898
       
      Peux-tu te connecter à Internet depuis le LiveCD avec ton modem Sagem ? (explication plus haut)

      Sinon, as-tu une clé USB ? Si oui, l'enficher et y coller une copie du fichier de conf...
      0
  12. jeanbi Messages postés 15399 Date d'inscription   Statut Contributeur Dernière intervention   2 383
     
    re
    mais as tu teste ce que je t'ai ecris !!!
    il faut que l'entrée de ubuntu soit hd0,1
    a+
    0
  13. ct1105 Messages postés 62 Statut Membre 22
     
    oui je l'ai fait avec root (hd0,1) dans grub >
    0
  14. jeanbi Messages postés 15399 Date d'inscription   Statut Contributeur Dernière intervention   2 383
     
    re, et quelle message d'erreur ?
    a+
    0
  15. ct1105 Messages postés 62 Statut Membre 22
     
    attendez, je crois que j'ai réussi à avoir le contenu de /boot/grub/menu.lst
    j'ai crée un rep avec mkdir /panne
    et j'ai monté le volume avec sudo mount - t ext3 /dev/hda2 /panne
    ensuite gedit /panne/boot/grub/menu.lst
    bien sur en étant root
    et j'ai ceci :

    # 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

    ## 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=e5ade871-31b3-425c-8624-354d109a2e80 ro

    ## Setup crashdump menu entries

    ## e.g. crashdump=1

    # crashdump=0

    ## default grub root device

    ## e.g. groot=(hd0,0)

    # groot=(hd0,2)

    ## 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-22-generic

    root (hd0,2)
    kernel /boot/vmlinuz-2.6.24-22-generic root=UUID=e5ade871-31b3-425c-8624-354d109a2e80 ro quiet splash

    initrd /boot/initrd.img-2.6.24-22-generic

    quiet

    title Ubuntu 8.04.1, kernel 2.6.24-22-generic (recovery mode)

    root (hd0,2)

    kernel /boot/vmlinuz-2.6.24-22-generic root=UUID=e5ade871-31b3-425c-8624-354d109a2e80 ro single

    initrd /boot/initrd.img-2.6.24-22-generic

    title Ubuntu 8.04.1, memtest86+

    root (hd0,2)

    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/hda1

    title Microsoft Windows XP Professionnel

    root (hd0,0)

    savedefault

    makeactive

    chainloader +1
    0
  16. ct1105 Messages postés 62 Statut Membre 22
     
    ça y est, j'ai réussi...

    dans le menu grub, je choisi "e" pour editer et j'aurrai root (hd0,2)
    je remplace 2 par 1 et j'appuie sur "b"
    Linux démarre normalement.
    dans /boot/grub/menu.lst , je remplace 2 par 1, je sauvegarde.

    et voila les deux OS marchent tres bien....

    Merci bcp jeanbi pour l'aide apportée....
    0
    1. jeanbi Messages postés 15399 Date d'inscription   Statut Contributeur Dernière intervention   2 383
       
      re,
      de rien
      a+
      0