Dual Boot XP-Ubuntu sur deux disques et GRUB
Résolu
alex_terieur
Messages postés
7
Statut
Membre
-
alex_terieur Messages postés 7 Statut Membre -
alex_terieur Messages postés 7 Statut Membre -
Bonjour,
Après pas mal de recherches sur Internet, je n'ai pas trouvé de réponses concernant exactement mon cas, j'ai donc préféré m'abstenir de tenter quoique ce soit, de peur de faire des bêtises :)
Je vous explique :
J'ai deux disques durs sur mon ordi, le premier contient uniquement Windows XP et sa partition de restauration, et le deuxième contient uniquement Ubuntu 8.10 (Intrepid Ibex, AMD 64). Jusque là, tout s'est déroulé correctement. Mais au redémarrage, GRUB se lance et ne me propose que de booter différentes versions d'Ubuntu. Or, je voudrais bien conserver Ubuntu tout en pouvant encore démarrer XP ! En tout cas, je sais que je n'ai pas fait de fausse manip car quand je débranche le disque contenant Ubuntu, Windows XP démarre normalement, sans passer par GRUB (qui se trouve donc bien sur le disque d'Ubuntu) et Ubuntu fonctionne très bien. Je voudrais donc pouvoir choisir au démarrage quel OS démarrer. J'ai lu qu'il faut sûrement modifier le fichier menu.lst de GRUB, mais que modifier exactement ?
Merci pour votre aide :D
Après pas mal de recherches sur Internet, je n'ai pas trouvé de réponses concernant exactement mon cas, j'ai donc préféré m'abstenir de tenter quoique ce soit, de peur de faire des bêtises :)
Je vous explique :
J'ai deux disques durs sur mon ordi, le premier contient uniquement Windows XP et sa partition de restauration, et le deuxième contient uniquement Ubuntu 8.10 (Intrepid Ibex, AMD 64). Jusque là, tout s'est déroulé correctement. Mais au redémarrage, GRUB se lance et ne me propose que de booter différentes versions d'Ubuntu. Or, je voudrais bien conserver Ubuntu tout en pouvant encore démarrer XP ! En tout cas, je sais que je n'ai pas fait de fausse manip car quand je débranche le disque contenant Ubuntu, Windows XP démarre normalement, sans passer par GRUB (qui se trouve donc bien sur le disque d'Ubuntu) et Ubuntu fonctionne très bien. Je voudrais donc pouvoir choisir au démarrage quel OS démarrer. J'ai lu qu'il faut sûrement modifier le fichier menu.lst de GRUB, mais que modifier exactement ?
Merci pour votre aide :D
A voir également:
- Dual Boot XP-Ubuntu sur deux disques et GRUB
- Dual boot - Guide
- Cle windows xp - Guide
- Whatsapp dual sim - Guide
- Hiren's boot - Télécharger - Divers Utilitaires
- Comment faire deux colonnes sur word - Guide
8 réponses
tu as lu ces docs ? :
http://doc.ubuntu-fr.org/grub-pc?redirect=1
http://doc.ubuntu-fr.org/tutoriel/gag?redirect=2
http://doc.ubuntu-fr.org/grub-pc?redirect=1
http://doc.ubuntu-fr.org/tutoriel/gag?redirect=2
Merci pour ta réponse.
J'avais déjà lu ces docs, oui, mais j'ai un peu de mal à comprendre :s
Donc, je dois bien modifier /boot/grub/menu.lst mais comment savoir le nom correspondant au disque ? j'ai ouvert device.map, où il y a seulement indiqué "(hd0) /dev/sda"
j'ai regardé dans gparted, et mon disque /dev/sda correspond à mon disque contenant windows xp ? c'est bien ca alors ?
J'avais déjà lu ces docs, oui, mais j'ai un peu de mal à comprendre :s
Donc, je dois bien modifier /boot/grub/menu.lst mais comment savoir le nom correspondant au disque ? j'ai ouvert device.map, où il y a seulement indiqué "(hd0) /dev/sda"
j'ai regardé dans gparted, et mon disque /dev/sda correspond à mon disque contenant windows xp ? c'est bien ca alors ?
c'est malheuresement plus compliqué que ça
c'est selon comment tes disques dur sont branché
avec grub
hd0 sera le premier disque dur
hd1 sera le second disque dur
hd2 sera le 3eme disque dur
hd0,0 sera la premiere partition du premier disque dur
hd1,2 sera la 3ème partition du deuxieme disque dur
gparted c'est un peu different
c'est sda au lieu de hda
sda sera le premier disque dur
sdb sera le second disque dur
sdc sera le 3eme disque dur
sda1 sera la premiere partition du premier disque dur
sdb3 sera la 3eme partition du second disque dur
j'espere pas trop t'embrouiller
Donc, je dois bien modifier /boot/grub/menu.lst mais comment savoir le nom correspondant au disque ?
c'est selon comment tes disques dur sont branché
avec grub
hd0 sera le premier disque dur
hd1 sera le second disque dur
hd2 sera le 3eme disque dur
hd0,0 sera la premiere partition du premier disque dur
hd1,2 sera la 3ème partition du deuxieme disque dur
gparted c'est un peu different
c'est sda au lieu de hda
sda sera le premier disque dur
sdb sera le second disque dur
sdc sera le 3eme disque dur
sda1 sera la premiere partition du premier disque dur
sdb3 sera la 3eme partition du second disque dur
j'espere pas trop t'embrouiller
Merci pour ton explication, ca y est, j'ai bien compris :)
Mais... comment savoir comment mes dd sont branchés ? je dois démonter ?
Mais... comment savoir comment mes dd sont branchés ? je dois démonter ?
le plus sur est de demonter ton pc san demonter les DD (D disque D dur)
je supose que des dd sont en sata
donc regarde le modele du dd et regarde sur lequel port il est branché sata1 ou sata2 par exemple
sinon autre solution tu di que tu as windows sur un dd et linux sur l'autre
donc poste le fichier menu.lst sur ccm (il se trouve dans /boot/grub/menu.lst)
je t'expliquerais ce fichier comment il fonctionne
et on en deduira comment ajouter windows dans ce fichier
je supose que des dd sont en sata
donc regarde le modele du dd et regarde sur lequel port il est branché sata1 ou sata2 par exemple
sinon autre solution tu di que tu as windows sur un dd et linux sur l'autre
donc poste le fichier menu.lst sur ccm (il se trouve dans /boot/grub/menu.lst)
je t'expliquerais ce fichier comment il fonctionne
et on en deduira comment ajouter windows dans ce fichier
jeanbi : Bonjour et merci de m'aider :)
voilà :
Disque /dev/sda: 200.0 Go, 200049647616 octets
240 heads, 63 sectors/track, 25841 cylinders
Units = cylindres of 15120 * 512 = 7741440 bytes
Identifiant disque: 0x1549f232
Périphérique Amorce Début Fin Blocs Id Système
/dev/sda1 1 967 7310488+ c W95 FAT32 (LBA)
/dev/sda2 * 968 25840 188039880 7 HPFS/NTFS
Disque /dev/sdb: 10.1 Go, 10110320640 octets
255 heads, 63 sectors/track, 1229 cylinders
Units = cylindres of 16065 * 512 = 8225280 bytes
Identifiant disque: 0xab28ab28
Périphérique Amorce Début Fin Blocs Id Système
/dev/sdb1 * 1 1171 9406026 83 Linux
/dev/sdb2 1172 1229 465885 5 Extended
/dev/sdb5 1172 1229 465853+ 82 Linux swap / Solaris
mum1989 : voila 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 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=UUID=7432da94-78ac-41aa-baa5-df61f1c9c9f5 ro
## default grub root device
## e.g. groot=(hd0,0)
# groot=7432da94-78ac-41aa-baa5-df61f1c9c9f5
## 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.10, kernel 2.6.27-9-generic
uuid 7432da94-78ac-41aa-baa5-df61f1c9c9f5
kernel /boot/vmlinuz-2.6.27-9-generic root=UUID=7432da94-78ac-41aa-baa5-df61f1c9c9f5 ro quiet splash
initrd /boot/initrd.img-2.6.27-9-generic
quiet
title Ubuntu 8.10, kernel 2.6.27-9-generic (recovery mode)
uuid 7432da94-78ac-41aa-baa5-df61f1c9c9f5
kernel /boot/vmlinuz-2.6.27-9-generic root=UUID=7432da94-78ac-41aa-baa5-df61f1c9c9f5 ro single
initrd /boot/initrd.img-2.6.27-9-generic
title Ubuntu 8.10, kernel 2.6.27-7-generic
uuid 7432da94-78ac-41aa-baa5-df61f1c9c9f5
kernel /boot/vmlinuz-2.6.27-7-generic root=UUID=7432da94-78ac-41aa-baa5-df61f1c9c9f5 ro quiet splash
initrd /boot/initrd.img-2.6.27-7-generic
quiet
title Ubuntu 8.10, kernel 2.6.27-7-generic (recovery mode)
uuid 7432da94-78ac-41aa-baa5-df61f1c9c9f5
kernel /boot/vmlinuz-2.6.27-7-generic root=UUID=7432da94-78ac-41aa-baa5-df61f1c9c9f5 ro single
initrd /boot/initrd.img-2.6.27-7-generic
title Ubuntu 8.10, memtest86+
uuid 7432da94-78ac-41aa-baa5-df61f1c9c9f5
kernel /boot/memtest86+.bin
quiet
### END DEBIAN AUTOMAGIC KERNELS LIST
voilà :
Disque /dev/sda: 200.0 Go, 200049647616 octets
240 heads, 63 sectors/track, 25841 cylinders
Units = cylindres of 15120 * 512 = 7741440 bytes
Identifiant disque: 0x1549f232
Périphérique Amorce Début Fin Blocs Id Système
/dev/sda1 1 967 7310488+ c W95 FAT32 (LBA)
/dev/sda2 * 968 25840 188039880 7 HPFS/NTFS
Disque /dev/sdb: 10.1 Go, 10110320640 octets
255 heads, 63 sectors/track, 1229 cylinders
Units = cylindres of 16065 * 512 = 8225280 bytes
Identifiant disque: 0xab28ab28
Périphérique Amorce Début Fin Blocs Id Système
/dev/sdb1 * 1 1171 9406026 83 Linux
/dev/sdb2 1172 1229 465885 5 Extended
/dev/sdb5 1172 1229 465853+ 82 Linux swap / Solaris
mum1989 : voila 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 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=UUID=7432da94-78ac-41aa-baa5-df61f1c9c9f5 ro
## default grub root device
## e.g. groot=(hd0,0)
# groot=7432da94-78ac-41aa-baa5-df61f1c9c9f5
## 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.10, kernel 2.6.27-9-generic
uuid 7432da94-78ac-41aa-baa5-df61f1c9c9f5
kernel /boot/vmlinuz-2.6.27-9-generic root=UUID=7432da94-78ac-41aa-baa5-df61f1c9c9f5 ro quiet splash
initrd /boot/initrd.img-2.6.27-9-generic
quiet
title Ubuntu 8.10, kernel 2.6.27-9-generic (recovery mode)
uuid 7432da94-78ac-41aa-baa5-df61f1c9c9f5
kernel /boot/vmlinuz-2.6.27-9-generic root=UUID=7432da94-78ac-41aa-baa5-df61f1c9c9f5 ro single
initrd /boot/initrd.img-2.6.27-9-generic
title Ubuntu 8.10, kernel 2.6.27-7-generic
uuid 7432da94-78ac-41aa-baa5-df61f1c9c9f5
kernel /boot/vmlinuz-2.6.27-7-generic root=UUID=7432da94-78ac-41aa-baa5-df61f1c9c9f5 ro quiet splash
initrd /boot/initrd.img-2.6.27-7-generic
quiet
title Ubuntu 8.10, kernel 2.6.27-7-generic (recovery mode)
uuid 7432da94-78ac-41aa-baa5-df61f1c9c9f5
kernel /boot/vmlinuz-2.6.27-7-generic root=UUID=7432da94-78ac-41aa-baa5-df61f1c9c9f5 ro single
initrd /boot/initrd.img-2.6.27-7-generic
title Ubuntu 8.10, memtest86+
uuid 7432da94-78ac-41aa-baa5-df61f1c9c9f5
kernel /boot/memtest86+.bin
quiet
### END DEBIAN AUTOMAGIC KERNELS LIST
Vous n’avez pas trouvé la réponse que vous recherchez ?
Posez votre question
merci pour vos réponses !
vous n'avez pas l'air d'accord, le savedefault je le mets ou pas ?
et je dois rajouter tout ca à la fin du fichier ?
merci
vous n'avez pas l'air d'accord, le savedefault je le mets ou pas ?
et je dois rajouter tout ca à la fin du fichier ?
merci