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 01/08/2008, à 22:14

jean86

Grub plante sur le lancement de windows

Bonjour :
Après avoir installé ubuntu, grub fonctionne sur la partition linux mais plante au lancement de windows xp.
Merci de votre aide.

Config :
> 2 disques durs sur mon pc :disque maitre : linux ; disque slave: windows XP

> sudo fdisk -l
Disque /dev/sda: 250.0 Go, 250059350016 octets
255 heads, 63 sectors/track, 30401 cylinders
Units = cylindres of 16065 * 512 = 8225280 bytes
Identifiant disque: 0xf241d314

Périphérique Amorce    Début         Fin      Blocs    Id  Système
/dev/sda1   *           1       30213   242685891   83  Linux
/dev/sda2           30214       30401     1510110    5  Extended
/dev/sda5           30214       30401     1510078+  82  Linux swap / Solaris

Disque /dev/sdb: 122.9 Go, 122942324736 octets
255 heads, 63 sectors/track, 14946 cylinders
Units = cylindres of 16065 * 512 = 8225280 bytes
Identifiant disque: 0x10081007

Périphérique Amorce    Début         Fin      Blocs    Id  Système
/dev/sdb1   *           1        4933    39624291    7  HPFS/NTFS
/dev/sdb2            4934       14946    80429422+   f  W95 Etendu (LBA)
/dev/sdb5            4934       14946    80429391    b  W95 FAT32
marie@marie:~$


> 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=479cb25a-09c5-4dcb-8733-eb818e53fca8 ro

## Setup crashdump menu entries
## e.g. crashdump=1
# crashdump=0

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

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

## 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 8.04.1, kernel 2.6.24-19-generic
root        (hd0,0)
kernel        /boot/vmlinuz-2.6.24-19-generic root=UUID=479cb25a-09c5-4dcb-8733-eb818e53fca8 ro quiet splash
initrd        /boot/initrd.img-2.6.24-19-generic
quiet

title        Ubuntu 8.04.1, kernel 2.6.24-19-generic (recovery mode)
root        (hd0,0)
kernel        /boot/vmlinuz-2.6.24-19-generic root=UUID=479cb25a-09c5-4dcb-8733-eb818e53fca8 ro single
initrd        /boot/initrd.img-2.6.24-19-generic

title        Ubuntu 8.04.1, memtest86+
root        (hd0,0)
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/sdb1
title        Microsoft Windows XP Professionnel
root        (hd1,0)
savedefault
makeactive
map        (hd0) (hd1)
map        (hd1) (hd0)
chainloader    +1

Hors ligne

#2 Le 01/08/2008, à 22:18

#kékékooliseur

Re : Grub plante sur le lancement de windows

essaye avec ceci

title        test1
map        (hd0) (hd1)
map        (hd1) (hd0)
root        (hd1,0)
savedefault
makeactive
chainloader    +1

title test2
root (hd1,0)
chainloader    +1

Hors ligne

#3 Le 02/08/2008, à 08:36

jean86

Re : Grub plante sur le lancement de windows

test1 et test2 me renvoie la meme erreur :
Error 21 : selected disk does not exist

D'autre part en utilisant l'éditeur de partition gparted, je m'aperçois que pour la partition
/dev/sdb1, qui est je crois le boot de windows, il y a un point d'exclamation avec indiqué "impossible de lire le contenu du système de fichiers".

Le boot de windows n'aurait-il pas été endommagé ?
Comment le réparer si c'est le cas ?

Merci de votre aide.

Hors ligne

#4 Le 02/08/2008, à 09:57

#kékékooliseur

Re : Grub plante sur le lancement de windows

va dans le bios, change l'ordre de démarrage des disques pour qu'il démarre
sur le disque windows.

et dis ce qu'il se passe.

donne aussi le retour de

sudo fdisk -l

Hors ligne

#5 Le 02/08/2008, à 11:43

jean86

Re : Grub plante sur le lancement de windows

le resultat de sudo fdisk -l est sur le premier post.

quelque soit l'ordre de demarrage dans le bios, j'arrive sur le menu de grub. Avec tjrs l'erreur 21 pour aller sur win.

Merci

Hors ligne

#6 Le 02/08/2008, à 14:28

#kékékooliseur

Re : Grub plante sur le lancement de windows

avec une connexion, tape

sudo aptitude update
sudo aptitude install mbr
sudo install-mbr /dev/sdb

redémarre, configure le bios pour qu'il démarre sur le disque windows
puis dis ce qu'il se passe

Hors ligne

#7 Le 02/08/2008, à 20:52

jean86

Re : Grub plante sur le lancement de windows

Tjrs pareil.
manip post6 >ok
qque soit le first boot dans le bios le resultat est le meme : grub ok, win > error 21, linux ok.
Merci de ton aide

Hors ligne

#8 Le 03/08/2008, à 23:44

#kékékooliseur

Re : Grub plante sur le lancement de windows

jean86 a écrit :

Tjrs pareil.
manip post6 >ok
qque soit le first boot dans le bios le resultat est le meme : grub ok, win > error 21, linux ok.
Merci de ton aide

non, si tu as fait sudo install-mbr /dev/sdb

lorsque le pc démarre avec l'ordre de boot sur sdb puis sda
tu ne peux avoir grub !!!!!!!!!

donne les retours de

sudo aptitude update
sudo aptitude install mbr
sudo install-mbr /dev/sdb

Hors ligne

#9 Le 04/08/2008, à 21:40

jean86

Re : Grub plante sur le lancement de windows

Merci de ta réponse.
J'ai refait la manip.
Elle me semble ok pour les 2 premières commandes : voir ci dessous.
la 3ème commande ne donne aucun retour si ce n'est le prompt.
quant au boot : je me retrouve tjrs sur grub ,qque soit le disk de boot.
Je me demande sil n'y a pas 2 grub d'installer ? Est ce possible ??
Merci de ton aide.


marie@marie:~$ sudo aptitude update
[sudo] password for marie:
Atteint http://fr.archive.ubuntu.com hardy Release.gpg
Atteint http://archive.canonical.com hardy Release.gpg                         
Ign http://archive.canonical.com hardy/partner Translation-fr                   
Prendre :1 http://security.ubuntu.com hardy-security Release.gpg [189B]         
Atteint http://archive.canonical.com hardy Release                             
Ign http://security.ubuntu.com hardy-security/main Translation-fr               
Ign http://security.ubuntu.com hardy-security/restricted Translation-fr         
Ign http://security.ubuntu.com hardy-security/universe Translation-fr 
Ign http://security.ubuntu.com hardy-security/multiverse Translation-fr
Prendre :2 http://fr.archive.ubuntu.com hardy/main Translation-fr [169kB]       
Prendre :3 http://security.ubuntu.com hardy-security Release [58,5kB]           
Atteint http://archive.canonical.com hardy/partner Packages                     
Prendre :4 http://security.ubuntu.com hardy-security/main Packages [51,8kB]     
Prendre :5 http://fr.archive.ubuntu.com hardy/restricted Translation-fr [2790B]
Prendre :6 http://fr.archive.ubuntu.com hardy/universe Translation-fr [194kB]   
Prendre :7 http://fr.archive.ubuntu.com hardy/multiverse Translation-fr [3614B]
Prendre :8 http://fr.archive.ubuntu.com hardy-updates Release.gpg [189B]       
Ign http://fr.archive.ubuntu.com hardy-updates/main Translation-fr             
Ign http://fr.archive.ubuntu.com hardy-updates/restricted Translation-fr       
Ign http://fr.archive.ubuntu.com hardy-updates/universe Translation-fr         
Ign http://fr.archive.ubuntu.com hardy-updates/multiverse Translation-fr       
Atteint http://fr.archive.ubuntu.com hardy Release                             
Prendre :9 http://fr.archive.ubuntu.com hardy-updates Release [58,5kB]         
Atteint http://fr.archive.ubuntu.com hardy/main Packages                       
Atteint http://fr.archive.ubuntu.com hardy/restricted Packages                 
Atteint http://fr.archive.ubuntu.com hardy/main Sources                         
Atteint http://fr.archive.ubuntu.com hardy/restricted Sources                   
Atteint http://fr.archive.ubuntu.com hardy/universe Packages                   
Prendre :10 http://security.ubuntu.com hardy-security/restricted Packages [6636B]
Atteint http://fr.archive.ubuntu.com hardy/universe Sources                     
Prendre :11 http://security.ubuntu.com hardy-security/main Sources [11,9kB]     
Atteint http://fr.archive.ubuntu.com hardy/multiverse Packages                 
Prendre :12 http://security.ubuntu.com hardy-security/restricted Sources [908B]
Atteint http://fr.archive.ubuntu.com hardy/multiverse Sources                   
Prendre :13 http://security.ubuntu.com hardy-security/universe Packages [26,6kB]
Prendre :14 http://fr.archive.ubuntu.com hardy-updates/main Packages [293kB]   
Prendre :15 http://security.ubuntu.com hardy-security/universe Sources [3708B] 
Prendre :16 http://security.ubuntu.com hardy-security/multiverse Packages [3874B]
Prendre :17 http://security.ubuntu.com hardy-security/multiverse Sources [14B] 
Prendre :18 http://fr.archive.ubuntu.com hardy-updates/restricted Packages [6636B]
Prendre :19 http://fr.archive.ubuntu.com hardy-updates/main Sources [84,8kB]   
Prendre :20 http://fr.archive.ubuntu.com hardy-updates/restricted Sources [908B]
Prendre :21 http://fr.archive.ubuntu.com hardy-updates/universe Packages [76,7kB]
Prendre :22 http://fr.archive.ubuntu.com hardy-updates/universe Sources [17,1kB]
Prendre :23 http://fr.archive.ubuntu.com hardy-updates/multiverse Packages [16,4kB]
Prendre :24 http://fr.archive.ubuntu.com hardy-updates/multiverse Sources [2612B]
1090ko téléchargés en 23s (45,8ko/s)                                           
Lecture des listes de paquets... Fait

marie@marie:~$ sudo aptitude install mbr
Lecture des listes de paquets... Fait
Construction de l'arbre des dépendances       
Lecture des informations d'état... Fait
Lecture de l'information d'état étendu       
Initialisation de l'état des paquets... Fait
Construction de la base de données des étiquettes... Fait
Les paquets suivants ont été conservés :
  deskbar-applet eog gcalctool gdm gnome-about gnome-cards-data
  gnome-desktop-data gnome-games gnome-games-data gnome-panel
  gnome-panel-data gnome-system-monitor gtk2-engines gtkhtml3.14 gvfs
  gvfs-backends gvfs-fuse hal iproute libglib2.0-0 libglibmm-2.4-1c2a
  libgnome-desktop-2 libgtkhtml3.14-19 libgtksourceview2.0-0
  libgtksourceview2.0-common libgvfscommon0 libgweather-common libgweather1
  libhal-storage1 libhal1 libpanel-applet2-0 libsmbios1 libwnck-common
  libwnck22 procps python-gobject ufw xserver-xorg-video-intel yelp
0 paquets mis à jour, 0 nouvellement installés, 0 à enlever et 39 non mis à jour.
Il est nécessaire de télécharger 0o d'archives. Après dépaquetage, 0o seront utilisés.
Écriture de l'information d'état étendu... Fait
Lecture des listes de paquets... Fait             
Construction de l'arbre des dépendances       
Lecture des informations d'état... Fait
Lecture de l'information d'état étendu       
Initialisation de l'état des paquets... Fait
Construction de la base de données des étiquettes... Fait

marie@marie:~$
marie@marie:~$ sudo install-mbr /dev/sdb
marie@marie:~$

Hors ligne