Pages : 1
#1 Le 09/10/2009, à 18:49
- ghuillaume
[Résolu] Dual Boot : impossible de booter sur WIndows
Bonjour,
Hier, j'étais en dual boot XP/Ubuntu, sur le même DD mais sur 2 partitions différentes
Afin d'upgrader sur Windows 7, je voulais formater la partition contenant Ubuntu pour mettre Seven, puis si je voulais virer XP, le remplacer par Ubuntu à nouveau (j'avais une version instable de Ubuntu, alors je comptais la formater de toutes façons).
J'ai donc formaté la partition d'Ubuntu, mais je pensais pas qu'en formatant avec le CD d'XP, ça allait aussi l'installer. J'ai interrompu l'installation, et depuis, je ne peux plus booter sur XP.
A ce moment, j'ai donc 2 partitions avec XP. Une partition avec mon vrai OS, et l'autre c'était la partition que je voulais juste formater.
Au boot, grub ne me proposait qu'un seul XP. Quand je le sélectionnais, ça me proposait l'installation d'XP, ou plutôt la configuration (l'écran bleu où XP demande des renseignements pendant l'install).
Grâce à Ubuntu que j'ai réinstallé sur une 3ème partition, j'ai été supprimer tous les fichiers présents dans la partition qui contenait XP non-installé. Depuis, voilà ce que j'ai comme message dès que j'essaie de lancer XP :
"WIndows n'a pas pu démarrer car le fichier suivant est manquant ou endommagé :
<Racine WIndows>\system32\had.dll
Veuillez réinstaller une copie du fichier ci-dessus".
En fait j'ai l'impression que Grub "cache" la partition qui contient le "vrai XP"...
J'ai réinstallé Ubuntu sur une autre partition et supprimer toutes les autres (sauf mon XP) mais rien à faire.
Au démarrage, j'ai bien le choix entre Ubuntu et XP, mais si je choisis XP ça plante.
Pourtant la partition qui contient XP n'a pas l'air d'avoir été modifiée...
Donc en fait je pense que Grub doit être mal configuré mais quand j'essaie de modifier quelque chose, c'est vraiment du chinois pour moi ^^
Une idée ?
Dernière modification par herberts (Le 07/11/2009, à 22:50)
Hors ligne
#2 Le 10/10/2009, à 00:25
- herberts
Re : [Résolu] Dual Boot : impossible de booter sur WIndows
Pourrais tu donner le résultat de
sudo fdisk -l
de
cat /boot/grub/menu.lst
de
cat /etc/default/grub
et pour finir de
cat boot/grub/grub.cfg
Dernière modification par herberts (Le 10/10/2009, à 00:28)
Hors ligne
#3 Le 11/10/2009, à 22:33
- ghuillaume
Re : [Résolu] Dual Boot : impossible de booter sur WIndows
Désolé du retard, j'étais pas chez moi ce week end :
guillaume@guillaume:~$ sudo fdisk -l
[sudo] password for guillaume:
Disque /dev/sda: 320.0 Go, 320072933376 octets
255 têtes, 63 secteurs/piste, 38913 cylindres
Unités = cylindres de 16065 * 512 = 8225280 octets
Identifiant de disque : 0xd1f9d1f9
Périphérique Amorce Début Fin Blocs Id Système
/dev/sda1 * 1 18485 148480731 7 HPFS/NTFS
/dev/sda2 18486 21160 21486937+ 5 Etendue
/dev/sda5 18486 20917 19535008+ 83 Linux
/dev/sda6 20918 21160 1951866 82 Linux swap / Solaris
guillaume@guillaume:~$ 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 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=d43073a3-df4a-4dda-b670-fd758fa96437 ro
## default grub root device
## e.g. groot=(hd0,0)
# groot=d43073a3-df4a-4dda-b670-fd758fa96437
## 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 d43073a3-df4a-4dda-b670-fd758fa96437
kernel /boot/vmlinuz-2.6.28-15-generic root=UUID=d43073a3-df4a-4dda-b670-fd758fa96437 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 d43073a3-df4a-4dda-b670-fd758fa96437
kernel /boot/vmlinuz-2.6.28-15-generic root=UUID=d43073a3-df4a-4dda-b670-fd758fa96437 ro single
initrd /boot/initrd.img-2.6.28-15-generic
title Ubuntu 9.04, kernel 2.6.28-11-generic
uuid d43073a3-df4a-4dda-b670-fd758fa96437
kernel /boot/vmlinuz-2.6.28-11-generic root=UUID=d43073a3-df4a-4dda-b670-fd758fa96437 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 d43073a3-df4a-4dda-b670-fd758fa96437
kernel /boot/vmlinuz-2.6.28-11-generic root=UUID=d43073a3-df4a-4dda-b670-fd758fa96437 ro single
initrd /boot/initrd.img-2.6.28-11-generic
title Ubuntu 9.04, memtest86+
uuid d43073a3-df4a-4dda-b670-fd758fa96437
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
rootnoverify (hd0,0)
savedefault
makeactive
chainloader +1
guillaume@guillaume:~$ cat /etc/default/grub
cat: /etc/default/grub: Aucun fichier ou dossier de ce type
guillaume@guillaume:~$ cat boot/grub/grub.cfg
cat: boot/grub/grub.cfg: Aucun fichier ou dossier de ce type
Hors ligne
#4 Le 11/10/2009, à 22:52
- ilcorseronero
Re : [Résolu] Dual Boot : impossible de booter sur WIndows
Grâce à Ubuntu que j'ai réinstallé sur une 3ème partition, j'ai été supprimer tous les fichiers présents dans la partition qui contenait XP non-installé.
erreur, il ne fallait pas, fixboot
Hors ligne
#5 Le 11/10/2009, à 22:58
- ghuillaume
Re : [Résolu] Dual Boot : impossible de booter sur WIndows
ouais j'ai pas trop réflechit sur le coup. Mais... pourquoi il ne fallait pas ?
Je n'ai PAS touché à la partition qui héberge XP (celui qui fonctionne). Et fixboot, kékécé ? ^^
T'as pas une idée pour que je puisse booter sur XP ?
edit : voici le contenu de mon fichier "boot.ini", sur la partition C:\ (celle qui contient XP) :
[boot loader]
timeout=1
default=multi(0)disk(0)rdisk(0)partition(2)\WINDOWS
[operating systems]
multi(0)disk(0)rdisk(0)partition(2)\WINDOWS="Microsoft Windows XP Professionnel" /noexecute=optin /fastdetect
Dernière modification par ghuillaume (Le 11/10/2009, à 23:03)
Hors ligne
#6 Le 11/10/2009, à 23:14
- ilcorseronero
Re : [Résolu] Dual Boot : impossible de booter sur WIndows
remplace 2 par 1 dans partition(2)
Hors ligne
#7 Le 12/10/2009, à 00:32
- ghuillaume
Re : [Résolu] Dual Boot : impossible de booter sur WIndows
C'est nikel merci !
Hors ligne