Grub detecte ubuntu mais pas windows 7 !
Résoludaddycork -
Grub detecte Ubuntu , mais il ne détecte pas windows 7 , quand je vais sur sur le menu regarder .
http://image.noelshack.com/fichiers/2011/21/1306618007-img_0258-0477f3de31.jpg
Je ne sais vraiment pas quoi faire pour ajouter seven ,
Voila merci
- Grub detecte ubuntu mais pas windows 7 !
- Clé windows 7 - Guide
- Photofiltre 7 - Télécharger - Retouche d'image
- Clé usb non détecté windows 7 - Guide
- Montage video windows - Guide
- Passer de windows 7 à windows 10 - Accueil - Mise à jour
11 réponses
Le problème est que GRUB détecte Ubuntu mais ne voit pas Windows 7 au menu de démarrage, laissant le système Windows inaccessible après l'installation d'Ubuntu. Plusieurs solutions consistent à lancer os-prober puis update-grub, et, si nécessaire, créer manuellement une entrée Windows dans /etc/grub.d/40_custom suivie d'un update-grub pour que GRUB propose Windows. Si os-prober ne voit pas Windows, il faut vérifier les partitions et le fichier grub.cfg, ou envisager que Windows ait été écrasé lors de l'installation et nécessite réparation ou récupération. En cas d'écrasement, des options existent comme récupérer les données ou réinstaller Windows, mais la priorité reste la sauvegarde des données et la vérification des partitions.
Les commandes sont à taper dans un terminal (Applications -> Accessoires -> Terminal).
1ère méthode :
sudo os-prober
sudo update-grub
Si sudo os-prober n'affiche pas d'entrée de Windows 7, 2ème méthode :
sudo gedit /etc/grub.d/40_custom
Tu rentres ton mot de passe
Tu tombes sur un fichier comme ceci :
#!/bin/sh
exec tail -n +3 $0
# 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.
### BEGIN /etc/grub.d/30_os-prober ###
### END /etc/grub.d/30_os-prober ###
Et entre ça :
### BEGIN /etc/grub.d/30_os-prober ###
et ça :
### END /etc/grub.d/30_os-prober ###
Tu tapes ceci :
menuentry "Windows 7" {
set root=(hd0,3)
chainloader +1
}
Tu auras donc au final ceci :
### BEGIN /etc/grub.d/30_os-prober ###
menuentry "Windows 7" {
set root=(hd0,3)
chainloader +1
}
### END /etc/grub.d/30_os-prober ###
Tu enregistres et tu fermes le fichier.
Tu retournes sur ton terminal et tu tapes :
sudo update-grub
Ça n'affichera peut-être pas l'entrée dans le terminal, mais tu auras l'entrée dans le grub en redémarrant.
J'ai toujours fait comme ça sur mon PC aussi, il ne trouvait jamais mon entrée Windows 7 en faisant sudo os-prober ou même sudo update-grub alors fallait trouver une parade et ça a fonctionné.
/boot/grub/grub.cfg
Vers la fin de ce fichier regarde si il a une section ou l'on parle de Windows
#
# DO NOT EDIT THIS FILE
#
# It is automatically generated by grub-mkconfig using templates
# from /etc/grub.d and settings from /etc/default/grub
#
### BEGIN /etc/grub.d/00_header ###
if [ -s $prefix/grubenv ]; then
set have_grubenv=true
load_env
fi
set default="0"
if [ "${prev_saved_entry}" ]; then
set saved_entry="${prev_saved_entry}"
save_env saved_entry
set prev_saved_entry=
save_env prev_saved_entry
set boot_once=true
fi
function savedefault {
if [ -z "${boot_once}" ]; then
saved_entry="${chosen}"
save_env saved_entry
fi
}
function recordfail {
set recordfail=1
if [ -n "${have_grubenv}" ]; then if [ -z "${boot_once}" ]; then save_env recordfail; fi; fi
}
function load_video {
insmod vbe
insmod vga
insmod video_bochs
insmod video_cirrus
}
insmod part_msdos
insmod ext2
set root='(/dev/sda,msdos1)'
search --no-floppy --fs-uuid --set=root 12949d04-b336-43d1-b002-d3839bb03426
if loadfont /usr/share/grub/unicode.pf2 ; then
set gfxmode=auto
load_video
insmod gfxterm
fi
terminal_output gfxterm
insmod part_msdos
insmod ext2
set root='(/dev/sda,msdos1)'
search --no-floppy --fs-uuid --set=root 12949d04-b336-43d1-b002-d3839bb03426
set locale_dir=($root)/boot/grub/locale
set lang=fr_FR
insmod gettext
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/light-gray
if background_color 44,0,30; then
clear
fi
### END /etc/grub.d/05_debian_theme ###
### BEGIN /etc/grub.d/10_linux ###
if [ ${recordfail} != 1 ]; then
if [ -e ${prefix}/gfxblacklist.txt ]; then
if hwmatch ${prefix}/gfxblacklist.txt 3; then
if [ ${match} = 0 ]; then
set linux_gfx_mode=keep
else
set linux_gfx_mode=text
fi
else
set linux_gfx_mode=text
fi
else
set linux_gfx_mode=keep
fi
else
set linux_gfx_mode=text
fi
export linux_gfx_mode
if [ "$linux_gfx_mode" != "text" ]; then load_video; fi
menuentry 'Ubuntu, avec Linux 2.6.38-8-generic' --class ubuntu --class gnu-linux --class gnu --class os {
recordfail
set gfxpayload=$linux_gfx_mode
insmod part_msdos
insmod ext2
set root='(/dev/sda,msdos1)'
search --no-floppy --fs-uuid --set=root 12949d04-b336-43d1-b002-d3839bb03426
linux /boot/vmlinuz-2.6.38-8-generic root=UUID=12949d04-b336-43d1-b002-d3839bb03426 ro quiet splash vt.handoff=7
initrd /boot/initrd.img-2.6.38-8-generic
}
menuentry 'Ubuntu, avec Linux 2.6.38-8-generic (mode de dépannage)' --class ubuntu --class gnu-linux --class gnu --class os {
recordfail
set gfxpayload=$linux_gfx_mode
insmod part_msdos
insmod ext2
set root='(/dev/sda,msdos1)'
search --no-floppy --fs-uuid --set=root 12949d04-b336-43d1-b002-d3839bb03426
echo 'Loading Linux 2.6.38-8-generic ...'
linux /boot/vmlinuz-2.6.38-8-generic root=UUID=12949d04-b336-43d1-b002-d3839bb03426 ro single
echo 'Loading initial ramdisk ...'
initrd /boot/initrd.img-2.6.38-8-generic
}
### END /etc/grub.d/10_linux ###
### BEGIN /etc/grub.d/20_linux_xen ###
### END /etc/grub.d/20_linux_xen ###
### BEGIN /etc/grub.d/20_memtest86+ ###
menuentry "Memory test (memtest86+)" {
insmod part_msdos
insmod ext2
set root='(/dev/sda,msdos1)'
search --no-floppy --fs-uuid --set=root 12949d04-b336-43d1-b002-d3839bb03426
linux16 /boot/memtest86+.bin
}
menuentry "Memory test (memtest86+, serial console 115200)" {
insmod part_msdos
insmod ext2
set root='(/dev/sda,msdos1)'
search --no-floppy --fs-uuid --set=root 12949d04-b336-43d1-b002-d3839bb03426
linux16 /boot/memtest86+.bin console=ttyS0,115200n8
}
### END /etc/grub.d/20_memtest86+ ###
### BEGIN /etc/grub.d/30_os-prober ###
if [ "x${timeout}" != "x-1" ]; then
if keystatus; then
if keystatus --shift; then
set timeout=-1
else
set timeout=0
fi
else
if sleep --interruptible 3 ; then
set timeout=0
fi
fi
fi
### 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 ###
### BEGIN /etc/grub.d/41_custom ###
if [ -f $prefix/custom.cfg ]; then
source $prefix/custom.cfg;
fi
### END /etc/grub.d/41_custom ###
Voici ce que tu dois rajouter :
menuentry "Windows 7" {
set root=(hd0,3)
chainloader +1
}
de sur une entrée pour windows sera rajoutée, mais pas dit que ca boot sur windows le probleme viendra du set roo=(hd0,3)
tiens moi o courant, stp
Vous n’avez pas trouvé la réponse que vous recherchez ?
Posez votre questionPar contre en faisiant Fdisk -l j'ai un truc ,
Disque /dev/sda: 160.0 Go, 160041885696 octets
255 têtes, 63 secteurs/piste, 19457 cylindres
Unités = cylindres de 16065 * 512 = 8225280 octets
Sector size (logical/physical): 512 bytes / 512 bytes
I/O size (minimum/optimal): 512 bytes / 512 bytes
Identifiant de disque : 0x44193d2a
Périphérique Amorce Début Fin Blocs Id Système
/dev/sda1 * 1 1277 10255360 83 Linux
/dev/sda2 1277 1399 975872 82 Linux swap / Solaris
/dev/sda3 1580 19452 143556641 7 HPFS/NTFS
Donc on voit bien ma partition pourtant
Si c'est le cas, ça ne me semble pas normal qu'il se trouve sur sda3 (il devrait-être sur sda1) C'est plutôt linux qui devrait être sur sda3 s'il a été installé après...
Tu es bien sûr que tu n'as pas écrasé une partition de seven pendant l'installation de linux ? Regarde ce que tu as sur sda3 pour voir si les fichiers système s'y trouvent ou si c'est simplement des données. Normalement seven a une partition cachée qui contient Winre (le système de récupération) ainsi que les fichiers systèmes de démarrage, or cette partition n'apparaît pas, c'est suspect...
http://www.forum-seven.com/la-partition-cachee-primaire-installee-par-windows-7-1695
Dans ce topic il y en a qui ont le meme probleme que moi donc peu etre que ..
https://forums.commentcamarche.net/forum/affich-2441178-ubuntu-demarrage-windows-au-grub
Bon allez je suis gentil.
quand je mets sudo gedit /etc/grub.d/40_custom c'est bien la commande qu'il faut marquer (etc n'est pas du tout équivalent au mot latin "Et cetera". /etc est un répertoire comme MesDocuments sous Windows si tu veux.
Tu tapes donc ça :
sudo gedit /etc/grub.d/40_custom
Tu mets ça :
menuentry "Windows 7" {
set root=(hd0,3)
chainloader +1
}
Entre ces deux lignes :
### BEGIN /etc/grub.d/30_os-prober ###
### END /etc/grub.d/30_os-prober ###
Tu enregistres et tu fermes le fichier.
Tu tapes ensuite :
sudo update-grub
Et normalement ça marche.
http://www.noelshack.com/
Tape ça tout à la fin :
### BEGIN /etc/grub.d/30_os-prober ###
menuentry "Windows 7" {
set root=(hd0,3)
chainloader +1
}
### END /etc/grub.d/30_os-prober ###
Tu enregistres et tu fermes le fichier.
Tu tapes ensuite :
sudo update-grub
Je ne vois toujours pas windows