Gentoo Forums
Gentoo Forums
Gentoo Forums
Quick Search: in
[SOLVED][KERNEL]Kernel panic - unable mount root
View unanswered posts
View posts from last 24 hours
View posts from last 7 days

 
Reply to topic    Gentoo Forums Forum Index Polskie forum (Polish)
View previous topic :: View next topic  
Author Message
Mr Adam
Apprentice
Apprentice


Joined: 28 Jun 2006
Posts: 210
Location: Poland Tarnov

PostPosted: Thu Aug 03, 2006 9:22 am    Post subject: [SOLVED][KERNEL]Kernel panic - unable mount root Reply with quote

Witam
Uruchamiam wczoraj gentoo, a tu całkiem niespodziewanie \"Kernel Panic\"
Code:
RAMDISK: Couldn\'t find valid RAM disk image starting at 0.
UDF-fs: No partition found (1)
XFS: bad magic number
XFS: SB validate failed
Kernel Panic - not syncing: VFS: Unable to mount root Fs on Unkown block(1,0)


Wczoraj jeszcze wszystko było ok, nic nie zmieniałem w ustawieniach....

----------------------
Pogadałem z kilkoma ludźmi na jabberze, i wyłączyłem obsługę XFS w jądrze, i działa :P


Last edited by Mr Adam on Fri Aug 25, 2006 4:16 pm; edited 1 time in total
Back to top
View user's profile Send private message
martin.k
Guru
Guru


Joined: 28 Nov 2004
Posts: 493
Location: Wylatowo, Polska

PostPosted: Thu Aug 03, 2006 9:29 am    Post subject: Re: [KERNEL]Kernel panic - unable mount root Reply with quote

Mr Adam wrote:
Witam
Uruchamiam wczoraj gentoo, a tu całkiem niespodziewanie \"Kernel Panic\"
Code:
RAMDISK: Couldn\'t find valid RAM disk image starting at 0.
UDF-fs: No partition found (1)
XFS: bad magic number
XFS: SB validate failed
Kernel Panic - not syncing: VFS: Unable to mount root Fs on Unkown block(1,0)


Wczoraj jeszcze wszystko było ok, nic nie zmieniałem w ustawieniach....

Pewnie powalił ci się system plików (XFS ?) na partycji i nie może sie dostać do initrd.
Odpal livecd albo jakieś inne rescuecd i postaraj się naprawić system plików.
Jeśli się nie da, to pozostaje odtworzyć z kopii albo reinstalka 8O :lol:
_________________
linux-2.6.17 +ck +R4 +lockless +genetic-as +... więcej nie pamiętam :)
LRU #299256
Back to top
View user's profile Send private message
Gabrys
Veteran
Veteran


Joined: 05 Dec 2005
Posts: 1096
Location: Toruń [PL]

PostPosted: Thu Aug 03, 2006 3:24 pm    Post subject: Reply with quote

Nie masz wkompilowanej obsługi twojego systemu plików w kernel NA STAŁE bądź błędnie podałeś root=/dev/xxx w opcjach gruba.
_________________
Sabayon Professional 1.1 (czyli zdradziłem oryginalne Gentoo)
@ Dell Inspiron 8600 (nVidia, Realtek, Pentium M)
Back to top
View user's profile Send private message
Mr Adam
Apprentice
Apprentice


Joined: 28 Jun 2006
Posts: 210
Location: Poland Tarnov

PostPosted: Thu Aug 03, 2006 4:04 pm    Post subject: Reply with quote

Gabrys wrote:
Nie masz wkompilowanej obsługi twojego systemu plików w kernel NA STAŁE bądź błędnie podałeś root=/dev/xxx w opcjach gruba.

1.Jak to sprawdzić? Tzn. gdzie w kernelu?
2. Używam lilo, jednak jak działało, to musi być dobrze :-/

..::Milu Edit: poprawa cytowania.
Back to top
View user's profile Send private message
Gabrys
Veteran
Veteran


Joined: 05 Dec 2005
Posts: 1096
Location: Toruń [PL]

PostPosted: Thu Aug 03, 2006 4:13 pm    Post subject: Reply with quote

cat /boot/grub/grub.conf

patrzysz, który kernel jest domyślny (opcja default numerek, liczymy od zera!). A później patrzysz jakie masz opcje:

Quote:
timeout 05
default 0
fallback 1
splashimage=(hd0,2)/boot/grub/splash.xpm.gz

# For booting GNU/Linux
title Kororaa Xgl
root (hd0,2)
kernel /boot/kororaa root=/dev/ram0 real_root=/dev/hda8 init=/linuxrc video=vesafb:mtrr:3,1024x768-16@60 splash=silent,fadein,theme:kororaa quiet CONSOLE=/dev/tty1
initrd /boot/kororaa.igz

[...]


Ja mam root /dev/ram0. Jeśli sam kompilowałeś kernel (i skoro mówisz, że działa), to daj root=/dev/hda8, czy tam na jakiej partycji masz /.

Edit: jak masz LILO, to root=cośtam będzie w linijce append
_________________
Sabayon Professional 1.1 (czyli zdradziłem oryginalne Gentoo)
@ Dell Inspiron 8600 (nVidia, Realtek, Pentium M)
Back to top
View user's profile Send private message
Mr Adam
Apprentice
Apprentice


Joined: 28 Jun 2006
Posts: 210
Location: Poland Tarnov

PostPosted: Thu Aug 03, 2006 8:06 pm    Post subject: Reply with quote

Gabrys wrote:
cat /boot/grub/grub.conf

patrzysz, który kernel jest domyślny (opcja default numerek, liczymy od zera!). A później patrzysz jakie masz opcje:

Quote:
timeout 05
default 0
fallback 1
splashimage=(hd0,2)/boot/grub/splash.xpm.gz

# For booting GNU/Linux
title Kororaa Xgl
root (hd0,2)
kernel /boot/kororaa root=/dev/ram0 real_root=/dev/hda8 init=/linuxrc video=vesafb:mtrr:3,1024x768-16@60 splash=silent,fadein,theme:kororaa quiet CONSOLE=/dev/tty1
initrd /boot/kororaa.igz

[...]


Ja mam root /dev/ram0. Jeśli sam kompilowałeś kernel (i skoro mówisz, że działa), to daj root=/dev/hda8, czy tam na jakiej partycji masz /.

Edit: jak masz LILO, to root=cośtam będzie w linijce append


Mój lilo wygląda tak:
Code:
# $Header: /var/cvsroot/gentoo-x86/sys-boot/lilo/files/lilo.conf,v 1.2 2004/07/18 04:42:04 dragonheart Exp $
# Author: Ultanium

#
# Start LILO global section
#

# Faster, but won\\\\\\\'t work on all systems:
#compact
# Should work for most systems, and do not have the sector limit:
#lba32
# If lba32 do not work, use linear:
#linear

# MBR to install LILO to:
boot = /dev/hdb
#map = /boot/.map

# If you are having problems booting from a hardware raid-array
# or have a unusual setup, try this:
#disk=/dev/ataraid/disc0/disc bios=0x80  # see this as the first BIOS disk
#disk=/dev/sda bios=0x81                 # see this as the second BIOS disk
#disk=/dev/hda bios=0x82                 # see this as the third BIOS disk

# Here you can select the secondary loader to install.  A few
# examples is:
#
#    boot-text.b
#    boot-menu.b
#    boot-bmp.b
#
#install = /boot/boot-menu.b   # Note that for lilo-22.5.5 or later you
                              # do not need boot-{text,menu,bmp}.b in
                              # /boot, as they are linked into the lilo
                              # binary.

#menu-scheme=Wb
prompt
# If you always want to see the prompt with a 15 second timeout:
timeout=150
#delay = 50
# Normal VGA console
#vga = normal
# VESA console with size 1024x768x16:
vga = 791

#
# End LILO global section
#

#
# Linux bootable partition config begins
#
image = /boot/kernel-genkernel-x86-2.6.16-gentoo-r9
   #root = /devices/discs/disc0/part3
   label = Gentoo
   read-only # read-only for checking
   root = /dev/ram0
   append = \\\\\\\"init=/linuxrc real_root=/dev/hdb5\\\\\\\"
   initrd = /boot/initramfs-genkernel-x86-2.6.16-gentoo-r9
#
# Linux bootable partition config ends
#

#
# DOS bootable partition config begins
#
other = /dev/hdb1
   #other = /devices/discs/disc0/part1
   label = Windows
   table = /dev/hdb
#
# DOS bootable partition config ends 
#



Tak więc wszystko jest ok...

..::Milu Edit: Poprawka cytowania. Czemu poprzedzasz cudzysłowy backslashem?
Back to top
View user's profile Send private message
Mr Adam
Apprentice
Apprentice


Joined: 28 Jun 2006
Posts: 210
Location: Poland Tarnov

PostPosted: Thu Aug 03, 2006 9:51 pm    Post subject: Re: [KERNEL]Kernel panic - unable mount root Reply with quote

martin.k wrote:
Mr Adam wrote:
Witam
Uruchamiam wczoraj gentoo, a tu całkiem niespodziewanie\\\"Kernel Panic\\\"
Code:
RAMDISK: Couldn\\\'t find valid RAM disk image starting at 0.
UDF-fs: No partition found (1)
XFS: bad magic number
XFS: SB validate failed
Kernel Panic - not syncing: VFS: Unable to mount root Fs on Unkown block(1,0)


Wczoraj jeszcze wszystko było ok, nic nie zmieniałem w ustawieniach....

Pewnie powalił ci się system plików (XFS ?) na partycji i nie może sie dostać do initrd.
Odpal livecd albo jakieś inne rescuecd i postaraj się naprawić system plików.
Jeśli się nie da, to pozostaje odtworzyć z kopii albo reinstalka 8O :lol:


A powie mi ktoś jakie live-cd i jaki program z live cd? Jak naprawić tę partycję?
Nie można przekompilować kernela z obsługą ext3?
Co się dzieje z cytowaniem? nie mogę wysłać bez slasha?

SKLEJONE:

Nikt nie chce odpowiedzieć :-(
Napisze mi ktoś przynajmniej co muszę wkompilować w jądro przy następnej instalacji?

od raku: sugeruję zapoznanie się z przyciskiem ZMIEŃ. Służy on do dodania czegoś do ostatniej wypowiedzi.
Back to top
View user's profile Send private message
Redhot
Apprentice
Apprentice


Joined: 16 Jul 2006
Posts: 196

PostPosted: Sat Aug 05, 2006 7:35 am    Post subject: Reply with quote

Jeśli bootloader jest skonfigurowany dobrze to:

- odpalasz Live CD
- man fsck
- jeśli coś zreperował to reboot i patrzysz czy działa
- jeśli nie to LiveCD, "chrootujesz się" i rekompilujesz jądro (możesz w tym momencie skorzystać z handbooka instalacyjnego http://www.gentoo.org/doc/pl/handbook/handbook-x86.xml?part=1&chap=6#doc_chap1, tylko pamiętaj wcześniej żebyś podmountował wszystkie potrzebne partycje ;) )

//edited: wkompilować w jądro musisz na stałe!(nie moduł) obsługę Twojego systemu plików, który użyłeś na partycjach z Gentoo.
Back to top
View user's profile Send private message
arsen
Bodhisattva
Bodhisattva


Joined: 10 Apr 2004
Posts: 1803
Location: Tychy, Poland

PostPosted: Sat Aug 05, 2006 8:01 am    Post subject: Reply with quote

Po pierwsze widze że mało kto czytał to co pisał autor wątka, po co rady w stylu wkompilowania na stałe systemu plików? pisał że system mu działał więc samo się jądro nie skompilowało z modułem do obsługi xfs zamiast na stałe. Jeśli autor kłamał powinien mieć sam do siebie pretensje.
Po drugie, żadne man fsck, xfs ma swoje narzędzie naprawcze, odpal livecd i zrób
Code:

xfs_repair /dev/hdX

gdzie X to litera twojej partycji
Back to top
View user's profile Send private message
Gabrys
Veteran
Veteran


Joined: 05 Dec 2005
Posts: 1096
Location: Toruń [PL]

PostPosted: Sat Aug 05, 2006 9:06 am    Post subject: Reply with quote

To XFS to jest ściema przecież. Tak brzmi komunikat np. gdy podamy root=/dev/z/palca/wzięte. Nigdy nie miałem systemu XFS, a tak właśnie wyglądał komunikat: XFS cannot mount root partition
_________________
Sabayon Professional 1.1 (czyli zdradziłem oryginalne Gentoo)
@ Dell Inspiron 8600 (nVidia, Realtek, Pentium M)
Back to top
View user's profile Send private message
Raku
Bodhisattva
Bodhisattva


Joined: 28 Feb 2004
Posts: 2374
Location: Poland

PostPosted: Sat Aug 05, 2006 10:20 pm    Post subject: Reply with quote

@Mr Adam: nie używaj backslashy przy cytowaniu, bo pierdzielisz całe cytowanie.
_________________
raku

Powered by Archlinux ;-)
Back to top
View user's profile Send private message
Display posts from previous:   
Reply to topic    Gentoo Forums Forum Index Polskie forum (Polish) All times are GMT
Page 1 of 1

 
Jump to:  
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum