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 19/05/2007, à 20:15

Havel

(Résolu) Dual boot impossible

Bonjour,

Pardonnez mon ignorance, je débute parmi vous.

J'ai installé ubuntu sur mon ordi a partir du live cd sur un disque interne neuf que je viens d'installer. Sur mon autre disque, j'ai tout ce qui concerne Windows XP.

Je pensais qu'après l'intallation, j'aurais automatiquement le choix d,aller soit sur Xp soit sur Ubuntu. Mais la ce qui se passe c'est que je vais directement sur Ubuntu sans avoir le choix d'aller sur XP. Je signale que quand je regarde dans Ubuntu sur le disque ou se trouve XP tout est la apparemment intact.

Quelqu'un peut m'aider?

Dernière modification par Havel (Le 30/05/2007, à 23:54)

Hors ligne

#2 Le 19/05/2007, à 21:04

Okanda

Re : (Résolu) Dual boot impossible

Salut, quelle version d'Ubuntu?

Il va falloir éditer ton fichier /boot/grub/menu.lst et tout rentrera dans l'ordre.
Poste le ici pour un coup de main plus précis.

Hors ligne

#3 Le 19/05/2007, à 22:54

Pierre Michaud

Re : (Résolu) Dual boot impossible

Je suis Kubuntu 7.04 Feisty Fawn, le plus récent.

#4 Le 19/05/2007, à 22:55

Pierre Michaud

Re : (Résolu) Dual boot impossible

Ubuntu pardons

#5 Le 19/05/2007, à 22:57

Pierre Michaud

Re : (Résolu) Dual boot impossible

Comment je fais pour éditer mon fichier /boot/grub/menu.lst?

#6 Le 19/05/2007, à 23:09

malbo

Re : (Résolu) Dual boot impossible

Tu as compris : c'est seulement le gestionnaire de démarrage GRUB qui est la cause de ton pb. Ton windows ne doit pas être cassé.
J'ai trouvé ça sur le sujet, c'est un peu technique mais c'est bien le même cas que toi
http://forum.ubuntu-fr.org/viewtopic.php?id=120876
Cherche aussi sur le forum

Hors ligne

#7 Le 20/05/2007, à 05:12

Pierre Michaud

Re : (Résolu) Dual boot impossible

# 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=UUID=02986b5b-89f5-41be-ba3a-8a3f1a3a4aec ro

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

## default grub root device
## e.g. groot=(hd0,0)
# groot=(hd1,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 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 ##
Voici le fameux...  /boot/grub/menu.lst     que j'ai fini par trouver.
Que dois-je faire maintenant pour retrouver mon Windows?


title        Ubuntu, kernel 2.6.20-15-generic
root        (hd1,0)
kernel        /boot/vmlinuz-2.6.20-15-generic root=UUID=02986b5b-89f5-41be-ba3a-8a3f1a3a4aec ro quiet splash locale=fr_FR
initrd        /boot/initrd.img-2.6.20-15-generic
quiet
savedefault

title        Ubuntu, kernel 2.6.20-15-generic (recovery mode)
root        (hd1,0)
kernel        /boot/vmlinuz-2.6.20-15-generic root=UUID=02986b5b-89f5-41be-ba3a-8a3f1a3a4aec ro single
initrd        /boot/initrd.img-2.6.20-15-generic

title        Ubuntu, memtest86+
root        (hd1,0)
kernel        /boot/memtest86+.bin
quiet

### END DEBIAN AUTOMAGIC KERNELS LIST

#8 Le 20/05/2007, à 05:15

Pierre Michaud

Re : (Résolu) Dual boot impossible

L'autre était melangé (comme moi)

Qui peut me dire je fais quoi à partir de la pour retrouver mon Windows xp?



# 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=UUID=02986b5b-89f5-41be-ba3a-8a3f1a3a4aec ro

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

## default grub root device
## e.g. groot=(hd0,0)
# groot=(hd1,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 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        Ubuntu, kernel 2.6.20-15-generic
root        (hd1,0)
kernel        /boot/vmlinuz-2.6.20-15-generic root=UUID=02986b5b-89f5-41be-ba3a-8a3f1a3a4aec ro quiet splash locale=fr_FR
initrd        /boot/initrd.img-2.6.20-15-generic
quiet
savedefault

title        Ubuntu, kernel 2.6.20-15-generic (recovery mode)
root        (hd1,0)
kernel        /boot/vmlinuz-2.6.20-15-generic root=UUID=02986b5b-89f5-41be-ba3a-8a3f1a3a4aec ro single
initrd        /boot/initrd.img-2.6.20-15-generic

title        Ubuntu, memtest86+
root        (hd1,0)
kernel        /boot/memtest86+.bin
quiet

### END DEBIAN AUTOMAGIC KERNELS LIST

#9 Le 20/05/2007, à 06:11

Nicorg

Re : (Résolu) Dual boot impossible

Tout est dans la doc du wiki http://doc.ubuntu-fr.org/grub
Ajoute à la suite :

title		Windows NT/2000/XP
root		(hd0,0)
savedefault 
makeactive
chainloader	+1
boot

Hors ligne

#10 Le 20/05/2007, à 12:40

Pierre Michaud

Re : (Résolu) Dual boot impossible

Désolé, il faut vraiment me prendre par la main.

Ce changement je vais ou pour le faire, je le fais comment exactement?

#11 Le 20/05/2007, à 13:12

malbo

Re : (Résolu) Dual boot impossible

Pierre Michaud,
Partons en ballade :
primo tu cliques sur le lien qu'on t'a déjà donné :
http://doc.ubuntu-fr.org/grub
Dans la page qui s'ouvre, moi je vois ce qui correspond à ton cas : je te le recopie ci-dessous
remarque : Pour ouvrir un terminal, depuis le bureau Ubuntu : Applications > Accessoires > Terminal

Windows dans le menu Grub

Pour ajouter Microsoft Windows dans la liste des systèmes d'exploitation pouvant être démarrés qu'affiche Grub, il faut modifier le fichier /boot/grub/menu.lst. Ceci peut être fait, par exemple, graphiquement avec un logiciel d'édition de texte simple, comme gEdit ou KWrite, ou avec un éditeur de texte simple fonctionnant dans un terminal, tel Nano ou vi. Que vous choisissiez l'un ou l'autre de ces logiciels, vous devez le démarrer avec les droits du superutilisateur ; saisissez l'une des commandes suivantes dans un terminal :

    *
      pour Ubuntu : Alt+F2 puis

      gksudo "gedit /boot/grub/menu.lst"

    *
      pour Kubuntu : Alt+F2 puis

      kdesu "kate /boot/grub/menu.lst"

    *
      en console :

      sudo nano /boot/grub/menu.lst

Les lignes à ajouter dépendent de votre cas en particulier où se trouve la partition Windows.
Hypothèses
Windows se trouve sur la 1re partition du 1er disque dur

Ajoutez les lignes suivantes à la fin du fichier :

title		Windows NT/2000/XP
root		(hd0,0)
savedefault 
makeactive
chainloader	+1
boot

Windows se trouve sur la 1re partition du 2e disque dur

Il faut alors virtuellement placer ce disque dur en hd0 sans quoi windows ne peut démarrer. Les lignes à ajouter sont alors :

title		Windows NT/2000/XP
root		(hd1,0)		# la partition a démarrer
makeactive			# cette commande positionne le bit de partition active à 1 (au cas où)
map		(hd0) (hd1)	# hd0 devient hd1
map		(hd1) (hd0)	# hd1 devient hd0 virtuellement
chainloader	+1		# saut au début de la piste suivante car c'est un OS Microsoft(R).

Dernière modification par malbo (Le 20/05/2007, à 13:15)

Hors ligne

#12 Le 20/05/2007, à 13:19

Pierre Michaud

Re : (Résolu) Dual boot impossible

J'ai réussi à entrer le code. Donc au démarrage je fais escape et obtient le choix d'aller vers Ubuntu ou Windows 2000, NT ou XP. Mais en faisant ce choix je suis dirigé vers un outils de diagnostique de l'ordi.

Voici ce que ça donne maintenant:


# 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=UUID=02986b5b-89f5-41be-ba3a-8a3f1a3a4aec ro

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

## default grub root device
## e.g. groot=(hd0,0)
# groot=(hd1,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 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        Ubuntu, kernel 2.6.20-15-generic
root        (hd1,0)
kernel        /boot/vmlinuz-2.6.20-15-generic root=UUID=02986b5b-89f5-41be-ba3a-8a3f1a3a4aec ro quiet splash locale=fr_FR
initrd        /boot/initrd.img-2.6.20-15-generic
quiet
savedefault

title        Ubuntu, kernel 2.6.20-15-generic (recovery mode)
root        (hd1,0)
kernel        /boot/vmlinuz-2.6.20-15-generic root=UUID=02986b5b-89f5-41be-ba3a-8a3f1a3a4aec ro single
initrd        /boot/initrd.img-2.6.20-15-generic

title        Ubuntu, memtest86+
root        (hd1,0)
kernel        /boot/memtest86+.bin
quiet

title        Windows NT/2000/XP
root        (hd0,0)
savedefault
makeactive
chainloader    +1
boot

### END DEBIAN AUTOMAGIC KERNELS LIST

#13 Le 20/05/2007, à 13:21

Pierre Michaud

Re : (Résolu) Dual boot impossible

Je précise que j'ai 2 disques durs et que XP n'est pas sur le même qu'Ubuntu.

#14 Le 20/05/2007, à 13:28

Julius

Re : (Résolu) Dual boot impossible

il faudrait que tu nous copie ce que te retourne la commande suivante :

sudo fdisk -l

Hors ligne

#15 Le 20/05/2007, à 13:28

malbo

Re : (Résolu) Dual boot impossible

Lis très attentivement et mets en pratique ce qui suit
http://doc.ubuntu-fr.org/uuid_et_label

Hors ligne

#16 Le 20/05/2007, à 13:46

Pierre Michaud

Re : (Résolu) Dual boot impossible

Disque /dev/sda: 160.0 Go, 160000000000 octets
255 têtes, 63 secteurs/piste, 19452 cylindres
Unités = cylindres de 16065 * 512 = 8225280 octets

Périphérique Amorce    Début         Fin      Blocs    Id  Système
/dev/sda1               1           8       64228+  de  Dell Utility
/dev/sda2   *           9       18995   152513077+   7  HPFS/NTFS
/dev/sda3           18996       19452     3670852+  db  CP/M / CTOS / ...

Disque /dev/sdb: 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/sdb1   *           1       18701   150215751   83  Linux
/dev/sdb2           18702       19457     6072570    5  Extended
/dev/sdb5           18702       19457     6072538+  82  Linux swap / Solaris

Disque /dev/sdc: 251.0 Go, 251000193024 octets
255 têtes, 63 secteurs/piste, 30515 cylindres
Unités = cylindres de 16065 * 512 = 8225280 octets

Périphérique Amorce    Début         Fin      Blocs    Id  Système
/dev/sdc1   *           1       30515   245111706    7  HPFS/NTFS
pierre@Salon:~$

#17 Le 20/05/2007, à 13:49

Pierre Michaud

Re : (Résolu) Dual boot impossible

malbo a écrit :

Lis très attentivement et mets en pratique ce qui suit
http://doc.ubuntu-fr.org/uuid_et_label

C'est gentil Malbo, mais pour t'expliquer ou j'en suis....je ne comprends au lien que tu m'as proposé

En clair, je voulais plonger dans Ubuntu et faire la transition doucement en continuant à rouler sur mon vieux XP. Mais là l'immersion est un peu rude. L'eau est un peu froide.

#18 Le 20/05/2007, à 13:54

malbo

Re : (Résolu) Dual boot impossible

il faudrait peut-être modifier

title        Windows NT/2000/XP
root        (hd0,0)
savedefault
makeactive
chainloader    +1
boot

en remplaçant (hd0,0) par (hd0,1) qui correspond à la 2ème partition du disque 1

Hors ligne

#19 Le 20/05/2007, à 14:09

pierre Michaud

Re : (Résolu) Dual boot impossible

Eureka!!!!!!!!!!

Malbo, tu me sauves la vie. Je t'écris depuis mon vieux XP. L'eau est beaucoup mon froide. Je vais faire cette transition tout doucement.

Un gros merci! Merci aussi à tous ceux qui ont posté des suggestions.

#20 Le 20/05/2007, à 14:27

malbo

Re : (Résolu) Dual boot impossible

Pour une fois que je sauve quelqu'un. J'y croyais pas beaucoup à ma suggestion.

Dernière modification par malbo (Le 20/05/2007, à 14:32)

Hors ligne

#21 Le 20/05/2007, à 20:36

Okanda

Re : (Résolu) Dual boot impossible

Un petit [résolu] dans le titre pour conclure l'affaire ? smile

Hors ligne