#1 Le 13/02/2008, à 22:41
- WiebeN
[Dual Boot-Resolu] Windows ne se lance plus : probleme grub ?
Bonjour à tous,
J'ai récemment dû réinstallé sur mon ordi : Windows et Ubuntu.
Pour ce faire j'ai commencé par installer windows pour ne pas avoir de problème avec le MBR. L'installation s'est déroulée sans encombre et mon windows marchait bien.
J'ai ensuite installé Ubuntu, là aussi pas de problème durant l'installation.
Cependant en voulant redemarrer sur windows ensuite, je me suis rendu compte que ça ne marchait plus... Lorsque je choisis Windows XP dans la liste de grub au démarrage, il y a un chargement puis un ecran noir : Plus aucun signe, impossible de faire quoique ce soit.
Je pense pas que ce soit windows qui ait un problème puisque je ne l'ai pas touché j'ai simplement installer ubuntu depuis le live cd... Les fichiers sont toujours présents dessus donc ce n'ai pas dû a une erreur de partionnement...
Voici la réponse a la commande fdisk -l
Disque /dev/sda: 200.0 Go, 200049647616 octets
255 heads, 63 sectors/track, 24321 cylinders
Units = cylindres of 16065 * 512 = 8225280 bytes
Disk identifier: 0x2a0b7eda
Périphérique Amorce Début Fin Blocs Id Système
/dev/sda1 * 1 13180 105868318+ 7 HPFS/NTFS
/dev/sda2 13181 24321 89490082+ f W95 Etendu (LBA)
/dev/sda5 * 13181 14574 11197273+ 83 Linux
/dev/sda6 14575 24247 77698341 83 Linux
/dev/sda7 24248 24321 594373+ 82 Linux swap / Solaris
Et voici mon fichier /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 use 'savedefault' or your
# array will desync and will not let you boot your system.
default 4## 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=95370310-be03-494b-8585-a219c90a1c61 ro## Setup crashdump menu entries
## e.g. crashdump=1
# crashdump=0## default grub root device
## e.g. groot=(hd0,0)
# groot=(hd0,4)## 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 7.10, kernel 2.6.22-14-generic
root (hd0,4)
kernel /boot/vmlinuz-2.6.22-14-generic root=UUID=95370310-be03-494b-8585-a219c90a1c61 ro quiet splash
initrd /boot/initrd.img-2.6.22-14-generic
quiettitle Ubuntu 7.10, kernel 2.6.22-14-generic (recovery mode)
root (hd0,4)
kernel /boot/vmlinuz-2.6.22-14-generic root=UUID=95370310-be03-494b-8585-a219c90a1c61 ro single
initrd /boot/initrd.img-2.6.22-14-generictitle Ubuntu 7.10, memtest86+
root (hd0,4)
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
Voyez vous une erreur évidente ? avez vous une idée sur l'origine du problème ?
Merci à vous.
Dernière modification par WiebeN (Le 15/02/2008, à 03:01)
Hors ligne
#2 Le 13/02/2008, à 23:22
- Cybermanu
Re : [Dual Boot-Resolu] Windows ne se lance plus : probleme grub ?
J'ai de temps en temps mes disques durs(une partie sata et une partie IDE) qui font ce qu'ils veulent et ils changes de nom (hd0,1 devient hd0,0...etc) bref ca met le brun
Pour pouvoir, quand meme, lancer xp au boot :
dans le menu grub de démarrage tu mets windowsxp en surbrillance
tu tapes "e"
tu mets en surbrillance la ligne "Root"
tu tapes "e" (pour l'editer)
grub edit> Root(hd0,0) ==> tu changes en Root (hd1,0) par exemple
tu valides
tu tapes "b" et voilà
C'est juste un moyen de dépannage pas la solution
manu
La connaissance est la seule chose qui s'accroit lorsqu'on la partage.
http://www.teletuto.fr
Hors ligne
#3 Le 13/02/2008, à 23:35
- WiebeN
Re : [Dual Boot-Resolu] Windows ne se lance plus : probleme grub ?
Merci pour ta reponse, mais il semble que le problème soit différent du tiens : cela me reponds disque introuvable (jme rapelle plus des termes exacts). Ce qui est étrange c'est qu'il n'y a pas de message d'erreur du genre "error 15 file not found", l'ordi fait du bruit comme si il chargeait puis au bout de 3 secondes cela reste noir sans rien faire... Ca me fait penser a un problème windows (fichier endommagé ou quelque chose du genre) seulement je n'ai pas touché aux fichiers Windows !
Je ne sais pas si celà est important mais on sait jamais : c'est Windows LSD 3.7.
Hors ligne
#4 Le 13/02/2008, à 23:49
- Cybermanu
Re : [Dual Boot-Resolu] Windows ne se lance plus : probleme grub ?
Quelque chose me chagrine aussi : tu as deux amorce hors tu n'as qu'un disque. Tu ne devrais avoir qu'une seule etoile. C'est peut etre une piste
Dernière modification par Cybermanu (Le 13/02/2008, à 23:49)
La connaissance est la seule chose qui s'accroit lorsqu'on la partage.
http://www.teletuto.fr
Hors ligne
#5 Le 13/02/2008, à 23:52
- Cybermanu
Re : [Dual Boot-Resolu] Windows ne se lance plus : probleme grub ?
Voici mon fichier de config :
# 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=29e69f1b-5daa-409d-b70a-c40d04b31d78 ro## Setup crashdump menu entries
## e.g. crashdump=1
# crashdump=0## default grub root device
## e.g. groot=(hd0,0)
# groot=(hd2,0)## 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 7.10, kernel 2.6.22-14-generic
root (hd2,0)
kernel /boot/vmlinuz-2.6.22-14-generic root=UUID=29e69f1b-5daa-409d-b70a-c40d04b31d78 ro quiet splash locale=fr_FR
initrd /boot/initrd.img-2.6.22-14-generic
quiettitle Ubuntu 7.10, kernel 2.6.22-14-generic (recovery mode)
root (hd2,0)
kernel /boot/vmlinuz-2.6.22-14-generic root=UUID=29e69f1b-5daa-409d-b70a-c40d04b31d78 ro single
initrd /boot/initrd.img-2.6.22-14-generictitle Ubuntu 7.10, memtest86+
root (hd2,0)
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
#chainloader +1# This entry automatically added by the Debian installer for a non-linux OS
# on /dev/sdb1
title Microsoft Windows XP Professionnel
root (hd1,0)
savedefault
map (hd0) (hd1)
map (hd1) (hd0)
chainloader +1
Disque /dev/sda: 40.0 Go, 40020664320 octets
255 heads, 63 sectors/track, 4865 cylinders
Units = cylindres of 16065 * 512 = 8225280 bytes
Disk identifier: 0x00000080Périphérique Amorce Début Fin Blocs Id Système
/dev/sda1 * 1 4660 37431418+ 83 Linux
/dev/sda2 4661 4865 1646662+ 5 Extended
/dev/sda5 4661 4865 1646631 82 Linux swap / SolarisDisque /dev/sdb: 500.1 Go, 500107862016 octets
63 heads, 30 sectors/track, 516811 cylinders
Units = cylindres of 1890 * 512 = 967680 bytes
Disk identifier: 0x8570fe5dPériphérique Amorce Début Fin Blocs Id Système
/dev/sdb1 * 2 516811 488384504 7 HPFS/NTFSDisque /dev/sdc: 163.9 Go, 163928604672 octets
255 heads, 63 sectors/track, 19929 cylinders
Units = cylindres of 16065 * 512 = 8225280 bytes
Disk identifier: 0x4e524e51Périphérique Amorce Début Fin Blocs Id Système
/dev/sdc1 * 1 2550 20482843+ 7 HPFS/NTFS
/dev/sdc2 2551 13464 87666705 f W95 Etendu (LBA)
/dev/sdc3 13465 19929 51930112+ 7 HPFS/NTFS
/dev/sdc5 2551 13464 87666673+ 7 HPFS/NTFS
Dernière modification par Cybermanu (Le 13/02/2008, à 23:55)
La connaissance est la seule chose qui s'accroit lorsqu'on la partage.
http://www.teletuto.fr
Hors ligne
#6 Le 14/02/2008, à 14:19
- WiebeN
Re : [Dual Boot-Resolu] Windows ne se lance plus : probleme grub ?
Mon boot.ini :
[boot loader]
timeout=0
default=multi(0)disk(0)rdisk(0)partition(1)\WINDOWS
[operating systems]
multi(0)disk(0)rdisk(0)partition(1)\WINDOWS="Microsoft Windows XP Professionnel" /noexecute=optin /fastdetect /kernel=oemkrnl.exe
Dois-je entrer certaines de ces infos dans menu.lst ?
Hors ligne
#7 Le 14/02/2008, à 17:35
- WiebeN
Re : [Dual Boot-Resolu] Windows ne se lance plus : probleme grub ?
Afin de tester si c'était pas windows le fautif, j'ai réinstallé celui-ci (aucun problème) puis restauré grub avec mon live cd ubuntu en suivant ce tuto : http://doc.ubuntu-fr.org/tutoriel/comment_recuperer_ubuntu_apres_installation_windows
===> Le problème est toujours présent apres la restauration de grub windows ne se lance plus.
Personne n'a une idée ??
Hors ligne
#8 Le 14/02/2008, à 17:45
- pipou24
Re : [Dual Boot-Resolu] Windows ne se lance plus : probleme grub ?
tu n'a qu'un disque, donc il ne faut pas jouer avec hd0,0. Par contre le flag "boot" sur la partition linux gene peut etre XP. il faut que tu l'enleve avec le liveCD / partitionneur de disques.
Si ca ne fonctionne toujours pas, suis la doc pour installer ubuntu sur un PC tatoué. il faut alors que tu réinstalle ubuntu de manière a avoir / sur un partition principale active.
[edit : non, oublie ce qui est dessus, si ca ne fonctionne toujours pas, restaure le mbr de windows puis suis la doc : http://doc.ubuntu-fr.org/tutoriel/comment_amorcer_ubuntu_avec_ntldr] c'est beaucoup plus simple a mettre en oeuvre et tu ne sera pas obligé de refaire tout ton partitionnement.
Dernière modification par pipou24 (Le 14/02/2008, à 17:50)
Non geek et fier de l'être. ㋡
Hors ligne
#9 Le 14/02/2008, à 17:48
- sunnycloud
Re : [Dual Boot-Resolu] Windows ne se lance plus : probleme grub ?
Salut,
As-tu encore deux étoiles d'amorce lorsque tu fais
sudo fdisk -l
Si oui, vire celle de linux (sda5) avec gparted par exemple (clic droit sur ta partition sda5, puis "gérer les drapeaux")
Hors ligne
#10 Le 14/02/2008, à 18:07
- WiebeN
Re : [Dual Boot-Resolu] Windows ne se lance plus : probleme grub ?
C'est fait, cela ne semble pas avoir influer.
resultat du fdisk -l :
Disque /dev/sda: 200.0 Go, 200049647616 octets
255 heads, 63 sectors/track, 24321 cylinders
Units = cylindres of 16065 * 512 = 8225280 bytes
Disk identifier: 0x2a0b7edaPériphérique Amorce Début Fin Blocs Id Système
/dev/sda1 * 1 13180 105868318+ 7 HPFS/NTFS
/dev/sda2 13181 24321 89490082+ f W95 Etendu (LBA)
/dev/sda5 13181 14574 11197273+ 83 Linux
/dev/sda6 14575 24247 77698341 83 Linux
/dev/sda7 24248 24321 594373+ 82 Linux swap / Solaris
Hors ligne
#11 Le 14/02/2008, à 18:34
- Compte anonymisé
Re : [Dual Boot-Resolu] Windows ne se lance plus : probleme grub ?
Salut
Ton pc ne serait-il pas tatoué (tag du constructeur pour protection de licence Xp)
Si c'est le cas il faut inverser les rà´les :
Tu laisses booter sur Xp et tu récupères le boot loader de grub (installé au préalable sur la partition / pour préserver le MBR) et tu le copies dans un fichier sous c:\ et tu ajoutes une ligne dans boot.ini :
la méthode :
1) sous ubuntu :
sudo grub --> grub>
là tu tapes :
find /boot/grub/menu.lst devrait donner (hd0,4) --> /dev/sda5
tu tapes :
root (hd0,4)
puis
setup (hd0,4) --> installe grub sur /dev/sda5
tu termines par :
quit
Ensuite tu copies le booloader de grub dans un fichier :
sudo dd if=/dev/sda5 of=/grub.bin bs=512 count=1
Celà crée un fichier grub.bin sur /
Tu copies ce fichier sur une clé usb ou une disquette ou tu te l'envoies sur une boite mail etc..
Tu réinstalles ton Xp ou + simplement tu revalides son bootloader à l'aide d'un cd Xp : console de récupération puis fixmbr
à ce niveau tu auras Xp mais plus d'ubuntu. En fait toute ta config ubuntu est présente et il suffit de faire les manip suivantes pour la retrouver :
tu copies le fichier grub.bin sous c:\
tu modifies ainsi ton boot.ini : (attention il faut avant déprotéger ce fichier et permettre l'écriture)
[boot loader]
timeout=30
default=multi(0)disk(0)rdisk(0)partition(1)\WINDOWS
[operating systems]
multi(0)disk(0)rdisk(0)partition(1)\WINDOWS="Microsoft Windows XP Professionnel" /noexecute=optin /fastdetect /kernel=oemkrnl.exe
c:\grub.bin=" Ubuntu "
Et au boot tu auras maintenant le choix entre :
Xp
Ubuntu
Dans ton menu.lst tu supprimes la partie Xp qui ne sert plus à rien et voilà .
@+
PS dans ton boot.ini, il y a qq chose qui est bizarre tu peux avant toute autre manip essayer de le supprimer (je le mets en gras) :
multi(0)disk(0)rdisk(0)partition(1)\WINDOWS="Microsoft Windows XP Professionnel" /noexecute=optin /fastdetect /kernel=oemkrnl.exe
Dernière modification par Compte anonymisé (Le 14/02/2008, à 18:44)
#12 Le 15/02/2008, à 00:12
- WiebeN
Re : [Dual Boot-Resolu] Windows ne se lance plus : probleme grub ?
Je sais pas si c'était ça le problème mais en tout cas ça fonctionne ! Thx
Hors ligne
#13 Le 15/02/2008, à 00:32
- Compte anonymisé
Re : [Dual Boot-Resolu] Windows ne se lance plus : probleme grub ?
Qu'as-tu fait exactement ?
#14 Le 15/02/2008, à 03:00
- WiebeN
Re : [Dual Boot-Resolu] Windows ne se lance plus : probleme grub ?
Simplement suivi ta manip ! Encore merci.
Par contre supprimer /kernel=oemkrnl.exe a entraà®né une erreur (ntoskrnl.exe manquant si jme souviens bien), ce n'était donc pas ça le problème. Il me semble que cette ligne dans boot.ini est spécifique a LSD 3.7, ce qui expliquerait qu'elle ne te soit pas familière.
Merci à tous ++
Hors ligne