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 21/10/2007, à 15:51

berserk

[résolu]Probleme avec Grub (windows ne démarre pas)

Bonjour

J'ai installé Ubuntu mais Grub n'arrive pas à booter sur WIndows parcontre il boote bien sur Ubuntu.

voici mes partitions :

Disque /dev/hda: 20.0 Go, 20020396544 octets
255 têtes, 63 secteurs/piste, 2434 cylindres
Unités = cylindres de 16065 * 512 = 8225280 octets

Périphérique Amorce    Début         Fin      Blocs    Id  Système
/dev/hda1               2         168     1341427+  1b  Hidden W95 FAT32
/dev/hda2   *         169        2433    18193612+   7  HPFS/NTFS

Disque /dev/hdb: 122.9 Go, 122942324736 octets
255 têtes, 63 secteurs/piste, 14946 cylindres
Unités = cylindres de 16065 * 512 = 8225280 octets

Périphérique Amorce    Début         Fin      Blocs    Id  Système
/dev/hdb1   *           1       11718    94124803+   7  HPFS/NTFS
/dev/hdb2           11719       13035    10578802+  83  Linux
/dev/hdb3           13036       14812    14273752+  83  Linux
/dev/hdb4           14813       14946     1076355   82  Linux swap / Solaris

et voici 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		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=277af044-616f-4603-99a3-57bf091dff87 ro

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

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

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

## ## End Default Options ##

title		Ubuntu, kernel 2.6.20-15-generic
root		(hd0,1)
kernel		/boot/vmlinuz-2.6.20-15-generic root=UUID=277af044-616f-4603-99a3-57bf091dff87 ro quiet splash
initrd		/boot/initrd.img-2.6.20-15-generic
quiet
savedefault

title		Ubuntu, kernel 2.6.20-15-generic (recovery mode)
root		(hd0,1)
kernel		/boot/vmlinuz-2.6.20-15-generic root=UUID=277af044-616f-4603-99a3-57bf091dff87 ro single
initrd		/boot/initrd.img-2.6.20-15-generic

title		Ubuntu, memtest86+
root		(hd0,1)
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/hda2
title		Windows NT/2000/XP
root		(hd0,1)
savedefault
chainloader	+1

Pouvez vous m'aidez SVP ? (Ubuntu est sur hdb2et windows sur hda2)
Grub est installé sur hdb

merci

Dernière modification par berserk (Le 22/10/2007, à 11:09)

Hors ligne

#2 Le 21/10/2007, à 16:23

xelator

Re : [résolu]Probleme avec Grub (windows ne démarre pas)

a la fin de menu.lst modifie
"root        (hd0,1)" par "root        (hd1,1)"
et enregistre (il faut éditer en root)
cela marchera peut être.

Hors ligne

#3 Le 21/10/2007, à 16:40

berserk

Re : [résolu]Probleme avec Grub (windows ne démarre pas)

xelator a écrit :

a la fin de menu.lst modifie
"root        (hd0,1)" par "root        (hd1,1)"
et enregistre (il faut éditer en root)
cela marchera peut être.

je l'ai fait : ça marque Starting up mais ça reste bloqué là

Hors ligne

#4 Le 21/10/2007, à 20:27

berserk

Re : [résolu]Probleme avec Grub (windows ne démarre pas)

up svp

Hors ligne

#5 Le 21/10/2007, à 21:46

berserk

Re : [résolu]Probleme avec Grub (windows ne démarre pas)

bon je vous réexplique plus en détail afin que vous m'aidiez SVP .

-Sur mon disque dur maître j'ai windows XP
-Sur mon disque dur esclave j'ai une partition NTFS de données + une partition / + une partition /home et une partition swap

J'ai donc installé Ubuntu feisty avec le CD alternate sur la partition hdb2 en suivant ce tutorial : http://doc.ubuntu-fr.org/windows/mbr_2_disque_dur

Quand Grub m'a demandé où je l'installais j'ai mis /dev/hdb

Ensuite au reboot Grub s'est bien affiché mais je ne pouvais booter ni sur ubuntu ni sur windows, alors j'ai suivi les indications de la doc :

c. Après l'installation

L'installation complète d'Ubuntu s'est bien déroulée, cependant, il se peut que Grub n'arrive pas à lancer Linux.

Si c'est le cas, éditez la ligne (2 fois e), et changez "hd(1,0)" en "hd(0,0)", puis faites "b" pour booter.

Si celà marche, il va vous falloir modifier un paramètre important dans GRUB :

sudo gedit /boot/grub/menu.lst

Rendez-vous à la ligne # groot qui devrait étre comme suit :

# groot hd(1,0)

Et changez-là en :

# groot hd(0,0)

Important : gardez le # !! Ok, maintenant sauvez, puis tapez dans la console :

sudo update-grub

Ceci rechargera la liste comme il faut, même (et surtout) en cas de noyau !!

or dans mon cas j'ai remplacé groot hd(1,1) en groot hd(0,1)

Suite à cette manip maintenant Ubuntu peut démarrer mais pour windows impossible de le lancer.

Voilà, SVP merci d'avance pour votre aide

Dernière modification par berserk (Le 21/10/2007, à 21:46)

Hors ligne

#6 Le 22/10/2007, à 01:45

soufi94

Re : [résolu]Probleme avec Grub (windows ne démarre pas)

Up

Hors ligne

#7 Le 22/10/2007, à 02:29

belga

Re : [résolu]Probleme avec Grub (windows ne démarre pas)

title           20doze test
map (hd0) (hd1)
map (hd1) (hd0)
root (hd1,1)
chainloader     +1

Dernière modification par belga (Le 22/10/2007, à 02:30)


Multi-bomb : Multi-doze : Mandoze, Ubundoze, Pardoze.

900s entre deux postes: mododoze

Hors ligne

#8 Le 22/10/2007, à 02:37

azeazeaze

Re : [résolu]Probleme avec Grub (windows ne démarre pas)

Pas plutôt hd(1,0) ?

#9 Le 22/10/2007, à 02:39

belga

Re : [résolu]Probleme avec Grub (windows ne démarre pas)

non car c'est hda2 20doze


Multi-bomb : Multi-doze : Mandoze, Ubundoze, Pardoze.

900s entre deux postes: mododoze

Hors ligne

#10 Le 22/10/2007, à 11:08

berserk

Re : [résolu]Probleme avec Grub (windows ne démarre pas)

belga a écrit :

title           20doze test
map (hd0) (hd1)
map (hd1) (hd0)
root (hd1,1)
chainloader     +1

merci beaucoup ça marche smile

Hors ligne