#1 Le 15/12/2007, à 12:24
- martinez
dual boot ubuntu et windows xp.[problème résolu].
Bonjour,j'ai installer ubuntu sur mon pc sur lequel windows été déjà installé.mais le dual boot ne marche pas,mon pc démarre systhèmatiquement sur ubuntu sans me donner le choix au démarrage de quel os je veux démarrer.pouvez vous m'expliquer quel betise j'ai fait et si c'est possible de réparrer?
martinez@martinez-desktop:~$ sudo fdisk -l
Password:
Disque /dev/sda: 82.3 Go, 82348277760 octets
255 têtes, 63 secteurs/piste, 10011 cylindres
Unités = cylindres de 16065 * 512 = 8225280 octets
Périphérique Amorce Début Fin Blocs Id Système
/dev/sda1 1 5998 48178903+ f W95 Etendu (LBA)
/dev/sda2 * 5999 7214 9767520 83 Linux
/dev/sda3 7215 7336 979965 82 Linux swap / Solaris
/dev/sda4 7337 10011 21486937+ 83 Linux
/dev/sda5 262 5998 46082421 b W95 FAT32
/dev/sda6 1 261 2096388 b W95 FAT32
Les entrées de la table de partitions ne sont pas dans l'ordre du disque
martinez@martinez-desktop:~$
Dernière modification par martinez (Le 27/12/2007, à 13:37)
Hors ligne
#2 Le 15/12/2007, à 12:47
- oliken
Re : dual boot ubuntu et windows xp.[problème résolu].
que te renvoi cette commande
sudo gedit /boot/grub/menu.lst
Hors ligne
#3 Le 15/12/2007, à 12:51
- denis_aec
Re : dual boot ubuntu et windows xp.[problème résolu].
As-tu seulement encore un xp ?
Si win a été installé en premier, il se serait mis en sda1 ... partition en fat ou ntfs, mais primaire et pas en étendue ...
Ensuite win démarre normalement sur une partition active (le "*" de sda2) qui ne peut être au format linux ...
Bref, j'ai des doutes ! Peux-tu voir sous Nautilus ce que contiennent sda5 et sda6 ? (partitions logiques contenues dans sda1) ?
Et donne nous le résultat de :
cat /etc/fstab
cat /boot/grub/menu.lst
Hors ligne
#4 Le 15/12/2007, à 12:58
- martinez
Re : dual boot ubuntu et windows xp.[problème résolu].
bonjour, la commande me donne ceci:# 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=6bf9f91b-89b6-4586-abee-541b4350d2cd 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 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-16-generic
root (hd0,1)
kernel /boot/vmlinuz-2.6.20-16-generic root=UUID=6bf9f91b-89b6-4586-abee-541b4350d2cd ro quiet splash locale=fr_FR
initrd /boot/initrd.img-2.6.20-16-generic
quiet
savedefault
title Ubuntu, kernel 2.6.20-16-generic (recovery mode)
root (hd0,1)
kernel /boot/vmlinuz-2.6.20-16-generic root=UUID=6bf9f91b-89b6-4586-abee-541b4350d2cd ro single
initrd /boot/initrd.img-2.6.20-16-generic
title Ubuntu, kernel 2.6.20-15-generic
root (hd0,1)
kernel /boot/vmlinuz-2.6.20-15-generic root=UUID=6bf9f91b-89b6-4586-abee-541b4350d2cd 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 (hd0,1)
kernel /boot/vmlinuz-2.6.20-15-generic root=UUID=6bf9f91b-89b6-4586-abee-541b4350d2cd 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
Hors ligne
#5 Le 15/12/2007, à 13:07
- denis_aec
Re : dual boot ubuntu et windows xp.[problème résolu].
A la fin du fichier, ajoutes les lignes :
### END DEBIAN AUTOMAGIC KERNELS LIST
# This is a divider, added to separate the menu items below from the Debian
# ones.
title Autre systeme:
root
# This entry automatically added by the Debian installer for a non-linux OS
# on /dev/hda1
title Windows XP
root (hd0,4)
savedefault
makeactive
chainloader +1
Et reboote. Et dis nous si ça marche.
Modifie aussi ton post précédent pour mettre le contenu du fichier entre balises Code Ou Quote (boutons au-dessus de la zone de réponse), ça sera plus lisible !
Hors ligne
#6 Le 15/12/2007, à 13:44
- martinez
Re : dual boot ubuntu et windows xp.[problème résolu].
re bonjour et merci pour les réponces,bon aprés la manip sa va un petit peu mieu:
c'est a dire au démarrage maintenant grub me donne le choix
le tableau de grub resemble a ceci :
Ubuntu,kernel 2.3.20-16-generic
Ubuntu,kernel 2.3.20-16-generic (recovery mode)
Ubuntu,kernel 2.3.20-15-generic
Ubuntu,kernel 2.3.20-15-generic (recovery mode)
Ubuntu ,memtest 86
Autre système:
Windows XP
mais quand je sélectionne windows xp cela me donne :
Error 12 : invalid device requested
Press any key to continu.
Hors ligne
#7 Le 15/12/2007, à 13:57
- safinaz
Re : dual boot ubuntu et windows xp.[problème résolu].
XP sur une partition logique,
je pense que tes chances sont faibles pour
lancer 20-d0ze
#8 Le 21/12/2007, à 16:09
- martinez
Re : dual boot ubuntu et windows xp.[problème résolu].
bonjours ,la commande cat /etc/fstab me donne ceci:
martinez@martinez-desktop:~$ cat /etc/fstab
# /etc/fstab: static file system information.
#
# <file system> <mount point> <type> <options> <dump> <pass>
proc /proc proc defaults 0 0
# /dev/sda2
UUID=6bf9f91b-89b6-4586-abee-541b4350d2cd / ext3 defaults,error
s=remount-ro 0 1
# /dev/sda6
UUID=3E2A-0AA2 /dos vfat defaults,utf8,umask=007,gid=46 0 1
# /dev/sda4
UUID=7f717e11-843d-4432-b82f-5b7d362110a0 /home ext3 defaults
0 2
# /dev/sda5
UUID=0DEF-1139 /windows vfat defaults,utf8,umask=007,gid=46 0 1
# /dev/sda3
UUID=ec3eac62-b771-4031-a38f-aae1473bee2a none swap sw
0 0
/dev/scd1 /media/cdrom0 udf,iso9660 user,noauto 0 0
/dev/scd0 /media/cdrom1 udf,iso9660 user,noauto 0 0
/dev/fd0 /media/floppy0 auto rw,user,noauto 0 0
martinez@martinez-desktop:~$
et la commande
cat /boot/grub/menu.lst
me donne ceci:
martinez@martinez-desktop:~$ 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=UUID=6bf9f91b-89b6-4586-abee-541b4350d2cd 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 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-16-generic
root (hd0,1)
kernel /boot/vmlinuz-2.6.20-16-generic root=UUID=6bf9f91b-89b6-4586-abee-541b4350d2cd ro quiet splash locale=fr_FR
initrd /boot/initrd.img-2.6.20-16-generic
quiet
savedefault
title Ubuntu, kernel 2.6.20-16-generic (recovery mode)
root (hd0,1)
kernel /boot/vmlinuz-2.6.20-16-generic root=UUID=6bf9f91b-89b6-4586-abee-541b4350d2cd ro single
initrd /boot/initrd.img-2.6.20-16-generic
title Ubuntu, kernel 2.6.20-15-generic
root (hd0,1)
kernel /boot/vmlinuz-2.6.20-15-generic root=UUID=6bf9f91b-89b6-4586-abee-541b4350d2cd 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 (hd0,1)
kernel /boot/vmlinuz-2.6.20-15-generic root=UUID=6bf9f91b-89b6-4586-abee-541b4350d2cd 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 Autre systeme:
root
# This entry automatically added by the Debian installer for a non-linux OS
# on /dev/hda1
title Windows XP
root (hd0,4)
savedefault
makeactive
chainloader +1
martinez@martinez-desktop:~$
peut etre a plus.
Hors ligne
#9 Le 21/12/2007, à 16:16
- oliken
Re : dual boot ubuntu et windows xp.[problème résolu].
pourtant ton menu.lst pointe corectemement vers sda5 (1er disque 5 eme partition...)
met déjà tes <pass> vfat a 0 au lieu de 1:
# /dev/sda6
UUID=3E2A-0AA2 /dos vfat defaults,utf8,umask=007,gid=46 0 0
# /dev/sda5
UUID=0DEF-1139 /windows vfat defaults,utf8,umask=007,gid=46 0 0
cela ne reparera pas ton pb mais bon
Dernière modification par oliken (Le 21/12/2007, à 16:18)
Hors ligne
#10 Le 21/12/2007, à 16:40
- martinez
Re : dual boot ubuntu et windows xp.[problème résolu].
merci pour les réponces rapides , cela me répond:
bash: /windows : est un répertoire
martinez@martinez-desktop:~$
martinez@martinez-desktop:~$ # /dev/sda6
martinez@martinez-desktop:~$ UUID=3E2A-0AA2 /dos vfat defaults,ut
f8,umask=007,gid=46 0 0
bash: /dos : est un répertoire
martinez@martinez-desktop:~$ # /dev/sda5
martinez@martinez-desktop:~$ UUID=0DEF-1139 /windows vfat defaults,ut
f8,umask=007,gid=46 0 0
bash: /windows : est un répertoire
martinez@martinez-desktop:~$
?? :]
Hors ligne
#11 Le 21/12/2007, à 17:04
- oliken
Re : dual boot ubuntu et windows xp.[problème résolu].
je te disait de les modifier dans ton fstab directement
Hors ligne
#12 Le 21/12/2007, à 17:19
- martinez
Re : dual boot ubuntu et windows xp.[problème résolu].
désolé je sais pas faire:
Hors ligne
#13 Le 21/12/2007, à 17:20
- oliken
Re : dual boot ubuntu et windows xp.[problème résolu].
ouvre un teminal tape:
sudo gedit /etc/fstab
cela t'ouvrira ton fichier tu modifie et tu enregistre avant de sortir.
Hors ligne
#14 Le 21/12/2007, à 18:06
- martinez
Re : dual boot ubuntu et windows xp.[problème résolu].
rebonjour,
voila j'ai fais la modif ,en effet sa ne résout pas mon problème
voila la modif:
martinez@martinez-desktop:~$ cat /etc/fstab
# /etc/fstab: static file system information.
#
# <file system> <mount point> <type> <options> <dump> <pass>
proc /proc proc defaults 0 0
# /dev/sda2
UUID=6bf9f91b-89b6-4586-abee-541b4350d2cd / ext3 defaults,error
s=remount-ro 0 1
# /dev/sda6
UUID=3E2A-0AA2 /dos vfat defaults,utf8,umask=007,gid=46 0 0
# /dev/sda4
UUID=7f717e11-843d-4432-b82f-5b7d362110a0 /home ext3 defaults
0 2
# /dev/sda5
UUID=0DEF-1139 /windows vfat defaults,utf8,umask=007,gid=46 0 0
# /dev/sda3
UUID=ec3eac62-b771-4031-a38f-aae1473bee2a none swap sw
0 0
/dev/scd1 /media/cdrom0 udf,iso9660 user,noauto 0 0
/dev/scd0 /media/cdrom1 udf,iso9660 user,noauto 0 0
/dev/fd0 /media/floppy0 auto rw,user,noauto 0 0
martinez@martinez-desktop:~$
en fait mon erreur vient du fait que a l'installation d'ubuntu (qui etait ma premiere install)
j'ai fait une bétise de débutant c'est a dire j'ai mis windows sur un /windows au lieu de le mettre sur un /media .Enfin je crois.Mais merci quand même pour l'entraide.
je ferais attention la prochaine fois.a plus.
Hors ligne
#15 Le 21/12/2007, à 18:30
- oliken
Re : dual boot ubuntu et windows xp.[problème résolu].
/windows et /media ne sont que les répertoires de montage cible...
on peux très bien changer ton point de montage ou tu veux cela ne changera pas le probleme.
Tu as quel windows pour etre formaté en vfat?
Hors ligne
#16 Le 21/12/2007, à 18:52
- martinez
Re : dual boot ubuntu et windows xp.[problème résolu].
c'est a dir j'ai win xp pro mais au départ j'avais win 98.
Hors ligne
#17 Le 21/12/2007, à 18:58
- oliken
Re : dual boot ubuntu et windows xp.[problème résolu].
là c'est donc un windows 98 sur sda5?
Hors ligne
#18 Le 21/12/2007, à 19:03
- martinez
Re : dual boot ubuntu et windows xp.[problème résolu].
Non c'est un win xp.
Hors ligne
#19 Le 21/12/2007, à 19:05
- oliken
Re : dual boot ubuntu et windows xp.[problème résolu].
XPpro en fat32 sur une partition logique...:rolleyes:
je sais pas si on va pouvoir faire des miracles là ...
Hors ligne
#20 Le 21/12/2007, à 19:14
- martinez
Re : dual boot ubuntu et windows xp.[problème résolu].
c'est pas grave je prefere ubuntu et en plus j'ai un deuxieme pc sur xp alors
c'est pas la peine de se casser la tête .Merci quand même.
Hors ligne
#21 Le 24/12/2007, à 10:08
- martinez
Re : dual boot ubuntu et windows xp.[problème résolu].
Bonjour,sa y est j'ai tout formater et repartitionner avec gparted du livecd de knoppix
et maintenant j'obtient ceci a la commande fdisk:
martinez@martinez-desktop:~$ sudo fdisk -l
[sudo] password for martinez:
Disque /dev/sda: 82.3 Go, 82348277760 octets
255 heads, 63 sectors/track, 10011 cylinders
Units = cylindres of 16065 * 512 = 8225280 bytes
Disk identifier: 0x15981597
Périphérique Amorce Début Fin Blocs Id Système
/dev/sda1 1 2936 23583388+ b W95 FAT32
/dev/sda2 * 2937 5975 24410767+ 83 Linux
/dev/sda3 5976 10011 32419170 5 Extended
/dev/sda5 5976 6097 979933+ 82 Linux swap / Solaris
/dev/sda6 6098 10011 31439173+ 83 Linux
martinez@martinez-desktop:~$
sa devrais marcher mieux maintenant.non?
Hors ligne
#22 Le 24/12/2007, à 11:25
- martinez
Re : dual boot ubuntu et windows xp.[problème résolu].
Bonjour,
Quand j'ai repartionner mon disque dur (model ide ata) avec le programe qtparted du livecd
de knoppix,et que j'ai voulu formater une partition primaire en ntsf pour la partition windows,
le champs et devenu tout rouge alors que quand je le formate en fat32 le champs devient
vert.Du coup j'ai laissé en fat32.Est-ce que cela veut dire que le formatage en ntsf ne marche
pas sur ce model de disque dur ou est-ce que ça aurrait marcher quand même?
Hors ligne
#23 Le 24/12/2007, à 11:29
- safinaz
Re : dual boot ubuntu et windows xp.[problème résolu].
laisse en fat32 pour l'instant,
lors de l'installation de windows, il demandera si tu veux reformater
la partition, tu dis oui et tu choisis ntfs
#24 Le 24/12/2007, à 11:34
- martinez
Re : dual boot ubuntu et windows xp.[problème résolu].
ok merci pour l'info, a plus.
Hors ligne
#25 Le 24/12/2007, à 13:42
- martinez
Re : dual boot ubuntu et windows xp.[problème résolu].
Bonjour,
Je souhaite un joyeux Noel à tous ceux qui mon répondu et aux autres aussi ,
Grosses bises . Et bonnes fétes à la communauté d'ubuntu.
Hors ligne