Pages : 1
#1 Le 02/09/2007, à 01:29
- ErOBaKa
Probleme avec Grub
Bonsoir a tous,
Ca fait 4 jours que j'essaye d'installer Ubuntu 7.04 Feisty Fawn. L'installation se passe a priori sans probleme, mais a la fin lorsque le pc redemarre pour lancer Ubuntu j'ai un probleme avec Grub.
Je tombe devant ceci :
[ 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>
Je ne compte plus le nombre de fois ou j'ai reinstallé Ubuntu, mais j'obtiens toujours le meme resultat.
mon 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 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=18c904e4-83d1-4296-b208-5a0e1e38ba74 ro
## Setup crashdump menu entries
## e.g. crashdump=1
# crashdump=0
## default grub root device
la par contre c'est nouveau, lorsque je tape
find /boot/grub/stage1
ca me dit qu'il n'y a aucun fichier ou repertoire de ce type ... alors que lors des autres tentatives ca fonctionnait.
voila si quelqu'un peut m'aider a installer Ubuntu, parcque je commence a désesperer un peu lol.
Merci d'avance.
#2 Le 02/09/2007, à 06:35
- Compte anonymisé
Re : Probleme avec Grub
Salut
Ton menu.lst est incomplet.
Il faudrait démarrer en livecd et donner les résultats de :
sudo fdisk -l et indiquer ton partitionnement ( /, /home etc..)
Ensuite tu peux monter la partition / :
sudo mount -t ext3 -o rw /dev/ta_part_root /mnt où ta_part_root est qq chose comme hda2 ou sda2 (en sata) le 2 est à adapter à ton cas.
ensuite tu édites le fichier menu.lst:
sudo gedit /mnt/boot/grub/menu.lst et en prenant un exemple dans ce forum tu le complètes et l'adaptes avec la bonne UUID et les valeurs root (hdx,y)
Tu vérifies aussi le fichier :
/mnt/etc/fstab
@+
#3 Le 02/09/2007, à 14:25
- ErOBaKa
Re : Probleme avec Grub
Salut Jean, merci pour ton aide,
alors voici ce que donne sudo fdisk -l
Disque /dev/sda: 203.9 Go, 203928109056 octets
255 têtes, 63 secteurs/piste, 24792 cylindres
Unités = cylindres de 16065 * 512 = 8225280 octets
Périphérique Amorce Début Fin Blocs Id Système
/dev/sda1 * 1 1216 9767488+ 83 Linux
/dev/sda2 1217 21884 166015710 83 Linux
/dev/sda3 21885 22006 979965 82 Linux swap / Solaris
sda1 => /
sda2 => /home
je tape ensuite sudo mount -t ext3 -o rw /dev/sda1 /mnt
mais j'obtient
mount: /dev/sda1 est déjà monté ou /mnt est occupé
mount: selon mtab /dev/sda1 est monté sur /media/disk-1
j'ai alors demonté disk-1 par le bureau et j'ai relancé la commande et cette fois j'obtient ceci :
mount: type erroné de système de fichiers, option erronée, super bloc erroné sur /dev/sda1,
codepage manquante ou autre erreur
Dans quelques cas certaines informations sont utiles dans syslog - essayez
dmesg | tail ou quelque chose du genre
je prefere pas faire la suite si ca bloque la ^^
merci.
#4 Le 02/09/2007, à 14:35
- khalilweb
Re : Probleme avec Grub
Est-ce que sur ta machine il n'y a que Ubuntu (pas d'autres partition ?) ?
GNU/Linux Ubuntu .. mais pas seulement
GNU/Linux Ubuntu 9.10 sur HP Pavilion dv5 1010ef
Hors ligne
#5 Le 02/09/2007, à 14:46
- Compte anonymisé
Re : Probleme avec Grub
Salut
Je ne comprends pas trop là.
C'est le Livecd qui monte automatiquement les disques?
En effet tu as l'air d'être déjà sur un linux ?? alors que tu expliques ne pas pouvoir l'installer.
Quoiqu'il en soit tu peux très bien éditer tes fichiers par :
/media/disk-1/boot/grub/menu.lst et
/media/disk-1/etc/fstab
Sinon tente le mount ainsi :
sudo mount -o rw /dev/sda1 /mnt et suit le post #2
@+
Dernière modification par Compte anonymisé (Le 02/09/2007, à 14:49)
#6 Le 02/09/2007, à 15:09
- ErOBaKa
Re : Probleme avec Grub
Si Ubuntu est bien installé, mais impossible de le lancer car il semble y avoir des problemes avec Grub.
par contre apres avoir monter sda1 voila a quoi ressemble mon /mnt/boot/grub/menu.lst ( je sais pas pourquoi il est different de tout a l'heure )
# 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 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=18c904e4-83d1-4296-b208-5a0e1e38ba74 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 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 (hd0,0)
kernel /boot/vmlinuz-2.6.20-15-generic root=UUID=18c904e4-83d1-4296-b208-5a0e1e38ba74 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 (hd0,0)
kernel /boot/vmlinuz-2.6.20-15-generic root=UUID=18c904e4-83d1-4296-b208-5a0e1e38ba74 ro single
initrd /boot/initrd.img-2.6.20-15-generic
title Ubuntu, memtest86+
root (hd0,0)
kernel /boot/memtest86+.bin
quiet
### END DEBIAN AUTOMAGIC KERNELS LIST
Est ce qu'il est correct ? ou que dois je modifier ?
pour repondre a khalilweb, oui je n'ai installé qu' Ubuntu.
Merci.
#7 Le 02/09/2007, à 15:19
- Compte anonymisé
Re : Probleme avec Grub
Salut
Là ça a l'air logique
Il faut aussi lister /mnt/etc/fstab et lancer la commande :
sudo ls -l /dev/disk/by-uuid/ pour vérifier s'il y a correspondance entre les valeurs retournées pour /dev/sda1 et menu.lst (18c904e4-83d1-4296-b208-5a0e1e38ba74)
et aussi entre /dev/sda1, sda2 et sda3 et /mnt/etc/fstab.
Il faudrait aussi lister le retour de :
ls -l /mnt/boot/grub
@+
#8 Le 02/09/2007, à 15:29
- ErOBaKa
Re : Probleme avec Grub
Voila le contenu de /mnt/etc/fstab :
# /etc/fstab: static file system information.
#
# <file system> <mount point> <type> <options> <dump> <pass>
proc /proc proc defaults 0 0
# /dev/sda1
UUID=18c904e4-83d1-4296-b208-5a0e1e38ba74 / reiserfs notail 0 1
# /dev/sda2
UUID=4f240eda-6f5d-451f-94a8-1d8eebe68e8e /home ext3 defaults 0 2
# /dev/sda3
UUID=0cbb3bd0-3951-49f2-aed2-a461b530e994 none swap sw 0 0
/dev/scd0 /media/cdrom0 udf,iso9660 user,noauto 0 0
/dev/fd0 /media/floppy0 auto rw,user,noauto 0 0
sudo ls -l /dev/disk/by-uuid/ me retourne ca :
total 0
lrwxrwxrwx 1 root root 10 2007-09-02 01:06 0cbb3bd0-3951-49f2-aed2-a461b530e994 -> ../../sda3
lrwxrwxrwx 1 root root 10 2007-09-01 23:18 18c904e4-83d1-4296-b208-5a0e1e38ba74 -> ../../sda1
lrwxrwxrwx 1 root root 10 2007-09-01 23:18 4f240eda-6f5d-451f-94a8-1d8eebe68e8e -> ../../sda2
donc le code de sda1 correspond bien a celui qui se trouve dans menu.lst et sont aussi identiques a ceux de fstab.
le retour de ls -l /mnt/boot/grub
total 208
-rw-r--r-- 1 root root 197 2007-09-02 01:02 default
-rw-r--r-- 1 root root 15 2007-09-02 01:02 device.map
-rw-r--r-- 1 root root 8660 2007-09-02 01:02 e2fs_stage1_5
-rw-r--r-- 1 root root 8452 2007-09-02 01:02 fat_stage1_5
-rw-r--r-- 1 root root 15 2007-09-02 01:02 installed-version
-rw-r--r-- 1 root root 9152 2007-09-02 01:02 jfs_stage1_5
-rw-r--r-- 1 root root 4193 2007-09-02 01:02 menu.lst
-rw-r--r-- 1 root root 4180 2007-09-02 01:02 menu.lst~
-rw-r--r-- 1 root root 7860 2007-09-02 01:02 minix_stage1_5
-rw-r--r-- 1 root root 10132 2007-09-02 01:02 reiserfs_stage1_5
-rw-r--r-- 1 root root 512 2007-09-02 01:02 stage1
-rw-r--r-- 1 root root 110132 2007-09-02 01:02 stage2
-rw-r--r-- 1 root root 9980 2007-09-02 01:02 xfs_stage1_5
Merci.
#9 Le 02/09/2007, à 15:43
- Compte anonymisé
Re : Probleme avec Grub
Ton disque de boot (/dev/sda1) est en reiserfs. Je ne pense pas que ça pose pb mais j'ai jamais testé.
Depuis le livecd tu peux tenter de réinstaller grub :
sudo grub --->GRUB>
là tu tapes :
root (hd0,0) puis
setup (hd0) et tu tentes un reboot.
Si c'est toujours pareil, essaye l'ext3 pour ta partition /
@+
#10 Le 02/09/2007, à 16:04
- ErOBaKa
Re : Probleme avec Grub
[ 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> root (hd0,0)
grub> setup (hd0)
Checking if "/boot/grub/stage1" exists... yes
Checking if "/boot/grub/stage2" exists... yes
Checking if "/boot/grub/reiserfs_stage1_5" exists... yes
Running "embed /boot/grub/reiserfs_stage1_5 (hd0)"... 20 sectors are embedded
.
succeeded
Running "install /boot/grub/stage1 (hd0) (hd0)1+20 p (hd0,0)/boot/grub/stage2
/boot/grub/menu.lst"... succeeded
Done.
grub>
J'ai reboot, meme chose : /
je vais tout reinstaller en utilisant le format etx3 pour la partition root, je pense pas que ca va changer car j'avais deja essayer mais on sais jamais ...
Merci.
#11 Le 02/09/2007, à 16:28
- Compte anonymisé
Re : Probleme avec Grub
Dans ton menu.lst tu devrais essayer de commenter cette option :
## hiddenmenu
# Hides the menu by default (press ESC to see the menu)
# hiddenmenu
ça te permettrait de tester les trois options de menu.lst
@+
#12 Le 02/09/2007, à 17:11
- ErOBaKa
Re : Probleme avec Grub
J'ai une erreur maintenant quand Grub essaye de se charger ... : /
erreur 5
depuis que j'ai modifier le menu.lst
#13 Le 02/09/2007, à 18:04
- Compte anonymisé
Re : Probleme avec Grub
Erreur 5 Grub:
Partition table invalid or corrupt
Cette erreur est retournée si les vérifications de l'intégrité de la table de partitions échouent. C'est un mauvais signe.
Si tu n'en est qu'au début, tu as intéret à tout réinstaller :
Repartitionner et tout reprendre à zéro.
@+
#14 Le 02/09/2007, à 18:19
- ErOBaKa
Re : Probleme avec Grub
J'ai deja tout repris du debut plusieurs fois : /
j'ai meme effectué un formatage bas niveau avec les outils de maxtor
#15 Le 02/09/2007, à 20:06
- Compte anonymisé
Re : Probleme avec Grub
Tu as peut être un problème de reconnaissance ou de paramétrage de ton disque au niveau du bios.
@+
Pages : 1