Pages : 1
#1 Le 01/11/2009, à 12:35
- Polkho
Problème avec Grub et windows 7
Bonjour à tous,
Voilà, j'ai installé Ubuntu 9.10 et Kubuntu 9.10. Après l'installation d'Ubuntu je n'ai pas eu de problème lorsque Grub a affiché windows 7. Mais par la suite, après l'install de Kubuntu, Win 7 a disparut !
(J'avais fait, il y a plus d'un an une install de Ubuntu, et je me souviens maintenant pourquoi j'ai abandonné l'affaire : GRUB...:rolleyes:)
Merci pour toute réponse qui me permettra de récupérer Windows 7.
Hors ligne
#2 Le 01/11/2009, à 12:38
- Compte anonymisé
Re : Problème avec Grub et windows 7
Salut
Peux-tu donner le résultat de la commande :
sudo fdisk -l
et lister (en fonction de la version grub installée)
soit /boot/grub/menu.lst
soit /boot/grub/grub.cfg
@+
#3 Le 01/11/2009, à 12:44
- Polkho
Re : Problème avec Grub et windows 7
Bien-sûr :
Disque /dev/sda: 500.1 Go, 500107862016 octets
255 têtes, 63 secteurs/piste, 60801 cylindres
Unités = cylindres de 16065 * 512 = 8225280 octets
Identifiant de disque : 0xc5bd664a
Périphérique Amorce Début Fin Blocs Id Système
/dev/sda1 * 1 9714 78027673+ 83 Linux
/dev/sda2 10200 21005 86799195 83 Linux
/dev/sda3 21006 31947 87889920 7 HPFS/NTFS---->Windows 7
/dev/sda4 31948 60800 231761722+ 7 HPFS/NTFS-----> Fichiers divers
Disque /dev/sdb: 20.0 Go, 20003880960 octets
255 têtes, 63 secteurs/piste, 2432 cylindres
Unités = cylindres de 16065 * 512 = 8225280 octets
Identifiant de disque : 0x120c3041
Périphérique Amorce Début Fin Blocs Id Système
/dev/sdb1 * 1 2431 19526976 c W95 FAT32 (LBA)
/dev/sdb2 2432 2432 8032+ f W95 Etendue (LBA)
/dev/sdb5 2432 2432 8001 83 Linux
Hors ligne
#4 Le 01/11/2009, à 12:59
- Compte anonymisé
Re : Problème avec Grub et windows 7
Et les menu.lst ou grub.cfg ???
sudo gedit /boot/grub/menu.lst ou grub.cfg
#5 Le 01/11/2009, à 13:03
- Polkho
Re : Problème avec Grub et windows 7
Et les menu.lst ou grub.cfg ???
sudo gedit /boot/grub/menu.lst ou grub.cfg
Je l'ai fait mais c'est vide ?!?:(
Hors ligne
#6 Le 01/11/2009, à 13:16
- Polkho
Re : Problème avec Grub et windows 7
Ah désolé je l'ai refait avec succès :
#
# DO NOT EDIT THIS FILE
#
# It is automatically generated by /usr/sbin/grub-mkconfig using templates
# from /etc/grub.d and settings from /etc/default/grub
#
### BEGIN /etc/grub.d/00_header ###
if [ -s /boot/grub/grubenv ]; then
have_grubenv=true
load_env
fi
set default="0"
if [ ${prev_saved_entry} ]; then
saved_entry=${prev_saved_entry}
save_env saved_entry
prev_saved_entry=
save_env prev_saved_entry
fi
insmod ext2
set root=(hd0,2)
search --no-floppy --fs-uuid --set c96aeb9f-23d0-44e2-ad82-d1773ccb76c9
if loadfont /usr/share/grub/unicode.pf2 ; then
set gfxmode=640x480
insmod gfxterm
insmod vbe
if terminal_output gfxterm ; then true ; else
# For backward compatibility with versions of terminal.mod that don't
# understand terminal_output
terminal gfxterm
fi
fi
if [ ${recordfail} = 1 ]; then
set timeout=-1
else
set timeout=10
fi
### END /etc/grub.d/00_header ###
### BEGIN /etc/grub.d/05_debian_theme ###
set menu_color_normal=white/black
set menu_color_highlight=black/white
### END /etc/grub.d/05_debian_theme ###
### BEGIN /etc/grub.d/10_linux ###
menuentry "Ubuntu, Linux 2.6.31-14-generic-pae" {
recordfail=1
if [ -n ${have_grubenv} ]; then save_env recordfail; fi
set quiet=1
insmod ext2
set root=(hd0,2)
search --no-floppy --fs-uuid --set c96aeb9f-23d0-44e2-ad82-d1773ccb76c9
linux /boot/vmlinuz-2.6.31-14-generic-pae root=UUID=c96aeb9f-23d0-44e2-ad82-d1773ccb76c9 ro quiet splash
initrd /boot/initrd.img-2.6.31-14-generic-pae
}
menuentry "Ubuntu, Linux 2.6.31-14-generic-pae (recovery mode)" {
recordfail=1
if [ -n ${have_grubenv} ]; then save_env recordfail; fi
insmod ext2
set root=(hd0,2)
search --no-floppy --fs-uuid --set c96aeb9f-23d0-44e2-ad82-d1773ccb76c9
linux /boot/vmlinuz-2.6.31-14-generic-pae root=UUID=c96aeb9f-23d0-44e2-ad82-d1773ccb76c9 ro single
initrd /boot/initrd.img-2.6.31-14-generic-pae
}
### END /etc/grub.d/10_linux ###
### BEGIN /etc/grub.d/20_memtest86+ ###
menuentry "Memory test (memtest86+)" {
linux16 /boot/memtest86+.bin
}
menuentry "Memory test (memtest86+, serial console 115200)" {
linux16 /boot/memtest86+.bin console=ttyS0,115200n8
}
### END /etc/grub.d/20_memtest86+ ###
### BEGIN /etc/grub.d/30_os-prober ###
menuentry "Windows 7 (loader) (on /dev/sda1)" {
insmod ntfs
set root=(hd0,1)
search --no-floppy --fs-uuid --set e6dc6e28dc6df36b
chainloader +1
}
### END /etc/grub.d/30_os-prober ###
### BEGIN /etc/grub.d/40_custom ###
# This file provides an easy way to add custom menu entries. Simply type the
# menu entries you want to add after this comment. Be careful not to change
# the 'exec tail' line above.
### END /etc/grub.d/40_custom ###
Hors ligne
#7 Le 01/11/2009, à 13:31
- Polkho
Re : Problème avec Grub et windows 7
up
Hors ligne
#8 Le 01/11/2009, à 13:44
- Polkho
Re : Problème avec Grub et windows 7
jeanjd63 où c'est que t'es ?:|
Hors ligne
#9 Le 01/11/2009, à 14:09
- Polkho
Re : Problème avec Grub et windows 7
Dois-je supprimer les 2 distrib linux, ubuntu & kubuntu et réinstaller Windows 7.
Je voulais essayer, et, peut-être, dompter linux et laisser tomber mon Windows 7 betâ. Cependant je crois que je vais faire le contraire; acheter Windows 7, l'installer et supprimer linux qui me pose problème.
J'attends pour voir si quelqu'un n'a pas une solution, dans le cas contraire lundi j'irais à la FNAC pour acquérir Seven.
Merci pour toute réponse.:)
Hors ligne
#10 Le 01/11/2009, à 14:55
- Compte anonymisé
Re : Problème avec Grub et windows 7
Salut
Le menu.cfg que tu montres a bien une référence à W7, mais est-ce celui qui est pris en compte ?
Par contre pourrais-tu détailler tes installs Ubuntu et Kubuntu (les partitions utilisées)
@+
#11 Le 01/11/2009, à 15:03
- Polkho
Re : Problème avec Grub et windows 7
Salut
Le menu.cfg que tu montres a bien une référence à W7, mais est-ce celui qui est pris en compte ?
Par contre pourrais-tu détailler tes installs Ubuntu et Kubuntu (les partitions utilisées)
@+
sda 3 windows 7 ??
C'est ça que tu cherches ?
/dev/sda3 21006 31947 87889920 7 HPFS/NTFS---->Windows 7
/dev/sda4 31948 60800 231761722+ 7 HPFS/NTFS-----> Fichiers divers
Hors ligne
#12 Le 01/11/2009, à 15:06
- Polkho
Re : Problème avec Grub et windows 7
Le "sudo gedit /boot/grub/menu.lst ou grub.cfg" ne marche pas sous Kubuntu, il me dit gedit command no found ???:|
Hors ligne
#13 Le 01/11/2009, à 15:14
- Compte anonymisé
Re : Problème avec Grub et windows 7
sudo kedit
J'ai bien vu le résultat de fdisk
Je voulais connaitre où étaient les / ubuntu et kubuntu ainsi que les éventuels /home.
Car d'après le menu W7 était sur /dev/sda1 qui est devenu ext3 donc linux ??
#14 Le 01/11/2009, à 15:18
- Polkho
Re : Problème avec Grub et windows 7
sudo kedit
J'ai bien vu le résultat de fdisk
Je voulais connaitre où étaient les / ubuntu et kubuntu ainsi que les éventuels /home.Car d'après le menu W7 était sur /dev/sda1 qui est devenu ext3 donc linux ??
Heu...ouais...
En fait je n'ai pas installé sur "/home" mais les 2 sur "/":rolleyes:
"kedit: command not found
"
Dernière modification par Polkho (Le 01/11/2009, à 15:20)
Hors ligne
#15 Le 01/11/2009, à 15:30
- Compte anonymisé
Re : Problème avec Grub et windows 7
Pardon
sudo kate ......
#16 Le 01/11/2009, à 15:36
- Polkho
Re : Problème avec Grub et windows 7
#
# DO NOT EDIT THIS FILE
#
# It is automatically generated by /usr/sbin/grub-mkconfig using templates
# from /etc/grub.d and settings from /etc/default/grub
#
### BEGIN /etc/grub.d/00_header ###
if [ -s /boot/grub/grubenv ]; then
have_grubenv=true
load_env
fi
set default="0"
if [ ${prev_saved_entry} ]; then
saved_entry=${prev_saved_entry}
save_env saved_entry
prev_saved_entry=
save_env prev_saved_entry
fi
insmod ext2
set root=(hd0,1)
search --no-floppy --fs-uuid --set b30c7a35-f2cb-470d-8fc4-2af57d9b1af5
if loadfont /usr/share/grub/unicode.pf2 ; then
set gfxmode=640x480
insmod gfxterm
insmod vbe
if terminal_output gfxterm ; then true ; else
# For backward compatibility with versions of terminal.mod that don't
# understand terminal_output
terminal gfxterm
fi
fi
if [ ${recordfail} = 1 ]; then
set timeout=-1
else
set timeout=10
fi
### END /etc/grub.d/00_header ###
### BEGIN /etc/grub.d/05_debian_theme ###
set menu_color_normal=white/black
set menu_color_highlight=black/white
### END /etc/grub.d/05_debian_theme ###
### BEGIN /etc/grub.d/10_linux ###
menuentry "Ubuntu, Linux 2.6.31-14-generic-pae" {
recordfail=1
if [ -n ${have_grubenv} ]; then save_env recordfail; fi
set quiet=1
insmod ext2
set root=(hd0,1)
search --no-floppy --fs-uuid --set b30c7a35-f2cb-470d-8fc4-2af57d9b1af5
linux /boot/vmlinuz-2.6.31-14-generic-pae root=UUID=b30c7a35-f2cb-470d-8fc4-2af57d9b1af5 ro quiet splash
initrd /boot/initrd.img-2.6.31-14-generic-pae
}
menuentry "Ubuntu, Linux 2.6.31-14-generic-pae (recovery mode)" {
recordfail=1
if [ -n ${have_grubenv} ]; then save_env recordfail; fi
insmod ext2
set root=(hd0,1)
search --no-floppy --fs-uuid --set b30c7a35-f2cb-470d-8fc4-2af57d9b1af5
linux /boot/vmlinuz-2.6.31-14-generic-pae root=UUID=b30c7a35-f2cb-470d-8fc4-2af57d9b1af5 ro single
initrd /boot/initrd.img-2.6.31-14-generic-pae
}
### END /etc/grub.d/10_linux ###
### BEGIN /etc/grub.d/20_memtest86+ ###
menuentry "Memory test (memtest86+)" {
linux16 /boot/memtest86+.bin
}
menuentry "Memory test (memtest86+, serial console 115200)" {
linux16 /boot/memtest86+.bin console=ttyS0,115200n8
}
### END /etc/grub.d/20_memtest86+ ###
### BEGIN /etc/grub.d/30_os-prober ###
menuentry "Ubuntu, Linux 2.6.31-14-generic-pae (on /dev/sda2)" {
insmod ext2
set root=(hd0,2)
search --no-floppy --fs-uuid --set c96aeb9f-23d0-44e2-ad82-d1773ccb76c9
linux /boot/vmlinuz-2.6.31-14-generic-pae root=UUID=c96aeb9f-23d0-44e2-ad82-d1773ccb76c9 ro quiet splash
initrd /boot/initrd.img-2.6.31-14-generic-pae
}
menuentry "Ubuntu, Linux 2.6.31-14-generic-pae (recovery mode) (on /dev/sda2)" {
insmod ext2
set root=(hd0,2)
search --no-floppy --fs-uuid --set c96aeb9f-23d0-44e2-ad82-d1773ccb76c9
linux /boot/vmlinuz-2.6.31-14-generic-pae root=UUID=c96aeb9f-23d0-44e2-ad82-d1773ccb76c9 ro single
initrd /boot/initrd.img-2.6.31-14-generic-pae
}
### END /etc/grub.d/30_os-prober ###
### BEGIN /etc/grub.d/40_custom ###
# This file provides an easy way to add custom menu entries. Simply type the
# menu entries you want to add after this comment. Be careful not to change
# the 'exec tail' line above.
### END /etc/grub.d/40_custom ###
J'ai installé Kubuntu après ubuntu. Le grub de Kubuntu a effacé le démarrage de Windows 7.
Dernière modification par Polkho (Le 01/11/2009, à 15:38)
Hors ligne
#17 Le 01/11/2009, à 15:43
- Compte anonymisé
Re : Problème avec Grub et windows 7
Avec ce que tu listes j'en conclue que tu avais W7 sur /dev/sda1 (voir le grub.cfg d'ubuntu) :
### BEGIN /etc/grub.d/30_os-prober ###
menuentry "Windows 7 (loader) (on /dev/sda1)" {
insmod ntfs
set root=(hd0,1)
search --no-floppy --fs-uuid --set e6dc6e28dc6df36b
chainloader +1
}
### END /etc/grub.d/30_os-prober ###
Et lors de l'install de kubuntu tu as écrasé ton install W7. Dans le grub.cfg de kubuntu :
### BEGIN /etc/grub.d/10_linux ###
menuentry "Ubuntu, Linux 2.6.31-14-generic-pae" {
recordfail=1
if [ -n ${have_grubenv} ]; then save_env recordfail; fi
set quiet=1
insmod ext2
set root=(hd0,1)
search --no-floppy --fs-uuid --set b30c7a35-f2cb-470d-8fc4-2af57d9b1af5
linux /boot/vmlinuz-2.6.31-14-generic-pae root=UUID=b30c7a35-f2cb-470d-8fc4-2af57d9b1af5 ro quiet splash
initrd /boot/initrd.img-2.6.31-14-generic-pae
}
Voilà
Pour être sûr qu'il n'y a pas mélange de disques tu peux donner le résultat de la commande :
sudo ls -l /dev/disk/by-uuid/
Dernière modification par Compte anonymisé (Le 01/11/2009, à 15:44)
#18 Le 01/11/2009, à 15:49
- Polkho
Re : Problème avec Grub et windows 7
paul@Cyberpaul:~$ sudo ls -l /dev/disk/by-uuid/
total 0
lrwxrwxrwx 1 root root 10 2009-11-01 14:28 0d791d08-2491-11d9-97c0-e9deca488197 -> ../../sdb5
lrwxrwxrwx 1 root root 10 2009-11-01 15:28 186419CF6419B08C -> ../../sda4
lrwxrwxrwx 1 root root 10 2009-11-01 14:28 78E5-F77C -> ../../sdb1
lrwxrwxrwx 1 root root 10 2009-11-01 15:28 b30c7a35-f2cb-470d-8fc4-2af57d9b1af5 -> ../../sda1
lrwxrwxrwx 1 root root 10 2009-11-01 15:28 c96aeb9f-23d0-44e2-ad82-d1773ccb76c9 -> ../../sda2
lrwxrwxrwx 1 root root 10 2009-11-01 15:28 CC9A337E9A33645C -> ../../sda3
paul@Cyberpaul:~$
Ça veut dire quoi ?:|
Dernière modification par Polkho (Le 01/11/2009, à 15:52)
Hors ligne
#19 Le 01/11/2009, à 16:02
- Compte anonymisé
Re : Problème avec Grub et windows 7
C'est bien ce que je pensais :
l'uuid (Universal Unique Identifier) qui permet d'identifier de façon unique chaque disque, était : e6dc6e28dc6df36b pour W7 (voir le premier grub.cfg)
Et il n'existe plus dans la liste. En installant kubuntu, tu as du l'écraser
A mon avis il ne te reste plus qu'à réinstaller W7.
@+
Dernière modification par Compte anonymisé (Le 01/11/2009, à 16:03)
#21 Le 01/11/2009, à 16:11
- Polkho
Re : Problème avec Grub et windows 7
C'est bien ce que je pensais :
l'uuid (Universal Unique Identifier) qui permet d'identifier de façon unique chaque disque, était : e6dc6e28dc6df36b pour W7 (voir le premier grub.cfg)Et il n'existe plus dans la liste. En installant kubuntu, tu as du l'écraser
A mon avis il ne te reste plus qu'à réinstaller W7.
@+
Bien merci.
Je vais voir ce que peux récupérer.
Merci encore.
@+
Hors ligne
#22 Le 01/11/2009, à 16:14
- Compte anonymisé
Re : Problème avec Grub et windows 7
Tu peux essayer de réparer W7 mais bon ??
#23 Le 01/11/2009, à 16:24
- Polkho
Re : Problème avec Grub et windows 7
Je vais faire l'acquisition de win7 et je laisse tomber linux, ça me cause plus de problèmes que ça en résous.:/
Merci encore.
Adios.
Hors ligne
#24 Le 01/11/2009, à 16:35
- nandayo
Re : Problème avec Grub et windows 7
Je vais faire l'acquisition de win7 et je laisse tomber linux, ça me cause plus de problèmes que ça en résous.:/
Tain sans déconner on reve, c'est toi qui fait une erreur en écransant windows et t'en déduis que linux cause des problèmes et hop, "je retourne sous windows", faut pas déconner quand meme...
Dernière modification par nandayo (Le 01/11/2009, à 17:01)
Plus de feedback dans le brainstorm et plus facilement ? --> http://brainstorm.ubuntu.com/idea/18056/
Hors ligne
#25 Le 01/11/2009, à 16:57
- paglop
Re : Problème avec Grub et windows 7
m'enfin
...
tu peux aussi virer Win7 et mettre qu'ubuntu si tu as du mal à les faire coexister...
Pages : 1