LinuxQuestions.org
Share your knowledge at the LQ Wiki.
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 05-28-2010, 10:39 PM   #1
kingm1k3
LQ Newbie
 
Registered: May 2010
Location: San Jose, CA
Distribution: Slackware 13.0
Posts: 18

Rep: Reputation: 0
Kernel Panic - not syncing


Hello!

I've been trying to compile my own kernel for the first time and I've run into some trouble. After compiling everything and updating lilo, when trying to boot, I get the following error message:

VFS: Cannot open root device "806" or unknown-block(8,6)
Please append a correct "root=" boot option: here are the ava.... (its cut off)
0000 312571224 sda driver: sd
0001 204800 sda1
0002 25781625 sda2
0003 39162991 sda3
0b00 1048575 sr0 driver: sr
Kernel panic - not syncing: VFS: Unable to mount root fs on un... (cut off again)
Pid: 1, comm: swapper Not tainted 2.6.33.4 #1

The kernel version is 2.6.33.1, the distro is Slackware 13.0. My linux partition is ext4 and on /dev/sda6 which is a logical partition. It seems like it isn't recognizing this partition. It boots up fine with the old kernel and doing an fdisk after booting that kernel shows the sda6 partition. I have ext4, SATA and PATA support all in the kernel config. I've tried recompiling a few times now to no avail and I'm not really sure what else to try at this point since is this is my first time. Anyone have any ideas? Let me know if you want to see the output of any files.
 
Old 05-28-2010, 11:00 PM   #2
damgar
Senior Member
 
Registered: Sep 2009
Location: dallas, tx
Distribution: Slackware - current multilib/gsb Arch
Posts: 1,949
Blog Entries: 8

Rep: Reputation: 203Reputation: 203Reputation: 203
How did you go about configuring your kernel? Did you start your config file from scratch?

For a first time I would follow this by Alien BOB. I found it best to have a little hand holding so the first one would go ok so that when I went too far and broke things, I'd have a reference.
 
Old 05-28-2010, 11:40 PM   #3
kingm1k3
LQ Newbie
 
Registered: May 2010
Location: San Jose, CA
Distribution: Slackware 13.0
Posts: 18

Original Poster
Rep: Reputation: 0
I actually did use that guide to walk me through. The only part I differed was that I used gconfig instead of xconfig to make the configuration file because I did not have the Qt library installed.

I noticed at the bottom of that guide it has the error that I'm receiving and says to use an initrd file in that case. I made the initrd with "mkinitrd -c -k 2.6.33.4 -m ext4" and now I get get this error when booting:

mount: mounting /dev/sda6 on /mnt failed: No such device or address
ERROR: No/sbin/init found on rootdev (or not mounted). Trouble ahead. You can try to fix it. Type 'exit' when things are done.

/bin/sh: can't access tty; job control turned off

and then it gives me a shell that I can't type into.
 
Old 05-28-2010, 11:45 PM   #4
damgar
Senior Member
 
Registered: Sep 2009
Location: dallas, tx
Distribution: Slackware - current multilib/gsb Arch
Posts: 1,949
Blog Entries: 8

Rep: Reputation: 203Reputation: 203Reputation: 203
I usually just include my filesystems in the kernel instead of building them as modules, so that I have no need for an initrd, but when using an initrd I just do
Code:
echo `sh /usr/share/mkinitrd/mkinitrd_command_generator.sh`
which saves me from typos. Also, I think you have to run lilo after every edit of lilo.conf.

Last edited by damgar; 05-28-2010 at 11:47 PM.
 
Old 05-29-2010, 12:08 AM   #5
kingm1k3
LQ Newbie
 
Registered: May 2010
Location: San Jose, CA
Distribution: Slackware 13.0
Posts: 18

Original Poster
Rep: Reputation: 0
Using the output of that mkinitrd_command_generator.sh script results in the same error as post #3.
 
Old 05-29-2010, 01:29 AM   #6
damgar
Senior Member
 
Registered: Sep 2009
Location: dallas, tx
Distribution: Slackware - current multilib/gsb Arch
Posts: 1,949
Blog Entries: 8

Rep: Reputation: 203Reputation: 203Reputation: 203
Post your lilo.conf? And you've remembered to rerun lilo after editing lilo.conf?
 
Old 05-29-2010, 01:54 AM   #7
kingm1k3
LQ Newbie
 
Registered: May 2010
Location: San Jose, CA
Distribution: Slackware 13.0
Posts: 18

Original Poster
Rep: Reputation: 0
Yeah, I ran lilo after changing lilo.conf. I even ran it after changing the initrd (although I don't think it's necessary?).

Code:
bash-3.1# cat /etc/lilo.conf                              
# LILO configuration file                                 
# generated by 'liloconfig'                               
#                                                         
# Start LILO global section                               
# Append any additional kernel parameters:                
append=" vt.default_utf8=0"                               
boot = /dev/sda                                           

# Boot BMP Image.
# Bitmap in BMP format: 640x480x8
  bitmap = /boot/slack.bmp       
# Menu colors (foreground, background, shadow, highlighted
# foreground, highlighted background, highlighted shadow):
  bmp-colors = 255,0,255,0,255,0                          
# Location of the option table: location x, location y, number of
# columns, lines per column (max 15), "spill" (this is how many  
# entries must be in the first column before the next begins to  
# be used.  We don't specify it here, as there's just one column.
  bmp-table = 60,6,1,16                                          
# Timer location x, timer location y, foreground color,          
# background color, shadow color.                                
  bmp-timer = 65,27,0,255                                        

# Standard menu.
# Or, you can comment out the bitmap menu above and 
# use a boot message with the standard menu:        
#message = /boot/boot_message.txt                   

# Wait until the timeout to boot (if commented out, boot the
# first entry immediately):                                 
prompt                                                      
# Timeout before the first entry boots.                     
# This is given in tenths of a second, so 600 for every minute:
timeout = 1200                                                 
# Override dangerous defaults that rewrite the partition table:
change-rules                                                   
  reset                                                        
# VESA framebuffer console @ 1024x768x256                      
vga = 773                                                      
# Normal VGA console                                           
# vga = normal                                                 
# VESA framebuffer console @ 1024x768x64k
# vga=791
# VESA framebuffer console @ 1024x768x32k
# vga=790
# VESA framebuffer console @ 1024x768x256
# vga=773
# VESA framebuffer console @ 800x600x64k
# vga=788
# VESA framebuffer console @ 800x600x32k
# vga=787
# VESA framebuffer console @ 800x600x256
# vga=771
# VESA framebuffer console @ 640x480x64k
# vga=785
# VESA framebuffer console @ 640x480x32k
# vga=784
# VESA framebuffer console @ 640x480x256
# vga=769
# End LILO global section
# Windows bootable partition config begins
other = /dev/sda3
  label = Windows
  table = /dev/sda
# Windows bootable partition config ends
# Linux bootable partition config begins
image = /boot/vmlinuz
  root = /dev/sda6
  label = Linux
  read-only
# Linux bootable partition config ends

image = /boot/bzImage-2.6.33.4
initrd = /boot/initrd.gz
  root = /dev/sda6
  label = newkernel
  read-only

Last edited by kingm1k3; 05-29-2010 at 01:55 AM.
 
Old 05-29-2010, 08:52 AM   #8
damgar
Senior Member
 
Registered: Sep 2009
Location: dallas, tx
Distribution: Slackware - current multilib/gsb Arch
Posts: 1,949
Blog Entries: 8

Rep: Reputation: 203Reputation: 203Reputation: 203
Did you follow the guide exactly? If you did then your kernel would be "vmlinuz-2.6.33.4". Also what all did you change in your kernel? It seems like your hard drive can't be read during boot. Did you start with a working Slackware .config file?
 
Old 05-29-2010, 06:21 PM   #9
kingm1k3
LQ Newbie
 
Registered: May 2010
Location: San Jose, CA
Distribution: Slackware 13.0
Posts: 18

Original Poster
Rep: Reputation: 0
I think I was originally starting from a generic config. I tried starting from a working config and it worked. Thanks for the help, damgar!
 
Old 05-29-2010, 06:24 PM   #10
damgar
Senior Member
 
Registered: Sep 2009
Location: dallas, tx
Distribution: Slackware - current multilib/gsb Arch
Posts: 1,949
Blog Entries: 8

Rep: Reputation: 203Reputation: 203Reputation: 203
Glad to 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
[SOLVED] Kernel panic - not syncing vttay03 Slackware 7 01-01-2010 09:14 PM
kernel panic not syncing nixdunce Linux - Newbie 5 11-03-2009 03:04 PM
Kernel Panic - not syncing lazylogic Slackware 10 04-18-2008 04:13 AM
kernel panic - not syncing luzyS Linux - Newbie 1 04-12-2008 07:50 AM
Kernel panic - not syncing : shah_hs Linux - Newbie 2 12-07-2007 06:29 PM

LinuxQuestions.org > Forums > Linux Forums > Linux - Software > Linux - Kernel

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