#1 Le 11/08/2006, à 10:10
- emm
Configurer le Grub pour multiboot !!! Installer win après Ubuntu !
Bonjour,
Mon PC a 2 DD.
J'ai d'abord installé Ubuntu sur le DD1 (maître).
Puis , je l'ai débranché et mis DD2 en maître et installé windows.
Je remets DD2 en esclave. Je redémarre. Ubuntu, normalement.
Ubuntu ayant été installé sans DD2, grace à un copain je reconfigure le fstab, pour que les chemin de repertoires soit ok. Ca marche.
Grace au même copain, je reconfigure le Grub, en ajoutant les lignes suivantes à la fin :
title MS Windows
map(hd0)(hd1)
map(hd1)(hd0)
rootnoverify (hd1,0)
makeactive
chainloader +1
Dans le menu du grub, MS Windows s'affiche, mais de le selectionner ne permet pas de lancer windows.
Juste cela affiche :
Booting 'MS Windows'
rootnoverify (hd1,0)
makeactive
chainloader +1
Et l'ordi reste là, sans rien qui ne se passe, le voyant du CPU ne bouge pas...
Voyez vous ce qu'il faut faire ?
Merci !
Hors ligne
#2 Le 11/08/2006, à 10:44
- Compte anonymisé
Re : Configurer le Grub pour multiboot !!! Installer win après Ubuntu !
title MS Windows map(hd0)(hd1) map(hd1)(hd0) rootnoverify (hd1,0) makeactive chainloader +1
J'aurrais écris ça ainsi :
title MS Windows
rootnoverify (hd1,0)
makeactive
map(hd0)(hd1)
map(hd1)(hd0)
chainloader +1
@+
#3 Le 11/08/2006, à 11:01
- emm
Re : Configurer le Grub pour multiboot !!! Installer win après Ubuntu !
J'ai éssayé, ça ne change rien !
Même message, même situation !
Hors ligne
#4 Le 11/08/2006, à 13:30
- maxfox
Re : Configurer le Grub pour multiboot !!! Installer win après Ubuntu !
sudo fdisk -l pour lister tes partitions/disques.
cat /boot/grub/device.map et vérifier qu'il y est une entrée pour ton nouveau disque.
cat /boot/grub/menu.lst
Dernière modification par maxfox (Le 11/08/2006, à 15:24)
Hors ligne
#5 Le 11/08/2006, à 13:43
- emm
Re : Configurer le Grub pour multiboot !!! Installer win après Ubuntu !
sudo fdisk -l
Disque /dev/hda: 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/hda1 * 1 19082 153276133+ 83 Linux
/dev/hda2 19083 19457 3012187+ 5 Extended
/dev/hda5 19083 19457 3012156 82 Linux swap / Solaris
Disque /dev/hdb: 80.0 Go, 80026361856 octets
255 têtes, 63 secteurs/piste, 9729 cylindres
Unités = cylindres de 16065 * 512 = 8225280 octets
Périphérique Amorce Début Fin Blocs Id Système
/dev/hdb1 * 1 9729 781481
cat /boot/grub/device.map :
(hd0) /dev/hda
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 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=/dev/hda1 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
## altoption boot targets option
## multiple altoptions lines are allowed
## e.g. altoptions=(extra menu suffix) extra boot options
## altoptions=(recovery mode) 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.15-26-amd64-generic
root (hd0,0)
kernel /boot/vmlinuz-2.6.15-26-amd64-generic root=/dev/hda1 ro quiet splash
initrd /boot/initrd.img-2.6.15-26-amd64-generic
savedefault
boot
title Ubuntu, kernel 2.6.15-26-amd64-generic (recovery mode)
root (hd0,0)
kernel /boot/vmlinuz-2.6.15-26-amd64-generic root=/dev/hda1 ro single
initrd /boot/initrd.img-2.6.15-26-amd64-generic
boot
title Ubuntu, kernel 2.6.15-25-amd64-generic
root (hd0,0)
kernel /boot/vmlinuz-2.6.15-25-amd64-generic root=/dev/hda1 ro quiet splash
initrd /boot/initrd.img-2.6.15-25-amd64-generic
savedefault
boot
title Ubuntu, kernel 2.6.15-25-amd64-generic (recovery mode)
root (hd0,0)
kernel /boot/vmlinuz-2.6.15-25-amd64-generic root=/dev/hda1 ro single
initrd /boot/initrd.img-2.6.15-25-amd64-generic
boot
title Ubuntu, kernel 2.6.15-23-amd64-generic
root (hd0,0)
kernel /boot/vmlinuz-2.6.15-23-amd64-generic root=/dev/hda1 ro quiet splash
initrd /boot/initrd.img-2.6.15-23-amd64-generic
savedefault
boot
title Ubuntu, kernel 2.6.15-23-amd64-generic (recovery mode)
root (hd0,0)
kernel /boot/vmlinuz-2.6.15-23-amd64-generic root=/dev/hda1 ro single
initrd /boot/initrd.img-2.6.15-23-amd64-generic
boot
title Ubuntu, memtest86+
root (hd0,0)
kernel /boot/memtest86+.bin
boot
title MS Windows
rootnoverify (hd1,0)
makeactive
map(hd0)(hd1)
map(hd1)(hd0)
chainloader +1
### END DEBIAN AUTOMAGIC KERNELS LIST
Hors ligne
#6 Le 11/08/2006, à 14:02
- cep
Re : Configurer le Grub pour multiboot !!! Installer win après Ubuntu !
sudo fdisk -l
Disque /dev/hdb: 80.0 Go, 80026361856 octets
255 têtes, 63 secteurs/piste, 9729 cylindres
Unités = cylindres de 16065 * 512 = 8225280 octetsPériphérique Amorce Début Fin Blocs Id Système
/dev/hdb1 * 1 9729 781481
Le résultat de fdisk est complet ? si c'est le cas, tu as un problème sur hdb.
Tu as essayé de monter hdb1 ?
En outre :
Ubuntu ayant été installé sans DD2, grace à un copain je reconfigure le fstab, pour que les chemin de repertoires soit ok.
D'après tes explications, hda est toujours à la même place, il n'y avait donc pas besoin de reconfigurer fstab.
Hors ligne
#7 Le 11/08/2006, à 14:34
- emm
Re : Configurer le Grub pour multiboot !!! Installer win après Ubuntu !
Le fstab avait apparament besoin d'être reconfigurer, hdb était le lect/graveur et pas de 2ème DD dedans. (Le 2ème DD, qui n'était pas là quand j'ai installé Ubuntu sur le 1er)
Je n'avais pas du tout accès au 2ème DD, maintenant c'est ok, via le chemin /mnt/windows. De Ubuntu, j'ai accès aux repertoires de Windows &si je remet le DD2 en maître, windows démare normalement.
Oui c'est le resultat fdisk complet. hdb n'a qu'une partition.
d'après mes info : sudo mount -a , monte tous les disques (c'est ce que j'ai fais).
Est-ce insuffisant pour monter hdb1 ?
Hors ligne
#8 Le 11/08/2006, à 15:02
- cep
Re : Configurer le Grub pour multiboot !!! Installer win après Ubuntu !
Incomplet car il n'y a ni Id ni SystemFs
Hors ligne
#9 Le 11/08/2006, à 15:13
- maxfox
Re : Configurer le Grub pour multiboot !!! Installer win après Ubuntu !
Comme le fait trés justement remarquer cep, il y a un problème sur hdb, fdisk ne voit aucun Id ni système de fichier.
Que dit parted : sudo parted -s /dev/hdb print
Il faudrait aussi éditer device.map pour y rajouter cette ligne : (hd1) /dev/hdb
Alt+F2 puis : gksudo gedit /boot/grub/device.map
EDIT : Ola cep, pfiou, que j'ai été lent.... EDIT2 : otho
Dernière modification par maxfox (Le 11/08/2006, à 15:19)
Hors ligne
#10 Le 11/08/2006, à 16:31
- emm
Re : Configurer le Grub pour multiboot !!! Installer win après Ubuntu !
Voilà !!:|
sudo parted -s /dev/hdb print :
parted: option invalide -- /
parted: option invalide -- d
parted: option invalide -- e
GNU Parted 1.6.25.1
Sans tout comprendre, je sais que parted sert à partitionner. Je vois 3 fois invalide. Serait-ce pour cela que Qtparted ne détecte aucun DD ?
Il n'y avait qu'une ligne dansboot/grub/device.map spécifiant hd0, j'ai ajouté l'autre que tu m'as indiqué.
Par contre en tapant la commande, avant d'ouvrir device.map, il a affiché ceci :
(gedit:15954): GnomeUI-WARNING **: While connecting to session manager:
Authentication Rejected, reason : None of the authentication protocols specified are supported and host-based authentication failed.
What is it ?
Qu'est ce que Id ? Comment ça se fait qu'il ne detecte aucun système de fichier, alors que le gestionnaire de disque reconnait très bien que hdb1 est en NTSF ?
Merci encore !
Hors ligne
#11 Le 11/08/2006, à 17:07
- maxfox
Re : Configurer le Grub pour multiboot !!! Installer win après Ubuntu !
Tu n'aurais pas oublié ou inverser un espace pour parted ?
(gedit:15954): GnomeUI-WARNING **: While connecting to session manager:
Authentication Rejected, reason : None of the authentication protocols specified are supported and host-based authentication failed.
C'est un bug mineur sans aucune conséquence, d'ailleurs, si tu utilises Alt+F2 sans cocher "Lancer dans un terminal" il ne t'encombrera plus la vue.
EDIT, si tu dis que le gestionnaire de disque voit le système de fichier, alors il y a des chances que parted le voit aussi.
Sous Linux, cette erreur arrive souvent quand on modifie des partitions alors qu'elles sont montées en écriture, je sais pas comment a travaillé le partitionneur que tu as utilisé... Et malheureusement je ne sais pas non plus comment réparer cela. Testdisk ? Refaire le partitionement ?
Il y a peut-être plus simple, attends de voir ce qu'en pense cep.
Dernière modification par maxfox (Le 11/08/2006, à 17:17)
Hors ligne
#12 Le 11/08/2006, à 18:08
- emm
Re : Configurer le Grub pour multiboot !!! Installer win après Ubuntu !
J'ai recommancé, voici ce que dis parted :
Géométrie du disque pour /dev/hdb : 0kB - 80GB
Type d'étiquette de disque : msdos
Numéro Début Fin Taille Type Système de fichiers Drapeaux
1 32kB 80GB 80GB primaire ntfs amorce
Je n'ai pas utilisé de partitionneur, juste j'ai installé Ubuntu dapper 64 sur un DD, et Windows XP sur un 2ème.
J'aimerais que QTParted fonctionne pour me faire une partition fat32 sur le 2ème DD, mais ça c'est la suite de l'histoire !
Bizarre, ALt+F2 ça ne fait rien, pour avoir un terminal je vais dans Applications/Accessoire. C'est pas le plus important !
Hors ligne
#13 Le 13/08/2006, à 16:53
- emm
Re : Configurer le Grub pour multiboot !!! Installer win après Ubuntu !
up
Hors ligne
#14 Le 14/08/2006, à 14:40
- emm
Re : Configurer le Grub pour multiboot !!! Installer win après Ubuntu !
J'ai déplacé le grub dans la partition ubuntu.
Installé le GAG ...
Et ça marche.
http://doc.ubuntu-fr.org/installation/multiboot
A +
Hors ligne