LinuxQuestions.org
Download your favorite Linux distribution at LQ ISO.
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Distributions > Linux From Scratch
User Name
Password
Linux From Scratch This Forum is for the discussion of LFS.
LFS is a project that provides you with the steps necessary to build your own custom Linux system.

Notices


Reply
  Search this Thread
Old 02-09-2011, 09:30 AM   #1
cybermann
LQ Newbie
 
Registered: Feb 2011
Posts: 3

Rep: Reputation: Disabled
6.7 - all done - reboot - kernel panic! What to do now?


Hello

I finished the 6.7 LFS book, everything worked fine ... till the reboot.
I got a kernel panic, here a "screenshot"

http://img43.imageshack.us/img43/8572/img0018vw.jpg
http://img43.imageshack.us/img43/8572/img0018vw.th.jpg

A lot of topics say this has to do with missing drivers.

I compiled the kernel with make defconfig, because the pc is an quite old one with normal hardware like IDE harddrive, 900MhZ Pentium CPU and I dont think I need any special drivers witch are not enabled by default?

Do you need more info? What should I do now? Thank you!
 
Old 02-10-2011, 04:45 AM   #2
druuna
LQ Veteran
 
Registered: Sep 2003
Posts: 10,532
Blog Entries: 7

Rep: Reputation: 2405Reputation: 2405Reputation: 2405Reputation: 2405Reputation: 2405Reputation: 2405Reputation: 2405Reputation: 2405Reputation: 2405Reputation: 2405Reputation: 2405
Hi,

Quote:
Root-NFS: No NFS server available, giving up
The above doesn't look correct. NFS is used for disk-less machines that mount the root filesystem via NFS.

A few questions:
- Which filesystem did you create for the LFS partition (ext2/ext3/ext4/etc)?
- Which partition did you use for creating LFS?
- What does your /etc/fstab look like?
- What does your /boot/grub/grub.cfg LFS menuentry look like?
- Are the correct option(s) present in your kernel config?

Hope this helps.
 
Old 02-10-2011, 07:02 AM   #3
cybermann
LQ Newbie
 
Registered: Feb 2011
Posts: 3

Original Poster
Rep: Reputation: Disabled
Quote:
- Which filesystem did you create for the LFS partition (ext2/ext3/ext4/etc)?
As it is written in the book, I created a ext3 partition

Quote:
- Which partition did you use for creating LFS?
I use the LFS Live CD

Quote:
- What does your /etc/fstab look like?
Code:
root:/sources/linux-2.6.35.4# cat /etc/fstab 
# Begin /etc/fstab

# file system  mount-point  type   options         dump  fsck
#                                                        order

/dev/hda1      /            ext3   defaults        1     1
/dev/hda2      swap         swap   pri=1           0     0
proc           /proc        proc   defaults        0     0
sysfs          /sys         sysfs  defaults        0     0
devpts         /dev/pts     devpts gid=4,mode=620  0     0
tmpfs          /dev/shm     tmpfs  defaults        0     0
# End /etc/fstab
Quote:
- What does your /boot/grub/grub.cfg LFS menuentry look like?
Code:
root:/sources/linux-2.6.35.4# cat /boot/grub/grub.cfg 
#
# DO NOT EDIT THIS FILE
#
# It is automatically generated by /usr/sbin/grub-mkconfig using templates
# from /etc/grub.d and settings from /etc/default/grub
#

### BEGIN /etc/grub.d/00_header ###
if [ -s $prefix/grubenv ]; then
  load_env
fi
set default="0"
if [ ${prev_saved_entry} ]; then
  set saved_entry=${prev_saved_entry}
  save_env saved_entry
  set prev_saved_entry=
  save_env prev_saved_entry
  set boot_once=true
fi

function savedefault {
  if [ -z ${boot_once} ]; then
    saved_entry=${chosen}
    save_env saved_entry
  fi
}
insmod ext2
set root='(hd0,1)'
search --no-floppy --fs-uuid --set 6565ea77-31c4-4b94-9483-c91359dd4104
set locale_dir=($root)/boot/grub/locale
set lang=en
insmod gettext
set timeout=5
### END /etc/grub.d/00_header ###

### BEGIN /etc/grub.d/10_linux ###
menuentry "GNU/Linux, with Linux 2.6.35.4-lfs-6.7" --class gnu-linux --class gnu --class os {
        insmod ext2
        set root='(hd0,1)'
        search --no-floppy --fs-uuid --set 6565ea77-31c4-4b94-9483-c91359dd4104
        echo    Loading Linux 2.6.35.4-lfs-6.7 ...
        linux   /boot/vmlinux-2.6.35.4-lfs-6.7 root=/dev/hda1 ro  
}
menuentry "GNU/Linux, with Linux 2.6.35.4-lfs-6.7 (recovery mode)" --class gnu-linux --class gnu --class os {
        insmod ext2
        set root='(hd0,1)'
        search --no-floppy --fs-uuid --set 6565ea77-31c4-4b94-9483-c91359dd4104
        echo    Loading Linux 2.6.35.4-lfs-6.7 ...
        linux   /boot/vmlinux-2.6.35.4-lfs-6.7 root=/dev/hda1 ro single 
}
### END /etc/grub.d/10_linux ###

### BEGIN /etc/grub.d/30_os-prober ###
### END /etc/grub.d/30_os-prober ###

### BEGIN /etc/grub.d/40_custom ###
# This file provides an easy way to add custom menu entries.  Simply type the
# menu entries you want to add after this comment.  Be careful not to change
# the 'exec tail' line above.
### END /etc/grub.d/40_custom ###
root:/sources/linux-2.6.35.4#

Quote:
- Are the correct option(s) present in your kernel config?
What options? Configuring the kernel isnt well described in the LFS book, so first I tried creating it with "make defconfig". But as it didnt work, I tried make menuconfig, looked through the menus (selected EXT2 and EXT3 in "filesystems") and compiled it. Same error on reboot...

Thank you for your help!

Last edited by cybermann; 02-10-2011 at 08:08 AM.
 
Old 02-10-2011, 08:09 AM   #4
druuna
LQ Veteran
 
Registered: Sep 2003
Posts: 10,532
Blog Entries: 7

Rep: Reputation: 2405Reputation: 2405Reputation: 2405Reputation: 2405Reputation: 2405Reputation: 2405Reputation: 2405Reputation: 2405Reputation: 2405Reputation: 2405Reputation: 2405
Hi,

The above looks correct/consistent, although I do wonder why hda is used and not sda. Which leaves the kernel and its configuration.

It is kinda hard to describe what needs to be turned on or off when running the make menuconfig part: There are just too many possible combinations.

Make sure these are set (assuming you have started make menuconfig):

1) File systems -> Ext3 journalling file system support,
2) Check the entries and activate the options that say If unsure, say Y. (can be found in the help tab),
3) Serial ATA (prod) and Parallel ATA -> select the appropriate option for your hardware.

Configuring the kernel can be a bit of a puzzle and you do have to know what hardware is present.

You could also try setting all the entries to "Y" in one go: Run make allyesconfig. You will end up with a big kernel that has entries enabled that you probably don't need, but you can turn those off later on if you want/need to.

Hope this helps.
 
  


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
Kernel panic after hard reboot dunstantom Linux - Newbie 4 09-25-2005 10:34 PM
Automatic reboot on kernel panic atlesn Linux - General 2 11-30-2004 10:04 AM
kernel panic on reboot of newly compiled kernel lyceum Linux - Newbie 4 09-09-2003 09:40 AM
Kernel panic on reboot runny_yolk Linux - General 0 10-04-2002 10:12 PM
Kernel Panic after reboot Spock Linux - General 8 08-27-2002 09:38 AM

LinuxQuestions.org > Forums > Linux Forums > Linux - Distributions > Linux From Scratch

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