LinuxQuestions.org
Latest LQ Deal: Latest LQ Deals
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - General
User Name
Password
Linux - General This Linux forum is for general Linux questions and discussion.
If it is Linux Related and doesn't seem to fit in any other forum then this is the place.

Notices


Reply
  Search this Thread
Old 01-31-2009, 04:50 PM   #1
phoenix12345
LQ Newbie
 
Registered: Apr 2008
Posts: 15

Rep: Reputation: 1
Ext4 causes a kernel panic


I use kernel 2.6.28.2 and the funny thing is that yesterday the whole system worked fine.
After i reinstalled gentoo on my system and recompiled the kernel i get a kernel panic.
Code:
VFS: Cannot open root device "sda1" or unknown-block(8,1)
Please append a correct "root=" boot option; here are the available partitions:
0800     156290904   sda driver: sd
  0801      51761398 sda1
  0802        192780 sda2
  0803             1 sda3
  0805       5205028 sda5
  0806      98928238 sda6
0b00       1048575 sr0 driver: sr
Kernel panic - not syncing: VFS: Unable to mount root fs on unknown-block(8,1)
This is my partition layout:
/dev/sda1 / ext4
/dev/sda2 /boot ext2
/dev/sda5 swap
/dev/sda6 /home

Ext4 support is enabled in the kernel and i added rootfstype=ext4 in grub.
I also formatted the sda1 partition to ext4 again, could this be the cause.
NOTE: I used a Xubuntu 9.04 Alpha 2 disk to install gentoo and it is able to mount /dev/sda1.
 
Old 02-01-2009, 03:45 AM   #2
phoenix12345
LQ Newbie
 
Registered: Apr 2008
Posts: 15

Original Poster
Rep: Reputation: 1
It seems i forgot the essential rule of the kernel:everything that's vital to booting shouldn't be a module. EXT4 was a module, but i fixed that, recompiled the kernel and now it works like a charm.
 
Old 02-01-2009, 04:08 AM   #3
syg00
LQ Veteran
 
Registered: Aug 2003
Location: Australia
Distribution: Lots ...
Posts: 21,140

Rep: Reputation: 4123Reputation: 4123Reputation: 4123Reputation: 4123Reputation: 4123Reputation: 4123Reputation: 4123Reputation: 4123Reputation: 4123Reputation: 4123Reputation: 4123
Good to see you fixed it. I would re-state your rule as - when you do a custom kernel, why use modules at all ?.
Especially something like gentoo.
 
  


Reply



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 On
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
LXer: Kernel Log: Ext4 completes development phase as interim step to btrfs LXer Syndicated Linux News 0 10-18-2008 11:30 PM
installing 2.6.20.rc2 kernel, upgrading ext3 to ext4? Lord of the Board Linux - General 2 12-29-2006 04:15 PM
Kernel panic puts me in a panic theeeg Linux - Software 2 07-31-2004 04:46 PM
kernel panic (narius panic) narius Linux - Newbie 3 06-20-2002 03:56 PM
Kernel panic making me panic! Linux_N0oby Linux - Software 19 05-29-2002 12:31 AM

LinuxQuestions.org > Forums > Linux Forums > Linux - General

All times are GMT -5. The time now is 11:56 PM.

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