LinuxQuestions.org
Welcome to the most active Linux Forum on the web.
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Distributions > Slackware
User Name
Password
Slackware This Forum is for the discussion of Slackware Linux.

Notices


Reply
  Search this Thread
Old 06-04-2006, 01:40 PM   #1
nykey
Member
 
Registered: Nov 2003
Posts: 360

Rep: Reputation: 30
Question Got "Kernel panic" but WHY ?


Ok, so I get this message:
Quote:
VFS: Cannot open root device "1641" or unknown-block (22,65)
Please append a correct "root=" boot option
Kernel panic - not syncing: VFS: Unable to mount root fs on unknown-block (22,65)
I just recompiled my kernel, I have 2 partitions with ext2 fs (wich I enabled in kernel .config with ext3 support also just in case). I have my slackware install on my second hard drive "hdd" and when I run lilo I get this error message
Quote:
root@nykey:~# lilo
Warning: The boot sector and map file are on different disks.
Added Slack-2.6.16.19 *
Added Slack-2.6.13
root@nykey:~#
Does this have something to do with my Kernel panic ? I don't even have the partitions from my first hard drive "hda" in fstab and that's not it cause my other kernel boots.Here is lilo.conf
Quote:
root@nykey:~# cat /etc/lilo.conf
boot = /dev/hda
prompt
timeout = 50
vga = 791
image = /boot/vmlinuz
root = /dev/hdd1
label = Slack-2.6.16.19
read-only # Non-UMSDOS filesystems should be mounted read-only for checking

image = /boot/vmlinuz.old
root = /dev/hdd1
label = Slack-2.6.13
read-only # Non-UMSDOS filesystems should be mounted read-only for checking
fstab
Quote:
root@nykey:~# cat /etc/fstab
/dev/hdd3 swap swap defaults 0 0
/dev/hdd1 / ext2 defaults 1 1
/dev/hdd2 /home ext2 defaults 1 2
/dev/cdrom /mnt/cdrom auto noauto,owner,ro 0 0
/dev/fd0 /mnt/floppy auto noauto,owner 0 0
devpts /dev/pts devpts gid=5,mode=620 0 0
proc /proc proc defaults 0 0
Hopefully someone will answer, untill then I'll play with options in kernel .config
 
Old 06-04-2006, 02:11 PM   #2
MannyNix
Member
 
Registered: Dec 2005
Location: ~
Distribution: Slackware -current
Posts: 467

Rep: Reputation: 55
may help with lilo, gotta go now
http://www.linuxquestions.org/questi...18#post2236518
 
Old 06-04-2006, 02:27 PM   #3
nykey
Member
 
Registered: Nov 2003
Posts: 360

Original Poster
Rep: Reputation: 30
Well the thing is that I've booted with lilo before even with that warning message. I just recompiled kernel to remove some unusefull stuff and beats me what I removed and now get Kernel Panic. It's not from the File System because I enabled all options under FS and still got the panic, so it looks like I have to do it again, and just be more carefull.
 
Old 06-04-2006, 06:44 PM   #4
Bruce Hill
HCL Maintainer
 
Registered: Jun 2003
Location: McCalla, AL, USA
Distribution: Arch, Gentoo
Posts: 6,941

Rep: Reputation: 129Reputation: 129
In your kernel you must have "CONFIG_EXT2_FS=Y" -- to boot EXT2, no matter what other fs options.
Code:
mingdao@james:~$ cat kernel/linux-2.6.16.19/.config | grep -i ext2
# CONFIG_EXT2_FS is not set
mingdao@james:~$ cat kernel/linux-2.6.16.19/.config | grep -i reiserfs
CONFIG_REISERFS_FS=y
Just two examples -- I user ReiserFS, not ext.

You also need support for your IDE controller built-in your kernel, such as:
Code:
mingdao@james:~$ cat kernel/linux-2.6.16.19/.config | grep -i PIIX
CONFIG_BLK_DEV_PIIX=y
which is for the Intel ICH5 controller on that box.

And LiLO should be installed to the MBR, which is on /dev/hda --
that warning message is just that, a warning -- LiLO will still
boot with the boot sector and map file on different disks.
 
Old 06-04-2006, 07:42 PM   #5
osor
HCL Maintainer
 
Registered: Jan 2006
Distribution: (H)LFS, Gentoo
Posts: 2,450

Rep: Reputation: 79
Make sure ext2/3 and ide drivers are built-in (NOT modules).

Also, too hard to resist:
Quote:
Originally Posted by nykey
...unusefull stuff...
should be useless stuff .
 
Old 06-04-2006, 08:18 PM   #6
cb951303
Member
 
Registered: Jan 2004
Distribution: Slackware 11 + Dropline Gnome 2.16
Posts: 194

Rep: Reputation: 30
Quote:
CONFIG_EXT2_FS=Y
that's not necessary if you're not using ext2.
in my config only fs enabled is reiserfs and it works like a charm....

you may get a Kernel Panic if you try to compile your root and boot filesystem as a Module (M)
if so try compiling them statically (built-in)
 
Old 06-04-2006, 08:23 PM   #7
wini_g
Member
 
Registered: Jun 2003
Distribution: SuSE 11.0
Posts: 171

Rep: Reputation: 30
I just read that CramFS needs to be included in some recent distros for you to boot successfully .
 
  


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
Explained: "kernel panic - not syncing - attempted to kill init" sundialsvcs Linux - Software 36 04-24-2010 09:58 AM
"root=" option for SATA drives to avoid kernel panic neelay1 Linux - Software 1 05-01-2006 02:18 PM
Common problems explained: "kernel panic - not syncing", "unable to mount..." sundialsvcs Linux - Newbie 2 03-01-2006 01:17 PM
Kernel Panic - Missing "initrd.img-2.6.8-2-686" in /boot MKSrivastava Debian 2 12-02-2005 04:09 PM
Kernel Panic:VFS: Cannot open root device "hda3" or 00:10 shivendnrab Linux - General 1 07-01-2004 04:08 AM

LinuxQuestions.org > Forums > Linux Forums > Linux - Distributions > Slackware

All times are GMT -5. The time now is 05:58 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
Open Source Consulting | Domain Registration