Windows ne boot plus / debian

Bonsoir , je viens d'installer une debian et au demarrage j'ai donc grub qui se lance et qui me propose de choisir entre divers systemes , bon avec linux ya pas de soucis mais pour windows j'ai ce message sur fond noir et il se lance pas :

booting 'microsoft xp pro'
root(hd0,0)
filesystem type unknown , partition type 0x7
savedefault
makeactive
chainloader +1

-

quelqu'un peut me dire ce qui ne va pas svp ?

merci
Configuration: Linux Debian
Mozilla 1.8.1.6

83 réponses

Résumé de la discussion

Problème de démarrage de Windows XP via GRUB après installation de Debian : le message 'booting "microsoft xp pro" root(hd0,0) filesystem type unknown, partition type 0x7' s'affiche et Windows ne démarre pas. Plusieurs réponses suggèrent d'inspecter et d'utiliser des outils liés à LILO et à liloconfig pour installer le secteur d'amorce, avant de rétablir grub via une mise à jour des entrées. La solution pratique avancée consiste ensuite à exécuter le bon chemin d'intégration grub, notamment /usr/sbin/update-grub, afin de régénérer les entrées Windows et tester le démarrage. En cas de difficultés persistantes, la recommandation est d'utiliser le chemin exact pour update-grub et de vérifier les messages post-installation afin d'assurer la détection correcte de Windows.

Bobot (l’IA à votre service)
  1. Modérateur
    Salut,

    affiche (la deuxième commande il faut la faire en root)
    cat /boot/grub/menu.lst
    fdisk -l
    0
    1. cat /boot/grub/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 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         5
      
      # 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=/dev/sda2 ro
      
      ## default grub root device
      ## e.g. groot=(hd0,0)
      # groot=(hd0,1)
      
      ## 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=
      
      ## 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=(single-user) single
      # altoptions=(single-user 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
      
      ## ## End Default Options ##
      
      title           Debian GNU/Linux, kernel 2.6.18-4-amd64
      root            (hd0,1)
      kernel          /boot/vmlinuz-2.6.18-4-amd64 root=/dev/sda2 ro
      initrd          /boot/initrd.img-2.6.18-4-amd64
      savedefault
      
      title           Debian GNU/Linux, kernel 2.6.18-4-amd64 (single-user mode)
      root            (hd0,1)
      kernel          /boot/vmlinuz-2.6.18-4-amd64 root=/dev/sda2 ro single
      initrd          /boot/initrd.img-2.6.18-4-amd64
      savedefault
      
      ### 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
      


       fdisk -l
      
      Disk /dev/sda: 200.0 GB, 200049647616 bytes
      255 heads, 63 sectors/track, 24321 cylinders
      Units = cylinders of 16065 * 512 = 8225280 bytes
      
         Device Boot      Start         End      Blocks   Id  System
      /dev/sda1   *           1       12158    97659103+   7  HPFS/NTFS
      /dev/sda2           12159       24135    96205252+  83  Linux
      /dev/sda3           24136       24321     1494045    5  Extended
      /dev/sda5           24136       24321     1494013+  82  Linux swap / Solaris
      
      0
      1. Modérateur
        Zut j'ai la même chose sauf que chez moi ça marche :s
        ...
        # 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
        ...

        et :
        (root@aldur) (~) # fdisk -l
        
        Disk /dev/hda: 40.0 GB, 40020664320 bytes
        255 heads, 63 sectors/track, 4865 cylinders
        Units = cylinders of 16065 * 512 = 8225280 bytes
        
           Device Boot      Start         End      Blocks   Id  System
        /dev/hda1   *           1        1275    10241406    7  HPFS/NTFS
        /dev/hda2            1276        4740    27832612+  83  Linux
        /dev/hda3            4741        4865     1004062+  82  Linux swap / Solaris
        ...

        sauf que chez moi ça marche. Mmmh lami20j j'espère que ça t'inspire car là j'avoue que je sèche :s
        Maya tu as fais des manips bizarres genre des histoires de RAID où truc dans le genre ?

        Bonne chance
        0
        1. non je ne fais aucune manip bizarre je suis une parfaite débutante .
          0
          1. Modérateur
            Salut,

            fait (1ère commande en root)
            modprobe ntfs
            cat /proc/filesystems
            grep -i ntfs /boot/config-$(uname -r)
            0
            1. Modérateur
              en fait tu peux essayer de la monter si elle n'es déjà

              voir avec mount

              sinon, en root
              mkdir /mnt/sda1 
              mount /dev/sda1 /mnt/sda1
              --
              lami20j
              0
              1. Modérateur
                Hum oui on peut déjà voir si on arrive à monter la partition mais ce n'est pas ça qui règlera ton problème. Pour reprendre ce que dit lami20j, dans une console superutilisateur (root) :
                mkdir -p /mnt/sda1
                mount -t ntfs /dev/sda1 /mnt/sda1

                Ensuite vérifie que tu arrives à voir le contenu de ta partition :
                ls /dev/sda1

                Si tout s'affiche bonne nouvelle ta partition est encore en vie, sinon ça a dû planter à la seconde commande (normalement rien ne doit s'afficher quand tu fais le mount si tout va bien). Précise-nous dans quelle situation tu te trouves et donne-nous les éventuels messages d'erreur. Pour copier coller le contenu de ta console, sélectionne le texte (copie) et colle le ici (clic du milieu ou clic de la molette).

                a) Si la partition est cassée on est mal barrés
                b) Si la partition est en vie c'est probablement grub qui a des vapeurs, auquel cas fait en root un :
                dpkg-reconfigure grub
                nano /boot/grub/menu.lst

                Vérifie que tout est ok, sauve et quitte (ctrl X)
                Ensuite reboot, et avec un peu de chance ça devrait marcher.

                Bonne chance
                0
                1. Modérateur
                  Je pense qu'il s'agit de Grub Error 17

                  La partition existe mais le système de fichiers qui s'y trouve ne peut être reconnu par GRUB.

                  Je pense que tu as du avoir aussi le message
                  Error 17 : Cannot mount selected partition


                  essaie rootnoverify au lieu de root

                  title           Microsoft Windows XP Professionnel
                  rootnoverify    (hd0,0)
                  savedefault
                  makeactive
                  chainloader     +1
                  
                  0
                  1. ALors lamij , j'ai fait ce que tu m'as dit et voici le résultat :

                    modprobe ntfs
                    lns-bzn-23-82-248-127-247:/home/maya# cat /proc/filesystems
                    nodev   sysfs
                    nodev   rootfs
                    nodev   bdev
                    nodev   proc
                    nodev   cpuset
                    nodev   debugfs
                    nodev   securityfs
                    nodev   sockfs
                    nodev   usbfs
                    nodev   pipefs
                    nodev   futexfs
                    nodev   tmpfs
                    nodev   inotifyfs
                    nodev   eventpollfs
                    nodev   devpts
                            cramfs
                    nodev   ramfs
                    nodev   mqueue
                            ext3
                            ntfs
                    lns-bzn-23-82-248-127-247:/home/maya# grep -i ntfs /boot/config-$(uname -r)
                    CONFIG_NTFS_FS=m
                    # CONFIG_NTFS_DEBUG is not set
                    CONFIG_NTFS_RW=y
                    
                    0
                    1. alors j'ai fait les commandes du message 7 et voici le résultat :

                      lns-bzn-23-82-248-127-247:/home/maya# mkdir -p /mnt/sda1
                      lns-bzn-23-82-248-127-247:/home/maya# mount -t ntfs /dev/sda1 /mnt/sda1
                      lns-bzn-23-82-248-127-247:/home/maya# ls /dev/sda1
                      /dev/sda1
                      


                      à la seconde commande çà m'avait ouvert une petite fenetre qui me disait je crois "impossible de voir ce que contient cette partition" , je ne me souviens plus très bien
                      0
                      1. Modérateur
                        affiche aussi le résultat de mount
                        0
                        1. # mount
                          /dev/sda2 on / type ext3 (rw,errors=remount-ro)
                          tmpfs on /lib/init/rw type tmpfs (rw,nosuid,mode=0755)
                          proc on /proc type proc (rw,noexec,nosuid,nodev)
                          sysfs on /sys type sysfs (rw,noexec,nosuid,nodev)
                          procbususb on /proc/bus/usb type usbfs (rw)
                          udev on /dev type tmpfs (rw,mode=0755)
                          tmpfs on /dev/shm type tmpfs (rw,nosuid,nodev)
                          devpts on /dev/pts type devpts (rw,noexec,nosuid,gid=5,mode=620)
                          /dev/sda1 on /mnt/sda1 type ntfs (rw)
                          
                          0
                          1. Modérateur
                            ok
                            alors fait ce que je t'ai dit dans mon message N° 8
                            et essaie d'ouvrir Win
                            0
                            1. lns-bzn-23-82-248-127-247:/home/maya# rootnoverify
                              bash: rootnoverify: command not found
                              
                              0
                              1. Modérateur
                                non, ce n'est pas une commande
                                il faut editer le fichier /boot/grub/menu.list
                                et dans la partie Win il faut mettre au lieu de root
                                title           Microsoft Windows XP Professionnel
                                rootnoverify    (hd0,0)
                                savedefault
                                makeactive
                                chainloader     +1
                                

                                0
                                1. alors j'ai bien fait ce que tu m'as dit lamij , mais windows ne démarre tjs pas et j'ai donc sur fond noir :

                                  booting 'microsoft xp pro'
                                  rootnoverify (hd0,0)
                                  savedefault
                                  makeactive
                                  chainloader +1

                                  -
                                  0
                                  1. Modérateur
                                    il n'y a pas d'autre message?!
                                    0
                                    1. Modérateur
                                      affiche
                                      cat /boot/grub/device.map
                                      --
                                      lami20j
                                      0
                                      1. non je suis désolée je n'ai pas eu de message particulier , j'ai bien attendu 3-4min mais rien ne se passe :'(

                                        # cat /boot/grub/device.map
                                        (hd0)   /dev/sda
                                        
                                        0
                                        • 1
                                        • 2
                                        • 3
                                        • 4
                                        • 5