Contenu | Rechercher | Menus

Annonce

Si vous avez des soucis pour rester connecté, déconnectez-vous puis reconnectez-vous depuis ce lien en cochant la case
Me connecter automatiquement lors de mes prochaines visites.

À propos de l'équipe du forum.

#1 Le 28/08/2007, à 23:27

Worm

Windows XP imbootable

Bonsoir smile

J'ai installé ubuntu edgy eft après avoir installé windows xp, et à la fin de l'installation de celui-ci, je ne peux plus booter windows.

Voici le contenu de mon 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		3
 
## 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=5590a853-b887-43f2-9562-74f176439061 ro
# kopt_2_6=root=/dev/sda1 ro
 
## default grub root device
## e.g. groot=(hd0,0)
# groot=(hd0,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
 
## should update-grub lock old automagic boot options
## e.g. lockold=false
##      lockold=true
# lockold=false
 
## 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
 
## ## End Default Options ##
 
title		Ubuntu, kernel 2.6.17-10-generic
root		(hd0,0)
kernel		/boot/vmlinuz-2.6.17-10-generic root=/dev/sda1 ro quiet splash
initrd		/boot/initrd.img-2.6.17-10-generic
quiet
savedefault
boot
 
title		Ubuntu, kernel 2.6.17-10-generic (recovery mode)
root		(hd0,0)
kernel		/boot/vmlinuz-2.6.17-10-generic root=/dev/sda1 ro single
initrd		/boot/initrd.img-2.6.17-10-generic
boot
 
title		Ubuntu, memtest86+
root		(hd0,0)
kernel		/boot/memtest86+.bin
quiet
boot
 
### END DEBIAN AUTOMAGIC KERNELS LIST
 
title		Windows XP Professionel
root		(hd0,4)
savedefault
makeactive
chainloader +1

Voici ce que renvoie fdisk -l

Disque /dev/sda: 120.0 Go, 120034123776 octets
255 têtes, 63 secteurs/piste, 14593 cylindres
Unités = cylindres de 16065 * 512 = 8225280 octets

Périphérique Amorce    Début         Fin      Blocs    Id  Système
/dev/sda1   *        1549        2823    10241437+  83  Linux
/dev/sda2             275        1548    10233405    f  W95 Etendu (LBA)
/dev/sda3               1         127     1020096   82  Linux swap / Solaris
/dev/sda4            2824       14593    94542525    b  W95 FAT32
/dev/sda5             275        1548    10233373+   7  HPFS/NTFS

Les entrées de la table de partitions ne sont pas dans l'ordre du disque

Lorsque je selectionne windows xp au boot j'ai :

Error 12: Invalid Device Requested (hd0,4)

Je précise que ma partition windows est bien /dev/sda5 car ubuntu a réussi à la monter sans problème, et je peux y accéder.

Merci de votre attention.


Site de tutoriaux programmation & web / informatique / graphisme / jeux
Tuto geek

Hors ligne

#2 Le 29/08/2007, à 09:26

denis_aec

Re : Windows XP imbootable

Je pense plutôt que XP est dans sda4 (et donc hd0,3) car sda5 coorespond à sda2 qui est une partition étendue ... et XP ne démarre que sur une primaire !
Essaie avec 3 au lieu de 4 dans root        (hd0,4) :

title        Windows XP Professionel
root        (hd0,3)
savedefault
makeactive
chainloader +1

Hors ligne

#3 Le 29/08/2007, à 09:37

Worm

Re : Windows XP imbootable

Je viens d'essayer avec (hd0,3) et là j'ai :

This is not a bootable disk, please insert a bootable floppy,...


Site de tutoriaux programmation & web / informatique / graphisme / jeux
Tuto geek

Hors ligne

#4 Le 29/08/2007, à 09:48

denis_aec

Re : Windows XP imbootable

Il faut aussi que la partition XP soit "bootable" : le caractère "*" est devant sda1 et non sda4 dans ton fdisk -l. Mets sda4 bootable via gparted.
[Edit] tu as un "trou" entre 127 et 275 dans ton disque ...

Dernière modification par denis_aec (Le 29/08/2007, à 09:49)

Hors ligne

#5 Le 29/08/2007, à 09:53

Compte anonymisé

Re : Windows XP imbootable

Salut

Pour installer Ubuntu, tu as du faire de la place soit avec Gparted, soit en auto avec le livecd et tu as modifié l'organisation de tes partition en créant une partition étendue (sda2) et en créant un lecteur logique à l'intérieur (sda5).
Le pb c'est qu'il est impossible à Xp de démarrer sur un lecteur logique.

Ce qu'il faudrait faire :
Transformer la partition étendue sda2 en partition primaire. Je ne sais pas si gparted sait faire çà. Partition Magic le fait.

Après il n'est pas sûr qu'Xp fonctionne comme il faut. Il faut vérifier dans le boot.ini quelle est la partition initiale d'Xp et modifier pour prendre en compte la deuxième (/dev/sda2)
Dans le menu.lst il faudrait aussi modifier :
boot    (hd0,4)  par
boot    (hd0,1)

@+

PS penser aussi à mettre bootable /dev/sda2 et non /dev/sda1 comme indiqué dans le post ci-dessus

Dernière modification par Compte anonymisé (Le 29/08/2007, à 09:54)