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 05/01/2007, à 14:33

MagicDvil

[Résolu] - Grub : Boot impossible sur Windows Xp

Bonjour,

suite à l'installation de Ubuntu 6.10 (Live cd) il ne m'est plus possible de booter sur windows.
Pendant l'installation d'ubuntu j'ai installé grub sur sda1 (/dev/sda1)
A l'invite de grub, je sélectionne Windows, l'invite disparait, il s'affiche "Grub Stage 2" et retour à l'invite de grub

J'ai suivi plusieurs tuto du wiki consernant grub mais sans succès

Voici le contenu de mon menu.lst

 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 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         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=9ebf87be-fd16-4d38-981f-0286290ebd75 ro
# kopt_2_6=root=/dev/sda2 ro

## default grub root device
## e.g. groot=(hd0,0)
# groot=(hd0,1)

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

## 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,1)
kernel          /boot/vmlinuz-2.6.17-10-generic root=/dev/sda2 ro quiet splash locale=fr_FR
initrd          /boot/initrd.img-2.6.17-10-generic
quiet
savedefault
boot

title           Ubuntu, kernel 2.6.17-10-generic (recovery mode)
root            (hd0,1)
kernel          /boot/vmlinuz-2.6.17-10-generic root=/dev/sda2 ro single
initrd          /boot/initrd.img-2.6.17-10-generic
boot

title           Ubuntu, memtest86+
root            (hd0,1)
kernel          /boot/memtest86+.bin
quiet
boot

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

Le resultat de la commande "sudo fdisk -l"

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

Périphérique Amorce    Début         Fin      Blocs    Id  Système
/dev/sda1   *           1        1958    15727603+   7  HPFS/NTFS
/dev/sda2            1959        2611     5245222+  83  Linux
/dev/sda3            2612       19457   135315495    f  W95 Etendu (LBA)
/dev/sda5            2612        7833    41945683+   b  W95 FAT32
/dev/sda6            7834       13055    41945683+   b  W95 FAT32
/dev/sda7           13056       16971    31455238+  83  Linux
/dev/sda8           16972       17232     2096451   82  Linux swap / Solaris
/dev/sda9           17233       19457    17872281    b  W95 FAT32

Et le resultat de ces commandes :
sudo grub
find /boot/grub/stage1

(hd0,1)

Un gros coup de pouce pour régler ce problème ?

MagicDvil.

#2 Le 05/01/2007, à 14:55

larrystourne

Re : [Résolu] - Grub : Boot impossible sur Windows Xp

Bonjour,

    J'avais le même problème après avoir installé ubuntu et j'avais alors copié les lignes de lancement que j'avais pour le grub de la fedora :

title WindowsXP
        rootnoverify (hd0,1)
        chainloader +1

il n'y avait pas savedefault et rootnoverify à la place de root


et puis est-ce que ton xp ne serait pas sur la 2ème partition, la première étant occupé par la partition de reinstallation , dans le cas où il faudrait peut être mettre hd0,1 à la place de hd0,0 dans le code de démarrage de XP ?

Dernière modification par larrystourne (Le 05/01/2007, à 14:56)

Hors ligne

#3 Le 05/01/2007, à 15:42

MagicDvil

Re : [Résolu] - Grub : Boot impossible sur Windows Xp

Bonjour,

XP est sur la première partition, sda1

#4 Le 06/01/2007, à 09:49

MagicDvil

Re : [Résolu] - Grub : Boot impossible sur Windows Xp

Bonjour,
problème résolu (une âme charitable pour mettre le post en "Résolu").
Pour info : il suffisait de faire un fixboot et de réinstaller grub sur la mbr (solution apportée par Cep)

MagicDvil

Hors ligne

#5 Le 06/01/2007, à 09:56

zechris

Re : [Résolu] - Grub : Boot impossible sur Windows Xp

Salut pour mettre ton post en résolu édite ton premier message.


kubuntu Natty

Hors ligne

#6 Le 06/01/2007, à 17:55

MagicDvil

Re : [Résolu] - Grub : Boot impossible sur Windows Xp

bonjour,
j'ai fais mon premier post en tant qu'invité, je ne peux l'édité

MagicDvil

Hors ligne