6.7 - all done - reboot - kernel panic! What to do now?
Linux From ScratchThis 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
Welcome to LinuxQuestions.org, a friendly and active Linux Community.
You are currently viewing LQ as a guest. By joining our community you will have the ability to post topics, receive our newsletter, use the advanced search, subscribe to threads and access many other special features. Registration is quick, simple and absolutely free. Join our community today!
Note that registered members see fewer ads, and ContentLink is completely disabled once you log in.
If you have any problems with the registration process or your account login, please contact us. If you need to reset your password, click here.
Having a problem logging in? Please visit this page to clear all LQ-related cookies.
Get a virtual cloud desktop with the Linux distro that you want in less than five minutes with Shells! With over 10 pre-installed distros to choose from, the worry-free installation life is here! Whether you are a digital nomad or just looking for flexibility, Shells can put your Linux machine on the device that you want to use.
Exclusive for LQ members, get up to 45% off per month. Click here for more info.
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!
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?
- 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...
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.
LinuxQuestions.org is looking for people interested in writing
Editorials, Articles, Reviews, and more. If you'd like to contribute
content, let us know.