Linux ne demarre plus aprés install windows
Résolu/Fermé
Utilisateur anonyme
-
12 nov. 2008 à 20:33
le druide Messages postés 40156 Date d'inscription vendredi 16 avril 2004 Statut Contributeur Dernière intervention 15 octobre 2023 - 12 nov. 2008 à 23:03
le druide Messages postés 40156 Date d'inscription vendredi 16 avril 2004 Statut Contributeur Dernière intervention 15 octobre 2023 - 12 nov. 2008 à 23:03
A voir également:
- Linux ne demarre plus aprés install windows
- Windows ne démarre pas - Guide
- Clé windows 10 gratuit - Guide
- Windows 10 gratuit - Guide
- Windows 12 - Guide
- Installer windows 11 sur pc non compatible - Guide
17 réponses
le druide
Messages postés
40156
Date d'inscription
vendredi 16 avril 2004
Statut
Contributeur
Dernière intervention
15 octobre 2023
6 606
12 nov. 2008 à 20:43
12 nov. 2008 à 20:43
Salut,
est-ce que tu as suivi la procédure ici > http://doc.ubuntu-fr.org/...
est-ce que tu as suivi la procédure ici > http://doc.ubuntu-fr.org/...
Utilisateur anonyme
12 nov. 2008 à 20:44
12 nov. 2008 à 20:44
Salut :)
ouvres le terminal du live cd et tapes:
ensuite
cette dernière va te renvoyer un chemin,par exemple: (hd0,1)
donc ensuite:
ensuite
ensuite
redémarres...
par la suite il faudra ajouter windows a ton menu.lst mais fais déja cela pour pouvoir acceder a linux ;)
ouvres le terminal du live cd et tapes:
sudo grub --batch
ensuite
find /boot/grub/stage1
cette dernière va te renvoyer un chemin,par exemple: (hd0,1)
donc ensuite:
root (hd0,1)
ensuite
setup (hd0)
ensuite
quit
redémarres...
par la suite il faudra ajouter windows a ton menu.lst mais fais déja cela pour pouvoir acceder a linux ;)
Utilisateur anonyme
12 nov. 2008 à 21:06
12 nov. 2008 à 21:06
Sa n'a pas marcher je suis degouter.
Au demarage sa me met error 17 cannot mount selected partition..
Svp ne me dite pas que je vais devoir virer linux
Au demarage sa me met error 17 cannot mount selected partition..
Svp ne me dite pas que je vais devoir virer linux
t'inquiète pas,les partitions ont du changer de nom....
Lorsque grub apparaîtra au prochain démarrage,sélectionne la ligne de linux et appuies sur "e"
de façon a l'éditer,
édite la ligne en changeant l'adresse,par exemple tu changes (hd0,1) pour (hd0,2).....(hd0,3) etc....
boote en appuyant sur "b" a chaque essai de modification
que répondais cette commande?
Lorsque grub apparaîtra au prochain démarrage,sélectionne la ligne de linux et appuies sur "e"
de façon a l'éditer,
édite la ligne en changeant l'adresse,par exemple tu changes (hd0,1) pour (hd0,2).....(hd0,3) etc....
boote en appuyant sur "b" a chaque essai de modification
que répondais cette commande?
find /boot/grub/stage1
le druide
Messages postés
40156
Date d'inscription
vendredi 16 avril 2004
Statut
Contributeur
Dernière intervention
15 octobre 2023
6 606
12 nov. 2008 à 21:10
12 nov. 2008 à 21:10
essaye avec super grub >> https://framalibre.org
Vous n’avez pas trouvé la réponse que vous recherchez ?
Posez votre question
Utilisateur anonyme
12 nov. 2008 à 21:11
12 nov. 2008 à 21:11
J'avais essayer sa au debut mais sa n'a pas marcher..
Svp aidez moi
Svp aidez moi
le druide
Messages postés
40156
Date d'inscription
vendredi 16 avril 2004
Statut
Contributeur
Dernière intervention
15 octobre 2023
6 606
12 nov. 2008 à 21:17
12 nov. 2008 à 21:17
je laisse la main à initials 76 car moi je suis pas assez doué sous Linux, je te laisse quand même ce lien au cas où ...
http://www.trustonme.net
http://www.trustonme.net
Utilisateur anonyme
12 nov. 2008 à 21:20
12 nov. 2008 à 21:20
Je soupçonne ses partitions d'avoir changer de nom,ça m'est déjà arrivé,mais il faut réussir a atteindre le menu.lst sinon l'erreur se répétera a chaque démarrage sur linux :)
Il n'y a rien d'ecrit dans menu.ist
J'ai fait gedit menu.ist
Ses bien sa qu'il faut faire?
Il n'y a rien d'ecrit dans menu.ist
J'ai fait gedit menu.ist
Ses bien sa qu'il faut faire?
Utilisateur anonyme
12 nov. 2008 à 21:29
12 nov. 2008 à 21:29
Voila ce que sa me dit
ubuntu@ubuntu:~$ find /boot/grub/stage1
find: /boot/grub/stage1: Aucun fichier ou dossier de ce type
ubuntu@ubuntu:~$ find /boot/grub/stage1
find: /boot/grub/stage1: Aucun fichier ou dossier de ce type
Utilisateur anonyme
12 nov. 2008 à 21:33
12 nov. 2008 à 21:33
j'ai fait se que tu m'a dit voila se que sa donne
ubuntu@ubuntu:~$ sudo grub --batch
Probing devices to guess BIOS drives. This may take a long time.
[ Minimal BASH-like line editing is supported. For
the first word, TAB lists possible command
completions. Anywhere else TAB lists the possible
completions of a device/filename. ]
grub> find /boot/grub/stage1
find /boot/grub/stage1
(hd0,1)
grub>
ubuntu@ubuntu:~$ sudo grub --batch
Probing devices to guess BIOS drives. This may take a long time.
[ Minimal BASH-like line editing is supported. For
the first word, TAB lists possible command
completions. Anywhere else TAB lists the possible
completions of a device/filename. ]
grub> find /boot/grub/stage1
find /boot/grub/stage1
(hd0,1)
grub>
Utilisateur anonyme
12 nov. 2008 à 21:38
12 nov. 2008 à 21:38
ok,
redémarres sans le live cd et lorsque la liste de grub s'affichera,édite la ligne de ubuntu comme je te l'ai expliqué et vois si (hd0,1) est bien le chemin donné,sinon,tu modifies et ensuite tu valides et tu appuies sur "b" pour booter la nouvelle ligne
je te rassures,ubuntu est toujours sur ton pc ;)
redémarres sans le live cd et lorsque la liste de grub s'affichera,édite la ligne de ubuntu comme je te l'ai expliqué et vois si (hd0,1) est bien le chemin donné,sinon,tu modifies et ensuite tu valides et tu appuies sur "b" pour booter la nouvelle ligne
je te rassures,ubuntu est toujours sur ton pc ;)
Utilisateur anonyme
12 nov. 2008 à 21:40
12 nov. 2008 à 21:40
au risque de me faire passer pour un imbecile je fait comment pour editer la ligne de ubuntu?
Il faut apuyer sur C je croit mais je suis pas sur
Il faut apuyer sur C je croit mais je suis pas sur
Utilisateur anonyme
12 nov. 2008 à 21:52
12 nov. 2008 à 21:52
Merci beaucoup sa a marcher maintenant est se que tu pourait me dire comment avoir le choix entre linux et windows?
[edit]: Il n'y a toujours rien dans menu.lst
[edit]: Il n'y a toujours rien dans menu.lst
Utilisateur anonyme
12 nov. 2008 à 21:58
12 nov. 2008 à 21:58
bruno@bruno-2z8jjqhfv:~$ sudo 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 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=6e879ccd-1e31-40f2-9399-941b165ecc1f ro
## Setup crashdump menu entries
## e.g. crashdump=1
# crashdump=0
## default grub root device
## e.g. groot=(hd0,0)
# groot=(hd0,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
## 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.04.1, kernel 2.6.24-21-generic
root (hd0,0)
kernel /boot/vmlinuz-2.6.24-21-generic root=UUID=6e879ccd-1e31-40f2-9399-941b165ecc1f ro quiet splash
initrd /boot/initrd.img-2.6.24-21-generic
quiet
title Ubuntu 8.04.1, kernel 2.6.24-21-generic (recovery mode)
root (hd0,0)
kernel /boot/vmlinuz-2.6.24-21-generic root=UUID=6e879ccd-1e31-40f2-9399-941b165ecc1f ro single
initrd /boot/initrd.img-2.6.24-21-generic
title Ubuntu 8.04.1, kernel 2.6.24-19-generic
root (hd0,0)
kernel /boot/vmlinuz-2.6.24-19-generic root=UUID=6e879ccd-1e31-40f2-9399-941b165ecc1f ro quiet splash
initrd /boot/initrd.img-2.6.24-19-generic
quiet
title Ubuntu 8.04.1, kernel 2.6.24-19-generic (recovery mode)
root (hd0,0)
kernel /boot/vmlinuz-2.6.24-19-generic root=UUID=6e879ccd-1e31-40f2-9399-941b165ecc1f ro single
initrd /boot/initrd.img-2.6.24-19-generic
title Ubuntu 8.04.1, memtest86+
root (hd0,0)
kernel /boot/memtest86+.bin
quiet
### END DEBIAN AUTOMAGIC KERNELS LIST
# 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=6e879ccd-1e31-40f2-9399-941b165ecc1f ro
## Setup crashdump menu entries
## e.g. crashdump=1
# crashdump=0
## default grub root device
## e.g. groot=(hd0,0)
# groot=(hd0,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
## 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.04.1, kernel 2.6.24-21-generic
root (hd0,0)
kernel /boot/vmlinuz-2.6.24-21-generic root=UUID=6e879ccd-1e31-40f2-9399-941b165ecc1f ro quiet splash
initrd /boot/initrd.img-2.6.24-21-generic
quiet
title Ubuntu 8.04.1, kernel 2.6.24-21-generic (recovery mode)
root (hd0,0)
kernel /boot/vmlinuz-2.6.24-21-generic root=UUID=6e879ccd-1e31-40f2-9399-941b165ecc1f ro single
initrd /boot/initrd.img-2.6.24-21-generic
title Ubuntu 8.04.1, kernel 2.6.24-19-generic
root (hd0,0)
kernel /boot/vmlinuz-2.6.24-19-generic root=UUID=6e879ccd-1e31-40f2-9399-941b165ecc1f ro quiet splash
initrd /boot/initrd.img-2.6.24-19-generic
quiet
title Ubuntu 8.04.1, kernel 2.6.24-19-generic (recovery mode)
root (hd0,0)
kernel /boot/vmlinuz-2.6.24-19-generic root=UUID=6e879ccd-1e31-40f2-9399-941b165ecc1f ro single
initrd /boot/initrd.img-2.6.24-19-generic
title Ubuntu 8.04.1, memtest86+
root (hd0,0)
kernel /boot/memtest86+.bin
quiet
### END DEBIAN AUTOMAGIC KERNELS LIST
maintenant tu tapes
et tu modifies ces lignes comme suit:
title Ubuntu 8.04.1, kernel 2.6.24-21-generic (recovery mode)
root (hd0,1)
kernel /boot/vmlinuz-2.6.24-21-generic root=UUID=6e879ccd-1e31-40f2-9399-941b165ecc1f ro single
initrd /boot/initrd.img-2.6.24-21-generic
title Ubuntu 8.04.1, kernel 2.6.24-19-generic
root (hd0,1)
kernel /boot/vmlinuz-2.6.24-19-generic root=UUID=6e879ccd-1e31-40f2-9399-941b165ecc1f ro quiet splash
initrd /boot/initrd.img-2.6.24-19-generic
quiet
title Ubuntu 8.04.1, kernel 2.6.24-19-generic (recovery mode)
root (hd0,1)
kernel /boot/vmlinuz-2.6.24-19-generic root=UUID=6e879ccd-1e31-40f2-9399-941b165ecc1f ro single
initrd /boot/initrd.img-2.6.24-19-generic
title Ubuntu 8.04.1, memtest86+
root (hd0,1)
kernel /boot/memtest86+.bin
quiet
et tu ajoutes celles ci:
title Windows
root (hd0,0)
savedefault
makeactive
chainloader +1
tu enregistre en cliquant sur l'icône "enregistrer" sur le haut et tu redémarres ;)
sudo gedit /boot/grub/menu.lst
et tu modifies ces lignes comme suit:
title Ubuntu 8.04.1, kernel 2.6.24-21-generic (recovery mode)
root (hd0,1)
kernel /boot/vmlinuz-2.6.24-21-generic root=UUID=6e879ccd-1e31-40f2-9399-941b165ecc1f ro single
initrd /boot/initrd.img-2.6.24-21-generic
title Ubuntu 8.04.1, kernel 2.6.24-19-generic
root (hd0,1)
kernel /boot/vmlinuz-2.6.24-19-generic root=UUID=6e879ccd-1e31-40f2-9399-941b165ecc1f ro quiet splash
initrd /boot/initrd.img-2.6.24-19-generic
quiet
title Ubuntu 8.04.1, kernel 2.6.24-19-generic (recovery mode)
root (hd0,1)
kernel /boot/vmlinuz-2.6.24-19-generic root=UUID=6e879ccd-1e31-40f2-9399-941b165ecc1f ro single
initrd /boot/initrd.img-2.6.24-19-generic
title Ubuntu 8.04.1, memtest86+
root (hd0,1)
kernel /boot/memtest86+.bin
quiet
et tu ajoutes celles ci:
title Windows
root (hd0,0)
savedefault
makeactive
chainloader +1
tu enregistre en cliquant sur l'icône "enregistrer" sur le haut et tu redémarres ;)
Utilisateur anonyme
12 nov. 2008 à 22:20
12 nov. 2008 à 22:20
Merci beaucoup sa marcher, merci de t'on aide
le druide
Messages postés
40156
Date d'inscription
vendredi 16 avril 2004
Statut
Contributeur
Dernière intervention
15 octobre 2023
6 606
12 nov. 2008 à 22:37
12 nov. 2008 à 22:37
la grande classe ! tout ce répare sous Linux
Merci Le druide :)
en fait voila ce qui c'est passé:
en installant windows les partitions ont changé de nom:
linux sur (hd0,0) est devenu linux sur (hd0,1)
mais le fichier de configuration de grub lui renseignait encore (hd0,0),d'ou le message d'erreur "17" cannot mount selected partition
en éditant la ligne linux au boot et en remplaçant (hd0,0) par (hd0,1) on accède a nouveau a linux (puisque le chemin devient correct)
ensuite une fois sur linux on modifies le chemin sur le fichier de configuration de grub afin que l'erreur ne se produise plus au démarrage,et on ajoute windows ;))
j'avais eu la blague aussi
bonne soirée,
@+ :)
en fait voila ce qui c'est passé:
en installant windows les partitions ont changé de nom:
linux sur (hd0,0) est devenu linux sur (hd0,1)
mais le fichier de configuration de grub lui renseignait encore (hd0,0),d'ou le message d'erreur "17" cannot mount selected partition
en éditant la ligne linux au boot et en remplaçant (hd0,0) par (hd0,1) on accède a nouveau a linux (puisque le chemin devient correct)
ensuite une fois sur linux on modifies le chemin sur le fichier de configuration de grub afin que l'erreur ne se produise plus au démarrage,et on ajoute windows ;))
j'avais eu la blague aussi
bonne soirée,
@+ :)
le druide
Messages postés
40156
Date d'inscription
vendredi 16 avril 2004
Statut
Contributeur
Dernière intervention
15 octobre 2023
6 606
12 nov. 2008 à 23:03
12 nov. 2008 à 23:03
super ! très sympa à toi d'avoir expliqué les causes du problème.
12 nov. 2008 à 20:46