Problème au démarrage (mise à jour noyau).

Fermé
Sxmon - 8 mars 2008 à 11:46
 Sxmon - 16 mars 2008 à 10:15
Bonjour,
Je suis actuellement sur un noyau 2.6.18 et j'ai compilé un 2.6.22 mais au démarrage du 2.6.22, j'ai l'erreur suivante :
VFS : Cannot open root device "hda1" or unknown block (0,0)
Please append a correct root="" boot option.
VFS : Unable to mount root fs or unknown-block (0,0).
C'est à peu près ça.
On m'a conseiller de remplacer hda par sda partout dans /etc/fstab et dans /boot/grub/menu.lst mais je ne comprends pas bien quoi faire et si ça va me faire planter Linux.
Ci-dessous les deux fichiers.
Sxmon

/etc/fstab :

# /etc/fstab: static file system information.
#
# <file system> <mount point> <type> <options> <dump> <pass>
proc /proc proc defaults 0 0
/dev/hda1 / ext3 defaults,errors=remount-ro 0 1
/dev/hda5 none swap sw 0 0
/dev/hdc /media/cdrom0 udf,iso9660 user,noauto 0 0
/dev/scd0 /media/cdrom1 udf,iso9660 user,noauto 0 0
/dev/fd0 /media/floppy0 msdos rw,user,noauto 0 0



/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 5

# 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=/dev/hda1 ro

## 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=

## 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=(single-user) single
# altoptions=(single-user 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 Debian GNU/Linux, kernel 2.6.22-3
root (hd0,0)
kernel /boot/vmlinuz-2.6.22-3 root=/dev/hda1 ro
savedefault

title Debian GNU/Linux, kernel 2.6.18-4-486
root (hd0,0)
kernel /boot/vmlinuz-2.6.18-4-486 root=/dev/hda1 ro
initrd /boot/initrd.img-2.6.18-4-486
savedefault

title Debian GNU/Linux, kernel 2.6.22-2
root (hd0,0)
kernel /boot/vmlinuz-2.6.22-2 root=/dev/hda1 ro
savedefault

title Debian GNU/Linux, kernel 2.6.22-2 (single-user mode)
root (hd0,0)
kernel /boot/vmlinuz-2.6.22-2 root=/dev/hda1 ro single
savedefault

title Debian GNU/Linux, kernel 2.6.22-1
root (hd0,0)
kernel /boot/vmlinuz-2.6.22-1 root=/dev/hda1 ro
savedefault

title Debian GNU/Linux, kernel 2.6.22-1 (single-user mode)
root (hd0,0)
kernel /boot/vmlinuz-2.6.22-1 root=/dev/hda1 ro single
savedefault

title Debian GNU/Linux, kernel 2.6.22
root (hd0,0)
kernel /boot/vmlinuz-2.6.22 root=/dev/hda1 ro
savedefault

title Debian GNU/Linux, kernel 2.6.22 (single-user mode)
root (hd0,0)
kernel /boot/vmlinuz-2.6.22 root=/dev/hda1 ro single
savedefault

title Debian GNU/Linux, kernel 2.6.18-4-486 (single-user mode)
root (hd0,0)
kernel /boot/vmlinuz-2.6.18-4-486 root=/dev/hda1 ro single
initrd /boot/initrd.img-2.6.18-4-486
savedefault
A voir également:

6 réponses

bob031 Messages postés 8158 Date d'inscription samedi 7 août 2004 Statut Membre Dernière intervention 1 septembre 2014 472
8 mars 2008 à 16:23
bonjour,

ls -l /boot/
0
$ ls -l /boot/
total 19404
-rw-r--r-- 1 root root 71818 2007-05-10 00:13 config-2.6.18-4-486
-rw-r--r-- 1 root root 76319 2007-12-01 21:29 config-2.6.22
-rw-r--r-- 1 root root 76743 2007-12-02 18:55 config-2.6.22-1
-rw-r--r-- 1 root root 76264 2007-12-02 20:55 config-2.6.22-2
-rw-r--r-- 1 root root 76264 2008-03-06 20:54 config-2.6.22-3
-rw-r--r-- 1 root root 75651 2008-03-08 12:35 config-2.6.22-4
drwxr-xr-x 2 root root 4096 2008-03-08 12:37 grub
-rw-r--r-- 1 root root 5069652 2008-01-26 16:34 initrd.img-2.6.18-4-486
-rw-r--r-- 1 root root 5074259 2007-08-30 14:20 initrd.img-2.6.18-4-486.bak
-rw-r--r-- 1 root root 216624 2007-07-30 17:38 rt61.ko
-rw-r--r-- 1 root root 716728 2007-05-10 06:10 System.map-2.6.18-4-486
-rw-r--r-- 1 root root 1220119 2007-05-10 06:10 vmlinuz-2.6.18-4-486
-rw-r--r-- 1 root root 1414672 2007-12-01 21:30 vmlinuz-2.6.22
-rw-r--r-- 1 root root 1414672 2007-12-02 18:55 vmlinuz-2.6.22-1
-rw-r--r-- 1 root root 1414672 2007-12-02 20:55 vmlinuz-2.6.22-2
-rw-r--r-- 1 root root 1391344 2008-03-06 20:55 vmlinuz-2.6.22-3
-rw-r--r-- 1 root root 1375664 2008-03-08 12:35 vmlinuz-2.6.22-4
0
bob031 Messages postés 8158 Date d'inscription samedi 7 août 2004 Statut Membre Dernière intervention 1 septembre 2014 472
8 mars 2008 à 17:26
heu ...
0
marc[i1] Messages postés 2573 Date d'inscription vendredi 1 avril 2005 Statut Contributeur Dernière intervention 6 septembre 2008 382
8 mars 2008 à 17:30
Salut,

Peux tu faire ceci et afficher le résultat :
grep PIIX /boot/config-2.6.22-4

et aussi :
lsmod | grep piix


Je vais jouer aussi au marabout … ton proco est un Intel !
:D
0
Bonjour,
Pour le processeur :
*-cpu
description: CPU
product: AMD Athlon(tm) XP 1800+
vendor: Advanced Micro Devices [AMD]
physical id: 4
bus info: cpu@0
version: 6.6.2
slot: Socket-A
size: 1533MHz
capacity: 3GHz
width: 32 bits
clock: 133MHz
capabilities: boot fpu fpu_exception wp vme de pse tsc msr pae mce cx8 apic sep mtrr pge mca cmov pat pse36 mmx fxsr sse syscall mmxext 3dnowext 3dnow ts


# grep PIIX /boot/config-2.6.22-4
CONFIG_BLK_DEV_PIIX=m
CONFIG_I2C_PIIX4=m

# lsmod | grep piix : rien du tout.

Sxmon
0
Sxmon > Sxmon
9 mars 2008 à 17:57
Donc si je comprends bien j'enlève CONFIG_BLK_DEV_PIIX=m CONFIG_I2C_PIIX4=m et je remplace par CONFIG_BLK_DEV_PIIX CONFIG_I2C_PIIX4 dans mon .config, je teste ça.
0
marc[i1] Messages postés 2573 Date d'inscription vendredi 1 avril 2005 Statut Contributeur Dernière intervention 6 septembre 2008 382
9 mars 2008 à 23:39
Je pensais que cela viendrais de la libpata mais non :/

par contre, en regardant ton menu.lst !
tu as tenter de mettre hd(0,1) au lieu de hd(0,0) ?
0

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

Posez votre question
bob031 Messages postés 8158 Date d'inscription samedi 7 août 2004 Statut Membre Dernière intervention 1 septembre 2014 472
10 mars 2008 à 15:59
bonjour,

certaines choses ne me semblent pas claires !

je suis actuellement sur un noyau 2.6.18 et j'ai compilé un 2.6.22 mais au démarrage du 2.6.22

or je vois dans le /boot/grub/ :
rw-r--r-- 1 root root 5069652 2008-01-26 16:34 initrd.img-2.6.18-4-486
-rw-r--r-- 1 root root 5074259 2007-08-30 14:20 initrd.img-2.6.18-4-486.bak
-rw-r--r-- 1 root root 216624 2007-07-30 17:38 rt61.ko
-rw-r--r-- 1 root root 716728 2007-05-10 06:10 System.map-2.6.18-4-486
-rw-r--r-- 1 root root 1220119 2007-05-10 06:10 vmlinuz-2.6.18-4-486
-rw-r--r-- 1 root root 1414672 2007-12-01 21:30 vmlinuz-2.6.22
-rw-r--r-- 1 root root 1414672 2007-12-02 18:55 vmlinuz-2.6.22-1
-rw-r--r-- 1 root root 1414672 2007-12-02 20:55 vmlinuz-2.6.22-2
-rw-r--r-- 1 root root 1391344 2008-03-06 20:55 vmlinuz-2.6.22-3
-rw-r--r-- 1 root root 1375664 2008-03-08 12:35 vmlinuz-2.6.22-4



que représentent les noyaux 2.6.22, 2.6.22.1, 2.6.22.2, 2.6.22.3 et 2.6.22.4 ??????

de plus le noyau 2.6.22 est sensiblement différent du noyau 2.6.18 : ton problème pourrait également être dû à une erreur dans la compilation du noyau, par exemple ton DD ne se nommerait plus ha1 mais sda1
0
Bonjour,
Les noyaux 2.6.22.1-4 représentent les différentes fois où j'ai compilé le noyau.
Le noyau 2.6.22 et le noyau 2.6.18 sont différents en quoi ?
Pour mon DD qui ne se nommerait plus hda1 mais sda1, on m'a donné une méthode, que je n'ai pas compris, et vu que je n'ai pas envie de faire de bêtises, je n'ai pas essayé bêtement.
Merci de la réponse,
Sxmon
0
bob031 Messages postés 8158 Date d'inscription samedi 7 août 2004 Statut Membre Dernière intervention 1 septembre 2014 472 > sxmon
11 mars 2008 à 18:39
je n'y connais pas grand chose et seule la documentation répondra à tes interrogations entre le noyau 6-18 et noyau 6-22.

je ne sais pas si le fichier de configuration du 6-18 a servi aux différentes compilations du 6-22 ?
en fait comment s'est effectuée la compilation du nouveau noyau ?

mais une chose est sûre, c'est différent ....

bon courage.
0
sxmon > bob031 Messages postés 8158 Date d'inscription samedi 7 août 2004 Statut Membre Dernière intervention 1 septembre 2014
11 mars 2008 à 20:23
Pour le nouveau noyau, il me semble avoir copié la config du 2.6.18, la compilation :
#make bzImage && make modules && make modules_install
#cp arch/i386/boot/bzImage /boot/vmlinuz-2.6.22
Edit de /boot/grub/menu.lst :
Ajout à la fin de :
title "2.6.22"
etc..., à noter : root=/dev/hda1
Sxmon
0
bob031 Messages postés 8158 Date d'inscription samedi 7 août 2004 Statut Membre Dernière intervention 1 septembre 2014 472 > sxmon
11 mars 2008 à 20:55
A)
"il me semble avoir copié la config du 2.6.18" ..........ça pourrait expliquer la chose !

faudrait plutôt faire make menuconfig && make modules && make modules_install

B)
pour remplacer hda1 en sda1 (à supposer que ce soit L'Explication et LA Solution) il suffit d'éditer fstab et menu.list et remplacer hda1 par sda1 (remplacer dans le menu.list uniquement les lignes concernant le nouveau noyau).

ne pas oublier de faire avant tout une copie des fichiers à modifier afin d'y revenir au cas ou ...

exemple :
/etc/fstab :

# /etc/fstab: static file system information.
#
# <file system> <mount point> <type> <options> <dump> <pass>
proc /proc proc defaults 0 0
/dev/sda1 / ext3 defaults,errors=remount-ro 0 1
/dev/sda5 none swap sw 0 0


du moins la réponse sera plus rapide parce que le make menuconfig ....c'est du boulot !

bon courage
0
Sxmon > bob031 Messages postés 8158 Date d'inscription samedi 7 août 2004 Statut Membre Dernière intervention 1 septembre 2014
12 mars 2008 à 19:15
Bonjour,
J'ai changé hda en sda dans fstab et menu.lst, le nouveau noyau ne fonctionne toujours pas, le 2.6.18 démarre encore sauf que quand on l'éteint, tout à la fin, il y a une petite erreur sur le swap (il ne trouverait pas /dev/sda5?).
Merci de la réponse,
Sxmon
0
bonjour,
ce matin en me mevent j'ai joue a css et ensuite j'ai reboot mon pc. aprés avoir reboot le pc je me suis connecter a steam est j'ai eu un probleme avc la mise a jour sa me fait steam est temporaiment indisponible, je les refait 4 heurs apre toujour la même chose et bcp d'aime arrive a ce connecte mais il ont u aussi de mise am jour.

Pouvez-vous m'aider ?

Merci
0