View previous topic :: View next topic |
Author |
Message |
styrix n00b
Joined: 30 Oct 2003 Posts: 41 Location: Catania
|
Posted: Thu Mar 18, 2004 8:07 pm Post subject: Kernel panic!!!! |
|
|
Salve!
Oggi ho fatto:
# uname -r
2.6.0-gentoo
# emerge sync
# emerge -s gentoo-dev-sources
Searching...
[ Results for search key : gentoo-dev-sources ]
[ Applications found : 1 ]
* sys-kernel/gentoo-dev-sources
Latest version available: 2.6.3-r1
Latest version installed: 2.6.3-r1
Size of downloaded files: 33,863 kB
Homepage: http://www.kernel.org/ http://www.gentoo.org/
Description: Full sources including the gentoo patchset for the 2.6 kernel tree
License: GPL-2
# emerge -u gentoo-dev-sources
.....
# rm /usr/src/linux
# ln -s /usr/src/linux-2.6.3-gentoo-r1 /usr/src/linux
# cp /usr/src/linux-2.6.0-gentoo/.config /usr/src/linux
# mount /dev/hda1 /boot
# mv /boot/vmlinuz /boot/vmlinuz-old
# vim /etc/lilo.conf
/*********************************************** lilo.conf *********************************************/
boot=/dev/hda
vga=795
prompt
timeout=1500
default=Gentoo-2.6.0
image=/boot/vmlinuz-old
label=Gentoo-2.6.0
read-only
root=/dev/hda3
image=/boot/vmlinuz
label=Gentoo-2.6.3-a
read-only
root=/dev/hda3
image=/boot/vmlinuz
label=Gentoo-2.6.3-b
append="root=/dev/hda3 ro"
/*******************************************************************************************************/
# cd /usr/src/linux
# make oldconfig
.....
# make
.....
# make modules_install
.....
# make install
.....
Added Gentoo-2.6.0 *
Added Gentoo-2.6.3-a
Added Gentoo-2.6.3-b
# shutdown -r +0
Il tutto riesce perfettamente e quando riavvio mi da questo segnale di panic sia con Gentoo-2.6.3-a e sia con Gentoo-2.6.3-b:
VFS: cannot open root device "303" or hda3
Please append a correct "root=" boot option
Kernel panic: VFS: unable to mount root fs on hda3
Io ho configurato benissimo il FS della root che e' hda3.
Adesso, secondo voi, cosa puo' essere ?
styrix
Last edited by styrix on Thu Mar 18, 2004 8:37 pm; edited 8 times in total |
|
Back to top |
|
|
codadilupo Advocate
Joined: 05 Aug 2003 Posts: 3135
|
Posted: Thu Mar 18, 2004 8:13 pm Post subject: |
|
|
1) controlla di aver montato /boot prima di averci copiato il kernel
2) controlla di aver dato il comando dopo aver modificato lilo.conf
3) controlla che il kernel che hai creato non sia corrotto. Magari prova a ricompilarlo.
4)... alla fine hai tenuto il nick, eh ?
Hai fatto bene
Coda |
|
Back to top |
|
|
Sasdo Guru
Joined: 18 Feb 2004 Posts: 542 Location: 44.476474,11.644446 circa.
|
Posted: Thu Mar 18, 2004 8:13 pm Post subject: |
|
|
domanda scema... hai dato
dopo aver configurato lilo.conf ? _________________ LinuxUser #362518
--
Ochei lo ammetto: il mio cervello lo tengo in frigo. |
|
Back to top |
|
|
styrix n00b
Joined: 30 Oct 2003 Posts: 41 Location: Catania
|
Posted: Thu Mar 18, 2004 8:18 pm Post subject: Re: Kernel panic!!!! |
|
|
styrix wrote: | Salve!
Oggi ho fatto:
# uname -r
2.6.0-gentoo
# emerge sync
# emerge -s gentoo-dev-sources
Searching...
[ Results for search key : gentoo-dev-sources ]
[ Applications found : 1 ]
* sys-kernel/gentoo-dev-sources
Latest version available: 2.6.3-r1
Latest version installed: 2.6.3-r1
Size of downloaded files: 33,863 kB
Homepage: http://www.kernel.org/ http://www.gentoo.org/
Description: Full sources including the gentoo patchset for the 2.6 kernel tree
License: GPL-2
# emerge -u gentoo-dev-sources
.....
# rm /usr/src/linux
# ln -s /usr/src/linux-2.6.3-gentoo-r1 /usr/src/linux
# cp /usr/src/linux-2.6.0-gentoo/.config /usr/src/linux
# mount /dev/hda1 /boot
# mv /boot/vmlinuz /boot/vmlinuz.old
# vim /etc/lilo.conf
/*********************************************** lilo.conf *********************************************/
boot=/dev/hda
vga=795
prompt
timeout=1500
default=Gentoo-2.6.0
image=/boot/vmlinuz-old
label=Gentoo-2.6.0
read-only
root=/dev/hda3
image=/boot/vmlinuz
label=Gentoo-2.6.3-a
read-only
root=/dev/hda3
image=/boot/vmlinuz
label=Gentoo-2.6.3-b
append="root=/dev/hda3 ro"
/*******************************************************************************************************/
# cd /usr/src/linux
# make oldconfig
# make
# make modules_install
# make install
Il tutto riesce perfettamente e quando riavvio mi da questo segnale di panic sia con Gentoo-2.6.3-a che con Gentoo-2.6.3-b:
VFS: cannot open root device "303" or hda3
Please append a correct "root=" boot option
Kernel panic: VFS: unable to mount root fs on hda3
Io ho configurato benissimo il FS (ext3) della root (hda3).
Adesso, secondo voi, cosa puo' essere ?
styrix |
|
|
Back to top |
|
|
fedeliallalinea Administrator
Joined: 08 Mar 2003 Posts: 30964 Location: here
|
Posted: Thu Mar 18, 2004 8:21 pm Post subject: |
|
|
Come ti hanno detto gli altri non hai lanciato il comando
_________________ Questions are guaranteed in life; Answers aren't. |
|
Back to top |
|
|
styrix n00b
Joined: 30 Oct 2003 Posts: 41 Location: Catania
|
Posted: Thu Mar 18, 2004 8:23 pm Post subject: |
|
|
1) Io ho configurato il config del lilo (/etc/lilo.conf) prima di compilare il nuovo kernel e poi il make install mi ha chiesto di aggiornare lilo ed e' tutto riuscito come doveva riuscire.
2) La /boot l'avevo montata molto prima per via del lilo richiamato nel make install.
3) Il kernel non penso che sia corrotto perche' l'ho ricompilato 4 volte.
Help me!!!!
Last edited by styrix on Thu Mar 18, 2004 8:24 pm; edited 1 time in total |
|
Back to top |
|
|
codadilupo Advocate
Joined: 05 Aug 2003 Posts: 3135
|
Posted: Thu Mar 18, 2004 8:24 pm Post subject: Re: Kernel panic!!!! |
|
|
styrix wrote: | # mv /boot/vmlinuz /boot/vmlinuz.old
# vim /etc/lilo.conf
image=/boot/vmlinuz-old
|
intanto o e' vmlinuz.old, oppure é vmlinuz-old. Secondo: devi dare lilo -v per "accettare" le modifiche a lilo.conf
Coda |
|
Back to top |
|
|
fedeliallalinea Administrator
Joined: 08 Mar 2003 Posts: 30964 Location: here
|
Posted: Thu Mar 18, 2004 8:26 pm Post subject: |
|
|
Prova a lanciare ugualmente lilo -v per vedere se ti da qualche errore. _________________ Questions are guaranteed in life; Answers aren't. |
|
Back to top |
|
|
styrix n00b
Joined: 30 Oct 2003 Posts: 41 Location: Catania
|
Posted: Thu Mar 18, 2004 8:27 pm Post subject: |
|
|
1) scusate ma ho fatto un errore. Ecco il comando che ho dato:
# mv /boot/vmlinuz /boot/vmlinuz-old
2) Il lilo non l'ho dato perche' alla fine di tutto ho devo fare il make install che me lo aggiorna.
styrix |
|
Back to top |
|
|
|