[Date Prev][Date Next] [Thread Prev][Thread Next] [Date Index] [Thread Index]

Re: kernel panic dopo upgrade



Alle 21:10, lunedì 23 gennaio 2006, Davide Prina ha scritto:
> Alessandro Alesio ha scritto:
> > Ho fatto un aggiornamento del sistema con aptitude. Durante
> > l'aggiornamento mi compare :
> >
> >  You are attempting to install a kernel version that is the same as
> >  the version you are currently running (version 2.4.27-2-386). The
> > modules
> >  list is quite likely to have been changed, and the modules dependency
> >  file /lib/modules/2.4.27-2-386/modules.dep needs to be re-built. It
> > can
> >  not be built correctly right now, since the module list for the
> >  running kernel are likely to be different from the kernel installed.
> >  I am creating a new modules.dep file, but that may not be
> >  correct. It shall be regenerated correctly at next reboot.
> >
> >  I repeat: you have to reboot in order for the modules file to be
> >  created correctly. Until you reboot, it may be impossible to load
> >  some modules. Reboot as soon as this install is finished (Do not
> >  reboot right now, since you may not be able to boot back up until
> >  installation is over, but boot immediately after). I can not stress
> >  that too much. You need to reboot soon.
>
> questo indica che stai cercando di sovrascrivere una versione di Linux
> già esistente con un'altra che probabilmente non è compatibile!!!!

sbagliato...

vuol dire che stai installando un aggiornamento di pare release (per esempio 
sostituisci linux-image-2.6.15-1.deb con linux-image-2.6.15-2.deb e che in 
questo momento quel kernel che stai sostituendo è quello che stai anche 
usando)... quindi ti dice che per rimettere tutto in ordine DEVI restartare, 
per permettere al nuovo kernel di ricaricare tutti i moduli nella maniera 
corretta...

> > Please Hit return to continue.
> > /usr/sbin/mkinitrd: add_modules_dep_2_5: modprobe failed
> > FATAL: Module DAC960.o not found.
> > FATAL: Module cciss.o not found.
> >
> > [...... lista di TUTTI i moduli .......]
>
> infatti. Se cerchi di mettere una versione di Linux sopra un'altra con
> delle incompatibilità questo è il minimo che ti può succedere.
> Tutti i moduli devono essere compilati con lo stesso compilatore (stessa
> versione) ... a dire la verità non ho mai provato, l'ho solo letto.

questo effettivamente potrebbe essere, una differenza del compilatore con cui 
sono state preparate, ma se hai usato le immagini di debian mi pare un po' 
difficile...

>
> > Dopo il reboot :
> >
> > Kernel panic: Attempted to kill init!
>
> questo è naturalmente quello che succede in seguito
>
> > Guardando in un thread precedente dicevano di avviare da un live cd, di
> > fare chroot sul disco di boot, di cancellare il file
> > /boot/initrd.img-2.4.27-2-386 e di crearne uno nuovo con il comando :
> > mkinitrd -o /boot/initrd.img-2.4.27-2-386 2.4.27-2-386

la cosa più semplice è tenere sempre 2 versioni diverse del kernel, quando è 
successo a me questo problema, con la 2.6.14 ho seguito i seguenti passi:

1) restartato con il vecchio kernel in safe mode...
2) cancellato initrd e ricreato con i comandi che hai citato... 


Byez
-- 
Gollum1
Tesssssoro, dov'é il mio tessssoro?



Reply to: