Contenu | Rechercher | Menus

Annonce

Si vous avez des soucis pour rester connecté, déconnectez-vous puis reconnectez-vous depuis ce lien en cochant la case
Me connecter automatiquement lors de mes prochaines visites.

À propos de l'équipe du forum.

#1 Le 24/06/2007, à 21:21

morfik

Problème grub au démarrage. RESOLUT :D

Salut a tous.
Bon je sens que je vais me faire lincher en reparlant du très populaire "error 17" de grub.
Mais là, je commence a craquer, j'ai dut emprunter un lecteur CD pour lancer le live CD que je doit rendre assez vite.

Je vous donne quelques infos:

 Disque /dev/sda: 160.0 Go, 160041885696 octets
240 têtes, 63 secteurs/piste, 20673 cylindres
Unités = cylindres de 15120 * 512 = 7741440 octets

Périphérique Amorce    Début         Fin      Blocs    Id  Système
/dev/sda2   *         665       20672   151260480    7  HPFS/NTFS

Disque /dev/sdb: 80.0 Go, 80026361856 octets
255 têtes, 63 secteurs/piste, 9729 cylindres
Unités = cylindres de 16065 * 512 = 8225280 octets

Périphérique Amorce    Début         Fin      Blocs    Id  Système
/dev/sdb1   *           1        9729    78148161    7  HPFS/NTFS

Disque /dev/sdc: 160.0 Go, 160041885696 octets
255 têtes, 63 secteurs/piste, 19457 cylindres
Unités = cylindres de 16065 * 512 = 8225280 octets

Périphérique Amorce    Début         Fin      Blocs    Id  Système
/dev/sdc1               1        1275    10241406   83  Linux
/dev/sdc2            1276        2805    12289725   83  Linux
/dev/sdc3            2806        2932     1020127+  82  Linux swap / Solaris

En lisant différent sujet, je croyé qu'il falais installer grub au bon endroit et ci j'ai bien compris ca:
http://www.cepcasa.info/parted/recup1.html#5%B0_ grub, il est installé au bon endroit (sdc1 ) racine.

      [ 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
 (hd2,0)

PS: Hier, j'étais avec un "error 22".
C'est cool. Dans un mois je serais a 0. smile

Dernière modification par morfik (Le 27/06/2007, à 20:48)

Hors ligne

#2 Le 24/06/2007, à 21:23

DuKiCloCk

Re : Problème grub au démarrage. RESOLUT :D

tu a quoi dans ton menu.list ?

Hors ligne

#3 Le 24/06/2007, à 21:30

morfik

Re : Problème grub au démarrage. RESOLUT :D

Je crois qu'il y a rien mais je suis pas sur de la commande:

sudo nano /boot/grub/menu.lst

Dernière modification par morfik (Le 24/06/2007, à 21:31)

Hors ligne

#4 Le 24/06/2007, à 21:30

morfik

Re : Problème grub au démarrage. RESOLUT :D

C'est bien ca?

Hors ligne

#5 Le 24/06/2007, à 21:35

DuKiCloCk

Re : Problème grub au démarrage. RESOLUT :D

oui c'est bien ça si tu est directement sur le linux installé ! Si tu est sur le liveCD, il faut d'abord monter la partition racine puis éditer le fichier menu.lst

Hors ligne

#6 Le 24/06/2007, à 21:38

DuKiCloCk

Re : Problème grub au démarrage. RESOLUT :D

Pour monter la partition sdc1 et éditer le fichier menu.lst :

sudo mkdir /test
sudo mount /dev/sdc1 /test
sudo nano /test/boot/grub/menu.lst

Hors ligne

#7 Le 24/06/2007, à 21:44

morfik

Re : Problème grub au démarrage. RESOLUT :D

Je suis sur le live CD de Feisty et je crois avoir monté la partition dans (/ ) pendant l' installation.
Je doit faire tout ca: hmm
Créer le répertoire (mkdir / ) et après passer par la commande "mount", configurer "fstab" et les "UUID" ?

Hors ligne

#8 Le 24/06/2007, à 21:55

DuKiCloCk

Re : Problème grub au démarrage. RESOLUT :D

arf ! tu est en ce moment même sur le liveCD ? Et au lancement il t'a déjà monté tes partitions ? dans ce cas, tu n'a qu'a simplement faire :

sudo nano /le_dossier_ou_est_monté_la_partition/boot/grub/menu.lst

Dernière modification par DuKiCloCk (Le 24/06/2007, à 21:55)

Hors ligne

#9 Le 24/06/2007, à 21:57

morfik

Re : Problème grub au démarrage. RESOLUT :D

J'avais pas vu que t'avais répondu avant moi.
J'ai fait ce que tu m'as dit mais je ne sais pas quoi changer dans

/test/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         10

Y'a toujour rien dans:

sudo nano /boot/grub/menu.lst

Dernière modification par morfik (Le 27/06/2007, à 20:17)

Hors ligne

#10 Le 24/06/2007, à 22:12

belga

Re : Problème grub au démarrage. RESOLUT :D

morfik a écrit :

J'avais pas vu que t'avais répondu avant moi.
J'ai fait ce que yu m'as dit mais je ne sais pas quoi changer dans

/test/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         10

Tu n'as que ça dans ton menu.lst ?????

Au fait tu as fait dans la procédure de cep

setup  (hd0)  (hd2,0)

peut tu poster

ls /test/boot/grub

Dernière modification par belga (Le 24/06/2007, à 22:16)


Multi-bomb : Multi-doze : Mandoze, Ubundoze, Pardoze.

900s entre deux postes: mododoze

Hors ligne

#11 Le 24/06/2007, à 22:14

morfik

Re : Problème grub au démarrage. RESOLUT :D

On est un peut en décalage. smile
Mon point de montage a changé et quand je fait:

sudo nano /media/disk/mnt,/test/boot/grub/menu.lst

Y'a toujour rien.
On a fait une connerie?

Hors ligne

#12 Le 24/06/2007, à 22:20

DuKiCloCk

Re : Problème grub au démarrage. RESOLUT :D

arf on reprend ! dans quel dossier est monter ta partition ?
/media/disk ? c'est bien ca ?
dans ce cas, le fichier menu.lst sur ton disque dur (donc le fichier a modifier) ce trouve ici :
/media/disk/boot/grub/menu.lst
donc tu doit taper :

sudo nano /media/disk/boot/grub/menu.lst

Dernière modification par DuKiCloCk (Le 24/06/2007, à 22:21)

Hors ligne

#13 Le 24/06/2007, à 22:21

belga

Re : Problème grub au démarrage. RESOLUT :D

Si tu l'as monté dans /media/disk/mnt
tu dois faire

 sudo nano /media/boot/grub/menu.lst

Pourquoi tu veux faire sudo nano (gksudo gedit c'est mieux pour
les nouveaux)

Fais

cd /media/disk/mnt/boot/grub
ls
cd

Je veux le retour de ls

Dernière modification par belga (Le 15/10/2007, à 17:36)


Multi-bomb : Multi-doze : Mandoze, Ubundoze, Pardoze.

900s entre deux postes: mododoze

Hors ligne

#14 Le 24/06/2007, à 22:25

morfik

Re : Problème grub au démarrage. RESOLUT :D

D'après GParted, il est là:
/media/disk/mnt,/test

Hors ligne

#15 Le 24/06/2007, à 22:28

DuKiCloCk

Re : Problème grub au démarrage. RESOLUT :D

morfik a écrit :

D'après GParted, il est là:
/media/disk/mnt,/test

lol, c'est bizarre comme point de montage !

tu peut vérifier avec nautilus (explorateur de fichier) si il y a bien le fichier menu.lst dans le dossier :

/media/disk/mnt,/test/boot/grub/

Hors ligne

#16 Le 24/06/2007, à 22:52

belga

Re : Problème grub au démarrage. RESOLUT :D

à la mémoire de safe93

Dernière modification par belga (Le 15/10/2007, à 17:37)


Multi-bomb : Multi-doze : Mandoze, Ubundoze, Pardoze.

900s entre deux postes: mododoze

Hors ligne

#17 Le 24/06/2007, à 22:57

morfik

Re : Problème grub au démarrage. RESOLUT :D

J'ai essayé dans nautilus:
computer:////media/disk/mnt/test/boot/grub/
computer:////media/disk/mnt,/test/boot/grub/
computer:////media/disk,/mnt,/test/boot/grub/
/media/disk/mnt/test/boot/grub/
/media/disk/mnt/test/boot/grub/
/media/disk,/mnt,/test/boot/grub/
et rien.

C'est bien ca que tu me demande de faire:

http://i147.photobucket.com/albums/r282/cortikas/Capture-2.png

C'est vrais que c'est chelou ces virgules.
Regarde:
http://i147.photobucket.com/albums/r282/cortikas/Capture--dev-sdc-GParted.png

Hors ligne

#18 Le 24/06/2007, à 23:08

DuKiCloCk

Re : Problème grub au démarrage. RESOLUT :D

arf le bazar lol
si je comprend bien, les virgules signifie que tu a monté le disque en 3 endroit différent (tien je savais pas que c'était possible lol)

tu vas sur "systeme de fichier" > media > disk > boot > grub et tu regade si il exite bien un fichier menu.lst

Hors ligne

#19 Le 24/06/2007, à 23:23

morfik

Re : Problème grub au démarrage. RESOLUT :D

Je doit te laisser.
Je reviens demain.
A+

Hors ligne

#20 Le 25/06/2007, à 16:36

morfik

Re : Problème grub au démarrage. RESOLUT :D

Salut.
Vu le bordel que c'était, j'ai tout formaté et réinstallé. (Ca faira que la 3e fois )
Maintenant ma (/) est dans "/media/disk-1" sdc1 et si j'ai bien compris dans hd2,0 pour grub.

J'avais pas vu le message #10.
voila pour la procedure de cep:

grub> setup (hd0) (hd2,0)
 Checking if "/boot/grub/stage1" exists... yes
 Checking if "/boot/grub/stage2" exists... yes
 Checking if "/boot/grub/e2fs_stage1_5" exists... yes
 Running "embed /boot/grub/e2fs_stage1_5 (hd0)"...  17 sectors are embedded.
succeeded
 Running "install /boot/grub/stage1 d (hd0) (hd0)1+17 p (hd2,0)/boot/grub/stage
2 /boot/grub/menu.lst"... succeeded
Done.

l'autre commande:

ls /test/boot/grub
ls: /test/boot/grub: Aucun fichier ou répertoire de ce type

et enfin 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		10

## 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=f768c392-bd7b-4ee5-a957-2f6088846b4e ro

## Setup crashdump menu entries
## e.g. crashdump=1
# crashdump=0

## default grub root device
## e.g. groot=(hd0,0)
# groot=(hd2,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 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-15-generic
root		(hd2,0)
kernel		/boot/vmlinuz-2.6.20-15-generic root=UUID=f768c392-bd7b-4ee5-a957-2f6088846b4e 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		(hd2,0)
kernel		/boot/vmlinuz-2.6.20-15-generic root=UUID=f768c392-bd7b-4ee5-a957-2f6088846b4e ro single
initrd		/boot/initrd.img-2.6.20-15-generic

title		Ubuntu, memtest86+
root		(hd2,0)
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		Other operating systems:
root


# This entry automatically added by the Debian installer for a non-linux OS
# on /dev/sda2
title		Microsoft Windows XP Professionnel
root		(hd0,1)
savedefault
makeactive
chainloader	+1


# This entry automatically added by the Debian installer for a non-linux OS
# on /dev/sdb1
title		Microsoft Windows XP dition familiale
root		(hd1,0)
savedefault
makeactive
map		(hd0) (hd1)
map		(hd1) (hd0)
chainloader	+1

C'est ce genre de truc que je doit changer?

# title		Linux
# root		(hd0,1)
# kernel	/vmlinuz root=/dev/hda2 ro
## 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=f768c392-bd7b-4ee5-a957-2f6088846b4e ro

voila l'UUID de sdc1:

f768c392-bd7b-4ee5-a957-2f6088846b4e

Je crois que j'ai fait le tour là.
Et merci pour vos suivis DuKiCloCk et Belga.

Dernière modification par morfik (Le 25/06/2007, à 18:15)

Hors ligne

#21 Le 25/06/2007, à 16:43

belga

Re : Problème grub au démarrage. RESOLUT :D

Quel message d'erreur as tu maitenant


Multi-bomb : Multi-doze : Mandoze, Ubundoze, Pardoze.

900s entre deux postes: mododoze

Hors ligne

#22 Le 25/06/2007, à 16:54

DuKiCloCk

Re : Problème grub au démarrage. RESOLUT :D

Bon, alors la, je ne voit pas trop d'où vient le problème ... si tu reboot sans le liveCD, tu a toujours "grub error 17" ?? l'erreur arrive quand tu boot sur ubuntu? windows ? Les deux ?

Tu a plusieurs disques, sont-ils monté en RAID ? quelle est ta carte mére ?

Hors ligne

#23 Le 25/06/2007, à 17:19

morfik

Re : Problème grub au démarrage. RESOLUT :D

Waou c'est de l'instantanné avec vous. smile

Maintenant le message a changé. Avant il venait dessuite et maintenant, j'ai le menu grace auquel je peut choisir windows, linux ou le recovery mode et quand je lance ubuntu, j'ai le "error 17" puis un truc du genre "partion cannot mount" pourtant je la trouve dans /media/disk et dans /media/disk/boot/grub il y a bien le menu.lst (oui en fait c'est disk et pas disk-1 mais sa change rien non puisque c'est bien sdc1)

Y'a quand même untruc bizarre. Quand je redémarre, il fait que j'ouvre et que je ferme plusieur fois Gparted pour que les partitions se monte ?????

Non ils sont pas monté en raid. Et ma carte mere est une Asus pour le modele je sais pas

Je vais essayer de lancer windows et le recoverymode pour voir.

Hors ligne

#24 Le 25/06/2007, à 17:41

morfik

Re : Problème grub au démarrage. RESOLUT :D

Pour windows, le message est "error 22" et pour ubuntu et recoverymode: error  17
Cannot mount selected partition.

Hors ligne

#25 Le 25/06/2007, à 17:50

morfik

Re : Problème grub au démarrage. RESOLUT :D

Au fait, il est bon le résultat de

ls /test/boot/grub

?

Hors ligne