#1 Le 21/08/2009, à 12:04
- Tom5-Tom5
Problème de dual-boot entre Windows xp et Ubuntu
Bonjour,
J'espère ne pas mettre trompé de section pour mon problème.
J'ai installé Ubuntu 9.04 il y a quelque temps sans aucun problème. Et aujourd'hui après avoir installé Windows XP sur un disque dur différent, il m'est impossible de lancer Windows ou Ubuntu.
Par exemple, pour lancer Ubuntu, il faut que j'enleve le disque dur qui contient Windows XP et il pareil pour pouvoir lancer Windows.
Je pense qu'il s'agit d'un problème de GRUB mais quand je branche les deux disques durs et lance le live-CD d'Ubuntu pour remettre le GRUB, il ne le trouve pas.
Après de nombreuses recherches, je me retrouve dans une impasse, ne sachant quoi faire.
En espérant que vous puissiez m'aider.
Hors ligne
#2 Le 21/08/2009, à 12:40
- GEORGES44
Re : Problème de dual-boot entre Windows xp et Ubuntu
Bonjour,
bien que je ne suis pas un grand spécialiste, il semblerait que suite à ta réinstallation de Windows le MBR soit revenu à la condition pré-Ubuntu.
As-tu regardé la Doc
http://doc.ubuntu-fr.org/tutoriel/comment_restaurer_grub?s[]=sgd (surtout le § sur Super grub Disk tout en bas de la page)
Autre lien vers SGD (en anglais)
http://www.supergrubdisk.org/
C'est un outil permettant de restaurer le GRUB: une image ISO à télécharger et à graver pour obtenir un Live CD à partir duquel tu pourras lancer la restauration du GRUB
En espérant que cela répond à ta question
Hors ligne
#3 Le 21/08/2009, à 12:44
- Zakhar
Re : Problème de dual-boot entre Windows xp et Ubuntu
On va te réparer ça...
Mais il faut que tu nous fasse 2 commandes.
Les deux disques dans ton PC, tu démarres avec le liveCD et tu nous fait un
sudo fdisk -l
(Dans une console que l'on trouve à Application > Accessoires > Terminal)
Ensuite il faut trouver le menu.lst de ton Ubuntu installé.
Si tu es à l'aise avec les répertoires tu nous le listes, sinon on te guidera à partir de la première commande ci-dessus.
"A computer is like air conditioning: it becomes useless when you open windows." (Linus Torvald)
Hors ligne
#4 Le 21/08/2009, à 13:38
- Tom5-Tom5
Re : Problème de dual-boot entre Windows xp et Ubuntu
A GEORGES44 : J'ai suivi le tutorial mais cela n'a rien donné.
A Zakhar :
J'ai effectué le sudo fdisk -l avec le live-CD mais ça n'a rien donné. Mais j'ai réussi à avoir le menu.lst et voila ce qui en ressort :
# 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=22b05208-26e1-4bb6-852f-1bdd6af6dfbb ro
## default grub root device
## e.g. groot=(hd0,0)
# groot=22b05208-26e1-4bb6-852f-1bdd6af6dfbb
## 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
## specify if running in Xen domU or have grub detect automatically
## update-grub will ignore non-xen kernels when running in domU and vice versa
## e.g. indomU=detect
## indomU=true
## indomU=false
# indomU=detect
## 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 9.04, kernel 2.6.28-15-generic
uuid 22b05208-26e1-4bb6-852f-1bdd6af6dfbb
kernel /boot/vmlinuz-2.6.28-15-generic root=UUID=22b05208-26e1-4bb6-852f-1bdd6af6dfbb ro quiet splash
initrd /boot/initrd.img-2.6.28-15-generic
quiet
title Ubuntu 9.04, kernel 2.6.28-15-generic (recovery mode)
uuid 22b05208-26e1-4bb6-852f-1bdd6af6dfbb
kernel /boot/vmlinuz-2.6.28-15-generic root=UUID=22b05208-26e1-4bb6-852f-1bdd6af6dfbb ro single
initrd /boot/initrd.img-2.6.28-15-generic
title Ubuntu 9.04, kernel 2.6.28-14-generic
uuid 22b05208-26e1-4bb6-852f-1bdd6af6dfbb
kernel /boot/vmlinuz-2.6.28-14-generic root=UUID=22b05208-26e1-4bb6-852f-1bdd6af6dfbb ro quiet splash
initrd /boot/initrd.img-2.6.28-14-generic
quiet
title Ubuntu 9.04, kernel 2.6.28-14-generic (recovery mode)
uuid 22b05208-26e1-4bb6-852f-1bdd6af6dfbb
kernel /boot/vmlinuz-2.6.28-14-generic root=UUID=22b05208-26e1-4bb6-852f-1bdd6af6dfbb ro single
initrd /boot/initrd.img-2.6.28-14-generic
title Ubuntu 9.04, kernel 2.6.28-11-generic
uuid 22b05208-26e1-4bb6-852f-1bdd6af6dfbb
kernel /boot/vmlinuz-2.6.28-11-generic root=UUID=22b05208-26e1-4bb6-852f-1bdd6af6dfbb ro quiet splash
initrd /boot/initrd.img-2.6.28-11-generic
quiet
title Ubuntu 9.04, kernel 2.6.28-11-generic (recovery mode)
uuid 22b05208-26e1-4bb6-852f-1bdd6af6dfbb
kernel /boot/vmlinuz-2.6.28-11-generic root=UUID=22b05208-26e1-4bb6-852f-1bdd6af6dfbb ro single
initrd /boot/initrd.img-2.6.28-11-generic
title Ubuntu 9.04, memtest86+
uuid 22b05208-26e1-4bb6-852f-1bdd6af6dfbb
kernel /boot/memtest86+.bin
quiet
### END DEBIAN AUTOMAGIC KERNELS LIST
J'y comprends pas grand chose...
Hors ligne
#5 Le 21/08/2009, à 13:47
- GEORGES44
Re : Problème de dual-boot entre Windows xp et Ubuntu
Et avec ce tutoriel?
Essaye "Classical Solution" ou "Advanced Solution"
http://www.supergrubdisk.org/w/index.php5?title=Howto_Fix_Grub&setlang=fr
Hors ligne
#6 Le 21/08/2009, à 14:08
- Tom5-Tom5
Re : Problème de dual-boot entre Windows xp et Ubuntu
J'ai essayé ta solution Georges mais rien à faire, même Supergrubdisk ne permet de résoudre le problème.
Hors ligne