Pages : 1
#1 Le 07/06/2007, à 15:42
- Bibi12
grub - problème boot windows
Bonjour
alors voilà, je suis très perplexe
j'ai installé grub sur la partition de linux sda3 ou (hd0,2)
et j'avais auparavant windows xp sur sda1 ou (hd0,0)
le lancement de kubuntu se fait très bien à partir de grub, par contre j'ai le message "ntldr manque" quand j'essaie de lancer windows à partir de grub
Pourtant grub n'est pas dans le MBR, il est sur la partition de linux et je n'ai pas touché à la partition sda1, contenant windows.
De plus, lorsque j'active la partition de windows et reboote, windows se lance tout à fait normalement.
Quelqu'un y comprend-il quelque chose ?
voila ce qu'il ya dans le menu /boot/grub/menu.lst
root (hd0,0)
savedefault
map (hd0) (hd1)
map (hd1) (hd0)
chainloader +1
j'ai déja essayé en marquant root (hd1,0)
j'ai aussi essayé en inversant les 2 commandes map, pour voir
#2 Le 07/06/2007, à 15:53
- tellmewhy
Re : grub - problème boot windows
Bonjour Bibi12,
si windows se trouve sur le disque (hd0) et qu'Ubutu se trouve également sur le disque (hd0) tu n'as pas besoin d'utiliser les options map.
Peux-tu poster le résultat des commandes suivantes :
sudo fdisk -l
cat /boot/grub/menu.lst
Tu en apprendras plus sur Grub ici grâce à Manu :
http://doc.ubuntu-fr.org/grub
Tiens en bonus une mine d'or (le trésor de cep) :
http://www.cepcasa.info/divers
#3 Le 07/06/2007, à 21:57
- Bibi12
Re : grub - problème boot windows
Alors, d'abord, merci pour la réponse super rapide
alors, pour la commande $ sudo fdisk -l :
Disk /dev/hdb: 20.0 GB, 20020396032 bytes
255 heads, 63 sectors/track, 2434 cylinders
Units = cylinders of 16065 * 512 = 8225280 bytes
Device Boot Start End Blocks Id System
/dev/hdb1 * 1 1020 8193118+ 7 HPFS/NTFS
/dev/hdb2 1021 2433 11349922+ f W95 Ext'd (LBA)
/dev/hdb5 1021 2433 11349891 7 HPFS/NTFS
Disk /dev/sda: 320.0 GB, 320072933376 bytes
255 heads, 63 sectors/track, 38913 cylinders
Units = cylinders of 16065 * 512 = 8225280 bytes
Device Boot Start End Blocks Id System
/dev/sda1 1 3824 30716248+ 17 Hidden HPFS/NTFS
/dev/sda2 6763 38913 258252907+ f W95 Ext'd (LBA)
/dev/sda3 * 3825 5308 11920230 83 Linux
/dev/sda5 6763 9937 25503156 83 Linux
/dev/sda6 9938 10061 995998+ 82 Linux swap / Solaris
/dev/sda7 10199 15683 44058231 b W95 FAT32
/dev/sda8 15684 20398 37873206 b W95 FAT32
/dev/sda9 20399 28047 61440561 b W95 FAT32
/dev/sda10 28048 38913 87281113+ b W95 FAT32
Partition table entries are not in disk order
et pour la commande $ 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=82502389-3820-4347-bc9a-bde4ee5c0d53 ro
## Setup crashdump menu entries
## e.g. crashdump=1
# crashdump=0
## default grub root device
## e.g. groot=(hd0,0)
# groot=(hd1,2)
## 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
## 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 Kubuntu
root (hd0,2)
kernel /boot/vmlinuz-2.6.20-15-generic root=UUID=82502389-3820-4347-bc9a-bde4ee5c0d53 ro quiet splash locale=fr_FR
initrd /boot/initrd.img-2.6.20-15-generic
quiet
savedefault
title Kubuntu (mode sans echec)
root (hd0,2)
kernel /boot/vmlinuz-2.6.20-15-generic root=UUID=82502389-3820-4347-bc9a-bde4ee5c0d53 ro single
initrd /boot/initrd.img-2.6.20-15-generic
title Kubuntu, memtest
root (hd0,2)
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 Autre systeme d'exploitation :
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
map (hd0) (hd1)
map (hd1) (hd0)
chainloader +1
#4 Le 07/06/2007, à 23:07
- tellmewhy
Re : grub - problème boot windows
Bonsoir Bibi12,
si la partition windows que tu veux démarrer est la partition /dev/sda1, il faut enlever les options map :
title XP
root (hd0,0)
chainloader +1
par contre on voit qu'il s'agit d'une partition cachée en ntfs.
Si c'est toi qui l'as caché par erreur tu peux la remettre dans son état normal dans le shell de Grub.
sudo grub
unhide (hd0,0)
quit
si la partition windows que tu veux démarrer est la partition /dev/hdb1 dans ce cas :
title XP
root (hd1,0)
map (hd0) (hd1)
map (hd1) (hd0)
chainloader +1
#5 Le 07/06/2007, à 23:15
- tellmewhy
Re : grub - problème boot windows
Bonsoir Bibi12,
autre chose, ici :
## default grub root device
## e.g. groot=(hd0,0)
# groot=(hd1,2)
Ce n'est plus bon si ton disque dur contenant Ubuntu est vu comme (hd0).
Dans ce cas c'est ceci qu'il faut mettre :
## default grub root device
## e.g. groot=(hd0,0)
# groot=(hd0,2)
Cette indication n'est utilisée que lors des mises à jour du noyaux, ou lorsque tu choisis toi-même de
faire appliquer cette référence par défaut avec :
sudo update-grub
#6 Le 07/06/2007, à 23:21
- tellmewhy
Re : grub - problème boot windows
Bonsoir Bibi12,
Excuses-moi, j'ai oublié dans l'avant-dernier post de te donner le lien concernant les options map,
c'est ici donc grâce à Manu :
http://doc.ubuntu-fr.org/grub#windows_dans_le_menu_grub
#7 Le 07/06/2007, à 23:48
- Bibi12
Re : grub - problème boot windows
merci pour tout, en regardant les liens que tu m'avais donné j'avais tenté ça :
root (hd0,0)
savedefault
makeactive
chainloader +1
boot
du coup pour la première fois, windows se lançait, mais plantait parce que la partition est cachée je pense.
Ce n'est pas moi qui la cache, mais chaque fois que je lance kubuntu la partition se recache.
du coup je vais tenter ça :
unhide (hd0,0)
root (hd0,0)
chainloader +1
#8 Le 07/06/2007, à 23:50
- tellmewhy
Re : grub - problème boot windows
Bonsoir Bibi12,
je viens de voir sur un autre post que tu avais fait des modifications sur la séquence de boot du bios.
Dans ce cas il serait bon de vérifier ceci avant de procéder aux modifications :
sudo grub
find /boot/grub/stage1
quit
#9 Le 08/06/2007, à 00:19
- Bibi12
Re : grub - problème boot windows
:):D:lol:
ça marche à merveille.
J'ai vu ton dernier message après avoir fait la modif. En tout cas merci beaucoup pour ton aide !
#10 Le 08/06/2007, à 00:46
- tellmewhy
Re : grub - problème boot windows
Bonsoir Bibi12,
Ravi que tu aies trouvé une solution et bravo ! :-)
#11 Le 08/06/2007, à 01:07
- Bubble's Talks
Re : grub - problème boot windows
B'soir bibi12.
Je suppose qu'il est trop tard pour te demander une copie exacte des mbr d'origine ?
Pourrais-tu quand même donner la marque, la série et le processeur de ton pc ?
Hors ligne
#12 Le 08/06/2007, à 01:47
- Bibi12
Re : grub - problème boot windows
mon PC a été monté à partir de pièces détachées. Je n'ai pas touché à mon mbr (qui est sur sda1)vu que j'ai installé grub sur la partition que j'ai créé exprès pour y ajouter linux (sda3)
sinon mon processeur est un
AMD Athlon XP 3000+
2.16 GHz,
avec 512 Mo RAM
et ma carte mère est une a7n8x-e
cela dit, donc si tu m'expliques comment faire je peux regarder à quoi ressemble mon mbr
Pages : 1