Pagina 1 di 1

compilazione kernel: kernel panic

MessaggioInviato: lun nov 08, 2010 2:00 pm
da Palpas
Ciao a tutti, ho ricompilato il kernel come nell'articolo del doctor....ho messo anche come base il kernel precedente (cosi da evitare malfunzionamenti)........eppure ora ubuntu non parte, va in kernel panic.
Precisamente dice: Unable to mount root fs on unknown-block (0.0)


Ragazzi com'è possibile?? Prima della compilazione ho caricato il vecchio kernel come base....non dovevo stare al sicuro?
che nocciole... [nonono] [nonono]

Re: compilazione kernel: kernel panic

MessaggioInviato: lun nov 08, 2010 2:34 pm
da farbix89
Qualche passaggio sbagliato?

Smanettato troppo?

Se poi hai seguito alla lettera la guida di Doc,deve andare [uhm]

Re: compilazione kernel: kernel panic

MessaggioInviato: lun nov 08, 2010 6:53 pm
da Palpas
bah...non ho smanettato affatto....riproverò...

Re: compilazione kernel: kernel panic

MessaggioInviato: lun nov 08, 2010 6:58 pm
da The Doctor
Se avvii con il vecchio kernel tutto procede normalmente?

Re: compilazione kernel: kernel panic

MessaggioInviato: lun nov 08, 2010 7:02 pm
da Palpas
The Doctor ha scritto:Se avvii con il vecchio kernel tutto procede normalmente?

Come faccio? Ubuntu non parte
(ora sto provando a masterizzarmi una live)...ci sono altri metodi per avviarlo?...magari una modalità provvisoria..

Re: compilazione kernel: kernel panic

MessaggioInviato: lun nov 08, 2010 7:05 pm
da The Doctor
Non hai lasciato il kernel funzionante? [acc2] Avvia con una live, dovresti postarmi

Codice: Seleziona tutto
sudo fdisk -l


ed il contenuto di /boot/grub/grub.cfg la parte relativa a

Codice: Seleziona tutto
### BEGIN /etc/grub.d/10_linux ###

...

### END /etc/grub.d/10_linux ###

Re: compilazione kernel: kernel panic

MessaggioInviato: lun nov 08, 2010 7:19 pm
da Palpas
il kernel funzionante l'ho lasciato [:)]
Solo che ora non posso ripristinarlo perché ubuntu non si avvia...ti faccio sapere quando e se riesco ad avviare
grazie per il supporto ragazzi [;)]

Re: compilazione kernel: kernel panic

MessaggioInviato: mar nov 09, 2010 8:29 pm
da Palpas
ecco sudo fdisk /l

This doesn't look like a partition table
Probably you selected the wrong device.

Device Boot Start End Blocks Id System
/dev/sdb1 ? 825235 888389 123339962 78 Unknown
Partition 1 has different physical/logical beginnings (non-Linux?):
phys=(518, 102, 15) logical=(825234, 44, 50)
Partition 1 has different physical/logical endings:
phys=(743, 0, 62) logical=(888388, 51, 15)
Partition 1 does not end on cylinder boundary.
/dev/sdb2 ? 110823 309410 387841909+ 10 OPUS
Partition 2 has different physical/logical beginnings (non-Linux?):
phys=(205, 7, 0) logical=(110822, 6, 14)
Partition 2 has different physical/logical endings:
phys=(920, 235, 50) logical=(309409, 54, 34)
Partition 2 does not end on cylinder boundary.
/dev/sdb3 ? 478639 969993 959615034 8b Unknown
Partition 3 has different physical/logical beginnings (non-Linux?):
phys=(260, 125, 54) logical=(478638, 40, 56)
Partition 3 has different physical/logical endings:
phys=(893, 46, 60) logical=(969992, 62, 35)
Partition 3 does not end on cylinder boundary.
/dev/sdb4 ? 976497 978628 4161564 a OS/2 Boot Manager
Partition 4 has different physical/logical beginnings (non-Linux?):
phys=(269, 111, 50) logical=(976496, 29, 27)
Partition 4 has different physical/logical endings:
phys=(0, 0, 0) logical=(978627, 20, 26)
Partition 4 does not end on cylinder boundary.

Partition table entries are not in disk order


ed ecco il contenuto di /boot/grub/grub.cfg

#
# DO NOT EDIT THIS FILE
#
# It is automatically generated by /usr/sbin/grub-mkconfig using templates
# from /etc/grub.d and settings from /etc/default/grub
#

### BEGIN /etc/grub.d/00_header ###
if [ -s $prefix/grubenv ]; then
load_env
fi
set default="0"
if [ ${prev_saved_entry} ]; then
set saved_entry=${prev_saved_entry}
save_env saved_entry
set prev_saved_entry=
save_env prev_saved_entry
set boot_once=true
fi

function savedefault {
if [ -z ${boot_once} ]; then
saved_entry=${chosen}
save_env saved_entry
fi
}

function recordfail {
set recordfail=1
if [ -n ${have_grubenv} ]; then if [ -z ${boot_once} ]; then save_env recordfail; fi; fi
}
insmod ext2
set root='(hd0,1)'
search --no-floppy --fs-uuid --set 4042d1dd-5113-44b5-a6ba-8f45576607ad
if loadfont /usr/share/grub/unicode.pf2 ; then
set gfxmode=640x480
insmod gfxterm
insmod vbe
if terminal_output gfxterm ; then true ; else
# For backward compatibility with versions of terminal.mod that don't
# understand terminal_output
terminal gfxterm
fi
fi
insmod ext2
set root='(hd0,1)'
search --no-floppy --fs-uuid --set 4042d1dd-5113-44b5-a6ba-8f45576607ad
set locale_dir=($root)/boot/grub/locale
set lang=it
insmod gettext
if [ ${recordfail} = 1 ]; then
set timeout=-1
else
set timeout=10
fi
### END /etc/grub.d/00_header ###

### BEGIN /etc/grub.d/05_debian_theme ###
set menu_color_normal=white/black
set menu_color_highlight=black/light-gray
### END /etc/grub.d/05_debian_theme ###

### BEGIN /etc/grub.d/10_linux ###
menuentry 'Ubuntu, con Linux 2.6.36' --class ubuntu --class gnu-linux --class gnu --class os {
recordfail
insmod ext2
set root='(hd0,1)'
search --no-floppy --fs-uuid --set 4042d1dd-5113-44b5-a6ba-8f45576607ad
linux /boot/vmlinuz-2.6.36 root=/dev/sda1 ro quiet splash
}
menuentry 'Ubuntu, con Linux 2.6.36 (modalità ripristino)' --class ubuntu --class gnu-linux --class gnu --class os {
recordfail
insmod ext2
set root='(hd0,1)'
search --no-floppy --fs-uuid --set 4042d1dd-5113-44b5-a6ba-8f45576607ad
echo 'Caricamento Linux 2.6.36...'
linux /boot/vmlinuz-2.6.36 root=/dev/sda1 ro single
echo 'Caricamento ramdisk iniziale...'
}
menuentry 'Ubuntu, con Linux 2.6.32-21-generic' --class ubuntu --class gnu-linux --class gnu --class os {
recordfail
insmod ext2
set root='(hd0,1)'
search --no-floppy --fs-uuid --set 4042d1dd-5113-44b5-a6ba-8f45576607ad
linux /boot/vmlinuz-2.6.32-21-generic root=UUID=4042d1dd-5113-44b5-a6ba-8f45576607ad ro quiet splash
initrd /boot/initrd.img-2.6.36
}
menuentry 'Ubuntu, con Linux 2.6.32-21-generic (modalità ripristino)' --class ubuntu --class gnu-linux --class gnu --class os {
recordfail
insmod ext2
set root='(hd0,1)'
search --no-floppy --fs-uuid --set 4042d1dd-5113-44b5-a6ba-8f45576607ad
echo 'Caricamento Linux 2.6.32-21-generic...'
linux /boot/vmlinuz-2.6.32-21-generic root=UUID=4042d1dd-5113-44b5-a6ba-8f45576607ad ro single
echo 'Caricamento ramdisk iniziale...'
initrd /boot/initrd.img-2.6.36
}
### END /etc/grub.d/10_linux ###

### BEGIN /etc/grub.d/20_memtest86+ ###
menuentry "Memory test (memtest86+)" {
insmod ext2
set root='(hd0,1)'
search --no-floppy --fs-uuid --set 4042d1dd-5113-44b5-a6ba-8f45576607ad
linux16 /boot/memtest86+.bin
}
menuentry "Memory test (memtest86+, serial console 115200)" {
insmod ext2
set root='(hd0,1)'
search --no-floppy --fs-uuid --set 4042d1dd-5113-44b5-a6ba-8f45576607ad
linux16 /boot/memtest86+.bin console=ttyS0,115200n8
}
### END /etc/grub.d/20_memtest86+ ###

### BEGIN /etc/grub.d/30_os-prober ###
if [ ${timeout} != -1 ]; then
if keystatus; then
if keystatus --shift; then
set timeout=-1
else
set timeout=0
fi
else
if sleep --interruptible 3 ; then
set timeout=0
fi
fi
fi
### END /etc/grub.d/30_os-prober ###

### BEGIN /etc/grub.d/40_custom ###
# This file provides an easy way to add custom menu entries. Simply type the
# menu entries you want to add after this comment. Be careful not to change
# the 'exec tail' line above.
### END /etc/grub.d/40_custom ###


Ho avviato con una live

Re: compilazione kernel: kernel panic

MessaggioInviato: mar nov 09, 2010 11:10 pm
da The Doctor
ecco sudo fdisk /l


sicuro che hai fatto

Codice: Seleziona tutto
fdisk -l


è un errore di digitazione?

Re: compilazione kernel: kernel panic

MessaggioInviato: mar nov 09, 2010 11:12 pm
da The Doctor
Codice: Seleziona tutto
menuentry 'Ubuntu, con Linux 2.6.32-21-generic' --class ubuntu --class gnu-linux --class gnu --class os {
recordfail
insmod ext2
set root='(hd0,1)'
search --no-floppy --fs-uuid --set 4042d1dd-5113-44b5-a6ba-8f45576607ad
linux /boot/vmlinuz-2.6.32-21-generic root=UUID=4042d1dd-5113-44b5-a6ba-8f45576607ad ro quiet splash
initrd /boot/initrd.img-2.6.36


hai messo l'initrd nel kernel sbagliato [;)]

Re: compilazione kernel: kernel panic

MessaggioInviato: mer nov 10, 2010 10:39 pm
da Palpas
fdisk l'ho lanciato correttamente (ho fatto un errore di digitazione nello scrivere il post)

Il nuovo kernel che ho compilato è quello che finisce per 2.6.36
Dove lo devo mettere precisamente l'initdr?

Re: compilazione kernel: kernel panic

MessaggioInviato: mer nov 10, 2010 11:37 pm
da The Doctor
Palpas ha scritto:fdisk l'ho lanciato correttamente (ho fatto un errore di digitazione nello scrivere il post)

Il nuovo kernel che ho compilato è quello che finisce per 2.6.36
Dove lo devo mettere precisamente l'initdr?


Solamente sotto al nuovo kernel, il resto dovevi lasciarlo invariato.

Re: compilazione kernel: kernel panic

MessaggioInviato: mer nov 10, 2010 11:50 pm
da Palpas
Evviva è partito!!! Grazie Doctor!!! [applauso+] [grazie]

Ma non ho capito quello che ho fatto, cos'era successo? nel grub.cfg cosa ho impostato? quanti kernel ho?? [uhm]

Re: compilazione kernel: kernel panic

MessaggioInviato: gio nov 11, 2010 12:03 am
da The Doctor
Palpas ha scritto:Evviva è partito!!! Grazie Doctor!!! [applauso+] [grazie]

Ma non ho capito quello che ho fatto, cos'era successo? nel grub.cfg cosa ho impostato? quanti kernel ho?? [uhm]


Avevi messo l'initrd del nuovo kernel sotto a tutti i kernel tranne che a quello nuovo [:D]

### BEGIN /etc/grub.d/10_linux ###
menuentry 'Ubuntu, con Linux 2.6.36' --class ubuntu --class gnu-linux --class gnu --class os { ***NUOVO KERNEL***
recordfail
insmod ext2
set root='(hd0,1)'
search --no-floppy --fs-uuid --set 4042d1dd-5113-44b5-a6ba-8f45576607ad
linux /boot/vmlinuz-2.6.36 root=/dev/sda1 ro quiet splash
QUI ANDAVA L'INITRD 2.6.36
}
menuentry 'Ubuntu, con Linux 2.6.36 (modalità ripristino)' --class ubuntu --class gnu-linux --class gnu --class os {
recordfail
insmod ext2
set root='(hd0,1)'
search --no-floppy --fs-uuid --set 4042d1dd-5113-44b5-a6ba-8f45576607ad
echo 'Caricamento Linux 2.6.36...'
linux /boot/vmlinuz-2.6.36 root=/dev/sda1 ro single
echo 'Caricamento ramdisk iniziale...'
}
menuentry 'Ubuntu, con Linux 2.6.32-21-generic' --class ubuntu --class gnu-linux --class gnu --class os { ***VECCHIO KERNEL***
recordfail
insmod ext2
set root='(hd0,1)'
search --no-floppy --fs-uuid --set 4042d1dd-5113-44b5-a6ba-8f45576607ad
linux /boot/vmlinuz-2.6.32-21-generic root=UUID=4042d1dd-5113-44b5-a6ba-8f45576607ad ro quiet splash
initrd /boot/initrd.img-2.6.36 ***ERRORE***
}
menuentry 'Ubuntu, con Linux 2.6.32-21-generic (modalità ripristino)' --class ubuntu --class gnu-linux --class gnu --class os {
recordfail
insmod ext2
set root='(hd0,1)'
search --no-floppy --fs-uuid --set 4042d1dd-5113-44b5-a6ba-8f45576607ad
echo 'Caricamento Linux 2.6.32-21-generic...'
linux /boot/vmlinuz-2.6.32-21-generic root=UUID=4042d1dd-5113-44b5-a6ba-8f45576607ad ro single
echo 'Caricamento ramdisk iniziale...'
initrd /boot/initrd.img-2.6.36 ***ERRORE***
}
### END /etc/grub.d/10_linux ###


[;)]

Re: compilazione kernel: kernel panic

MessaggioInviato: gio nov 11, 2010 12:11 am
da Palpas
sono proprio un niubbo del ca**o... abbi pazienza [:D]
grazie ancora doc! [;)] [grazie]

Re: compilazione kernel: kernel panic

MessaggioInviato: gio nov 11, 2010 12:17 am
da The Doctor
Palpas ha scritto:sono proprio un niubbo del ca**o... abbi pazienza [:D]
grazie ancora doc! [;)] [grazie]


Sempre a disposizione [^]

Re: compilazione kernel: kernel panic

MessaggioInviato: gio nov 11, 2010 11:38 pm
da ninjabionico
Ciao.

Con un kernel compilato e ottimizzato non è necessario creare un'immagine initdr...

... se riesci a inserire tutti i driver del chipset, del filesystem delle partizioni essenziali (/ e /boot) e le funzionalità più importanti in modo statico nel kernel, creare un file initrd diventa superfluo per l'avvio del sistema e si ottiene una riduzione del tempo di boot.

[ciao]

Re: compilazione kernel: kernel panic

MessaggioInviato: gio nov 11, 2010 11:41 pm
da Palpas
grazie dell'info ninja [;)] ........anche se tende un po a confondermi le idee [:D]