Booter win xp après install mandriva

Fermé
mojo - 17 juin 2008 à 15:09
mamiemando Messages postés 33268 Date d'inscription jeudi 12 mai 2005 Statut Modérateur Dernière intervention 18 septembre 2024 - 17 juin 2008 à 19:22
Bonjour,

Voilà, cela faisait un petit temps que je voulais passer à Linux, j'ai donc installé Mandriva One 2008. Le problème est que j'ai besoin de Windows XP pour mes cours. J'ai donc installé Mandriva 2008 sur le même disque dur que Windows en employant l'option "créer une nouvelle partition avec l'espace libre".

Le problème est que je n'arrive plus à booter XP ! Grub se lance et me laisse le choix entre Mandriva, Mandriva en mode dégrade et deux lignes du genre "desktop586 2.6.24.4-1mnb.

Comment faire pour retourner sous XP ?

Merci d'avance !
A voir également:

1 réponse

mamiemando Messages postés 33268 Date d'inscription jeudi 12 mai 2005 Statut Modérateur Dernière intervention 18 septembre 2024 7 780
17 juin 2008 à 19:22
Il faudrait nous donner le résultat des commandes suivantes, en root :
fdisk -l
cat /boot/grub/menu.list

La première commande affiche ta table des partitions, la seconde affiche le fichier de configuration de grub. Concrètement pour résoudre ton problème il suffit de rajouter une entrée dans ton /boot/grub/menu.list pointant sur windows. Voici mon fichier pour t'inspirer :
# 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

### 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
title       Debian GNU/Linux, kernel 2.6.24-1-686
root        (hd0,1)
kernel      /boot/vmlinuz-2.6.24-1-686 root=/dev/hda2 ro
initrd      /boot/initrd.img-2.6.24-1-686

title       Debian GNU/Linux, kernel 2.6.24-1-686 (single-user mode)
root        (hd0,1)
kernel      /boot/vmlinuz-2.6.24-1-686 root=/dev/hda2 ro single
initrd      /boot/initrd.img-2.6.24-1-686

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

Dans ce cas particulier windows est installé sur /dev/hda1, soit (hd0,0) dans la syntaxe grub, et linux sur /dev/hda2 soit (hd0,1). A priori si ton disque est SATA SCSI ou USB les notations restent en (hdm,n) ou m correspond au device (a dans /dev/hda ou /dev/sda par exemple) et n à la partition (1 dans /dev/hda1 ou /dev/sda1). Attention dans ton grub il ne faut rien modifier juste ajouter les lignes en gras conformément à ta table des partitions.

Bonne chance
1