LinuxQuestions.org
Latest LQ Deal: Latest LQ Deals
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Software > Linux - Kernel
User Name
Password
Linux - Kernel This forum is for all discussion relating to the Linux kernel.

Notices


Reply
  Search this Thread
Old 02-24-2012, 10:07 AM   #1
AsadMoeen
Member
 
Registered: Jun 2010
Posts: 160

Rep: Reputation: 3
Kernel Panic Help


I compiled a new kernel 3.2 with RT patch. Installation went fine. I did not use initrd image because I used the correct drivers for the setup. On booting process, it gives me this error.


Code:
kernel panic not syncing VFS unable to mount on unknown device etc.
While the original kernel works fine. On Googling it appears to be a problem with the device its mounting on. Here is my grub cfg content:

Code:
menuentry 'Debian GNU/Linux, with Linux 3.2.6-rt13' --class debian --class gnu-linux --class gnu --class os {
	insmod part_msdos
	insmod ext2
	set root='(hd0,msdos1)'
	search --no-floppy --fs-uuid --set 4c912b0a-53a1-494e-b8c1-359686e1fbe6
	echo	'Loading Linux 3.2.6-rt13 ...'
	linux	/boot/vmlinuz-3.2.6-rt13 root=/dev/xvda1 ro  quiet
}

menuentry 'Debian GNU/Linux, with Linux 2.6.32-5-amd64' --class debian --class gnu-linux --class gnu --class os {
	insmod part_msdos
	insmod ext2
	set root='(hd0,msdos1)'
	search --no-floppy --fs-uuid --set 4c912b0a-53a1-494e-b8c1-359686e1fbe6
	echo	'Loading Linux 2.6.32-5-amd64 ...'
	linux	/boot/vmlinuz-2.6.32-5-amd64 root=UUID=4c912b0a-53a1-494e-b8c1-359686e1fbe6 ro  quiet
	echo	'Loading initial ramdisk ...'
	initrd	/boot/initrd.img-2.6.32-5-amd64
It appears both are trying to mount on /dev/xvda1


What could be the solution?
 
Old 02-24-2012, 05:55 PM   #2
liberalchrist
Member
 
Registered: Jun 2011
Location: Chester, SC
Distribution: Slackware Current
Posts: 142

Rep: Reputation: 33
Try editing the new menu entry and use the same "root=UUID=" statement as the old one. The new kernel doesn't change where the root file system is.
 
Old 02-24-2012, 11:38 PM   #3
AsadMoeen
Member
 
Registered: Jun 2010
Posts: 160

Original Poster
Rep: Reputation: 3
Okay so I remove /dev/xvda1?
 
Old 02-25-2012, 12:26 AM   #4
AsadMoeen
Member
 
Registered: Jun 2010
Posts: 160

Original Poster
Rep: Reputation: 3
Okay I tried to make it similar to the working Kernel by setting UUID but it still gave the same error.
 
Old 02-25-2012, 01:10 AM   #5
AsadMoeen
Member
 
Registered: Jun 2010
Posts: 160

Original Poster
Rep: Reputation: 3
I might also mention that while compiling the kernel and after setting up the config, while I was doing "make":

It asked me a lot of questions regarding different things like (N/y) (NEW) but I did not enter anything as I was unaware of them all so I just ignored and pressed enter to approximately all of the 300 times it asked me while compiling and installing. I don't know if thats right but I think it should be good to go if that was all in the config.
 
Old 02-25-2012, 04:16 AM   #6
AsadMoeen
Member
 
Registered: Jun 2010
Posts: 160

Original Poster
Rep: Reputation: 3
On creating initial ramdisk file, it booted successful.

But how to boot without it?
 
Old 02-25-2012, 07:08 AM   #7
liberalchrist
Member
 
Registered: Jun 2011
Location: Chester, SC
Distribution: Slackware Current
Posts: 142

Rep: Reputation: 33
You seem to have made some progress while I was sleeping. How you choose to answer the 300 questions does have a bearing on how you boot your kernel. To boot without a ramdisk, you have to compile support for your file system directly into the kernel. If you compile it as a module instead, it doesn't load right away and you have to have the ramdisk as a temporary file system until the kernel boots. Here is the best free resource I know on kernel configuration: http://www.kroah.com/lkn/. This book is a little older, but it is free and the basics of configuration are still the same.
 
Old 02-25-2012, 09:24 PM   #8
Anders Lind
LQ Newbie
 
Registered: Feb 2012
Posts: 6

Rep: Reputation: Disabled
Quote:
Originally Posted by AsadMoeen View Post
On creating initial ramdisk file, it booted successful.

But how to boot without it?

Hi,
I have similar problem also,
Can you say more about your solution? I don't quite get it.
Thanks
 
Old 03-16-2012, 02:08 AM   #9
AsadMoeen
Member
 
Registered: Jun 2010
Posts: 160

Original Poster
Rep: Reputation: 3
Just recompile with the proper drivers and original kernel's config file or modifying that.

http://wiki.fragaholics.de/index.php...el_Compilation

That may help.
 
  


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



Similar Threads
Thread Thread Starter Forum Replies Last Post
Logging a Kernel Panic Event - Problem writing the log in panic situation lucasct Linux - Embedded & Single-board computer 5 09-08-2011 01:44 PM
upgrading Fedora Core 3 kernel 2.6.9-1.667 to 2.6.26.3 manually+kernel panic error LinuxLovinNoob Linux - Newbie 7 12-17-2008 08:45 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 - Software > Linux - Kernel

All times are GMT -5. The time now is 06:50 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