LinuxQuestions.org
Download your favorite Linux distribution at LQ ISO.
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Newbie
User Name
Password
Linux - Newbie This Linux forum is for members that are new to Linux.
Just starting out and have a question? If it is not in the man pages or the how-to's this is the place!

Notices


Reply
  Search this Thread
Old 12-24-2005, 04:35 AM   #1
nick021
Member
 
Registered: Jan 2005
Location: india
Distribution: slackware 10.0 (kernel 2.4.26)
Posts: 104

Rep: Reputation: 15
kernel panic prob.


hi everybody

i am using slackware 10.0 and had compiled kernel-2.4.28 and saved it as kernk-2428.
now when i reboot into newly compiled kernel -> kernk-2428, it gives the following error:

Quote:
kernel panic: VFS : Unable to mount root fs on 03:09
can anybody explain (1)what is VFS
(2)what is the problem
(3)what does 03:09 means


regards
 
Old 12-24-2005, 04:40 AM   #2
comprookie2000
Gentoo Developer
 
Registered: Feb 2004
Location: Fort Lauderdale FL.
Distribution: Gentoo
Posts: 3,291
Blog Entries: 5

Rep: Reputation: 56
Are you using lilo? What happened when you ran lilo? Are you using an initrd? Did you compile support for your filesystem into the kernel or as modules?
 
Old 12-24-2005, 10:27 AM   #3
nick021
Member
 
Registered: Jan 2005
Location: india
Distribution: slackware 10.0 (kernel 2.4.26)
Posts: 104

Original Poster
Rep: Reputation: 15
hi there ,
i m using lilo and kernel version is kernel-2.4.28.
when i run lilo it gives the following output:

lilo :
Quote:
Added Windows
Added Linux *
Added Kernk-2428
lilo -v :
Quote:
LILO version 22.5.9, Copyright (C) 1992-1998 Werner Almesberger
Development beyond version 21 Copyright (C) 1999-2004 John Coffman
Released 08-Apr-2004 and compiled at 00:18:50 on May 21 2004.

Warning: LBA32 addressing assumed
Reading boot sector from /dev/hda
Using MENU secondary loader
Calling map_insert_data
Mapping message file /boot/boot_message.txt
Calling map_insert_file

Boot other: /dev/hda1, on /dev/hda, loader CHAIN
Added Windows

Boot image: /boot/vmlinuz
Added Linux *

Boot image: /boot/kernk-2.4.28
Added Kernk-2428

Writing boot sector.
/boot/boot.0300 exists - no boot sector backup copy made.
no , i m not using initrd and i didnot compile support for the filesystem into kernel.
infact i didnt made any changes in filesystem during configuration.

regards
 
Old 12-24-2005, 10:42 AM   #4
btmiller
Senior Member
 
Registered: May 2004
Location: In the DC 'burbs
Distribution: Arch, Scientific Linux, Debian, Ubuntu
Posts: 4,275

Rep: Reputation: 370Reputation: 370Reputation: 370Reputation: 370
Quote:
Originally Posted by nick021
hi there ,

no , i m not using initrd and i didnot compile support for the filesystem into kernel.
infact i didnt made any changes in filesystem during configuration.
Well, there's your problem, then. How is the kernel supposed to mount the root filesystem if it doesn't have a driver for it? Either use mkinitrd to make an initrd with the filesystem module on it or compile support for your root filesystem directly into the kernel.

BTW, VFS is a sort of "meta-filesystem" in the kernel. It presents a unified interface to all the different types of filesystems such a Reiser, Ext2/2, vfat, etc.
 
Old 12-31-2005, 05:29 PM   #5
cstimpson
LQ Newbie
 
Registered: Dec 2005
Location: Johnstown, CO
Distribution: Debian
Posts: 1

Rep: Reputation: 0
Not sure how to use mkinitrd. I am still quite confused how to read the options and syntax for usage of a utility. Any pointers? I have the same problem mentioned by Nick021.

Thanks,
Christopher
 
Old 12-31-2005, 05:36 PM   #6
BinJajer
Member
 
Registered: Sep 2005
Location: Warsaw, Poland
Distribution: Slackware 10.2, Caldera OpenLinux 3.1, Corel Linux (Thanks xhi!), Debian GNU/HURD etc...
Posts: 296
Blog Entries: 1

Rep: Reputation: 30
mkinitrd --help

And you will figure it out.
 
Old 12-31-2005, 05:53 PM   #7
sundialsvcs
LQ Guru
 
Registered: Feb 2004
Location: SE Tennessee, USA
Distribution: Gentoo, LFS
Posts: 7,170

Rep: Reputation: 2208Reputation: 2208Reputation: 2208Reputation: 2208Reputation: 2208Reputation: 2208Reputation: 2208Reputation: 2208Reputation: 2208Reputation: 2208Reputation: 2208
The very first thing that Linux must be able to do, when it starts up, is to find the "root" ("/") filesystem.

This is usually provided by a parameter that's given to Linux by the boot-loader (LILO or Grub) ... "root=/dev/hda3" for example.

There's an option "root=LABEL=blahblah" which I've never been able to get to work.

In order to successfully mount the drive, the kernel has to have support for that filesystem. Some distributions use an "initrd" to install that support; sometimes it's built-in.

Look at the messages immediately PRECEDING this kernel-panic to see if Linux was able to find the drive at all .. or if it found it but couldn't mount it.
 
Old 12-31-2005, 07:54 PM   #8
comprookie2000
Gentoo Developer
 
Registered: Feb 2004
Location: Fort Lauderdale FL.
Distribution: Gentoo
Posts: 3,291
Blog Entries: 5

Rep: Reputation: 56
Just keep at least 2 kernels, One that you know will work and then one to learn.I compile support "*" for the filesystem and chipset ide drive etc. Anything that you want right away into the kernel and then you don't need an initrd.It just takes a little practice. At first it looks so confusing, so many options.
 
Old 12-31-2005, 08:51 PM   #9
i.of.the.storm
Member
 
Registered: Aug 2005
Distribution: Ubuntu 14.04
Posts: 72

Rep: Reputation: 15
I was compiling a kernel also yesterday on Slackware 10.2, and had the same error. I found that it was easiest to compile support for the filesystem into the kernel. Since I am new, I used make xconfig so that I would have an easier time configuring the kernel, I would suggest that method for other new people also.
 
Old 01-08-2006, 02:07 AM   #10
b0nd
Senior Member
 
Registered: Jan 2005
Distribution: Slackware, BackTrack, Windows XP
Posts: 1,020

Rep: Reputation: 45
Quote:
Originally Posted by sundialsvcs

There's an option "root=LABEL=blahblah" which I've never been able to get to work.
With experience i notice that "root=LABEL=..." works when u have only the original kernel on your system.
But as soon as u compile it and name it something else and assign it root=/dev/hdax ( i.e you are keeping both the kernels ), when u try to get into the newly one...it doesn't boot and throws error.
The solution for it is that you should change that "root=LABEL=..." to its full path name, i.e like root=/dev/hdax.
and then give the new kernel its own path.
now the new kernel will work fine.

regards
 
Old 01-08-2006, 02:49 AM   #11
btmiller
Senior Member
 
Registered: May 2004
Location: In the DC 'burbs
Distribution: Arch, Scientific Linux, Debian, Ubuntu
Posts: 4,275

Rep: Reputation: 370Reputation: 370Reputation: 370Reputation: 370
The LABEL stuff only works when you have support for it compiled into the kernel. Frankly, I find it a bit of a pain and just do things ruudra's way and change it to the appropriate /dev/hdXX. I suppose it can be useful if you're constantly changingyour partitions, but I've noticed weird behavior when you try to put two hard drivex containing partitions with the same LABEL in a system (e.g. when trying to recover files off of a dying hard drive).
 
  


Reply


Thread Tools Search this Thread
Search this Thread:

Advanced Search

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
Kernel panic puts me in a panic theeeg Linux - Software 2 07-31-2004 05:46 PM
Another Kernal panic prob--new installation won't boot! ChillyWilly Linux - Newbie 1 06-15-2004 10:48 AM
PROB Booting kernel panic? WAlN Linux - General 3 11-08-2003 08:55 PM
kernel panic (narius panic) narius Linux - Newbie 3 06-20-2002 04:56 PM
Kernel panic making me panic! Linux_N0oby Linux - Software 19 05-29-2002 01:31 AM


All times are GMT -5. The time now is 05:00 AM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration