Nie jesteś zalogowany.
Jeśli nie posiadasz konta, zarejestruj je już teraz! Pozwoli Ci ono w pełni korzystać z naszego serwisu. Spamerom dziękujemy!

Ogłoszenie

Prosimy o pomoc dla małej Julki — przekaż 1% podatku na Fundacji Dzieciom zdazyć z Pomocą.
Więcej informacji na dug.net.pl/pomagamy/.

#1  2005-03-25 22:27:51

  BOyA - Użytkownik

BOyA
Użytkownik
Skąd: mam widzieć :P
Zarejestrowany: 2005-03-07

Kernel panic ;/

Witam
Zainstalowalem sobie DEBIANA sarga...z jajem 2.4.27 i chcialem sobie wsadzic jajko 2.6.6

1.sciagnelem z kernel.org plik linux-2.6.6.tar.gz
2.rozpakowalem do katalogu /usr/src/linux-2.6.6
3.make menuconfig i wybralem co mi bylo potrzebne i save
4.make pozenij make modules_install
5.skopiowalem obraz bzImage do boot pod nazwa vmlinuz266
6.dodalem wpis do lilo conf do tego obazu i savnelem lilo -v
7.reboot

i to mi sie pokazalo ;/

RAMDISK: Couldn t find valid RAM disk image starting at 0
please append a correct "root=" boot option
Kernel panic - not syncing: VFS: Unable to mount root fs on unknow-block(3,1)


...może ktoś wie co jest nie tak ? byłbym wdzięczyny bo to kolejny dzień jak nad tym siedze ;/

Offline

 

#2  2005-03-25 22:47:39

  rogos - Moderator

rogos
Moderator
Zarejestrowany: 2005-02-12

Re: Kernel panic ;/

Czesto mialem takie bledy.. zle skonfigurowane kernel


http://img88.imageshack.us/img88/1856/imageslg0.png

Offline

 

#3  2005-03-25 23:03:39

  BOyA - Użytkownik

BOyA
Użytkownik
Skąd: mam widzieć :P
Zarejestrowany: 2005-03-07

Re: Kernel panic ;/

to co sciagnelem z kernel.org chyba jest ok :)...

wiec może znasz jakas metdoe zeby to jajo dobrze skompilowac ?

Offline

 

#4  2005-03-25 23:05:59

  Bodzio - Ojciec Założyciel

Bodzio
Ojciec Założyciel
Skąd: Gorlice
Zarejestrowany: 2004-04-17
Serwis

Re: Kernel panic ;/

dwa wyjścia:
pierwsze i chyba najlepsze - zachaszuj w /etc/lilo.conf linijkę initrd.img
2. stwórz nowy plik initrd.img (poczytaj man initrd)


Debian jest lepszy niż wszystkie klony
Linux register users: #359018
http://www.freebsd.org/gifs/powerlogo.gif
Beskid Niski

Offline

 

#5  2005-03-26 05:44:15

  rychu - elektryk dyżurny

rychu
elektryk dyżurny
Skąd: gdańsk/kalmar
Zarejestrowany: 2004-12-28

Re: Kernel panic ;/

kilka rad:
- jeżeli zasysasz jajko z kernel.org, to ściągaj najnowsze wersje. teraz jest to 2.4.11
- staraj się unikać modułów, lepiej jest wbudować wszystko na stałe - mniej problemów
- jeżeli naprawdę nie potrzebujesz initrd (np. do bootowania lina z dyskietek albo do bootsplasha), to go zwyczajnie nie używaj ;) wyhaszuj linijkę w lilo.conf i przeładuj lilo
- w debianie najwygodniej jest robić sobie jądro metodą debiana

--
EDIT: sory oczywiście najnowsze jest teraz 2.6.11


linux regd. user #248790

Offline

 

#6  2005-03-26 14:04:21

  rogos - Moderator

rogos
Moderator
Zarejestrowany: 2005-02-12

Re: Kernel panic ;/

A co to wogole jest initrd?? Bo słyszałem pare razy o tym ale nie iwem co to jest?


http://img88.imageshack.us/img88/1856/imageslg0.png

Offline

 

#7  2005-03-26 18:18:33

  Bodzio - Ojciec Założyciel

Bodzio
Ojciec Założyciel
Skąd: Gorlice
Zarejestrowany: 2004-04-17
Serwis

Re: Kernel panic ;/

A co to wogole jest initrd?? Bo słyszałem pare razy o tym ale nie iwem co to jest?

To powstało niedawno :)
jeżeli powstają dystrybucje które są robione dla tzw. "ogółu" czyli tłumu hehe, w kernelu dystrybucyjnym system plików (fileststem) jest wkompilowany jako modół - i  to bez względu na to czy to jest ext2, ext3, czy reiser. Chodzi o to żeby każdemu dystrybucja się odpaliła.
Initrd jest bezwzględnie wymagane jeżeli uzywasz np. bootsplasha. Plik initrd uaktywnia ramdisk do którego są ładowane pliki i moduły startowe.
Jeżeli robisz sobie kernela sam to ten plik nie jest potrzebny, ale uwaga - przed załadowaniem nowego jądra i przeładowaniem lilo należy w pliku lilo.conf zachaszować linikę dotyczącą initrd.img - wtedy jądro ładnie się załaduje i lilo przeładuje (nie powinien wyskoczyć kernel panic). Jeden warunek - system plików na którym stoi partycja / (root) musi być wkompilowany na stałe <*>, a nie jako moduł.
To tyle najważniejszych, rychu dobrze radzi, to co używaż zawsze wkompiluj na stałe, bo i tak będziesz tego potrzebował


Debian jest lepszy niż wszystkie klony
Linux register users: #359018
http://www.freebsd.org/gifs/powerlogo.gif
Beskid Niski

Offline

 

#8  2005-04-23 16:00:55

  Bogdan - Użytkownik

Bogdan
Użytkownik
Skąd: Sulechów
Zarejestrowany: 2005-01-24

Re: Kernel panic ;/

hmm mam ten sam problem zaisntalowalem i skompilowalem jajko 2.6.8 i nie chce sie odpalic system "kernel panic" posiadam system plikow ext2, a w mojim lilo.conf nie ma tej linijki initrd.img. Wie ktos jak temu zaradzic?

tutaj wycinek mojego lilo.conf (moze cos innego trzeba zahaszowac)


# /etc/lilo.conf - See: `lilo(8)' and `lilo.conf(5)',
# ---------------       `install-mbr(8)', `/usr/share/doc/lilo/',
#                       and `/usr/share/doc/mbr/'.

# +---------------------------------------------------------------+
# |                        !! Reminder !!                         |
# |                                                               |
# | Don't forget to run `lilo' after you make changes to this     |
# | conffile, `/boot/bootmess.txt', or install a new kernel.  The |
# | computer will most likely fail to boot if a kernel-image      |
# | post-install script or you don't remember to run `lilo'.      |
# |                                                               |
# +---------------------------------------------------------------+

# Support LBA for large hard disks.
#
lba32

# Overrides the default mapping between harddisk names and the BIOS'
# harddisk order. Use with caution.
#disk=/dev/hde
#    bios=0x81

#disk=/dev/sda
#    bios=0x80

# Specifies the boot device.  This is where Lilo installs its boot
# block.  It can be either a partition, or the raw device, in which
# case it installs in the MBR, and will overwrite the current MBR.
#
boot=/dev/hda

# Specifies the device that should be mounted as root. (`/')
#
root=/dev/hda3

# Enable map compaction:
# Tries to merge read requests for adjacent sectors into a single
# read request. This drastically reduces load time and keeps the
# map smaller.  Using `compact' is especially recommended when
# booting from a floppy disk.  It is disabled here by default
# because it doesn't always work.
#
# compact

# Installs the specified file as the new boot sector
# You have the choice between: bmp, compat, menu and text
# Look in /boot/ and in lilo.conf(5) manpage for details
#
install=/boot/boot-menu.b

# Specifies the location of the map file
#
map=/boot/map

# You can set a password here, and uncomment the `restricted' lines
# in the image definitions below to make it so that a password must
# be typed to boot anything but a default configuration.  If a
# command line is given, other than one specified by an `append'
# statement in `lilo.conf', the password will be required, but a
# standard default boot will not require one.
#
# This will, for instance, prevent anyone with access to the
# console from booting with something like `Linux init=/bin/sh',
# and thus becoming `root' without proper authorization.
#
# Note that if you really need this type of security, you will
# likely also want to use `install-mbr' to reconfigure the MBR
# program, as well as set up your BIOS to disallow booting from
# removable disk or CD-ROM, then put a password on getting into the
# BIOS configuration as well.  Please RTFM `install-mbr(8)'.
#
# password=tatercounter2000

# Specifies the number of deciseconds (0.1 seconds) LILO should
# wait before booting the first image.
#
delay=20

# You can put a customized boot message up if you like.  If you use
# `prompt', and this computer may need to reboot unattended, you
# must specify a `timeout', or it will sit there forever waiting
# for a keypress.  `single-key' goes with the `alias' lines in the
# `image' configurations below.  eg: You can press `1' to boot
# `Linux', `2' to boot `LinuxOLD', if you uncomment the `alias'.
#
# message=/boot/bootmess.txt
prompt
timeout=150
#    prompt
#    single-key
#    delay=100
#    timeout=100

# Specifies the VGA text mode at boot time. (normal, extended, ask, <mode>)
#
# vga=ask
# vga=9
#
vga=normal

# Kernel command line options that apply to all installed images go
# here.  See: The `boot-prompt-HOWO' and `kernel-parameters.txt' in
# the Linux kernel `Documentation' directory.
#
# append=""

# Boot up Linux by default.
#
default=Linux

image=/boot/kernel
    label=Linux
    read-only
#    restricted
#    alias=1

image=/vmlinuz.old
    label=LinuxOLD
    read-only
    optional
#    restricted
#    alias=2

# If you have another OS on this machine to boot, you can uncomment the
# following lines, changing the device name on the `other' line to
# where your other OS' partition is.
#
# other=/dev/hda4
#    label=HURD
#    restricted
#    alias=3
other=/dev/hda1
  label="Windows(hda1)"

other=/dev/hda5
  label="Windows(hda5)"

z góry thx za pomoc


i spowrotem jestem poczatkujący......

Offline

 

#9  2005-04-23 17:34:44

  Bodzio - Ojciec Założyciel

Bodzio
Ojciec Założyciel
Skąd: Gorlice
Zarejestrowany: 2004-04-17
Serwis

Re: Kernel panic ;/

Przekompiluj jajko jeszcze raz i wpisz do jądra na stałe obsługę plików ext2 i ext3


Debian jest lepszy niż wszystkie klony
Linux register users: #359018
http://www.freebsd.org/gifs/powerlogo.gif
Beskid Niski

Offline

 

#10  2005-04-25 11:45:34

  Bogdan - Użytkownik

Bogdan
Użytkownik
Skąd: Sulechów
Zarejestrowany: 2005-01-24

Re: Kernel panic ;/

Bodzio przekompilowalem jajko od nowa i dalej to samo tylko nie wiem czy w dobrej sekcji zaznaczylem obsluge systemu plikow ext2 i ext3
Jak bys ktos pamietal w kotrej to jest sekcji, bo sprawdalem i tylko w jednej cos znalzlem to poznaczalem obsluge a wiecej nie znalazlem.
jadro kompiluje:
make menuconfig
make dep (wyskakuje napis ze juz nie trzeba robc)
make clean
make modules
make modules_install

i po uruchomieniu wylatuje blad:

Unable to mount root fs on unknown-block (3,3)

aha i jak rozpakowywalem jajko to bylo ono w pliku (nie wiem czy teraz wam to dobrze wyjasnie :D )
/etc/usr/linux-2.6.8/linux-2.6.8

ale zrobilem dowiazanie ln -s /linux-2.6.8/linux-2.6.8 linux
ma to jakies znaczenie jakbym mial w /usr/src katalog linux-2.6.8 i w nim pliki a nie nastepny podkatalog ??


i spowrotem jestem poczatkujący......

Offline

 

#11  2005-04-25 15:06:57

  owca_z - Użytkownik

owca_z
Użytkownik
Skąd: Wodzisław Śl/Jastrzębie Zdr
Zarejestrowany: 2004-09-24

Re: Kernel panic ;/

a pozazaznaczałeś odpowiednie dla twojej płyty głównej, kontrolery IDE. Poszukaj na forum moich prześć z kompilacją jajka, może coś pomoże


`|`
--

Offline

 

#12  2005-06-25 22:38:01

  domel - Użytkownik

domel
Użytkownik
Zarejestrowany: 2005-06-20

Re: Kernel panic ;/

Mam ten sam problem, tylko, że używam grub`a. Czy tam te wpisy trzeba w podobny sposób poprzerabiać ??


........żyj kolorowo ;)

Offline

 

#13  2005-06-26 01:29:31

  kali - Członek DUG

kali
Członek DUG
Skąd: Wrocław
Zarejestrowany: 2005-06-19
Serwis

Re: Kernel panic ;/


make menuconfig
make dep (wyskakuje napis ze juz nie trzeba robc)
make clean
make modules
make modules_install

A gdzie jest zwykłe make bez argumentów, które skompiluje obraz samego jądra? (nie wiem czy zadziała bez tego...) Obsługa systemów plików jest tylko w jednym dziale o wdzięcznie brzmiącej nazwie File Systems (albo coś takiego... :P)

BTW: co to za problemy z modułami niby?

Pozdrawiam,


Intelligence is like a river: the deeper it is, the less noise it makes

Offline

 

Stopka forum

Powered by PunBB
© Copyright 2002–2005 Rickard Andersson
Nas ludzie lubią po prostu, a nie klikając w przyciski ;-)