After trying to browse through the 3 other Kernel Panic threads and attempting to fix my problem using those, I've decided to post a new thread...
I am at the last stage of LFS 6.6, no errors as far as I can tell, and everything has been working fine in the chroot environment.
I set up GRUB, no errors. I already have GRUB on Linux Mint 9 (Ubuntu 10.04), so didn't install it to the MBR. I rebooted, and saw "GNU/Linux...", which wasn't there before. I clicked on it and this is what I saw (sorry, I don't know where the log is, if there is one):
[Picture of my monitor with errors]
I saw that something was wrong with /dev/sda3 (my LFS partition), so I looked at fdisk -l (on Linux Mint):
Code:
Disk /dev/sda: 320.1 GB, 320072933376 bytes
255 heads, 63 sectors/track, 38913 cylinders
Units = cylinders of 16065 * 512 = 8225280 bytes
Sector size (logical/physical): 512 bytes / 512 bytes
I/O size (minimum/optimal): 512 bytes / 512 bytes
Disk identifier: 0xb744052f
Device Boot Start End Blocks Id System
/dev/sda1 1 16633 133599232+ 83 Linux
/dev/sda2 16633 17849 9767520 82 Linux swap / Solaris
/dev/sda3 17849 20411 20582784 83 Linux
/dev/sda4 * 20411 38914 148620288 7 HPFS/NTFS
If this is relevant, here is LFS's fstab file:
Code:
# Begin /etc/fstab
# file system mount-point type options dump fsck
# order
/dev/sda3 / ext3 defaults 1 1
/dev/sda2 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
And here is Linux Mint's grub.cgf:
Code:
#
# 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
}
function recordfail {
set recordfail=1
if [ -n ${have_grubenv} ]; then if [ -z ${boot_once} ]; then save_env recordfail; fi; fi
}
insmod ext2
set root='(hd0,1)'
search --no-floppy --fs-uuid --set f46e79a4-c951-489f-82d7-d3bc158ee521
if loadfont /usr/share/grub/unicode.pf2 ; then
set gfxmode=640x480
insmod gfxterm
insmod vbe
if terminal_output gfxterm ; then true ; else
# For backward compatibility with versions of terminal.mod that don't
# understand terminal_output
terminal gfxterm
fi
fi
insmod ext2
set root='(hd0,1)'
search --no-floppy --fs-uuid --set f46e79a4-c951-489f-82d7-d3bc158ee521
set locale_dir=($root)/boot/grub/locale
set lang=en
insmod gettext
if [ ${recordfail} = 1 ]; then
set timeout=-1
else
set timeout=10
fi
### END /etc/grub.d/00_header ###
### BEGIN /etc/grub.d/05_debian_theme ###
set menu_color_normal=white/black
set menu_color_highlight=black/light-gray
### END /etc/grub.d/05_debian_theme ###
### BEGIN /etc/grub.d/06_mint_theme ###
insmod ext2
set root='(hd0,1)'
search --no-floppy --fs-uuid --set f46e79a4-c951-489f-82d7-d3bc158ee521
insmod png
if background_image /boot/grub/linuxmint.png ; then
set color_normal=white/black
set color_highlight=white/light-gray
else
set menu_color_normal=white/black
set menu_color_highlight=white/light-gray
fi
### END /etc/grub.d/06_mint_theme ###
### BEGIN /etc/grub.d/10_linux ###
menuentry "Linux Mint 9, 2.6.32-21-generic (/dev/sda1)" --class linuxmint --class gnu-linux --class gnu --class os {
recordfail
insmod ext2
set root='(hd0,1)'
search --no-floppy --fs-uuid --set f46e79a4-c951-489f-82d7-d3bc158ee521
linux /boot/vmlinuz-2.6.32-21-generic root=UUID=f46e79a4-c951-489f-82d7-d3bc158ee521 ro quiet splash
initrd /boot/initrd.img-2.6.32-21-generic
}
menuentry "Linux Mint 9, 2.6.32-21-generic (/dev/sda1) -- recovery mode" --class linuxmint --class gnu-linux --class gnu --class os {
recordfail
insmod ext2
set root='(hd0,1)'
search --no-floppy --fs-uuid --set f46e79a4-c951-489f-82d7-d3bc158ee521
echo 'Loading Linux 2.6.32-21-generic ...'
linux /boot/vmlinuz-2.6.32-21-generic root=UUID=f46e79a4-c951-489f-82d7-d3bc158ee521 ro single
echo 'Loading initial ramdisk ...'
initrd /boot/initrd.img-2.6.32-21-generic
}
### END /etc/grub.d/10_linux ###
### BEGIN /etc/grub.d/10_lupin ###
### END /etc/grub.d/10_lupin ###
### BEGIN /etc/grub.d/20_memtest86+ ###
menuentry "Memory test (memtest86+)" {
insmod ext2
set root='(hd0,1)'
search --no-floppy --fs-uuid --set f46e79a4-c951-489f-82d7-d3bc158ee521
linux16 /boot/memtest86+.bin
}
menuentry "Memory test (memtest86+, serial console 115200)" {
insmod ext2
set root='(hd0,1)'
search --no-floppy --fs-uuid --set f46e79a4-c951-489f-82d7-d3bc158ee521
linux16 /boot/memtest86+.bin console=ttyS0,115200n8
}
### END /etc/grub.d/20_memtest86+ ###
### BEGIN /etc/grub.d/30_os-prober ###
menuentry "GNU/Linux, with Linux 2.6.32.8-lfs-6.6" {
insmod ext2
insmod lvm
set root='(hd0,3)'
search --no-floppy --fs-uuid --set db1c9927-1949-4e92-8822-b5b96127af7b
linux /boot/vmlinux-2.6.32.8-lfs-6.6 root=/dev/sda3 ro
}
menuentry "GNU/Linux, with Linux 2.6.32.8-lfs-6.6 (recovery mode)" {
insmod ext2
insmod lvm
set root='(hd0,3)'
search --no-floppy --fs-uuid --set db1c9927-1949-4e92-8822-b5b96127af7b
linux /boot/vmlinux-2.6.32.8-lfs-6.6 root=/dev/sda3 ro single
}
menuentry "Windows 7 (loader) (on /dev/sda4)" {
insmod ntfs
set root='(hd0,4)'
search --no-floppy --fs-uuid --set 483c78cb3c78b592
chainloader +1
}
### 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 ###
And here's LFS's grub.cfg:
Code:
#
# 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 ###
set default=0
set timeout=5
### END /etc/grub.d/00_header ###
### BEGIN /etc/grub.d/10_linux ###
menuentry "GNU/Linux, with Linux 2.6.32.8-lfs-6.6" {
insmod ext2
set root=(hd0,3)
search --no-floppy --fs-uuid --set db1c9927-1949-4e92-8822-b5b96127af7b
linux /boot/vmlinux-2.6.32.8-lfs-6.6 root=/dev/sda3 ro
}
menuentry "GNU/Linux, with Linux 2.6.32.8-lfs-6.6 (recovery mode)" {
insmod ext2
set root=(hd0,3)
search --no-floppy --fs-uuid --set db1c9927-1949-4e92-8822-b5b96127af7b
linux /boot/vmlinux-2.6.32.8-lfs-6.6 root=/dev/sda3 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 ###
Any ideas? I really don't want to abandon 3 days of hard work...