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
Salut à tous,

Je viens d'installer windows mais je n'arrive plus à demarer sur linux, j'ai suivit le doc pour reinstaller grub mais rien n'y fait pouriez vous m'aidez svp merci.

Voici se que me renvoit le commande fdisk -l:

Disque /dev/sda: 80.0 Go, 80060424192 octets
255 heads, 63 sectors/track, 9733 cylinders
Units = cylindres of 16065 * 512 = 8225280 bytes
Identifiant disque: 0x4113ab93

Périphérique Amorce Début Fin Blocs Id Système
/dev/sda1 * 1 1273 10225341 7 HPFS/NTFS
/dev/sda2 1274 9641 67215960 83 Linux
/dev/sda3 9642 9733 738990 5 Extended
/dev/sda5 9642 9733 738958+ 82 Linux swap / Solaris
ubuntu@ubuntu:~$

Je suis sous le live cd de ubuntu, et grub était, était installer sur sda2
A voir également:

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
Salut,

est-ce que tu as suivi la procédure ici > http://doc.ubuntu-fr.org/...
0
Utilisateur anonyme
12 nov. 2008 à 20:46
exact c'est idem qu'au post 2 mais il faut l'aider a ajouter windows au menu.lst après :))
0
Utilisateur anonyme
12 nov. 2008 à 20:44
Salut :)
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 ;)
0
Utilisateur anonyme
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
0
Utilisateur anonyme
12 nov. 2008 à 21:11
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?

find /boot/grub/stage1


0
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
essaye avec super grub >> https://framalibre.org
0
Utilisateur anonyme
12 nov. 2008 à 21:13
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 :)
0

Vous n’avez pas trouvé la réponse que vous recherchez ?

Posez votre question
Utilisateur anonyme
12 nov. 2008 à 21:11
J'avais essayer sa au debut mais sa n'a pas marcher..
Svp aidez moi
0
Utilisateur anonyme
12 nov. 2008 à 21:14
peux tu répondre aux questions que je te pose ici merci :))
0
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
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
0
Utilisateur anonyme
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?
0
Utilisateur anonyme
12 nov. 2008 à 21:26
si tu tapes depuis le live cd:

sudo gedit /boot/grub/menu.lst


tu ouvres celui du live cd donc ça ne sert a rien :(
tu dois nous dire ce que répond :

find /boot/grub/stage1


de façon a savoir si ça colle avec ce que tu verras lorsque tu éditeras la ligne au démarrage ;)
0
Utilisateur anonyme
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
0
Utilisateur anonyme
12 nov. 2008 à 21:30
d'abbord:

sudo grub --batch


ensuite

find /boot/grub/stage1


0
Utilisateur anonyme
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>
0
Utilisateur anonyme
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 ;)
0
Utilisateur anonyme
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
0
Utilisateur anonyme
12 nov. 2008 à 21:42
sur "e"

ensuite tu vois si (hd0,1) est bien renseigné comme chemin,si pas tu modifies ;)
0
Utilisateur anonyme
12 nov. 2008 à 21:44
Ok je te tient au courant.
0
Utilisateur anonyme
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
0
Utilisateur anonyme
12 nov. 2008 à 21:56
colle moi une copie de ton menu.lst:

sudo cat /boot/grub/menu.lst


et tu colles le résultat dans ta prochaine réponse :)
0
Utilisateur anonyme
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
0
Utilisateur anonyme
12 nov. 2008 à 22:07
maintenant tu tapes

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 ;)
0
Utilisateur anonyme
12 nov. 2008 à 22:20
Merci beaucoup sa marcher, merci de t'on aide
0
Utilisateur anonyme
12 nov. 2008 à 22:30
Et bien je suis content que ça roule pour toi ;))

bonne continuation :)


@+
0
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
la grande classe ! tout ce répare sous Linux
0
Utilisateur anonyme
12 nov. 2008 à 22:50
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,
@+ :)
0
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
super ! très sympa à toi d'avoir expliqué les causes du problème.
0