PDA

Archiv verlassen und diese Seite im Standarddesign anzeigen : Crux 2.6 Kernel panic - not syncing



Fluxi
09.06.10, 12:47
Hallo, bin Neu hier im Forum und habe mal ein paar fragen. :)

Auf meinem kleinen Server lief bis vor ein paar tagen Crux 2.4. Nun ist die Festplatte auf die Idee gekommen ihren Dienst einzustellen. Naja, neue platte rein und Crux 2.6 installieren. Problem ist wenn ich nach der installation von Lilo neu boote bekomme ich die meldung

Kernel panic - not syncing: VFS : unable to mount root fs on unkown-block(8,2)

Heißt für mich auf deusch, er kann root nicht mounten weil er die partion nicht findet bzw unbekannt ist. Ok, um sicher zustellen das ich im kernel nix vergessen habe, ubuntu cd geboot geschaut was der da so als module lädt. Und Kernel nochmal neugemacht allesdings die ext3 und ide/sata fest mit eingebaut. Allerdings bekomme ich da den selben fehler. Einzigste was mir nicht so ganz klar ist, wenn ich mit ubuntu fdisk -l mache sagt er mir die laufwerke sind /dev/hda und unter Crux sagt er mir /dev/sda. Hab auch zum test mal hda statt sda in der lilo.conf genommen allesdings ist er da nicht so begeistert davon :mad:.

Hatte zum testen mal Gentoo drauf gemacht das ging problemlos. Allerdings hätte ich halt gerne Crux :rolleyes:

Aqualung
09.06.10, 13:05
Poste bitte


fdisk -l

und


ls -l /dev/disk/by-uuid/
ls -l /dev/disk/by-id/

von einer Live-Cd aus.
und die lilo.conf.

Hast Du nach Ändern der lilo.conf


/sbin/lilo

aufgerufen?

ThorstenHirsch
09.06.10, 13:06
Ja, die Bezeichnungen der Platte haben sich mal geändert. Für lilo musst du (wenn ich's richtig in Erinnerung habe) sowohl in der config die neuen Bezeichnungen haben (z.B. /dev/sda1) als auch von einer LiveCD gebootet haben, die die neuen Bezeichnungen (im Live-System) hat, damit die Installation von Lilo funktionieren kann.

Fluxi
09.06.10, 14:41
Poste bitte


fdisk -l

und


ls -l /dev/disk/by-uuid/
ls -l /dev/disk/by-id/

von einer Live-Cd aus.
und die lilo.conf.

Hast Du nach Ändern der lilo.conf


/sbin/lilo

aufgerufen?


fdisk -l

Disk /dev/sda: 20.0 GB, 20003880960 bytes
16 heads, 63 sectors/track, 38760 cylinders
Units = cylinders of 1008 * 512 = 516096 bytes
Disk identifier: 0x1d933fd7

Device Boot Start End Blocks Id System
/dev/sda1 1 1647 830056+ 82 Linux swap / Solaris
/dev/sda2 * 1648 38760 18704952 83 Linux



ls -l /dev/disk/by-uuid/
total 0
lrwxrwxrwx 1 root root 10 2010-06-09 13:20 573922d9-f4ed-4c51-b4e7-1e3ff1682ff6 -> ../../sda1
lrwxrwxrwx 1 root root 10 2010-06-09 13:20 7a094c8c-ac93-4396-b660-efb728d31f9b -> ../../sda2



ls -l /dev/disk/by-id/
total 0
lrwxrwxrwx 1 root root 9 2010-06-09 13:20 ata-HITACHI_DK23EA-20_926372 -> ../../sda
lrwxrwxrwx 1 root root 10 2010-06-09 13:20 ata-HITACHI_DK23EA-20_926372-part1 -> ../../sda1
lrwxrwxrwx 1 root root 10 2010-06-09 13:20 ata-HITACHI_DK23EA-20_926372-part2 -> ../../sda2
lrwxrwxrwx 1 root root 9 2010-06-09 13:20 scsi-SATA_HITACHI_DK23EA-_926372 -> ../../sda
lrwxrwxrwx 1 root root 10 2010-06-09 13:20 scsi-SATA_HITACHI_DK23EA-_926372-part1 -> ../../sda1
lrwxrwxrwx 1 root root 10 2010-06-09 13:20 scsi-SATA_HITACHI_DK23EA-_926372-part2 -> ../../sda2



#
# /etc/lilo.conf: lilo(8) configuration, see lilo.conf(5)
#

lba32
install=text
boot=/dev/hda
image=/boot/vmlinuz
label=CRUX
root=/dev/hda2
read-only
append="quiet"

# End of file


So ich hoffe mal ich habe nix vergessen, Lilo hab ich nach jeder aenderung ausgefuehrt.
Und um normal sicherzugehen hatte ich nochmal eine andere platte dran. :eek:

Aqualung
09.06.10, 14:53
Bist Du sicher, daß Crux ohne initrd auskommt?

Fluxi
09.06.10, 15:06
Hi,

Hm laut dem Handbuch schon =) http://crux.nu/Main/Handbook2-6#ntoc11

Aqualung
09.06.10, 15:29
Probiers mal mit folgender lilo.conf:



#
# /etc/lilo.conf: lilo(8) configuration, see lilo.conf(5)
#

lba32
install=text
boot=/dev/sda

image = /boot/vmlinuz
append = "root=UUID=7a094c8c-ac93-4396-b660-efb728d31f9b"
read-only
label = Crux_by_UUID

Fluxi
09.06.10, 15:54
Hm, ok. So steigt lilo nicht sofort aus. Kernel bootet kurz paar zeilen kommen. Dann kommt die meldung wieder :eek:


VFS: Cannot open root device "UUID=7a094c8c-ac93-4396-b660-efb728d31f9b" or unkown-block(0,0)

Please append a correct "root=" boot option; here are the available partitions:
Kernel panic - not syncing : VFS : Unable to mount root fs on unkownßblock(0,0)
Pid: 1,comm: swapper Not tainted 2.6.30.5 #1
Call Trave

HirschHeisseIch
09.06.10, 16:03
Seh ich das richtig, dass bei Crux ein eigener Kernel gebacken wird?
Dann würd ich nämlich da mal weiter suchen...
Vielleicht irgendwas vergessen oder als Modul statt fest einkompiliert?
Da bin ich "damals" öfter drüber gestolpert, dass ich da ne Kleinigkeit vergessen hab.

Fluxi
09.06.10, 16:09
Ja, Crux is da Gentoo sehr ähnlich.

Das ist auch meine Hauptsorge, nur hab ich das alles schon 1000000mal überprüft :mad:, entweder seh ich es nicht. Ich werde hier noch :ugly:

Aqualung
09.06.10, 16:14
Grundsätzlich: backst Du einen modularisierten Kernel oder nicht?

An Module beim Booten kommst Du AFAIK nur mit initrd ran.

Vllt. in der Kernelconfig Module deaktivieren?